MediaWiki:Common.css
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ---------------------------------------------------------------------------
Roboto, self-hosted (Apache 2.0). Replaces the previous
@import url(https://fonts.googleapis.com/...) so no page view contacts
Google. Files live in images/fonts/ and are served same-origin.
Google now ships Roboto as a VARIABLE font, so one file per style covers
every weight - hence font-weight: 100 900 rather than separate 400/700
faces. Only latin and latin-ext subsets are included (wiki is en only);
unicode-range is kept so browsers fetch latin-ext only when needed.
--------------------------------------------------------------------------- */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 100 900; /* variable font - one file covers all weights */
font-display: swap;
src: url(/wiki/images/fonts/roboto-italic-latin-ext.woff2) format('woff2-variations'), url(/wiki/images/fonts/roboto-italic-latin-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 100 900; /* variable font - one file covers all weights */
font-display: swap;
src: url(/wiki/images/fonts/roboto-italic-latin.woff2) format('woff2-variations'), url(/wiki/images/fonts/roboto-italic-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100 900; /* variable font - one file covers all weights */
font-display: swap;
src: url(/wiki/images/fonts/roboto-latin-ext.woff2) format('woff2-variations'), url(/wiki/images/fonts/roboto-latin-ext.woff2) format('woff2');
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 100 900; /* variable font - one file covers all weights */
font-display: swap;
src: url(/wiki/images/fonts/roboto-latin.woff2) format('woff2-variations'), url(/wiki/images/fonts/roboto-latin.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* CSS placed here will be applied to all skins */
#content h2 {
border-bottom: 3px solid #AAAAAA !important;
}
#toctitle h2 {
border-bottom: 1px solid #AAAAAA !important;
}
body,.mw-body h1, .mw-body-content h1, .mw-body-content h2{
font-family: 'Roboto', sans-serif !important;
}
/* ---------------------------------------------------------------------------
Main Page platform grid.
Replaces the old wikitables, which used dozens of empty cells ("| ||||||...")
as spacers. That forced a fixed, very wide table that could not reflow, so it
overflowed on narrow desktop windows and was unusable on phones.
--------------------------------------------------------------------------- */
.astrill-platforms {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 1.5em 1.25em;
margin: 1.5em 0 2em;
}
.astrill-platform {
flex: 0 0 auto;
width: 116px;
text-align: center;
}
/* Keep every tile the same height regardless of icon aspect ratio, so labels
line up across rows. MediaWiki 1.43 wraps file links in
<span typeof="mw:File">; the older .mw-file-description / a.image selectors
are kept for safety across skin and version changes. */
.astrill-platform span[typeof~="mw:File"],
.astrill-platform .mw-file-description,
.astrill-platform a.image {
display: inline-flex;
align-items: center;
justify-content: center;
height: 80px;
}
.astrill-platform img,
.astrill-platform .mw-file-element {
max-width: 80px;
max-height: 80px;
height: auto;
width: auto;
}
.astrill-platform-label {
display: block;
margin-top: 0.5em;
font-weight: bold;
font-size: 0.9em;
line-height: 1.25;
}
/* Labels are links; keep them readable rather than bright blue on every tile. */
.astrill-platform-label a,
.astrill-platform-label a.external {
color: inherit;
background: none !important;
padding-right: 0 !important;
}
.astrill-platform-label a:hover {
text-decoration: underline;
}
@media screen and (max-width: 640px) {
.astrill-platform {
width: 88px;
}
.astrill-platforms {
gap: 1em 0.75em;
}
.astrill-platform span[typeof~="mw:File"],
.astrill-platform .mw-file-description,
.astrill-platform a.image {
height: 64px;
}
.astrill-platform img,
.astrill-platform .mw-file-element {
max-width: 64px;
max-height: 64px;
}
}