Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Mayfifteenth (talk | contribs) (Added Infobox styling from https://stackoverflow.com/questions/27801082/how-do-you-make-infoboxes-in-mediawiki/48122703#48122703) |
Mayfifteenth (talk | contribs) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
.infobox { | .infobox { | ||
border: 1px solid #a2a9b1; | |||
border-spacing: 3px; | |||
background-color: #f8f9fa; | |||
color: black; | |||
margin: 0.5em 0 0.5em 1em; | |||
width: | padding: 0.2em; | ||
float: right; | |||
clear: right; | |||
font-size: 88%; | |||
line-height: 1.5em; | |||
width: 306px; | |||
} | } | ||
.infobox-title { | .infobox-title { | ||
font-size: | font-size: 1.25em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
Line 17: | Line 22: | ||
text-align: center; | text-align: center; | ||
} | } | ||
.infobox-heading { | |||
background-color: #C3D6EF; | |||
text-align: center; | |||
vertical-align: middle; | |||
font-size: 110%; | |||
} | |||
.infobox-above, .infobox-title, caption { | |||
font-weight: bold; | |||
} | |||
.infobox th { | .infobox th { | ||
text-align: right; | text-align: right; | ||
Line 24: | Line 41: | ||
.infobox td { | .infobox td { | ||
vertical-align: top; | vertical-align: top; | ||
} | |||
.infobox .subheading { | |||
background: rgb(5,67,113); | |||
background: linear-gradient(180deg, rgba(5,67,113,1) 0%, rgba(0,157,222,1) 100%); | |||
color: white; | |||
font-weight: 800; | |||
text-align: center; | |||
vertical-align: center; | |||
font-size: 105%; | |||
} | } |
Latest revision as of 14:25, 13 June 2023
/* CSS placed here will be applied to all skins */ body.page-Main_Page h1 { display: none; } .infobox { border: 1px solid #a2a9b1; border-spacing: 3px; background-color: #f8f9fa; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right; font-size: 88%; line-height: 1.5em; width: 306px; } .infobox-title { font-size: 1.25em; text-align: center; } .infobox-image { text-align: center; } .infobox-heading { background-color: #C3D6EF; text-align: center; vertical-align: middle; font-size: 110%; } .infobox-above, .infobox-title, caption { font-weight: bold; } .infobox th { text-align: right; vertical-align: top; width: 120px; } .infobox td { vertical-align: top; } .infobox .subheading { background: rgb(5,67,113); background: linear-gradient(180deg, rgba(5,67,113,1) 0%, rgba(0,157,222,1) 100%); color: white; font-weight: 800; text-align: center; vertical-align: center; font-size: 105%; }