MediaWiki:Common.css

From WikiCorporates
Revision as of 14:34, 23 January 2018 by GrayanOne (talk | contribs)
Jump to navigation Jump to search

Note: After saving, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* 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;
}

/* Sidebar:
 * let's have a decent top space between groups
 * pad the h3 a bit more so is in line w/all text
 * we don't want any borders */
div#mw-panel div.portal h3 {
  margin: 0.5em 0 0 0;
  padding: 0.25em 0 0.25em 0.7em;
  border: 0;
}

/* Sidebar: 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;
}

/* 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; }

/* 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 */

ul.accordion { margin-bottom:14px }
ul.accordion li { 
 margin:0;
 background:#FFF;
 margin-bottom:5px !important;
 padding:13px 20px 0 20px;
 -webkit-box-shadow:0 1px 2px #ccc;
 -moz-box-shadow:0 1px 2px #ccc;
 box-shadow:0 1px 2px #ccc
}
ul.accordion li>a { 
 display:block;
 padding:0 0 13px 0;
 color:#444;
 font:600 1.333em 'Open Sans',Helvetca,Arial,sans-serif;
 outline:0;
 text-decoration:none;
 font-size:14px;
 -webkit-transition:padding .3s ease-out;
 -moz-transition:padding .3s ease-out;
 -o-transition:padding .3s ease-out;
 -ms-transition:padding .3s ease-out;
 transition:padding .3s ease-out
}
ul.accordion li>a:before {
float:right;
position:relative;
margin:-3px -7px 0 0;
color:#c8c8c8;
font:600 1.308em 'Open Sans',Helvetca,Arial,sans-serif;
content:"+"
}
ul.accordion li>a.expanded:before{ color:#aeaeae; content:"–" }
ul.accordion li>div {
 display:none;
 padding:0 0 18px 0;
 width:100%
}
ul.accordion li>a:hover{ color:#61b23b }
ul.accordion li>a.expanded:before,ul.accordion li>a:hover:before { color:#000 }
ul.accordion li p {
 margin-top:10px;
 font-size:13px;
 margin-bottom:0;
 padding-bottom:5px
}




/* 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;
}

/* Style blockquotes */
blockquote.left-border {
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 50px;
  padding-left: 15px;
  border-left: 3px solid #ccc;
}

/* Create a hanging indent.
 * This should be a template (when I get them working) */
span.indent {
  padding-left: 2.5em;
}