MediaWiki:Vector.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
/* --- Body and content --- */ | /* --- Body and content --- */ | ||
/* --- Base font for the site --- */ | /* --- Base font for the site --- */ | ||
font-family: sans-serif !important; | /* --- Main content font --- */ | ||
font-size: x-small; | .mw-body { | ||
font-family: sans-serif !important; /* Monobook-like sans-serif */ | |||
font-size: x-small; /* Monobook body text size */ | |||
} | } | ||
| Line 15: | Line 17: | ||
.mw-body h5, | .mw-body h5, | ||
.mw-body h6 { | .mw-body h6 { | ||
font-family: sans-serif !important; /* | font-family: sans-serif !important; /* all headings sans-serif */ | ||
color: black; | color: black; | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
/* Optional: slightly | /* Optional: slightly scale headings like Monobook */ | ||
h1 { font-size: 188%; } | h1 { font-size: 188%; } | ||
h2 { font-size: 150%; } | h2 { font-size: 150%; } | ||
| Line 27: | Line 29: | ||
h5 { font-size: 100%; } | h5 { font-size: 100%; } | ||
h6 { font-size: 80%; } | h6 { font-size: 80%; } | ||
/* --- Keep sidebar and portlets at Vector default size --- */ | |||
#mw-panel, #mw-panel .portlet, #mw-panel .pBody { | |||
font-size: 100%; /* default Vector font size */ | |||
font-family: inherit; /* keep Vector’s inherited styling */ | |||
} | |||
Revision as of 15:42, 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 --- */
/* --- Main content font --- */
.mw-body {
font-family: sans-serif !important; /* Monobook-like sans-serif */
font-size: x-small; /* Monobook body text size */
}
/* --- Headings --- */
.mw-body h1,
.mw-body h2,
.mw-body h3,
.mw-body h4,
.mw-body h5,
.mw-body h6 {
font-family: sans-serif !important; /* all headings sans-serif */
color: black;
font-weight: normal;
}
/* Optional: slightly scale headings 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%; }
/* --- Keep sidebar and portlets at Vector default size --- */
#mw-panel, #mw-panel .portlet, #mw-panel .pBody {
font-size: 100%; /* default Vector font size */
font-family: inherit; /* keep Vector’s inherited styling */
}