Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
| Line 426: | Line 426: | ||
.vbox div.vbox-wp { | .vbox div.vbox-wp { | ||
text-align: center; | text-align: center; | ||
| − | font-size: | + | font-size: 80%; |
} | } | ||
Revision as of 09:43, 12 February 2018
/* CSS placed here will be applied to all skins */
body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; }
/* Custom link colours */
a {color:#2383c2}
a:visited {color:#2383c2}
a:active {color:#006ec6}
.mw-body a.extiw,
.mw-body a.extiw:active {color:#2383c2}
.mw-body a.extiw:visited {color:#2383c2}
.mw-body a.extiw:active {color:#006ec6}
.mw-body a.external {color:#2383c2}
.mw-body a.external:visited {color:#2383c2}
.mw-body a.external:active {color:#006ec6}
/* -------------------- Sidebar -------------------- */
/* Get rid of the div's top border image */
div#mw-panel div.portal {
background-image: none;
}
/* Have a decent top space between groups.
* Pad the h3 a bit more so is in line w/all text
* No borders */
div#mw-panel div.portal h3 {
margin: 0.5em 0 0 0;
padding: 0.25em 0 0.25em 0.7em;
border: 0;
}
/* Give the div for the text links a top border image */
div#mw-panel div.portal div.body {
margin-left: 0.6em;
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIwAAAABCAAAAAAphRnkAAAAJ0lEQVQIW7XFsQEAIAyAMPD/b7uLWz8wS5youFW1UREfiIpH1Q2VBz7fGPS1dOGeAAAAAElFTkSuQmCC);
background-repeat: no-repeat;
}
/* -------------------- Footer Links -------------------- */
/* Centre the row of footer links */
div#footer #footer-places { width: 100%; text-align: center; float: none; }
div#footer #footer-places li { float: none; display: inline-block; }
/* Prevent the (unused) div 'footer-info-lastmod' from taking up space */
div#footer ul#footer-info { display: none; }
div#footer { padding-top: 0.50em; }
/* Section headings in bold */
h1,h2 {font-weight:500;}
/* Style blockquotes */
blockquote.left-border {
margin-top: 10px;
margin-bottom: 10px;
margin-left: 50px;
padding-left: 15px;
border-left: 3px solid #ccc;
}
/* -------------------- Main Page -------------------- */
blockquote.MainPage {
border:solid #bbbbbb;
border-width:1px 0;
font-family:'Linux Libertine',Georgia,Times,serif;
}
/* -------------------- Colour Schemes -------------------- */
/* At the moment, only used on the Main Page */
td.yellow-sub-heads {
vertical-align:top; padding:0; border:1px solid #fad67d; background:#faf6ed; color:#000;
}
h2.yellow-sub-heads {
clear:both; margin:0.5em; padding:0.2em 0.4em; font-size:120%; font-family:inherit; font-weight:bold; color:#000; border:1px solid #fad67d; background:#faecc8;
}
div.yellow-sub-heads { padding:0.1em 0.6em; }
/* In the Spotlight */
td.spotlight {
vertical-align:top; padding:0; border:1px solid #d89a00; background:#fff2d3; color:#000;
}
h2.spotlight {
clear:both; margin:0.5em; padding:0.2em 0.4em; font-size:120%; font-family:inherit; font-weight:bold; color:#000; border:1px solid #d89a00; background:#ffc125;
}
div.spotlight { padding:0.1em 0.6em; }
/* In the Stocks */
td.stocks {
vertical-align:top; padding:0; border:1px solid #53534e; background:#e7e7e6; color:#000;
}
h2.stocks {
clear:both; margin:0.5em; padding:0.2em 0.4em; font-size:120%; font-family:inherit; font-weight:bold; color:#fff; border:1px solid #53534e; background:#8b8b83;
}
div.stocks { padding:0.1em 0.6em; }
/* 1st table at the top of personal pages */
/* TODO: remove this, no longer being used */
div#mw-content-text table.contact-info td {
border-bottom: 1px solid #cedff2;
vertical-align: top;
}
div#mw-content-text table.contact-info tr.first td {
border-top:3px solid #cedff2;
}
div#mw-content-text table.contact-info tr.last td {
border-bottom:3px solid #cedff2;
}
/* blue table for parliamentary information */
table.info-blue td {
vertical-align:top;
border-bottom:1px solid #cedff2;
}
table.info-blue tr.bb3 td { /* bottom border 3 px */
border-bottom:3px solid #cedff2;
}
/* Override default mediawiki 'wikitable'; no l|r borders, no top margin */
table.wt-mod {
margin-top:0;
border:none;
}
table.wt-mod > tr > th, table.wt-mod > tr > td, table.wt-mod > * > tr > th, table.wt-mod > * > tr > td {
vertical-align:top;
border:1px solid #aaa;
border-width:1px 0 1px 0;
}
table.wt-mod tr.notb > td { border-top:0; } /* no top border */
/* Don't think I'm going to use this after all */
/* Timeline dl list
* http://maxdesign.com.au/articles/definition/ */
dl.timeline-list {
margin:0; padding:0;
}
dl.timeline-list dt {
margin:0; padding:0; font-weight:bold; text-decoration:underline;
}
dl.timeline-list dd {
margin: 0 0 1em 0; padding:0;
}
/* Timeline dl styled as a table */
dl.timeline-table {
float: left;
width: 820px;
margin: 1em 0;
padding: 0;
border-bottom: 1px solid #999;
}
dl.timeline-table dt {
clear: left;
float: left;
width:100px;
margin: 0;
padding: 5px;
border-top: 1px solid #999;
font-weight: bold;
}
dl.timeline-table dd {
float: left;
width:700px;
margin: 0;
padding: 5px;
border-top: 1px solid #999;
}
/* Glossary dl style */
div#glossary dt { margin-top: 1.0em; }
/* Create a hanging indent (this should be a template) */
span.indent { padding-left: 2.5em; }
/* -------------------- Copied from Wikipedia -------------------- */
/* Style for horizontal lists (separator following item) */
/* Jolly useful when making not-table newspaper columns */
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.hlist dt:after { content: ": "; }
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol { counter-reset: listitem; }
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/* -------------- Horizontal Navbox container style --------------- */
/* -- used in Template:WikiPolitiks, at the bottom of every page -- */
.navbox {
box-sizing: border-box;
border: 2px solid #3d613d; /* table o/s border (was #a2a9b1) */
width: 100%;
clear: both;
font-size: 100%;
text-align: center;
padding: 1px;
margin: 1em auto 0; /* Prevent preceding content from clinging to navboxes */
}
.navbox .navbox { margin-top:0; } /* No top margin for nested navboxes */
.navbox + .navbox { margin-top: -1px; } /* Single pixel border between adjacent navboxes */
.navbox-inner, .navbox-subgroup { width: 100%; }
.navbox-group,
.navbox-title,
.navbox-abovebelow {
padding: 0.25em 1em; /* Title, group and above/below styles */
line-height: 1.5em;
text-align: center;
}
th.navbox-group { /* Group style */
white-space: nowrap;
/* @noflip */
text-align: right;
}
.navbox, .navbox-subgroup { background: #fdfdfd; } /* Bg, whole table colour */
.navbox-list { line-height: 1.5em; border-color: #fdfdfd; } /* Must match Bg, whole table colour */
/* cell spacing for navbox cells */
tr + tr > .navbox-abovebelow,
tr + tr > .navbox-group,
tr + tr > .navbox-image,
tr + tr > .navbox-list { /* Borders above 2nd, 3rd, etc. rows */
border-top: 2px solid #fdfdfd; /* Must match Bg, whole table colour */
}
.navbox th, .navbox-title { background: #75ab75; } /* Table Title colour (was #ccccff) */
.navbox-abovebelow, th.navbox-group,
.navbox-subgroup .navbox-title { background: #b2d0b2; } /* Bg, Left Headings colour (was #ddddff) */
.navbox-subgroup .navbox-group,
.navbox-subgroup .navbox-abovebelow { background: #d1e3d1; } /* Bg, Left sub-headings colour */
.navbox-even { background: #eff5ef; } /* Right, even row stripes (was #f7f7f7) */
.navbox-odd { background: transparent; } /* Odd row stripes */
.navbox .hlist td dl,
.navbox .hlist td ol,
.navbox .hlist td ul,
.navbox td.hlist dl,
.navbox td.hlist ol,
.navbox td.hlist ul {
padding: 0.125em 0; /* Adjust hlist padding in navboxes */
}
/* --------------- Vertical Navbox container style ---------------- */
/* -- used in Template:xxx, on the right side of most pages -- */
/* default colours */
.vert-navbox {
float: right;
clear: right;
margin: 0 0 1.0em 1.0em;
background: #f9f9f9;
border: 1px solid #aaa;
padding: 0.2em;
border-spacing: 0.4em; /* was: 0.4em 0; */
text-align: center;
line-height: 1.4em;
font-size: 90%;
/* width: 22.0em; */
width: 18.5em;
}
.vert-navbox th.nav-title {
/*font-family:'Linux Libertine',Georgia,Times,serif;*/
/*font-size: 150%;*/
/*line-height: 1.2em;*/
/*padding: 0.2em 0.4em 0.2em 0.4em;*/
}
/* JQuery makeCollapsible show/hide links */
.vert-navbox .mw-collapsible-toggle {
font-weight:normal; /* never be bold, even when inside a <th> */
/* @noflip */
text-align: right;
padding-top: 0.4em; /* be vertically centred in the table row */
padding-right: 0.2em; /* don't be jammed against the far side */
padding-left: 0.2em; /* bit of room between the text and the "button" */
}
.vert-navbox tr.nav-fold > td { padding: 0 0.1em 0 0.1em; } /* padding-bottom was 0.4em */
.vert-navbox div.nav-head {
font-size: 105%;
background: transparent;
text-align: left;
padding-top: 0.4em;
border-top: #aaa 1px solid;
}
.vert-navbox div.nav-body {
font-size: 105%;
padding: 0.2em 0px 0.4em;
text-align: left;
}
/* --------------- Vertical Navbox container style ----------------
* Used in Template:xxx, on the right side of most pages
* Default colours
*/
.vbox {
float: right;
clear: right;
width: 22.0em; /* can also be: width: 18.5em; */
margin: 0 0 1.0em 1.0em;
background: #f9f9f9;
border: 1px solid #aaa; /* default colour */
border-spacing: 0.2em;
padding: 0.2em;
text-align: center;
line-height: 1.4em;
font-size: 90%;
}
.vbox th.vbox-title {
background-color: #d50000;
border: 1px solid #9b301c;
color: #ffffff;
}
.vbox div.vbox-title-lg {
font-family: 'Linux Libertine',Georgia,Times,serif;
font-size: 160%;
line-height: 1.2em;
padding: 0.2em;
}
.vbox div.vbox-title-sm { padding-bottom: 0.2em; }
.vbox th.vbox-div {
border-top: #9b301c 1px solid;
padding-top: 0.6em;
}
.vbox td.vbox-txt { text-align: left; }
.vbox tr.vbox-fold > td { padding: 0 0.1em 0 0.1em; }
.vbox .mw-collapsible-toggle { /* JQuery makeCollapsible show/hide links */
font-weight:normal; /* never be bold, even when inside a th */
/* @noflip */
text-align: right;
padding-top: 0.4em; /* be vertically centred in the table row */
padding-right: 0.2em; /* don't be jammed against the far side */
padding-left: 0.2em; /* bit of room between the text and the "button" */
}
.vbox div.vbox-head {
padding-top: 0.4em;
border-top: #9b301c 1px solid;
border-bottom:#d54040 1px solid;
background:linear-gradient(#d54040, #ffffff);
font-size:105%;
font-weight:bold;
text-align:center;
}
.vbox div.vbox-body {
font-size: 105%;
padding: 0.2em 0px 0.4em;
text-align:left;
}
.vbox div.vbox-cell {
width: 100%;
display: inline-block;
box-sizing: border-box;
padding-left: 2px;
font-weight: bold;
}
.vbox div.vbox-row {
width: 100%;
display: inline-block;
box-sizing: border-box;
}
.vbox div.vbox-key {
width: 43%;
display: inline-block;
padding-left: 10px;
box-sizing: border-box;
}
.vbox div.vbox-value {
width: 57%;
float: right;
display: inline-block;
padding-left: 10px;
word-wrap: break-word;
box-sizing: border-box;
}
.vbox dl.vbox-dl dd { margin-left: 1.1em; }
.vbox td.vbox-footer {
padding: 0.4em 0.3em 0 0.3em;
border-top: 1px solid #9b301c;
}
.vbox div.vbox-wp {
text-align: center;
font-size: 80%;
}