Wijzigen voor document Huisstijl
Laatst gewijzigd door Jeeves de Butler op 07-10-2026 01:56
Van versie 20.1
gewijzigd door Jeeves de Butler
op 05-10-2026 04:54
op 05-10-2026 04:54
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Naar versie 24.1
gewijzigd door Jeeves de Butler
op 06-10-2026 01:25
op 06-10-2026 01:25
Opmerking bij wijziging:
Er is geen opmerking bij deze versie
Samenvatting
-
Objecten (2 gewijzigd, 0 toegevoegd, 0 verwijderd)
Details
- XWiki.JavaScriptExtension[0]
-
- code
-
... ... @@ -128,8 +128,29 @@ 128 128 try { verwerk(tabel); } catch (e) { /* bij een fout blijft de tabel gewoon zichtbaar */ } 129 129 }); 130 130 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent ul.wikitoc'), eigenNummering); 131 + Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wbrb img'), scherpInfovak); 131 131 } 132 132 134 + // Infovak: het origineel tonen in plaats van de kleine XWiki-verkleining, zodat de afbeelding op een breed scherm scherp blijft. 135 + // Bij een fout terug naar de verkleining. Het oude adres blijft bewaard voor herstel(). 136 + function scherpInfovak(img) { 137 + var src = img.getAttribute('src') || ''; 138 + if (img.hasAttribute('data-wb-src') || !/[?&](width|height)=/.test(src)) { 139 + return; 140 + } 141 + var groot = origineel(src); 142 + if (groot === src) { 143 + return; 144 + } 145 + img.setAttribute('data-wb-src', src); 146 + img.addEventListener('error', function terug() { 147 + img.removeEventListener('error', terug); 148 + img.setAttribute('src', src); 149 + }); 150 + img.removeAttribute('srcset'); 151 + img.setAttribute('src', groot); 152 + } 153 + 133 133 // Inhoudsopgave: staan de nummers al in de koppen ("2.1 Mogelijkheden"), dan geen tweede nummering ervoor. 134 134 // Beslist per inhoudsopgave, zodat die in zijn geheel genummerd of ongenummerd is. 135 135 function eigenNummering(toc) { ... ... @@ -152,6 +152,10 @@ 152 152 function herstel() { 153 153 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wb-kaarten'), function (r) { r.remove(); }); 154 154 Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent table.wb-vervangen'), function (t) { t.classList.remove('wb-vervangen'); }); 176 + Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wbrb img[data-wb-src]'), function (img) { 177 + img.setAttribute('src', img.getAttribute('data-wb-src')); 178 + img.removeAttribute('data-wb-src'); 179 + }); 155 155 } 156 156 157 157 if (typeof window.require === 'function') {
- XWiki.StyleSheetExtension[0]
-
- Code
-
... ... @@ -109,10 +109,11 @@ 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 */ 112 112 .floatinginfobox.wbrechts { 113 113 width: 30%; 114 114 min-width: 260px; 115 - max-width: 340px;116 + max-width: 460px; 116 116 margin: 0 0 16px 28px; 117 117 padding: 14px; 118 118 border: 1px solid #e8eaed; ... ... @@ -128,9 +128,10 @@ 128 128 text-align: center; 129 129 margin-bottom: 12px; 130 130 } 132 +/* Nooit groter dan het origineel, zodat logo's klein en scherp blijven */ 131 131 .wbrb img { 132 132 max-width: 100%; 133 - max-height: 150px;135 + max-height: 280px; 134 134 width: auto; 135 135 height: auto; 136 136 border-radius: 10px; ... ... @@ -390,8 +390,9 @@ 390 390 #leftPanels { 391 391 padding-left: 30px; 392 392 } 393 -/* Vaste ondergrens, zodat de menu-items ook op een laptop op één regel passen */ 394 -#body.panel-left-width-Medium { 395 +/* Vaste ondergrens, zodat de menu-items ook op een laptop op één regel passen. Niet als de zijbalk is ingeklapt: 396 + dan zet XWiki de breedte op 0 en krijgt de inhoud de volle breedte. */ 397 +#body.panel-left-width-Medium:not(.hideleft):not(.hidelefthideright) { 395 395 --panel-column-left-width: clamp(240px, 17vw, 290px); 396 396 } 397 397 .panels .xwikipanelcontents a { ... ... @@ -665,7 +665,7 @@ 665 665 min-width: 0; 666 666 margin: 0 0 20px; 667 667 display: grid; 668 - grid-template-columns: 150px minmax(0, 1fr);671 + grid-template-columns: 220px minmax(0, 1fr); 669 669 column-gap: 18px; 670 670 align-items: start; 671 671 } ... ... @@ -674,7 +674,7 @@ 674 674 margin: 0; 675 675 } 676 676 .floatinginfobox.wbrechts > .wbrb img { 677 - max-height: 1 20px;680 + max-height: 170px; 678 678 } 679 679 .floatinginfobox.wbrechts > *:not(.wbrb) { 680 680 grid-column: 2; ... ... @@ -915,7 +915,7 @@ 915 915 margin: 0 0 16px; 916 916 } 917 917 .wbrb img { 918 - max-height: 110px;921 + max-height: 200px; 919 919 } 920 920 #xwikicontent table:not(.wbinfotab table) { 921 921 display: block;