MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
Line 30: | Line 30: | ||
.infobox .title { | .infobox .title { | ||
padding: 10px; | padding: 10px; | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
font-size: 18px; | font-size: 18px; | ||
} | |||
.infobox.ppl .title { | |||
background-color: #ad282b; | |||
color: #FFF; | |||
} | |||
.infobox.org .title { | |||
background-color: #CCC; | |||
color: #000; | |||
} | } | ||
Revision as of 15:02, 22 March 2025
/* CSS placed here will be applied to all skins */ .infobox { border: 1px solid #CCC; background-color: #FFF; padding: 0; margin: 0 0 10px 10px; width: calc(45% - 30px); float: right; position: relative; } .infobox:after { clear: after; } .infobox img { width: 100%; max-width: 100%; min-width: 100%; height: auto; } .infobox .flag img, .infobox .list img { width: auto; max-width: 100%; min-width: auto; height: auto; } .infobox .title { padding: 10px; text-align: center; font-weight: bold; font-size: 18px; } .infobox.ppl .title { background-color: #ad282b; color: #FFF; } .infobox.org .title { background-color: #CCC; color: #000; } .infobox .element:first-child { border-top: 1px solid #CCC; } .infobox .element { border-bottom: 1px solid #CCC; padding: 10px; } .infobox .element:last-child { border-bottom: none; } .infobox .list .wikitable { padding: 1.25em 1.75em; width: 100%; border: 0; background: none; margin: 0; } .infobox .list td { border: 0; } .infobox .list td:nth-child(1), .infobox .list td:nth-child(3), .infobox .list td:nth-child(5), .infobox .list td:nth-child(7), .infobox .list td:nth-child(9), .infobox .list td:nth-child(11), .infobox .list td:nth-child(13), .infobox .list td:nth-child(15), .infobox .list td:nth-child(17), .infobox .list td:nth-child(19), .infobox .list td:nth-child(21) { border-right: 1px dotted #AAA; width: 50%; } a, a:link, a:hover, .mw-parser-output a.extiw, .mw-parser-output a.external { color: blue; } a.new { color: red; } a.new:visited { color: red; } a:visited { color: blue; } .wikitable { width: 100%; } .ranks2 { } .ranks2 th:nth-child(1) { width: 50%; } .ranks2 th:nth-child(2) { width: 50%; } .ranks3 { } .ranks3 th:nth-child(1) { width: 33%; } .ranks3 th:nth-child(2) { width: 33%; } .ranks3 th:nth-child(3) { width: 33%; } .ranks4 { } .ranks4 th:nth-child(1) { width: 25%; } .ranks4 th:nth-child(2) { width: 25%; } .ranks4 th:nth-child(3) { width: 25%; } .ranks4 th:nth-child(4) { width: 25%; } .ranks5 { } .ranks5 th:nth-child(1) { width: 17%; } .ranks5 th:nth-child(2) { width: 11%; } .ranks5 th:nth-child(3) { width: 24%; } .ranks5 th:nth-child(4) { width: 24%; } .ranks5 th:nth-child(5) { width: 24%; } .wikitable .mw-file-element { max-width: 100%; height: auto; } .mw-body .infobox p { margin: 0 0 0.1em; }