MediaWiki:Common.css: Difference between revisions
No edit summary |
No edit summary Tag: Manual revert |
||
| (11 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* ============================= */ | /* ============================= */ | ||
/* Wikipedia Infobox | /* Wikipedia-style Infobox Look */ | ||
/* ============================= */ | /* ============================= */ | ||
.infobox { | .infobox { | ||
background | 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; | |||
} | } | ||
| Line 59: | Line 23: | ||
padding: 6px 8px; | padding: 6px 8px; | ||
vertical-align: top; | vertical-align: top; | ||
} | } | ||
.infobox th { | .infobox th { | ||
background | background: #eaecf0; | ||
text-align: left; | text-align: left; | ||
} | } | ||
| Line 87: | Line 35: | ||
} | } | ||
/* | /* ============================= */ | ||
/* Desktop infobox alignment */ | |||
/* ============================= */ | |||
@media screen and (min-width: 721px) { | @media screen and (min-width: 721px) { | ||
.infobox { | .infobox { | ||
| Line 110: | Line 47: | ||
} | } | ||
/* Mobile infobox | /* ============================= */ | ||
/* Mobile infobox (let Minerva handle width) */ | |||
/* ============================= */ | |||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
.infobox { | .infobox { | ||
width: | width: auto; | ||
float: none | float: none; | ||
margin: 0 0 1em 0 | margin: 0 0 1em 0; | ||
} | } | ||
} | } | ||
/* Remove ugly gaps */ | |||
.infobox tr + tr th, .infobox tr + tr td { border-top: 1px solid #a2a9b1; } | |||