MediaWiki:Common.css: Difference between revisions
Appearance
Cyberonkel (talk | contribs) Created page with "→CSS placed here will be applied to all skins: →* This is the CSS for all skins (for both mobile and desktop) on mediawiki.org. * Styling inside .mw-parser-output should generally use TemplateStyles.: →Force lining numbers in headers (for fonts like Georgia): h1, h2, .firstHeading { font-variant-numeric: lining-nums; } →Consistent size for sub/sup: .mw-body sub, .mw-body sup { font-size: 80%; } /* Public Domain background in the Help namespa..." |
Cyberonkel (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* | /* roboto-condensed-200 - latin */ | ||
@font-face {font-display: swap;font-family: 'Roboto Condensed';font-style: normal;font-weight: 200;src: url('/fts/roboto-condensed-v27-latin-200.woff2') format('woff2');} | |||
/* roboto-condensed-regular - latin */ | |||
@font-face { font-display: swap; font-family: 'Roboto Condensed';font-style: normal;font-weight: 400;src: url('/fts/roboto-condensed-v27-latin-regular.woff2') format('woff2');} | |||
/* roboto-condensed-600 - latin */ | |||
@font-face { font-display: swap; font-family: 'Roboto Condensed'; font-style: normal; font-weight: 600; src: url('/fts/roboto-condensed-v27-latin-600.woff2') format('woff2');} | |||
/* roboto-slab-100 - latin */ | |||
@font-face { font-display: swap; font-family: 'Roboto Slab'; font-style: normal; font-weight: 300; src: url('/fts/RobotoSlab-Light.woff2') format('woff2');} | |||
body {font-family:"Roboto Slab"!important;font-weight:300;color:#000;} | |||
h1, | h1, h2, h3, h4, h5 {font-family:"Roboto Condensed"!important;font-weight:600;color:#222;} | ||
h2, | h1 {font-size:2.1em;!important} h2 {font-size:1.8em!important;} h3 {font-size:1.6em!important;} h4 {font-size:1.4em!important;} h5 {font-size:1.2em!important;} | ||
.mw-page-container {} | |||
.mw-sidebar, .sidebar-toc {font-family:"Roboto Condensed";font-weight:200;;margin-left:0;width:244px;font-size:1em!important;} | |||
} | .sidebar-toc::after {background:none;} | ||
.sidebar-toc-link[href="#top-page"] {color:#222;} | |||
#toc .tocnumber {display:none;} | |||
#toc .toctitle {text-align:left;} | |||
} | |||
} | |||
} | |||
} | |||
} | |||
} | |||
Latest revision as of 21:58, 31 August 2026
/* CSS placed here will be applied to all skins */
/* roboto-condensed-200 - latin */
@font-face {font-display: swap;font-family: 'Roboto Condensed';font-style: normal;font-weight: 200;src: url('/fts/roboto-condensed-v27-latin-200.woff2') format('woff2');}
/* roboto-condensed-regular - latin */
@font-face { font-display: swap; font-family: 'Roboto Condensed';font-style: normal;font-weight: 400;src: url('/fts/roboto-condensed-v27-latin-regular.woff2') format('woff2');}
/* roboto-condensed-600 - latin */
@font-face { font-display: swap; font-family: 'Roboto Condensed'; font-style: normal; font-weight: 600; src: url('/fts/roboto-condensed-v27-latin-600.woff2') format('woff2');}
/* roboto-slab-100 - latin */
@font-face { font-display: swap; font-family: 'Roboto Slab'; font-style: normal; font-weight: 300; src: url('/fts/RobotoSlab-Light.woff2') format('woff2');}
body {font-family:"Roboto Slab"!important;font-weight:300;color:#000;}
h1, h2, h3, h4, h5 {font-family:"Roboto Condensed"!important;font-weight:600;color:#222;}
h1 {font-size:2.1em;!important} h2 {font-size:1.8em!important;} h3 {font-size:1.6em!important;} h4 {font-size:1.4em!important;} h5 {font-size:1.2em!important;}
.mw-page-container {}
.mw-sidebar, .sidebar-toc {font-family:"Roboto Condensed";font-weight:200;;margin-left:0;width:244px;font-size:1em!important;}
.sidebar-toc::after {background:none;}
.sidebar-toc-link[href="#top-page"] {color:#222;}
#toc .tocnumber {display:none;}
#toc .toctitle {text-align:left;}