MediaWiki:Common.css: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
 
(24 intermediate revisions by 4 users not shown)
Line 1: Line 1:
/*  
/*<pre>*/
/* CSS placed here will affect all users */


'''Note:''' Anything that is skin-specific (logo related, javascript related) should go into <!-- [[MediaWiki:Monobook.css]] or --> [[MediaWiki:Urbandead.css]]
/* remove title on main page */
body.page-Main_Page h1.firstHeading { display: none !important; }


Tools: [http://wiki.urbandead.com/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css&smaxage=18000 reload cache] | [http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwiki.urbandead.com%2Findex.php%3Ftitle%3DMediaWiki%3ACommon.css%26action%3Draw%26ctype%3Dtext%2Fcss%26smaxage%3D18000&usermedium=all check w3c validation]
/* wikitable class for skinning tables */
table.wikitable { margin: 1em 1em 1em 0; background: #F9F9F9; border-collapse: collapse; }
table.wikitable th, table.wikitable td { border: 1px #AAA solid; padding: .2em; }
table.wikitable th { background: #F2F2F2; text-align: center; }
table.wikitable caption { font-size: larger; font-weight: bold; }


A special thanks to Uncyclopedia and Wikipedia, whom I <s>stole</s> borrowed the code from. –[[User:Xoid|Xoid]] <sup>[[Special:Listusers/sysop|M]]•[[User talk:Xoid|T]]•<span class="stealthexternallink">[http://urbandeadwiki.th7.net F]</span>[[Project UnWelcome|U!]]</sup> 12:36, 28 August 2006 (BST)
/* puts an indicator image before redirects in Special:Allpages */
:And now [http://rationalwiki.com/wiki/Main_Page Rationalwiki]. {{User:Linkthewindow/Sig}} 10:26, 17 March 2009 (UTC)
.allpagesredirect a { background: url(/images/5/5c/Allpagesredirect.gif) center left no-repeat; padding-left: 13px; font-style: italic; }
<pre><nowiki>*/


/* wikitable/prettytable class for skinning normal tables */
/* stealth external links to look like normal links */
#bodyContent .stealthexternallink a { background: none; padding: 0; color: #002BB8; }
#bodyContent .stealthexternallink a:visited { color: #5A3696; }
#bodyContent .stealthexternallink a:active { color: #FAA700; }


body.page-Main_Page h1.firstHeading {
/* lighter normal red links, visited red links appear pink */
     display: none !important;
.new a { color:#C20; }
.new a:visited { color:#A55858; }
 
** classes for special content elements like town boxes
** intended to be referenced directly from the wiki src
*/
 
/*
** User styles
*/
/* table standards */
table.rimage {
    float: right;
    position: relative;
    margin-left: 1em;
    margin-bottom: 1em;
    text-align: center;
}
.toccolours {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    padding: 5px;
    font-size: 95%;
}
div.townBox {
    position: relative;
    float: right;
    background: white;
    margin-left: 1em;
    border: 1px solid gray;
    padding: .3em;
    width: 200px;
    overflow: hidden;
    clear: right;
}
div.townBox dl {
    padding: 0;
    margin: 0 0 .3em;
    font-size: 96%;
}
div.townBox dl dt {
     background: none;
    margin: .4em 0 0;
}
div.townBox dl dd {
    margin: .1em 0 0 1.1em;
    background-color: #f3f3f3;
}
 
/* wikitable class for skinning normal tables */
table.wikitable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption {
    font-weight: bold;
}
}


/* Allow hidden ref errors to be shown by user CSS */
span.brokenref {
    display: none;
}
/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */
.citation {
    word-wrap: break-word;
}


table.wikitable,
/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
table.prettytable {
  in [[MediaWiki:Common.js]] are styled here so they can be customised. */
  margin: 1em 1em 1em 0;
.collapseButton {      
  background: #f9f9f9;
    /* @noflip */
  border: 1px #aaaaaa solid;
    float: right;
  border-collapse: collapse;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
  from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
    width: 6em;
}
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
    font-weight: normal;
    /* @noflip */
    text-align: right;
}
.navbox .mw-collapsible-toggle {
    width: 6em;
}
}


table.wikitable th, table.wikitable td,
/* When <div class="nonumtoc"> is used on the table of contents,
table.prettytable th, table.prettytable td {
  the ToC will display without numbers */
  border: 1px #aaaaaa solid;
.nonumtoc .tocnumber { display: none; }
  padding: 0.2em;
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none;
    margin: .3em 0 0;
    padding: 0;
}
.nonumtoc #toc ul ul,
.nonumtoc .toc ul ul {
    /* @noflip */
    margin: 0 0 0 2em;  
}
}


table.wikitable th,
/* Allow limiting of which header levels are shown in a TOC;
table.prettytable th {
  <div class="toclimit-3">, for instance, will limit to
  background: #f2f2f2;
  showing ==headings== and ===headings=== but no further
  text-align: center;
  (as long as there are no =headings= on the page, which
  there shouldn't be according to the MoS).
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}
}


table.wikitable caption,
/* Prevent floating boxes from overlapping any category listings,
table.prettytable caption {
  file histories, edit previews, and edit [Show changes] views */
  margin-left: inherit;
#mw-subcategories, #mw-pages, #mw-category-media,
  margin-right: inherit;
#filehistory, #wikiPreview, #wikiDiff {
  font-size: larger;
    clear: both;
  font-weight: bold;
}
}


/* Puts a redirect indicator before redirects in Special:Allpages */
/* Disable the automatic text-size adjust of WebKit on iPhones etc.
.allpagesredirect { font-style: italic; }
  It scales some text, and not the other. Use none, or fixed percentage instead.
.allpagesredirect a { background: url(/images/5/5c/Allpagesredirect.gif) center left no-repeat; padding-left: 13px; }
  Use media selector, because defining a value, overwrites platform defaults. */
@media only screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: none;
    }
}


/* stealth external links almost like normal links (remove if abused) -Spl */
/* ================================================================
#bodyContent .stealthexternallink a { background: none; padding: 0; color: #002bb8; }
This copyright notice must be untouched at all times.
#bodyContent .stealthexternallink a.new { color: #CC2200 !important; }
#bodyContent .stealthexternallink a:visited { color: #5a3696; }
#bodyContent .stealthexternallink a:active { color: #faa700; }
#bodyContent .stealthexternallink a:hover { text-decoration: underline; }


/* deliberate red links */
The original version of this stylesheet and the associated (x)html
/* note: color should be #ba0000, but #cc2200 in practice? */
is available at http://www.cssplay.co.uk/menus/cssplay-definition-list-menu.html
.new a { color:#cc2200; }
Copyright (c) Stu Nicholls. All rights reserved.
.new a:visited { color:#a55858; }
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */
div.newmenu {text-align:center; position:relative; z-index:100; display:inline-block; zoom:1; *display:block; padding: 5px; background: #fff; border: 2px solid #565}
div.newmenu dl {padding:0; margin:0; display:inline-block; position:relative; text-align:left;}
div.newmenu dl a, #bodyContent div.newmenu dl a.external, div.newmenu dl dt.sub {display:block; white-space:nowrap; font: 1em/1.7em arial, sans-serif; text-decoration:none; color:#bcb; padding:0 10px;}
#bodyContent div.newmenu dl a.external {background:none}
div.newmenu dl {*display:inline;}
div.newmenu dt {height:1.7em; line-height:1.7em; background:#565; border: 1px solid #787; border-width: 0px 1px;}
div.newmenu dd {position:absolute; left:0; top:1.7em; padding:0; margin:0; display:none; background:#454; padding:8px 0; box-shadow:0 15px 10px -15px rgba(0,0,0,0.4);}
div.newmenu dd a {line-height:1.7em;}
div.newmenu dl.right dd {left:auto; right:1px;}
div.newmenu dl:hover dd {display:block; border: 1px solid #787; border-top: 0px;}
div.newmenu dl:hover dt {background:#454;}
div.newmenu dl dd a:hover, #bodyContent div.newmenu dl dd a.external:hover {background:#787;}
div.newmenu img {position:fixed; z-index:-1; left:0; top:0; width:100%; height:100%; display:none;}
div.newmenu dl:hover ~ img {display:block;}


/*</nowiki></pre>*/
/*</pre>*/

Latest revision as of 17:50, 29 October 2012

/*<pre>*/
/* CSS placed here will affect all users */

/* remove title on main page */
body.page-Main_Page h1.firstHeading { display: none !important; }

/* wikitable class for skinning tables */
table.wikitable { margin: 1em 1em 1em 0; background: #F9F9F9; border-collapse: collapse; }
table.wikitable th, table.wikitable td { border: 1px #AAA solid; padding: .2em; }
table.wikitable th { background: #F2F2F2; text-align: center; }
table.wikitable caption { font-size: larger; font-weight: bold; }

/* puts an indicator image before redirects in Special:Allpages */
.allpagesredirect a { background: url(/images/5/5c/Allpagesredirect.gif) center left no-repeat; padding-left: 13px; font-style: italic; }

/* stealth external links to look like normal links */
#bodyContent .stealthexternallink a { background: none; padding: 0; color: #002BB8; }
#bodyContent .stealthexternallink a:visited { color: #5A3696; }
#bodyContent .stealthexternallink a:active { color: #FAA700; }

/* lighter normal red links, visited red links appear pink */
.new a { color:#C20; }
.new a:visited { color:#A55858; }

** classes for special content elements like town boxes
** intended to be referenced directly from the wiki src
*/

/*
** User styles
*/
/* table standards */
table.rimage {
    float: right;
    position: relative;
    margin-left: 1em;
    margin-bottom: 1em;
    text-align: center;
}
.toccolours {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    padding: 5px;
    font-size: 95%;
}
div.townBox {
    position: relative;
    float: right;
    background: white;
    margin-left: 1em;
    border: 1px solid gray;
    padding: .3em;
    width: 200px;
    overflow: hidden;
    clear: right;
}
div.townBox dl {
    padding: 0;
    margin: 0 0 .3em;
    font-size: 96%;
}
div.townBox dl dt {
    background: none;
    margin: .4em 0 0;
}
div.townBox dl dd {
    margin: .1em 0 0 1.1em;
    background-color: #f3f3f3;
}

/* wikitable class for skinning normal tables */
table.wikitable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption {
    font-weight: bold;
}

/* Allow hidden ref errors to be shown by user CSS */
span.brokenref {
    display: none;
}

/* Styling for citations (CSS3). Breaks long urls, etc., rather than overflowing box */
.citation {
    word-wrap: break-word;
}

/* 'show'/'hide' buttons created dynamically by the CollapsibleTables javascript
   in [[MediaWiki:Common.js]] are styled here so they can be customised. */
.collapseButton {       
    /* @noflip */
    float: right;
    font-weight: normal;
    /* @noflip */
    margin-left: 0.5em;
    /* @noflip */
    text-align: right;
    width: auto;
}
/* In navboxes, the show/hide button balances the v·d·e links
   from [[Template:Navbar]], so they need to be the same width. */
.navbox .collapseButton {
    width: 6em;
}
 
/* Styling for JQuery makeCollapsible, matching that of collapseButton */
.mw-collapsible-toggle {
    font-weight: normal;
    /* @noflip */
    text-align: right;
}
.navbox .mw-collapsible-toggle {
    width: 6em;
}

/* When <div class="nonumtoc"> is used on the table of contents,
   the ToC will display without numbers */
.nonumtoc .tocnumber { display: none; }
.nonumtoc #toc ul,
.nonumtoc .toc ul {
    line-height: 1.5em;
    list-style: none;
    margin: .3em 0 0;
    padding: 0;
}
.nonumtoc #toc ul ul, 
.nonumtoc .toc ul ul { 
    /* @noflip */
    margin: 0 0 0 2em; 
}

/* Allow limiting of which header levels are shown in a TOC;
   <div class="toclimit-3">, for instance, will limit to
   showing ==headings== and ===headings=== but no further
   (as long as there are no =headings= on the page, which
   there shouldn't be according to the MoS).
 */
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
    display: none;
}

/* Prevent floating boxes from overlapping any category listings,
   file histories, edit previews, and edit [Show changes] views */
#mw-subcategories, #mw-pages, #mw-category-media, 
#filehistory, #wikiPreview, #wikiDiff {
    clear: both;
}

/* Disable the automatic text-size adjust of WebKit on iPhones etc.
   It scales some text, and not the other. Use none, or fixed percentage instead.
   Use media selector, because defining a value, overwrites platform defaults. */
@media only screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: none;
    }
}

/* ================================================================ 
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/cssplay-definition-list-menu.html
Copyright (c) Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
div.newmenu {text-align:center; position:relative; z-index:100; display:inline-block; zoom:1; *display:block; padding: 5px; background: #fff; border: 2px solid #565}
div.newmenu dl {padding:0; margin:0; display:inline-block; position:relative; text-align:left;}
div.newmenu dl a, #bodyContent div.newmenu dl a.external, div.newmenu dl dt.sub {display:block; white-space:nowrap; font: 1em/1.7em arial, sans-serif; text-decoration:none; color:#bcb; padding:0 10px;}
#bodyContent div.newmenu dl a.external {background:none}
div.newmenu dl {*display:inline;}
div.newmenu dt {height:1.7em; line-height:1.7em; background:#565; border: 1px solid #787; border-width: 0px 1px;}
div.newmenu dd {position:absolute; left:0; top:1.7em; padding:0; margin:0; display:none; background:#454; padding:8px 0; box-shadow:0 15px 10px -15px rgba(0,0,0,0.4);}
div.newmenu dd a {line-height:1.7em;}
div.newmenu dl.right dd {left:auto; right:1px;}
div.newmenu dl:hover dd {display:block; border: 1px solid #787; border-top: 0px;}
div.newmenu dl:hover dt {background:#454;}
div.newmenu dl dd a:hover, #bodyContent div.newmenu dl dd a.external:hover {background:#787;}
div.newmenu img {position:fixed; z-index:-1; left:0; top:0; width:100%; height:100%; display:none;}
div.newmenu dl:hover ~ img {display:block;}

/*</pre>*/