MediaWiki:Vector.css: Difference between revisions
From GersteinInfo
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 2: | Line 2: | ||
/* Make headings sans-serif like Monobook */ | /* Make headings sans-serif like Monobook */ | ||
/* --- Body and content --- */ | /* --- Body and content --- */ | ||
body { | /* --- Base font for the site --- */ | ||
font: | body, .mw-body { | ||
font-family: sans-serif !important; /* replaces Times/serif defaults */ | |||
font-size: x-small; /* matches Monobook body text */ | |||
} | } | ||
/* --- Headings --- */ | |||
/* --- Headings | |||
.mw-body h1, | .mw-body h1, | ||
.mw-body h2, | .mw-body h2, | ||
| Line 25: | Line 15: | ||
.mw-body h5, | .mw-body h5, | ||
.mw-body h6 { | .mw-body h6 { | ||
font-family: sans-serif !important; | font-family: sans-serif !important; /* use sans-serif for all headings */ | ||
color: black; | color: black; /* ensure headings are black like Monobook */ | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
/* Optional: slightly adjust heading sizes like Monobook */ | |||
h1 { font-size: 188%; } | h1 { font-size: 188%; } | ||
h2 { font-size: 150%; } | h2 { font-size: 150%; } | ||
h3 { font-size: 132% | h3 { font-size: 132%; } | ||
h4 { font-size: 116% | h4 { font-size: 116%; } | ||
h5 { font-size: 100% | h5 { font-size: 100%; } | ||
h6 { font-size: 80%; | h6 { font-size: 80%; } | ||
} | |||
Revision as of 15:36, 18 December 2025
/* All CSS here will be loaded for users of the Vector skin */
/* Make headings sans-serif like Monobook */
/* --- Body and content --- */
/* --- Base font for the site --- */
body, .mw-body {
font-family: sans-serif !important; /* replaces Times/serif defaults */
font-size: x-small; /* matches Monobook body text */
}
/* --- Headings --- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
font-family: sans-serif !important; /* use sans-serif for all headings */
color: black; /* ensure headings are black like Monobook */
font-weight: normal;
}
/* Optional: slightly adjust heading sizes like Monobook */
h1 { font-size: 188%; }
h2 { font-size: 150%; }
h3 { font-size: 132%; }
h4 { font-size: 116%; }
h5 { font-size: 100%; }
h6 { font-size: 80%; }