MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Use the sans-serif body font for h1/h2 instead of the Vector legacy serif stack, and darken the pre block background one step off almost-white |
||
| (5 intermediate revisions by one other user not shown) | |||
| Line 22: | Line 22: | ||
} | } | ||
/* | #ca-talk { | ||
. | display: none !important; | ||
} | |||
/* --- Documentation conventions; see Template:Navigation and Template:Code --- */ | |||
/* Vector legacy sets h1/h2 in a serif stack ('Linux Libertine','Georgia', | |||
'Times'), which reads as Times New Roman and clashes with the sans-serif | |||
body text. h3 and below are already sans-serif, so only h1/h2 need this. */ | |||
.mw-body h1, | |||
.mw-body-content h1, | |||
.mw-body-content h2, | |||
.mw-body .mw-heading1, | |||
.mw-body-content .mw-heading1, | |||
.mw-body-content .mw-heading2 { | |||
font-family: inherit; | |||
} | |||
/* pre blocks default to #f8f9fa, which is almost white and barely separates | |||
from the page. One step darker on the same Wikimedia grey ramp, with a | |||
slightly stronger border so the block stays defined. Survives the DarkMode | |||
extension, which applies filter: invert(1) hue-rotate(180deg) -- lightness | |||
flips, hue is preserved. Inline code is styled by Template:Code instead. */ | |||
pre, | |||
.mw-code { | |||
background-color: #eaecf0; | |||
border-color: #c8ccd1; | |||
} | |||
Latest revision as of 23:14, 2 September 2026
/* CSS placed here will be applied to all skins */
ul, p {
margin-left: 15px;
}
p {
padding-left: 10px;
}
h2 {
margin-top: 15px;
margin-bottom: 15px;
}
img {
padding-top: 15px;
padding-bottom: 15px;
}
.toc {
margin-bottom:15px;
}
#ca-talk {
display: none !important;
}
/* --- Documentation conventions; see Template:Navigation and Template:Code --- */
/* Vector legacy sets h1/h2 in a serif stack ('Linux Libertine','Georgia',
'Times'), which reads as Times New Roman and clashes with the sans-serif
body text. h3 and below are already sans-serif, so only h1/h2 need this. */
.mw-body h1,
.mw-body-content h1,
.mw-body-content h2,
.mw-body .mw-heading1,
.mw-body-content .mw-heading1,
.mw-body-content .mw-heading2 {
font-family: inherit;
}
/* pre blocks default to #f8f9fa, which is almost white and barely separates
from the page. One step darker on the same Wikimedia grey ramp, with a
slightly stronger border so the block stays defined. Survives the DarkMode
extension, which applies filter: invert(1) hue-rotate(180deg) -- lightness
flips, hue is preserved. Inline code is styled by Template:Code instead. */
pre,
.mw-code {
background-color: #eaecf0;
border-color: #c8ccd1;
}