MediaWiki:Common.css: verschil tussen versies
Uiterlijk
Geen bewerkingssamenvatting |
Geen bewerkingssamenvatting |
||
| Regel 7: | Regel 7: | ||
margin-top: 0; | margin-top: 0; | ||
margin-bottom: .3em; | margin-bottom: .3em; | ||
} | |||
/* Appendix-blok: basis */ | |||
.mw-parser-output .appendix-box { | |||
clear: both; /* start onder alle floats (infobox/thumbs) */ | |||
margin-top: 1em; | |||
box-sizing: border-box; | |||
position: relative; /* eigen stacking context, helpt tegen rare overlaps */ | |||
--appendix-rightcol: 320px; /* pas aan aan jullie infoboxbreedte (bv 22em of 300–340px) */ | |||
} | |||
/* Als er EERDER op de pagina een rechterkolom staat, geef appendix rechtermarge */ | |||
.mw-parser-output .infobox ~ .appendix-box, | |||
.mw-parser-output .floatright ~ .appendix-box, | |||
.mw-parser-output .thumb.tright ~ .appendix-box, | |||
.mw-parser-output table[style*="float:right"] ~ .appendix-box, | |||
.mw-parser-output div[style*="float:right"] ~ .appendix-box { | |||
margin-right: var(--appendix-rightcol) !important; | |||
} | |||
/* Nette (optionele) moderne variant, werkt in recente browsers */ | |||
@supports selector(.mw-parser-output:has(.infobox)) { | |||
.mw-parser-output:has(.infobox, .floatright, .thumb.tright) .appendix-box { | |||
margin-right: var(--appendix-rightcol); | |||
} | |||
} | |||
/* Mobiel: kolommen stapelen, dus marge rechts uit */ | |||
@media (max-width: 1000px) { | |||
.mw-parser-output .appendix-box { margin-right: 0 !important; } | |||
} | } | ||
Versie van 2 nov 2025 21:08
/** CSS die hier wordt geplaatst heeft invloed op alle vormgevingen */
.appendix-box > h2 {
font-weight: bold;
border-bottom: 1px solid #a2a9b1; /* klassieke grijze lijn */
font-size: 1.5em; /* optioneel: iets groter */
margin-top: 0;
margin-bottom: .3em;
}
/* Appendix-blok: basis */
.mw-parser-output .appendix-box {
clear: both; /* start onder alle floats (infobox/thumbs) */
margin-top: 1em;
box-sizing: border-box;
position: relative; /* eigen stacking context, helpt tegen rare overlaps */
--appendix-rightcol: 320px; /* pas aan aan jullie infoboxbreedte (bv 22em of 300–340px) */
}
/* Als er EERDER op de pagina een rechterkolom staat, geef appendix rechtermarge */
.mw-parser-output .infobox ~ .appendix-box,
.mw-parser-output .floatright ~ .appendix-box,
.mw-parser-output .thumb.tright ~ .appendix-box,
.mw-parser-output table[style*="float:right"] ~ .appendix-box,
.mw-parser-output div[style*="float:right"] ~ .appendix-box {
margin-right: var(--appendix-rightcol) !important;
}
/* Nette (optionele) moderne variant, werkt in recente browsers */
@supports selector(.mw-parser-output:has(.infobox)) {
.mw-parser-output:has(.infobox, .floatright, .thumb.tright) .appendix-box {
margin-right: var(--appendix-rightcol);
}
}
/* Mobiel: kolommen stapelen, dus marge rechts uit */
@media (max-width: 1000px) {
.mw-parser-output .appendix-box { margin-right: 0 !important; }
}