MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS here affects all skins */ | /* CSS here affects all skins */ | ||
/* Indent | /* Indent subsection headers */ | ||
.mw-parser-output h4 { | .mw-parser-output h4 { | ||
margin-left: 20px; /* Adjust the value as necessary */ | margin-left: 20px; /* Adjust the value as necessary */ | ||
} | |||
.mw-parser-output h5 { | |||
margin-left: 40px; /* Adjust the value as necessary */ | |||
} | |||
.mw-parser-output h6 { | |||
margin-left: 60px; /* Adjust the value as necessary */ | |||
} | } | ||
| Line 11: | Line 19: | ||
.mw-parser-output h4 + * { | .mw-parser-output h4 + * { | ||
margin-left: 20px; | margin-left: 20px; | ||
} | |||
.mw-parser-output h5 + * { | |||
margin-left: 40px; | |||
} | |||
.mw-parser-output h6 + * { | |||
margin-left: 60px; | |||
} | } | ||
| Line 17: | Line 33: | ||
} | } | ||
/* Reset the margin | .mw-parser-output h5 ~ *:not(h1, h2, h3, h4, h5, h6) { | ||
margin-left: 40px; | |||
} | |||
.mw-parser-output h6 ~ *:not(h1, h2, h3, h4, h5, h6) { | |||
margin-left: 60px; | |||
} | |||
/* Reset the margin when going to a less indented section */ | |||
.mw-parser-output h4 ~ h1, | .mw-parser-output h4 ~ h1, | ||
.mw-parser-output h4 ~ h2, | .mw-parser-output h4 ~ h2, | ||
.mw-parser-output h4 ~ h3, | .mw-parser-output h4 ~ h3, | ||
.mw-parser-output | .mw-parser-output h5 ~ h1, | ||
.mw-parser-output | .mw-parser-output h5 ~ h2, | ||
.mw-parser-output | .mw-parser-output h5 ~ h3, | ||
.mw-parser-output h6 ~ h1, | |||
.mw-parser-output h6 ~ h2, | |||
.mw-parser-output h6 ~ h3 { | |||
margin-left: 0px; | margin-left: 0px; | ||
} | |||
.mw-parser-output h5 ~ h4, | |||
.mw-parser-output h6 ~ h5 { | |||
margin-left: 20px; | |||
} | |||
.mw-parser-output h6 ~ h5 { | |||
margin-left: 40px; | |||
} | } | ||
Revision as of 20:18, 23 March 2025
/* CSS here affects all skins */
/* Indent subsection headers */
.mw-parser-output h4 {
margin-left: 20px; /* Adjust the value as necessary */
}
.mw-parser-output h5 {
margin-left: 40px; /* Adjust the value as necessary */
}
.mw-parser-output h6 {
margin-left: 60px; /* 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 h5 + * {
margin-left: 40px;
}
.mw-parser-output h6 + * {
margin-left: 60px;
}
.mw-parser-output h4 ~ *:not(h1, h2, h3, h4, h5, h6) {
margin-left: 20px;
}
.mw-parser-output h5 ~ *:not(h1, h2, h3, h4, h5, h6) {
margin-left: 40px;
}
.mw-parser-output h6 ~ *:not(h1, h2, h3, h4, h5, h6) {
margin-left: 60px;
}
/* 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,
.mw-parser-output h5 ~ h1,
.mw-parser-output h5 ~ h2,
.mw-parser-output h5 ~ h3,
.mw-parser-output h6 ~ h1,
.mw-parser-output h6 ~ h2,
.mw-parser-output h6 ~ h3 {
margin-left: 0px;
}
.mw-parser-output h5 ~ h4,
.mw-parser-output h6 ~ h5 {
margin-left: 20px;
}
.mw-parser-output h6 ~ h5 {
margin-left: 40px;
}