Difference between revisions of "MediaWiki:Common.css"
m |
m |
||
(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | /* | + | /* TOC customisation: remove auto-numbering |
+ | .tocnumber { | ||
+ | display: none; | ||
+ | } */ | ||
+ | |||
+ | /* Figure and table stylings */ | ||
+ | .figure { | ||
+ | align: center; | ||
+ | color: #244858; | ||
+ | font-size: 90%; | ||
+ | font-family: Georgia, serif; | ||
+ | font-variant: small-caps; | ||
+ | margin-top: 2.5em; | ||
+ | margin-bottom: 2.5em; | ||
+ | } | ||
+ | div.tablecaption { | ||
+ | color: #244858; | ||
+ | text-align: center; | ||
+ | font-size: 90%; | ||
+ | font-family: Georgia, serif; | ||
+ | font-variant: small-caps; | ||
+ | margin-top: 2.5em; | ||
+ | } | ||
+ | /* Import Google Fonts. Override default fonts with Open Sans.*/ | ||
@import url( 'https://fonts.googleapis.com/css2?family=Open+Sans '); | @import url( 'https://fonts.googleapis.com/css2?family=Open+Sans '); | ||
− | |||
− | |||
body { | body { | ||
− | + | font-family: "Open Sans", sans-serif; | |
} | } | ||
− | |||
− | |||
#content h1, | #content h1, | ||
#content h2 { | #content h2 { | ||
font-family: "Open Sans", sans-serif; | font-family: "Open Sans", sans-serif; | ||
font-weight: bold; | font-weight: bold; | ||
− | } | + | } |
− | /* Standard Navigationsleisten, aka box hiding thingy | + | /* Standard Navigationsleisten, aka box hiding thingy from Wikipedia.de. |
− | + | Documentation at [https://en.wikipedia.org/wiki/Wikipedia:NavFrame|Wikipedia:NavFrame]. */ | |
div.NavFrame { | div.NavFrame { | ||
margin: 0; | margin: 0; | ||
Line 24: | Line 43: | ||
border-collapse: collapse; | border-collapse: collapse; | ||
font-size: 95%; | font-size: 95%; | ||
+ | font-family: Lucida Console, monospace; | ||
} | } | ||
div.NavFrame + div.NavFrame { | div.NavFrame + div.NavFrame { | ||
Line 33: | Line 53: | ||
margin: 0; | margin: 0; | ||
padding: 2px; | padding: 2px; | ||
− | |||
float: left; | float: left; | ||
} | } | ||
div.NavFrame div.NavHead { | div.NavFrame div.NavHead { | ||
font-size: 100%; | font-size: 100%; | ||
− | font-family: | + | font-family: Lucida console, monospace; |
− | color: # | + | color: #fff; |
− | + | text-align: center; | |
position: relative; | position: relative; | ||
background-color: #244858; | background-color: #244858; | ||
Line 47: | Line 66: | ||
div.NavFrame div.NavContent, | div.NavFrame div.NavContent, | ||
div.NavFrame div.NavContent p { | div.NavFrame div.NavContent p { | ||
− | font-size: | + | font-size: 90%; |
} | } | ||
div.NavEnd { | div.NavEnd { | ||
Line 58: | Line 77: | ||
position: absolute; | position: absolute; | ||
top: 0; | top: 0; | ||
− | |||
right: 3px; | right: 3px; | ||
− | color: # | + | color: #fff; |
font-weight: normal; | font-weight: normal; | ||
} | } | ||
Line 73: | Line 91: | ||
/* Infobox template style */ | /* Infobox template style */ | ||
.infobox { | .infobox { | ||
+ | width: 250px; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-spacing: 3px; | border-spacing: 3px; | ||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
color: black; | color: black; | ||
− | |||
margin: 0.5em 0 0.5em 1em; | margin: 0.5em 0 0.5em 1em; | ||
padding: 0.2em; | padding: 0.2em; | ||
− | |||
float: right; | float: right; | ||
− | |||
clear: right; | clear: right; | ||
font-size: 88%; | font-size: 88%; | ||
Line 94: | Line 110: | ||
} | } | ||
.infobox-image { | .infobox-image { | ||
− | + | text-align: center; | |
− | + | margin: 10px; | |
} | } | ||
.infobox td, | .infobox td, | ||
Line 152: | Line 168: | ||
.wikitable.hlist td dl { | .wikitable.hlist td dl { | ||
text-align: inherit; | text-align: inherit; | ||
+ | } | ||
+ | |||
+ | /* Generic information boxes */ | ||
+ | |||
+ | .mbox { | ||
+ | border: 1px solid #D3D3D3; | ||
+ | padding: 5px; | ||
+ | } | ||
+ | .mbox.small | ||
+ | { | ||
+ | width: 30%; | ||
} | } |
Latest revision as of 04:56, 8 September 2020
/* TOC customisation: remove auto-numbering .tocnumber { display: none; } */ /* Figure and table stylings */ .figure { align: center; color: #244858; font-size: 90%; font-family: Georgia, serif; font-variant: small-caps; margin-top: 2.5em; margin-bottom: 2.5em; } div.tablecaption { color: #244858; text-align: center; font-size: 90%; font-family: Georgia, serif; font-variant: small-caps; margin-top: 2.5em; } /* Import Google Fonts. Override default fonts with Open Sans.*/ @import url( 'https://fonts.googleapis.com/css2?family=Open+Sans '); body { font-family: "Open Sans", sans-serif; } #content h1, #content h2 { font-family: "Open Sans", sans-serif; font-weight: bold; } /* Standard Navigationsleisten, aka box hiding thingy from Wikipedia.de. Documentation at [https://en.wikipedia.org/wiki/Wikipedia:NavFrame|Wikipedia:NavFrame]. */ div.NavFrame { margin: 0; padding: 4px; border: 1px solid #a2a9b1; text-align: left; border-collapse: collapse; font-size: 95%; font-family: Lucida Console, monospace; } div.NavFrame + div.NavFrame { border-top-style: none; border-top-style: hidden; } div.NavPic { background-color: #fff; margin: 0; padding: 2px; float: left; } div.NavFrame div.NavHead { font-size: 100%; font-family: Lucida console, monospace; color: #fff; text-align: center; position: relative; background-color: #244858; } div.NavFrame p, div.NavFrame div.NavContent, div.NavFrame div.NavContent p { font-size: 90%; } div.NavEnd { margin: 0; padding: 0; line-height: 1px; clear: both; } a.NavToggle { position: absolute; top: 0; right: 3px; color: #fff; font-weight: normal; } .client-js .NavFrame.collapsed > .NavContent { display: none; } .navContent table { margin-left: 3px; text-align: left; } /* Infobox template style */ .infobox { width: 250px; 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; } .infobox-title { font-size: 125%; font-weight: bold; padding: 0.2em; text-align: center; } .infobox-image { text-align: center; margin: 10px; } .infobox td, .infobox th { vertical-align: top; /* @noflip */ text-align: left; } .infobox.bordered { border-collapse: collapse; } .infobox.bordered td, .infobox.bordered th { border: 1px solid #a2a9b1; } .infobox.bordered .borderless td, .infobox.bordered .borderless th { border: 0; } /* styles for bordered infobox with merged rows */ .infobox.bordered .mergedtoprow td, .infobox.bordered .mergedtoprow th { border: 0; border-top: 1px solid #a2a9b1; /* @noflip */ border-right: 1px solid #a2a9b1; } .infobox.bordered .mergedrow td, .infobox.bordered .mergedrow th { border: 0; /* @noflip */ border-right: 1px solid #a2a9b1; } /* Normal font styling for wikitable row headers with scope="row" tag */ .wikitable.plainrowheaders th[scope=row] { font-weight: normal; /* @noflip */ text-align: left; } /* Lists in wikitable data cells are always left-aligned */ .wikitable td ul, .wikitable td ol, .wikitable td dl { /* @noflip */ text-align: left; } /* ...unless they also use the hlist class */ .toc.hlist ul, #toc.hlist ul, .wikitable.hlist td ul, .wikitable.hlist td ol, .wikitable.hlist td dl { text-align: inherit; } /* Generic information boxes */ .mbox { border: 1px solid #D3D3D3; padding: 5px; } .mbox.small { width: 30%; }