MediaWiki:Common.css: Difference between revisions
re-activate function |
Infobox display on mobile (thanks to Sintel) |
||
| (8 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* for [[Template: | /* set infoboxes to full width to clear anything on the side */ | ||
/* | /* if the interface is too narrow for it to make sense */ | ||
span. | @media screen and (max-width: 720px) { | ||
span. | div.infobox { | ||
float: none !important; | |||
width: 100% !important; | |||
max-width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
box-sizing: border-box !important; | |||
} | |||
} | |||
/* for bracket-like templates e.g. [[Template: Bra]] and [[Template: Ket]] */ | |||
/* no effects for now */ | |||
span.left-delim, span.right-delim { | |||
} | } | ||
| Line 56: | Line 66: | ||
/* Don't display the function "rollback with one click" */ | /* Don't display the function "rollback with one click" */ | ||
span.mw-rollback-link { | |||
display: none; | display: none; | ||
} | |||
/* use HEJI2Text font if class="heji" */ | |||
@font-face { | |||
font-family: HEJI2Text; | |||
src: url(https://plainsound.org/fonts/HEJI2Text.otf); | |||
} | |||
.heji { | |||
font-family: HEJI2Text; | |||
-webkit-font-smoothing: antialiased; | |||
-moz-osx-font-smoothing: grayscale; | |||
} | |||
/* use BravuraText font if class="bravura" */ | |||
@font-face { | |||
font-family: BravuraText; | |||
src: url(fonts/BravuraText.woff2) format('woff2'); | |||
} | |||
.bravura { | |||
font-family: BravuraText; | |||
vertical-align: text-top; | |||
-webkit-font-smoothing: antialiased; | |||
-moz-osx-font-smoothing: grayscale; | |||
} | } | ||