Difference between revisions of "MediaWiki:Common.css"

From RPC Library
Jump to navigation Jump to search
(Created page with "CSS placed here will be applied to all skins: Infobox template style: .infobox { border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; marg...")
 
Line 29: Line 29:
 
.infobox.bordered .borderless th {
 
.infobox.bordered .borderless th {
 
   border: 0;
 
   border: 0;
 +
}
 +
 +
/* 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 {
 +
    margin: 0 0 0 2em;
 
}
 
}

Revision as of 19:53, 30 March 2013

/* CSS placed here will be applied to all skins */
/* 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;
}

/* 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 { 
    margin: 0 0 0 2em; 
}