MediaWiki:Common.css: Difference between revisions
Appearance
Created page with "→CSS placed here will be applied to all skins: →fixing article fonts to make it look like actual wiki: body { font-size: 15px !important; line-height: 1.6em !important; } →central text: .mw-body-content, #mw-content-text { font-size: 1.05em !important; } →subheadings: h1 { font-size: 1.8em !important; } h2 { font-size: 1.5em !important; } h3 { font-size: 1.25em !important; } →sidebar navigation: #mw-panel, .portal, #p-navigation { f..." |
No edit summary |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* | |||
body { | /* 1. base text */ | ||
font-size: | .mw-body-content, | ||
.mw-parser-output, | |||
.mw-parser-output p { | |||
font-size: 14px !important; | |||
line-height: 1.6em !important; | line-height: 1.6em !important; | ||
font-family: sans-serif !important; | |||
} | |||
/* 2. headers */ | |||
h1.firstHeading { | |||
font-size: 1.8em !important; | |||
margin-bottom: 0.25em !important; | |||
padding-bottom: 0 !important; | |||
} | |||
h2 { | |||
font-size: 1.5em !important; font-weight: normal !important; | |||
margin-top: 1em !important; | |||
margin-bottom: 0.25em !important; | |||
} | |||
h3 { | |||
font-size: 1.2em !important; font-weight: bold !important; | |||
} | |||
/* 3. Keep list items and bullet point indices tracking at matching scales */ | |||
.mw-parser-output ul, | |||
.mw-parser-output ol, | |||
.mw-parser-output li { | |||
font-size: 14px !important; | |||
line-height: 1.5em !important; | |||
} | } | ||
/* | /* 4. infobox */ | ||
. | .infobox { | ||
font-size: 1. | font-size: 12.5px !important; | ||
line-height: 1.4em !important; | |||
} | } | ||
h3 { | |||
font-size: 1.15em !important; | |||
font-size: | |||
} | } | ||
Latest revision as of 09:49, 7 November 2026
/* CSS placed here will be applied to all skins */
/* 1. base text */
.mw-body-content,
.mw-parser-output,
.mw-parser-output p {
font-size: 14px !important;
line-height: 1.6em !important;
font-family: sans-serif !important;
}
/* 2. headers */
h1.firstHeading {
font-size: 1.8em !important;
margin-bottom: 0.25em !important;
padding-bottom: 0 !important;
}
h2 {
font-size: 1.5em !important; font-weight: normal !important;
margin-top: 1em !important;
margin-bottom: 0.25em !important;
}
h3 {
font-size: 1.2em !important; font-weight: bold !important;
}
/* 3. Keep list items and bullet point indices tracking at matching scales */
.mw-parser-output ul,
.mw-parser-output ol,
.mw-parser-output li {
font-size: 14px !important;
line-height: 1.5em !important;
}
/* 4. infobox */
.infobox {
font-size: 12.5px !important;
line-height: 1.4em !important;
}
h3 {
font-size: 1.15em !important;
}