Module:Message box/ambox.css: Difference between revisions
optimize for one sheet version of .mbox-text and etc. |
a little more rationale |
||
| Line 1: | Line 1: | ||
.ambox { | .ambox { | ||
margin: 0 10%; /* 10% = Will not overlap with other elements */ | margin: 0 10%; /* 10% = Will not overlap with other elements */ | ||
| Line 10: | Line 9: | ||
/* Single border between stacked boxes. */ | /* Single border between stacked boxes. */ | ||
/* Take into account base templatestyles, user styles, and | |||
* {{dated maintenance category}} */ | |||
/* remove versions with link only, when T200206 is fixed */ | |||
.ambox + link + .ambox, | .ambox + link + .ambox, | ||
.ambox + link + style + .ambox, | |||
.ambox + link + link + .ambox, | .ambox + link + link + .ambox, | ||
/* TODO: raise these as "is this really that necessary???". the change was Dec 2021 */ | |||
/* TODO: raise as "is this really that necessary???" */ | |||
.ambox + .mw-empty-elt + link + .ambox, | .ambox + .mw-empty-elt + link + .ambox, | ||
.ambox + .mw-empty-elt + link + | .ambox + .mw-empty-elt + link + style + .ambox, | ||
.ambox + .mw-empty-elt + link + | .ambox + .mw-empty-elt + link + link + .ambox { | ||
margin-top: -1px; | margin-top: -1px; | ||
} | } | ||