MediaWiki:Common.css: Difference between revisions
CaptainChris (talk | contribs) No edit summary |
CaptainChris (talk | contribs) No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.mp-container { | .mp-container { | ||
display: flex; | display: flex; | ||
| Line 16: | Line 11: | ||
} | } | ||
.mp-right { | .mp-right { | ||
flex: 0 0 320px; | flex: 0 0 320px; | ||
| Line 34: | Line 28: | ||
flex-direction: column; | flex-direction: column; | ||
} | } | ||
.mp-right { | .mp-right { | ||
flex: none; | flex: none; | ||
| Line 45: | Line 40: | ||
} | } | ||
} | } | ||
.wp-contrib-cta { | .wp-contrib-cta { | ||
| Line 122: | Line 113: | ||
} | } | ||
} | } | ||
body.page-Main_Page #firstHeading, | body.page-Main_Page #firstHeading, | ||
| Line 142: | Line 129: | ||
} | } | ||
.mw-parser-output { | |||
overflow: auto; | |||
} | |||
.mw-parser-output::after { | |||
content: ""; | |||
display: block; | |||
clear: both; | |||
} | |||
.mw-parser-output > p:first-child { | |||
margin-top: 0 !important; | |||
} | |||
.mw-parser-output > .infobox:first-child, | |||
.mw-parser-output > table.infobox:first-child { | |||
margin-top: 0 !important; | |||
} | |||
.mw-parser-output > .infobox + p, | |||
.mw-parser-output > table.infobox + p { | |||
margin-top: 0 !important; | |||
} | |||
.infobox { | .infobox { | ||
| Line 158: | Line 165: | ||
} | } | ||
.infobox tr, | |||
.infobox tbody, | |||
.infobox thead, | |||
.infobox tfoot { | |||
margin: 0; | |||
padding: 0; | |||
} | } | ||
.infobox-title { | .infobox-title { | ||
background: #b0c4de; | background: #b0c4de; | ||
| Line 176: | Line 182: | ||
} | } | ||
.infobox-imagearea { | .infobox-imagearea { | ||
text-align: center; | text-align: center; | ||
| Line 189: | Line 194: | ||
} | } | ||
.infobox-rows { | .infobox-rows { | ||
width: 100%; | width: 100%; | ||
| Line 197: | Line 201: | ||
.infobox-rows th, | .infobox-rows th, | ||
.infobox-rows td { | .infobox-rows td { | ||
padding: 2px 5px; | padding: 2px 5px; | ||
vertical-align: top; | vertical-align: top; | ||
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
| Line 213: | Line 217: | ||
} | } | ||
.infobox-footer { | .infobox-footer { | ||
text-align: center; | text-align: center; | ||
| Line 223: | Line 226: | ||
} | } | ||
.infobox td p { | |||
margin: 0; | |||
margin | } | ||
.infobox td p:empty { | |||
display: none !important; | |||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
.infobox td p:has(br:only-child) { | |||
.infobox td p:has(br) { | |||
display: none !important; | display: none !important; | ||
margin: 0 !important; | margin: 0 !important; | ||
| Line 235: | Line 242: | ||
} | } | ||
.infobox-section th { | .infobox-section th, | ||
.infobox .infobox-section { | |||
background: #b0c4de !important; | background: #b0c4de !important; | ||
color: #000; | color: #000; | ||
| Line 244: | Line 252: | ||
} | } | ||
@media (max-width: 600px) { | |||
.infobox { | |||
float: none; | |||
clear: both; | |||
margin: 0 auto 1em auto; | |||
width: 100%; | |||
} | |||
.infobox | |||
} | } | ||