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 |
||
| Line 2: | Line 2: | ||
/* fixing article fonts to make it look like actual wiki */ | /* fixing article fonts to make it look like actual wiki */ | ||
body { | body { | ||
font-size: | font-size: 16.5px !important; | ||
line-height: 1. | line-height: 1.65em !important; | ||
} | } | ||
/* central | /* central body */ | ||
.mw-body-content, #mw-content-text { | .mw-body-content, #mw-content-text { | ||
font-size: 1. | font-size: 1.1em !important; | ||
} | } | ||
/* | /* headers */ | ||
h1 { font-size: | h1 { font-size: 2em !important; } | ||
h2 { font-size: 1. | h2 { font-size: 1.65em !important; border-bottom: 1px solid #a2a9b1 !important; } | ||
h3 { font-size: 1. | h3 { font-size: 1.35em !important; } | ||
/* | /* infoboxes */ | ||
#mw-panel, .portal, #p-navigation { | #mw-panel, .portal, #p-navigation, .infobox { | ||
font-size: 0.95em !important; | font-size: 0.95em !important; | ||
} | } | ||
Revision as of 09:37, 7 November 2026
/* CSS placed here will be applied to all skins */
/* fixing article fonts to make it look like actual wiki */
body {
font-size: 16.5px !important;
line-height: 1.65em !important;
}
/* central body */
.mw-body-content, #mw-content-text {
font-size: 1.1em !important;
}
/* headers */
h1 { font-size: 2em !important; }
h2 { font-size: 1.65em !important; border-bottom: 1px solid #a2a9b1 !important; }
h3 { font-size: 1.35em !important; }
/* infoboxes */
#mw-panel, .portal, #p-navigation, .infobox {
font-size: 0.95em !important;
}