MediaWiki:Common.css

From Engineered Arts Wiki
Revision as of 14:11, 21 March 2016 by W.stott (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 */

#accesscontrol {
  float: right;
  text-indent: 100%;
  width: 16px;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  background-image: url('http://wiki.engineeredarts.co.uk/w/images/8/8a/Padlock24.png');
}

.numicon {
    display: inline-block;
    vertical-align: middle;
    background-position: center;
    width: 27px;
    height: 27px;
    margin: -13px 0px -10px 0px; /* Negative margins prevent making the line too tall. */
    padding: 0px;
}
.numicon.e, .numicon.w {
    width: 40px;
}

.numicon.n, .numicon.s {
    width: 40px;
}
.numicon.ne, .numicon.se, .numicon.sw, .numicon.nw {
    width: 34px;
    height: 34px;
}

/*
Sets the colours of pages based on category.
Currently requires the following JS snippet: https://www.mediawiki.org/wiki/Snippets/Style_pages_based_on_categories
Which can be found here: http://wiki.engineeredarts.co.uk/MediaWiki:Common.js
Extension should be implemented server-side to avoid the delay between loading the page and the colour changing.
Haven't yet found an extension to do this. 
This is close, and could be suitable via templates: https://www.mediawiki.org/wiki/Extension:AddBodyClass
*/
body.cat-Socibot #content.mw-body {
  background-color: #F5FCFC;
}