MediaWiki:Common.css: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
mNo edit summary
No edit summary
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; }


 
/*</pre>*/
table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}
 
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}
 
table.wikitable th,
table.prettytable th {
  background: #f2f2f2;
  text-align: center;
}
 
table.wikitable caption,
table.prettytable caption {
  margin-left: inherit;
  margin-right: inherit;
  font-size: larger;
  font-weight: bold;
}
 
/* Puts a redirect indicator before redirects in Special:Allpages */
.allpagesredirect { font-style: italic; }
.allpagesredirect a { background: url(/images/5/5c/Allpagesredirect.gif) center left no-repeat; padding-left: 13px; }
 
/* stealth external links almost like normal links (remove if abused) -Spl */
#bodyContent .stealthexternallink a { background: none; padding: 0; color: #002bb8; }
#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 */
/* note: color should be #ba0000, but #cc2200 in practice? */
.new a { color:#cc2200; }
.new a:visited { color:#a55858; }
 
/*</nowiki></pre>*/

Revision as of 23:24, 9 December 2009

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

/*</pre>*/