Difference between revisions of "MediaWiki:Common.css"

From RationalWiki
Jump to navigation Jump to search
(testing)
Line 11: Line 11:
 
}
 
}
  
 +
/* Logo for [[Fun:RationalWikiWikiWiki]] */
 +
 +
body.page-Fun_RationalWikiWikiWiki #p-logo a { background-image: url(http://rationalwiki.com/wiki/images/0/05/RWWLogo.png) !important; }
 +
body.page-Fun_RationalWikiWikiWiki #siteSub,
 +
body.page-Fun_RationalWikiWikiWiki #contentSub,
 +
body.page-Fun_RationalWikiWikiWiki h1.firstHeading {
 +
    display: none !important;
 +
}
  
 
/* wikitable/prettytable class for skinning normal tables */
 
/* wikitable/prettytable class for skinning normal tables */

Revision as of 12:52, 30 April 2009

/*
<pre>
*/
/** CSS placed here will be applied to all skins */

/*Don't display title on Main Page*/
body.page-Main_Page #siteSub,
body.page-Main_Page #contentSub,
body.page-Main_Page h1.firstHeading {
    display: none !important;
}

/* Logo for [[Fun:RationalWikiWikiWiki]] */

body.page-Fun_RationalWikiWikiWiki #p-logo a { background-image: url(http://rationalwiki.com/wiki/images/0/05/RWWLogo.png) !important; }
body.page-Fun_RationalWikiWikiWiki #siteSub,
body.page-Fun_RationalWikiWikiWiki #contentSub,
body.page-Fun_RationalWikiWikiWiki h1.firstHeading {
    display: none !important;
}

/* wikitable/prettytable class for skinning normal tables */

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

/* Infobox template style */

.infobox {
   border: 1px solid #aaaaaa;
   background-color: #f9f9f9;
   color: black;
   margin-bottom: 0.5em;
   margin-left: 1em;
   padding: 0.2em;
   float: right;
   clear: right;
}
.infobox td,
.infobox th {
   vertical-align: top;
}
.infobox caption {
   font-size: larger;
   margin-left: inherit;
}
.infobox.bordered {
   border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
   border: 1px solid #aaaaaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
   border: 0;
}

.infobox.sisterproject {
   width: 20em;
   font-size: 90%;
}

/*Add formatting to make sure that "external references" from [[Template:Ref]] do
  not get URL expansion, not even when printed. The mechanism up to MediaWiki 1.4 was
  that the HTML code contained a SPAN following the anchor A; this SPAN had the class
  "urlexpansion", which was not displayed on screen, but was shown when the medium was
  "print". The rules below ensure (a) that there is no extra padding to the right of
  the anchor (displayed as "[<number>]"), (b) that there is no "external link arrow" for
  the link, and (c) that this SPAN of class "urlexpansion" is never shown.
  ~~~~
*/

.plainlinksneverexpand {
  background: none ! important;
  padding: 0 ! important;
}

.plainlinksneverexpand .urlexpansion {
  display: none ! important;
}

/* Make sure that ext links displayed within "plainlinksneverexpand" don't get
   the arrow...
*/
.plainlinksneverexpand a {
   background: none !important;
   padding: 0 !important;
}

/* With MediaWiki 1.5, the mechanism has changed: instead of a SPAN of class "urlexpansion"
   following the anchor A, the anchor itself now has class "external autonumber" and the
   expansion is inserted when printing (see the common printing style sheet at
   http://en.wikipedia.org/skins-1.5/common/commonPrint.css) using the ":after" pseudo-
   element of CSS. We have to switch this off for links due to Template:Ref!
   ~~~~
*/
.plainlinksneverexpand a.external.text:after {
  display: none !important;
}
.plainlinksneverexpand a.external.autonumber:after {
  display: none !important;
}

/* Messagebox templates */

.messagebox {
   border: 1px solid #aaa;
   background-color: #f9f9f9;
   width: 80%;
   margin: 0 auto 1em auto;
   padding: .2em;
}
.messagebox.merge {
   border: 1px solid #c0b8cc;
   background-color: #f0e5ff;
   text-align: center;
}
.messagebox.cleanup {
   border: 1px solid #9f9fff;
   background-color: #efefff;
   text-align: center;
}
.messagebox.standard-talk {
   border: 1px solid #c0c090;
   background-color: #f8eaba;
}
.messagebox.nested-talk {
   border: 1px solid #c0c090;
   background-color: #f8eaba;
   width: 100%;
   margin: 2px 4px 2px 4px;
}

/* Highlight clicked reference in blue to help navigation */
ol.references > li:target {
    background-color: #DEF;
}
 
sup.reference:target { 
    background-color: #DEF;
}

.secondary-link-colour-scheme a:link { color: #33FF33; text-decoration: none; }
.secondary-link-colour-scheme a:visited { color: #ffff33; text-decoration: none; }
.secondary-link-colour-scheme a:active { text-decoration: none; }
.secondary-link-colour-scheme a:hover { text-decoration: underline; }

#bottom_fade {
        width:100%;
        background-image: url("http://rationalwiki.com/wiki/images/1/1d/Bf.png");
}

/*
</pre>
*/