MediaWiki:Font.css: Difference between revisions
MediaWiki interface page
More actions
ReisuDesign (talk | contribs) No edit summary |
ReisuDesign (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
/* Custom Font */ | |||
@font-face { | @font-face { | ||
font-family: 'PetitPlanet'; | font-family: 'PetitPlanet'; | ||
font-style: normal; | font-style: normal; | ||
font-weight: normal; | font-weight: normal; | ||
src: url('https://petitplanet.wiki/images/a/af/Petit_Planet_Font_Light.woff2') format(' | src: url('https://petitplanet.wiki/images/a/af/Petit_Planet_Font_Light.woff2') format('woff2'); | ||
font-display: swap; | font-display: swap; | ||
} | } | ||
/* Base Body Font */ | |||
body { | body { | ||
font-family: 'Inter', sans-serif; | |||
font-optical-sizing: auto; | font-optical-sizing: auto; | ||
} | } | ||
h1, h2, h3 , .mw-page-title-main { | /* Headings & Page Titles */ | ||
h1, h2, h3, .mw-page-title-main { | |||
font-family: 'PetitPlanet', 'Noto Sans', 'Inter', sans-serif !important; | |||
font-weight: 500; | font-weight: 500; | ||
} | } | ||
| Line 24: | Line 24: | ||
} | } | ||
/* Heading Border Color */ | |||
.mw-heading1, h1, .mw-heading2, h2 { | .mw-heading1, h1, .mw-heading2, h2 { | ||
border-color: #212337 !important; | border-color: #212337 !important; | ||
} | } | ||
/* Remove forced position on title bar */ | |||
.vector-page-titlebar { | .vector-page-titlebar { | ||
position: inherit !important; | position: inherit !important; | ||
} | } | ||
/* | /* Language-specific fallbacks */ | ||
*[lang='zh'], *[lang='zh-Hans'], *[lang='yue'] { | *[lang='zh'], *[lang='zh-Hans'], *[lang='yue'] { | ||
font-family: 'Noto Sans SC', sans-serif !important; | font-family: 'Noto Sans SC', sans-serif !important; | ||
| Line 54: | Line 56: | ||
*[lang='ar'], *[lang='fa'] { | *[lang='ar'], *[lang='fa'] { | ||
font-family: 'El Messiri', sans-serif!important; | font-family: 'El Messiri', sans-serif !important; | ||
} | } | ||