MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary |
||
| Line 143: | Line 143: | ||
/* ============================== | /* ============================== | ||
INFOBOX | INFOBOX | ||
============================== */ | ============================== */ | ||
/* container */ | /* container */ | ||
.infobox { | .infobox { | ||
float: right; | float: right; | ||
width: | clear: right; | ||
margin: | width: 280px; | ||
margin: 0 0 1em 1em; | |||
background: #f9f9f9; | |||
border: 1px solid #aaa; | |||
font-size: 90%; | font-size: 90%; | ||
color: #000; | |||
border-collapse: collapse; | |||
border-collapse: collapse | |||
} | } | ||
@media (max-width: | @media (max-width: 600px) { | ||
.infobox { | .infobox { | ||
float: none; | float: none; | ||
margin: 0 | margin: 0 auto 1em auto; | ||
width: | width: 100%; | ||
} | } | ||
} | } | ||
| Line 181: | Line 169: | ||
/* title */ | /* title */ | ||
.infobox-title { | .infobox-title { | ||
background: #b0c4de; | |||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: | font-size: 110%; | ||
padding: 4px; | |||
border-bottom: 1px solid #aaa; | |||
padding: | |||
border- | |||
} | } | ||
| Line 193: | Line 180: | ||
.infobox-imagearea { | .infobox-imagearea { | ||
text-align: center; | text-align: center; | ||
background: #fff; | |||
padding: 6px; | padding: 6px; | ||
border-bottom: 1px solid #aaa; | |||
border-bottom: 1px solid # | |||
} | } | ||
| Line 201: | Line 188: | ||
max-width: 100%; | max-width: 100%; | ||
height: auto; | height: auto; | ||
} | } | ||
/* rows */ | /* rows */ | ||
.infobox-rows { | |||
width: 100%; | width: 100%; | ||
border-collapse: collapse | border-collapse: collapse; | ||
} | } | ||
.infobox-rows | .infobox-rows th, | ||
border-bottom: 1px solid # | .infobox-rows td { | ||
padding: 3px 5px; | |||
vertical-align: top; | |||
border-bottom: 1px solid #ddd; | |||
} | } | ||
.infobox-rows th { | .infobox-rows th { | ||
text-align: left; | text-align: left; | ||
font-weight: bold; | |||
width: 35%; | width: 35%; | ||
background: #f2f2f2; | |||
} | } | ||
.infobox-rows td { | .infobox-rows td { | ||
background: #fff; | background: #fff; | ||
} | } | ||
/* | /* hover off for old-school simplicity */ | ||
.infobox-rows tr:hover { | .infobox-rows tr:hover { | ||
background | background: none; | ||
} | } | ||
/* footer | /* footer */ | ||
.infobox-footer { | .infobox-footer { | ||
text-align: center; | text-align: center; | ||
font-style: italic; | font-style: italic; | ||
background: #f2f2f2; | |||
border-top: 1px solid #aaa; | |||
padding: 4px; | |||
font-size: 85%; | |||
} | } | ||
/* spacing fix */ | |||
.mw-parser-output > .infobox + p { | .mw-parser-output > .infobox + p { | ||
margin-top: 0 !important; | margin-top: 0 !important; | ||
} | } | ||