Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 22: | Line 22: | ||
text-align: center; | text-align: center; | ||
} | } | ||
+ | |||
+ | .infobox table { | ||
+ | border-collapse: collapse; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | th, td { | ||
+ | text-align: left; | ||
+ | padding: 8px; | ||
+ | } | ||
+ | |||
+ | tr:nth-child(even) {background-color: #f2f2f2;} | ||
.infobox th { | .infobox th { | ||
text-align: right; | text-align: right; | ||
vertical-align: top; | vertical-align: top; | ||
− | width: | + | width: 100%; |
} | } | ||
.infobox td { | .infobox td { | ||
vertical-align: top; | vertical-align: top; | ||
+ | text-align: left; | ||
+ | padding: 8px; | ||
} | } | ||
Revision as of 08:09, 16 August 2020
/* CSS placed here will be applied to all skins */ /* FontAwesome */ @import "https://pro.fontawesome.com/releases/v5.14.0/css/all.css"; /* Infobox */ .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 8px; } tr:nth-child(even) {background-color: #f2f2f2;} .infobox th { text-align: right; vertical-align: top; width: 100%; } .infobox td { vertical-align: top; text-align: left; padding: 8px; } /* Home stuff */ #mp-topbanner { clear: both; position: relative; box-sizing: border-box; width: 100%; margin-top: 1.2em; min-width: 47em; border-color: #ddd; background-color: #f9f9f9; white-space: nowrap; } .mp-bordered, .mp-h2, body.skin-timeless .mp-h2 { /* Timeless needs a higher specificity */ border-width: 1px; border-style: solid; } #mp-topbanner, .mp-h2, #mp-left { color: #000; } #mp-welcomecount { margin: 0.4em; width: 22em; text-align: center; } #mp-welcome { font-size: 162%; padding: 0.1em; } #mp-free { font-size: 95%; } #articlecount { font-size: 85%; } #mp-portals { position: absolute; right: -1em; top: 50%; margin-top: -2.4em; width: 38%; min-width: 25em; font-size: 95%; }