Wijzigen voor document Huisstijl

Laatst gewijzigd door Jeeves de Butler op 07-10-2026 01:56

Van versie 18.1
gewijzigd door Jeeves de Butler
op 05-10-2026 04:11
Opmerking bij wijziging: Er is geen opmerking bij deze versie
Naar versie 20.1
gewijzigd door Jeeves de Butler
op 05-10-2026 04:54
Opmerking bij wijziging: Er is geen opmerking bij deze versie

Samenvatting

Details

XWiki.JavaScriptExtension[0]
code
... ... @@ -127,8 +127,27 @@
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);
130 130   }
131 131  
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 +
132 132   // Bij wijzigen op de pagina zelf: eerst de oorspronkelijke tabel terug, zodat de editor nooit de kaarten ziet.
133 133   function herstel() {
134 134   Array.prototype.forEach.call(document.querySelectorAll('#xwikicontent .wb-kaarten'), function (r) { r.remove(); });
XWiki.StyleSheetExtension[0]
Code
... ... @@ -845,6 +845,65 @@
845 845   text-indent: 0 !important;
846 846  }
847 847  
848 +/* ---------- Overzicht van onderliggende pagina's (startpagina van een onderdeel) ---------- */
849 +
850 +.wb-overzicht {
851 + list-style: none;
852 + display: grid;
853 + grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
854 + gap: 10px;
855 + margin: 14px 0 28px;
856 + padding: 0;
857 +}
858 +.wb-overzicht li {
859 + margin: 0;
860 +}
861 +#body #xwikicontent .wb-overzicht a {
862 + display: flex;
863 + align-items: center;
864 + gap: 12px;
865 + height: 100%;
866 + padding: 12px 14px;
867 + border: 1px solid #e8eaed;
868 + border-radius: 10px;
869 + background: #ffffff;
870 + color: #202124;
871 + text-decoration: none;
872 + transition: border-color .15s ease, box-shadow .15s ease;
873 +}
874 +#body #xwikicontent .wb-overzicht a:hover,
875 +#body #xwikicontent .wb-overzicht a:focus {
876 + border-color: #ffb447;
877 + box-shadow: 0 2px 10px rgba(31, 35, 40, .08);
878 +}
879 +.wb-overzicht-icoon {
880 + flex: none;
881 + width: 36px;
882 + height: 36px;
883 + display: flex;
884 + align-items: center;
885 + justify-content: center;
886 + border-radius: 50%;
887 + background: #ffefd5;
888 + color: #b86e00;
889 + font-size: 16px;
890 + text-align: center;
891 +}
892 +.wb-overzicht strong {
893 + display: block;
894 + font-weight: 500;
895 + line-height: 1.3;
896 +}
897 +.wb-overzicht small {
898 + display: block;
899 + margin-top: 2px;
900 + font-size: 13px;
901 + color: #5f6368;
902 +}
903 +.wb-overzicht-leeg {
904 + color: #5f6368;
905 +}
906 +
848 848  /* ---------- Telefoon ---------- */
849 849  
850 850  @media (max-width: 767px) {