MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) Undo revision 321 by CaptainChris (talk) Tag: Undo |
||
| (7 intermediate revisions by the same user not shown) | |||
| Line 143: | Line 143: | ||
/* ============================== | /* ============================== | ||
INFOBOX | INFOBOX | ||
============================== */ | ============================== */ | ||
.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 168: | ||
/* 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: 3px 4px; | |||
border-bottom: 1px solid #aaa; | |||
padding: | |||
border- | |||
} | } | ||
| Line 193: | Line 179: | ||
.infobox-imagearea { | .infobox-imagearea { | ||
text-align: center; | text-align: center; | ||
background: #fff; | |||
padding: 4px; | |||
border-bottom: 1px solid # | border-bottom: 1px solid #aaa; | ||
} | } | ||
| Line 201: | Line 187: | ||
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, | ||
.infobox-rows td { | |||
padding: 2px 5px; /* tighter spacing */ | |||
vertical-align: top; | |||
.infobox-rows | 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; | ||
} | } | ||
/* | /* footer */ | ||
.infobox | .infobox-footer { | ||
text-align: center; | |||
font-style: italic; | |||
padding: | background: #f2f2f2; | ||
border-top: 1px solid #aaa; | |||
padding: 3px; | |||
font-size: 85%; | |||
} | } | ||
/* | /* spacing fix */ | ||
.infobox | .mw-parser-output > .infobox + p { | ||
margin-top: 0 !important; | |||
} | } | ||
.infobox td p:empty, | |||
.infobox | .infobox td p:has(br) { | ||
display: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
padding: | |||
} | } | ||
.infobox-section th { | |||
. | background: #b0c4de !important; | ||
color: #000; | |||
text-align: center; | |||
font-weight: bold; | |||
border-bottom: 1px solid #aaa; | |||
padding: 4px; | |||
} | } | ||
. | .infobox .infobox-section{ | ||
background: var(--quaternary, #5865f2); | |||
color:#fff; | |||
text-align:left; | |||
padding:.35em .6em; | |||
font-weight:600; | |||
} | } | ||
.infobox .infobox-section{ | |||
. | display:block; | ||
display: | background: var(--quaternary, #5865f2); | ||
color:#fff; | |||
padding:.4em .6em; | |||
font-weight:600; | |||
border-radius:4px; | |||
margin:.5em 0; | |||
} | } | ||