MediaWiki:Common.css: Difference between revisions
Created page with "→CSS placed here will be applied to all skins: →Mobile infobox fix: @media screen and (max-width: 720px) { .infobox { float: none !important; width: 100% !important; margin: 0 0 15px 0 !important; } } →Infobox image scaling: .infobox img { max-width: 100%; height: auto; }" |
No edit summary Tag: Manual revert |
||
| (27 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* | /* ============================= */ | ||
/* | /* Wikipedia-style Infobox Look */ | ||
/* ============================= */ | |||
.infobox { | |||
.infobox { | |||
background: #f8f9fa; | |||
border: 1px solid #a2a9b1; | |||
} | border-collapse: collapse; | ||
color: #202122; | |||
font-size: 90%; | |||
} | |||
.infobox-above { | |||
background: #eaecf0; | |||
font-size: 125%; | |||
font-weight: bold; | |||
text-align: center; | |||
padding: 8px; | |||
} | |||
.infobox th, | |||
.infobox td { | |||
padding: 6px 8px; | |||
vertical-align: top; | |||
} | |||
.infobox th { | |||
background: #eaecf0; | |||
text-align: left; | |||
} | } | ||
.infobox img { | .infobox img { | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
/* ============================= */ | |||
/* Desktop infobox alignment */ | |||
/* ============================= */ | |||
@media screen and (min-width: 721px) { | |||
.infobox { | |||
width: 22em; | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
} | |||
} | |||
/* ============================= */ | |||
/* Mobile infobox (let Minerva handle width) */ | |||
/* ============================= */ | |||
@media screen and (max-width: 720px) { | |||
.infobox { | |||
width: auto; | |||
float: none; | |||
margin: 0 0 1em 0; | |||
} | |||
} | |||
/* Remove ugly gaps */ | |||
.infobox tr + tr th, .infobox tr + tr td { border-top: 1px solid #a2a9b1; } | |||