Jump to content

MediaWiki:Common.css: Difference between revisions

From Mavori Wiki
 
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 */
* This is the CSS for all skins (for both mobile and desktop) on mediawiki.org.
@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');}
* Styling inside .mw-parser-output should generally use TemplateStyles.
/* 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');}


/* Force lining numbers in headers (for fonts like Georgia) */
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;}
.firstHeading {
.mw-page-container {}
    font-variant-numeric: lining-nums;
.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;}
/* Consistent size for sub/sup */
#toc .tocnumber {display:none;}
.mw-body sub,
#toc .toctitle {text-align:left;}
.mw-body sup {
    font-size: 80%;
}
 
/* Public Domain background in the Help namespace */
.action-view.ns-12 #bodyContent {
background-image: url(//upload.wikimedia.org/wikipedia/commons/6/67/PD-icon-faded.png);
background-repeat: no-repeat;
/* @noflip */
background-position: right 5em;
}
 
/*
* Hide elements on the main page.
*/
.page-MediaWiki #lastmod,
.page-MediaWiki #siteSub,
.page-MediaWiki #contentSub,
.page-MediaWiki .subtitle,
.page-MediaWiki #jump-to-nav,
/* can be removed when Template:Main_page translations are updated. */
.page-MediaWiki #firstHeading,
[lang="en"] .page-MediaWiki .mw-parser-output .mw-heading2 {
display: none;  
}
 
[lang="en"] .page-MediaWiki #firstHeading {
  font-size: 1.5em;
  display: block;
}
 
/* Give a bit of space to the TOC */
#toc {
margin: 1em 0;
}
 
/* Div based "warning" style fmbox messages. */
div.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon,
div.titleblacklist-warning {
clear: both;
margin: 0.2em 0;
border: 1px solid var( --border-color-error, #9f3526 );
background-color: var( --background-color-error-subtle, #ffdbdb );
color: var( --color-base, #202122 );
padding: 0.25em 0.9em;
box-sizing: border-box;
}
 
/* Hide confusing "Discussion" tab on [[Project:Support_desk]].
* For sanity, only do this if [[Project_talk:Support_desk]] is a
* redirect (which goes back to [[Project:Support_desk]]).
* If that is changed for some reason, it automatically comes back.
*/
.page-Project_Support_desk #ca-talk a.mw-redirect {
display: none;
}

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;}