MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary |
||
| (37 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ------------------ | |||
--- General Style --- | |||
------------------ */ | |||
:root { | |||
color-scheme: light !important; | |||
} | |||
:root, .skin-invert, .no-theme { | |||
} | |||
/* ----------------- | /* ----------------- | ||
--- Infoboxes --- | --- Infoboxes --- | ||
| Line 4: | Line 16: | ||
.infobox { | .infobox { | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
color: | color: #000; | ||
padding: .2em; | padding: .2em; | ||
font-size: .9em; | font-size: .9em; | ||
| Line 18: | Line 29: | ||
text-align: left; | text-align: left; | ||
vertical-align: top; | vertical-align: top; | ||
} | |||
.infobox .infobox-above, | |||
.infobox .infobox-title { | |||
font-size: 1.25em; | |||
font-weight: bold; | |||
text-align: center !important; | |||
} | |||
.infobox .infobox-caption { | |||
font-weight: normal !important; | |||
text-align: center !important; | |||
} | } | ||
| Line 23: | Line 46: | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center !important; | |||
} | } | ||
.infobox .infobox-label { | .infobox .infobox-label { | ||
font-weight: bold; | font-weight: bold; | ||
} | |||
/* Fixes weird stretching bug with the Vector skin */ | |||
.infobox img { | |||
display: block; | |||
margin: 0 auto; | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
@media (max-width: 640px) { | @media (max-width: 640px) { | ||
.infobox { | .infobox { | ||
width: 100%; | |||
float: none; | float: none; | ||
clear: both; | clear: both; | ||
margin: 0 0 1em 0; | margin: 0 0 1em 0; | ||
table-layout: fixed; | table-layout: fixed; | ||
} | } | ||
.infobox .nowrap { | .infobox .nowrap { | ||
white-space: normal; | white-space: normal; | ||
| Line 58: | Line 85: | ||
width: 22em; | width: 22em; | ||
} | } | ||
} | } | ||