MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: .mw-parser-output h4 { margin-left: 20px; }" |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS | /* CSS here affects all skins */ | ||
/* Indent fourth-level subsection headers */ | |||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
margin-left: 20px; /* Adjust the value as necessary */ | |||
} | |||
/* Indent content following the fourth-level headers until the next header */ | |||
.mw-parser-output h4 + * { | |||
margin-left: 20px; | margin-left: 20px; | ||
} | |||
.mw-parser-output h4 ~ *:not(h1, h2, h3, h4, h5, h6) { | |||
margin-left: 20px; | |||
} | |||
/* Reset the margin for all heading levels after the first subsequent heading */ | |||
.mw-parser-output h4 ~ h1, | |||
.mw-parser-output h4 ~ h2, | |||
.mw-parser-output h4 ~ h3, | |||
.mw-parser-output h4 ~ h4, | |||
.mw-parser-output h4 ~ h5, | |||
.mw-parser-output h4 ~ h6 { | |||
margin-left: 0px; | |||
} | } | ||
Revision as of 20:13, 23 March 2025
/* CSS here affects all skins */
/* Indent fourth-level subsection headers */
.mw-parser-output h4 {
margin-left: 20px; /* Adjust the value as necessary */
}
/* 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 for all heading levels after the first subsequent heading */
.mw-parser-output h4 ~ h1,
.mw-parser-output h4 ~ h2,
.mw-parser-output h4 ~ h3,
.mw-parser-output h4 ~ h4,
.mw-parser-output h4 ~ h5,
.mw-parser-output h4 ~ h6 {
margin-left: 0px;
}