Difference between revisions of "MediaWiki:Monobook.css"

From PublicWiki
Jump to: navigation, search
(Cut and paste from http://meta.wikimedia.org/wiki/MediaWiki:Common.css)
 
(Cut and paste from http://meta.wikimedia.org/wiki/MediaWiki:Monobook.css)
Line 1: Line 1:
 
/* CSS placed here will affect users of the Monobook skin */
 
/* CSS placed here will affect users of the Monobook skin */
  
*/
+
/*
  
/*****
+
*/
** Minor tweaks
 
*****/
 
  /* [[Special:Allpages]] redirects */
 
  .allpagesredirect {
 
      font-style:italic;
 
      color:gray;
 
      }
 
  
 +
/* edit this file to customize the monobook skin for the entire site */
 +
#fundraising {
 +
text-align: center;
 +
border: 1px solid gray;
 +
padding: 5px;
 +
margin-top: 5px;
 +
}             
 +
                       
 +
#content {
 +
    background: #ffffff; /* white */
 +
}
  
  /* hide unneeded content when printing */
+
.ns-0 * #content {
  @media print {
+
    background: #ffffff;
      #privacy, #about, #disclaimer {display:none;}
+
}
      }
 
  
 +
#mytabs li {
 +
    background: #f4f4f4;
 +
}
  
  /* hide arrows on selected external links */
+
.ns-0 * #mytabs li {
  .plainlinksneverexpand a {
+
    background: #f4f4f4;
      background:none !important;
+
}
      padding:0 !important;
 
      }
 
  
 +
#mytabs li a {
 +
    background-color: #f4f4f4;
 +
}
  
/*****
+
.ns-0 * #mytabs li a {
** Hide selected content
+
    background-color: #f4f4f4;
*****/
+
}
  .hiddenStructure {display: none}
 
  
   .if {display: none}
+
/* For p-cactions (the top "tabs") it works only because my .js moves them into the
 +
   "ns-0" wrapper anyway. */
 +
#p-cactions li {
 +
    background: #f4f4f4;
 +
}
  
 +
.ns-0 * #p-cactions li {
 +
    background: #ffffff;
 +
}
  
/*****
+
#p-cactions li a {
** Table formatting
+
    background-color: #ffffff;
*****/
+
}
  table.wikitable,
 
  table.prettytable {
 
      margin:1em 1em 1em 0;
 
      background:#F9F9F9;
 
      border:1px #AAA solid;
 
      border-collapse:collapse;
 
      }
 
  
  table.wikitable th, table.wikitable td,
+
.ns-0 * #p-cactions li a {
  table.prettytable th, table.prettytable td {
+
    background-color: #ffffff;
      border:1px #AAA solid;
+
}
      padding:0.2em;
 
      }
 
  
  table.wikitable th,
+
/* Display "From Meta..." */
  table.prettytable th {
+
#siteSub {
      background:#F2F2F2;
+
    display: inline;
      text-align:center;
+
    font-size: 120%;
      }
+
    font-weight: normal;
 +
}
  
  table.wikitable caption,
+
/* Do not print certain classes that shouldn't appear on paper */
  table.prettytable caption {
 
      margin-left:inherit;
 
      margin-right:inherit;
 
      }
 
  
 +
@media print {
 +
    .editlink, .noprint, .metadata, .dablink { display: none }
 +
}
  
/*****
+
/* Style [[Meta:Language select]] widget */
** box formatting
+
.lang_info {font-size:8pt;text-align:right;margin-bottom:0.5em;}
*****/
+
    .lang_info a {font-weight:bold;font-family:Arial,
  .infobox {
+
       sans-serif;font-size:8pt;}
      float:right;
+
    .lang_info input {font-size:8pt;}
      clear:right;
+
    .lang_info input.ls_select {font-weight:bold;}
      margin-bottom:0.5em;
 
      margin-left:1em;
 
       padding:0.2em;
 
      border:1px solid #AAA;
 
      background:#F9F9F9;
 
      color:black;
 
  
      }
+
/* Disable grey background when code is used in a header */
 +
h2 code, h3 code, h4 code, h5 code, h6 code {background:none;}
 +
/* Some monospace fonts are too light in comparison to surrounding heading text, give them a nudge */
 +
h2 code {font-weight:bold;}
  
  .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 #AAA;
 
      }
 
 
 
  .infobox.bordered .borderless td,
 
  .infobox.bordered .borderless th {
 
      border:0;
 
      }
 
 
 
  .infobox.sisterproject {
 
      width:20em;
 
      font-size:90%;
 
      }
 
 
 
 
 
/*****
 
** Specific pages (keep to a minimum)
 
*****/
 
  /* Spam blacklist */
 
  body.page-Talk_Spam_blacklist #ca-addsection {display:none;}
 
 
 
 
 
  /* Spam blacklist/log */
 
  .logtable pre {
 
      margin:0;
 
      padding:0;
 
      border:0;
 
      }
 
 
 
/*****
 
** Bytecounter colours
 
*****/
 
strong.mw-plusminus-neg
 
  {
 
  color: #c00;
 
  }
 
 
 
span.mw-plusminus-neg
 
  {
 
  color: #900;
 
  }
 
 
 
span.mw-plusminus-pos
 
  {
 
  color: #060;
 
  }
 
 
 
/* Change the external link icon to an Adobe icon for all PDF files */
 
/* (in browsers that support these CSS selectors, like Mozilla and Opera) */
 
#bodyContent a[href$=".pdf"].external,
 
#bodyContent a[href*=".pdf?"].external,
 
#bodyContent a[href*=".pdf#"].external,
 
#bodyContent a[href$=".PDF"].external,
 
#bodyContent a[href*=".PDF?"].external,
 
#bodyContent a[href*=".PDF#"].external {
 
    background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat;
 
    padding-right: 16px;
 
}
 
 
 
/* Change the external link icon to an Adobe icon anywhere the PDFlink class */
 
/* is used (notably Template:PDFlink). This works in IE, unlike the above. */
 
span.PDFlink a {
 
    background: url(http://upload.wikimedia.org/wikipedia/commons/thumb/2/23/Icons-mini-file_acrobat.gif/15px-Icons-mini-file_acrobat.gif) center right no-repeat !important;
 
    padding-right: 17px !important;
 
}
 
 
 
/*
 

Revision as of 05:20, 10 May 2007

/* CSS placed here will affect users of the Monobook skin */

/*

 */

/* edit this file to customize the monobook skin for the entire site */
#fundraising {
 text-align: center;
 border: 1px solid gray;
 padding: 5px;
 margin-top: 5px;
}               
                        
#content {
    background: #ffffff; /* white */
}

.ns-0 * #content {
    background: #ffffff;
}

#mytabs li {
    background: #f4f4f4;
}

.ns-0 * #mytabs li {
    background: #f4f4f4;
}

#mytabs li a {
    background-color: #f4f4f4;
}

.ns-0 * #mytabs li a {
    background-color: #f4f4f4;
}

/* For p-cactions (the top "tabs") it works only because my .js moves them into the
   "ns-0" wrapper anyway. */
#p-cactions li {
    background: #f4f4f4;
}

.ns-0 * #p-cactions li {
    background: #ffffff;
}

#p-cactions li a {
    background-color: #ffffff;
}

.ns-0 * #p-cactions li a {
    background-color: #ffffff;
}

/* Display "From Meta..." */
#siteSub {
    display: inline;
    font-size: 120%;
    font-weight: normal;
}

/* Do not print certain classes that shouldn't appear on paper */

@media print {
    .editlink, .noprint, .metadata, .dablink { display: none }
}

/* Style [[Meta:Language select]] widget */
.lang_info {font-size:8pt;text-align:right;margin-bottom:0.5em;}
    .lang_info a {font-weight:bold;font-family:Arial,
      sans-serif;font-size:8pt;}
    .lang_info input {font-size:8pt;}
    .lang_info input.ls_select {font-weight:bold;}

/* Disable grey background when code is used in a header */
h2 code, h3 code, h4 code, h5 code, h6 code {background:none;}
/* Some monospace fonts are too light in comparison to surrounding heading text, give them a nudge */
h2 code {font-weight:bold;}

/* 

*/