Wijzigen voor document Huisstijl
Laatst gewijzigd door Jeeves de Butler op 07-10-2026 01:56
Van versie 21.1
gewijzigd door Jeeves de Butler
op 05-10-2026 07:36
op 05-10-2026 07:36
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Naar versie 15.1
gewijzigd door Jeeves de Butler
op 05-10-2026 03:47
op 05-10-2026 03:47
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Samenvatting
-
Objecten (2 gewijzigd, 0 toegevoegd, 0 verwijderd)
Details
- XWiki.JavaScriptExtension[0]
-
- code
-
... ... @@ -41,18 +41,6 @@ 41 41 return kaarten; 42 42 } 43 43 44 - // Adres van de oorspronkelijke afbeelding: zonder de width- en height-parameters waarmee XWiki verkleint. 45 - function origineel(src) { 46 - try { 47 - var url = new URL(src, window.location.href); 48 - url.searchParams.delete('width'); 49 - url.searchParams.delete('height'); 50 - return url.toString(); 51 - } catch (e) { 52 - return src; 53 - } 54 - } 55 - 56 56 function zetIcoon(beeld) { 57 57 beeld.classList.add('wb-kaart-geenbeeld'); 58 58 var icoon = document.createElement('span'); ... ... @@ -75,8 +75,7 @@ 75 75 beeld.className = 'wb-kaart-beeld'; 76 76 if (k.img) { 77 77 var img = document.createElement('img'); 78 - // Het origineel laden in plaats van de door XWiki verkleinde versie (?width=…&height=…), zodat grote kaarten scherp zijn. 79 - img.src = origineel(k.img.currentSrc || k.img.src); 66 + img.src = k.img.currentSrc || k.img.src; 80 80 img.alt = ''; 81 81 img.loading = 'lazy'; 82 82 img.decoding = 'async'; ... ... @@ -127,27 +127,8 @@ 127 127 Array.prototype.forEach.call(tabellen, function (tabel) { 128 128 try { verwerk(tabel); } catch (e) { /* bij een fout blijft de tabel gewoon zichtbaar */ } 129 129 }); 130 - Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent ul.wikitoc'), eigenNummering); 131 131 } 132 132 133 - // Inhoudsopgave: staan de nummers al in de koppen ("2.1 Mogelijkheden"), dan geen tweede nummering ervoor. 134 - // Beslist per inhoudsopgave, zodat die in zijn geheel genummerd of ongenummerd is. 135 - function eigenNummering(toc) { 136 - var links = toc.querySelectorAll('a'); 137 - if (!links.length) { 138 - return; 139 - } 140 - var genummerd = 0; 141 - Array.prototype.forEach.call(links, function (a) { 142 - if (/^\s*\d+(\.\d+)*\.?\s/.test(a.textContent || '')) { 143 - genummerd++; 144 - } 145 - }); 146 - if (genummerd / links.length >= 0.6) { 147 - toc.classList.add('wb-toc-eigen-nummers'); 148 - } 149 - } 150 - 151 151 // Bij wijzigen op de pagina zelf: eerst de oorspronkelijke tabel terug, zodat de editor nooit de kaarten ziet. 152 152 function herstel() { 153 153 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wb-kaarten'), function (r) { r.remove(); });
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -109,11 +109,10 @@ 109 109 110 110 /* ---------- Infovak rechts (wbrechts) ---------- */ 111 111 112 -/* Groeit mee met de inhoudskolom: op een laptop als voorheen, op brede schermen ruimer voor de afbeelding */ 113 113 .floatinginfobox.wbrechts { 114 - width: 26%;115 - min-width: 2 80px;116 - max-width: 4 60px;113 + width: 30%; 114 + min-width: 260px; 115 + max-width: 340px; 117 117 margin: 0 0 16px 28px; 118 118 padding: 14px; 119 119 border: 1px solid #e8eaed; ... ... @@ -129,10 +129,9 @@ 129 129 text-align: center; 130 130 margin-bottom: 12px; 131 131 } 132 -/* Nooit groter dan het origineel, zodat logo's klein en scherp blijven */ 133 133 .wbrb img { 134 134 max-width: 100%; 135 - max-height: 280px;133 + max-height: 150px; 136 136 width: auto; 137 137 height: auto; 138 138 border-radius: 10px; ... ... @@ -251,11 +251,6 @@ 251 251 color: #80868b; 252 252 font-variant-numeric: tabular-nums; 253 253 } 254 -/* Koppen die zelf al genummerd zijn ("2.1 Mogelijkheden"): het script zet deze class, dan geen tweede nummer */ 255 -#xwikicontent ul.wikitoc.wb-toc-eigen-nummers li > .wikilink::before, 256 -#xwikicontent ul.wikitoc.wb-toc-eigen-nummers ul li > .wikilink::before { 257 - content: none; 258 -} 259 259 #xwikicontent ul.wikitoc > li:not(.nodirectchild), 260 260 #xwikicontent ul.wikitoc > li.nodirectchild > ul > li { 261 261 margin-top: 10px; ... ... @@ -667,7 +667,7 @@ 667 667 min-width: 0; 668 668 margin: 0 0 20px; 669 669 display: grid; 670 - grid-template-columns: 220px minmax(0, 1fr);663 + grid-template-columns: 150px minmax(0, 1fr); 671 671 column-gap: 18px; 672 672 align-items: start; 673 673 } ... ... @@ -676,7 +676,7 @@ 676 676 margin: 0; 677 677 } 678 678 .floatinginfobox.wbrechts > .wbrb img { 679 - max-height: 1 70px;672 + max-height: 120px; 680 680 } 681 681 .floatinginfobox.wbrechts > *:not(.wbrb) { 682 682 grid-column: 2; ... ... @@ -847,65 +847,6 @@ 847 847 text-indent: 0 !important; 848 848 } 849 849 850 -/* ---------- Overzicht van onderliggende pagina's (startpagina van een onderdeel) ---------- */ 851 - 852 -.wb-overzicht { 853 - list-style: none; 854 - display: grid; 855 - grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 856 - gap: 10px; 857 - margin: 14px 0 28px; 858 - padding: 0; 859 -} 860 -.wb-overzicht li { 861 - margin: 0; 862 -} 863 -#body #xwikicontent .wb-overzicht a { 864 - display: flex; 865 - align-items: center; 866 - gap: 12px; 867 - height: 100%; 868 - padding: 12px 14px; 869 - border: 1px solid #e8eaed; 870 - border-radius: 10px; 871 - background: #ffffff; 872 - color: #202124; 873 - text-decoration: none; 874 - transition: border-color .15s ease, box-shadow .15s ease; 875 -} 876 -#body #xwikicontent .wb-overzicht a:hover, 877 -#body #xwikicontent .wb-overzicht a:focus { 878 - border-color: #ffb447; 879 - box-shadow: 0 2px 10px rgba(31, 35, 40, .08); 880 -} 881 -.wb-overzicht-icoon { 882 - flex: none; 883 - width: 36px; 884 - height: 36px; 885 - display: flex; 886 - align-items: center; 887 - justify-content: center; 888 - border-radius: 50%; 889 - background: #ffefd5; 890 - color: #b86e00; 891 - font-size: 16px; 892 - text-align: center; 893 -} 894 -.wb-overzicht strong { 895 - display: block; 896 - font-weight: 500; 897 - line-height: 1.3; 898 -} 899 -.wb-overzicht small { 900 - display: block; 901 - margin-top: 2px; 902 - font-size: 13px; 903 - color: #5f6368; 904 -} 905 -.wb-overzicht-leeg { 906 - color: #5f6368; 907 -} 908 - 909 909 /* ---------- Telefoon ---------- */ 910 910 911 911 @media (max-width: 767px) { ... ... @@ -917,7 +917,7 @@ 917 917 margin: 0 0 16px; 918 918 } 919 919 .wbrb img { 920 - max-height: 200px;854 + max-height: 110px; 921 921 } 922 922 #xwikicontent table:not(.wbinfotab table) { 923 923 display: block;