MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* === | /* ============================= */ | ||
/* Wikipedia-style Infobox Look */ | |||
/* ============================= */ | |||
.infobox { | .infobox { | ||
background: #f8f9fa; | background: #f8f9fa; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-collapse: collapse; | |||
color: #202122; | 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; | |||
} | } | ||
| Line 53: | Line 28: | ||
background: #eaecf0; | background: #eaecf0; | ||
text-align: left; | text-align: left; | ||
} | } | ||
.infobox | .infobox img { | ||
max-width: 100%; | |||
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; } | |||