MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
margin-left: 20px; | margin-left: 20px; | ||
} | } | ||
| Line 19: | Line 11: | ||
.mw-parser-output h4 + * { | .mw-parser-output h4 + * { | ||
margin-left: 20px; | margin-left: 20px; | ||
} | } | ||
.mw-parser-output h4 ~ *:not(h1, h2, h3, h4, h5, h6) { | .mw-parser-output h4 ~ *:not(h1, h2, h3, h4, h5, h6) { | ||
margin-left: 20px; | margin-left: 20px; | ||
} | } | ||
| Line 45: | Line 21: | ||
.mw-parser-output h4 ~ h1, | .mw-parser-output h4 ~ h1, | ||
.mw-parser-output h4 ~ h2, | .mw-parser-output h4 ~ h2, | ||
.mw-parser-output h4 | .mw-parser-output h4 ~ h3 { | ||
margin-left: 0px; | margin-left: 0px; | ||
} | } | ||
Revision as of 10:51, 24 March 2025
/* CSS here affects all skins */
/* Indent subsection headers */
.mw-parser-output h4 {
margin-left: 20px;
}
/* Indent content following the fourth-level headers until the next header */
.mw-parser-output h4 + * {
margin-left: 20px;
}
.mw-parser-output h4 ~ *:not(h1, h2, h3, h4, h5, h6) {
margin-left: 20px;
}
/* Reset the margin when going to a less indented section */
.mw-parser-output h4 ~ h1,
.mw-parser-output h4 ~ h2,
.mw-parser-output h4 ~ h3 {
margin-left: 0px;
}