MediaWiki:Common.css: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 6: Line 6:
     text-align:  center;
     text-align:  center;


} /*
}


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


.dmenu { width: 150px }  
table.wikitable,
table.prettytable {
  margin: 1em 1em 1em 0;
  background: #f9f9f9;
  border: 1px #aaaaaa solid;
  border-collapse: collapse;
}


.dmenu, .dmenu ul { /* all lists */ padding: 0; margin: 0; list-style: none; } .dmenu .selflink { font-weight: normal; }  
table.wikitable th, table.wikitable td,
table.prettytable th, table.prettytable td {
  border: 1px #aaaaaa solid;
  padding: 0.2em;
}


.dmenu li { /* all list items */ position: relative; float: left; width: 140px; z-index: 100; }  
table.wikitable th,
table.prettytable th {
  background: #f2f2f2;
  text-align: center;
}


.dmenu li, .dmenu li.even a, .dmenu li.odd a, .dmenu li li, .dmenu li li a, .dmenu li li li, .dmenu li li li a { color : black; }
table.wikitable caption,
 
table.prettytable caption {
.dmenu li li { margin: 0; }
  margin-left: inherit;
 
  margin-right: inherit;
.dmenu li ul { /* second-level lists */ position: absolute; left: -999em; z-index: 101; border: 1px solid #ccc; }
  font-weight: bold;
 
}
.dmenu li ul ul { /* third-and-above-level lists */ position: absolute; left: -999em; margin: 0 0 0 0; z-index: 102; }
 
.dmenu li.odd .submenu { width: 12px; height: 15px; float: right; background: url(/common/images/rarr-lt.png) 0 3px no-repeat; } .dmenu li.even .submenu { width: 12px; height: 15px; float: right; background: url(/common/images/rarr-dk.png) 0 3px no-repeat; } .dmenu li.odd { background: #E9EDF4; border: 2px solid #E9EDF4; } .dmenu li.even { background: #D0D8E8; border: 2px solid #D0D8E8; }
 
.dmenu li:hover, .dmenu li.sfhover { border: 2px solid #385D8A; }  


.dmenu li:hover ul ul, .dmenu li:hover ul ul ul, .dmenu li.sfhover ul ul, .dmenu li.sfhover ul ul ul { left: -999em; }  
.prophecy { padding-bottom: 1em; }
 
     
.dmenu li:hover ul, .dmenu li li:hover ul, .dmenu li li li:hover ul, .dmenu li.sfhover ul, .dmenu li li.sfhover ul, .dmenu li li li.sfhover ul { /* lists nested under hovered list items */ left: 142px; top: -3px; }
/* 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). */
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
.toclimit-2 .toclevel-2 {display:none;}
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
.toclimit-3 .toclevel-3 {display:none;}
font-weight: normal; /* are styled here so they can be customised.   */
.toclimit-4 .toclevel-4 {display:none;}
text-align: right;
.toclimit-5 .toclevel-5 {display:none;}
width: auto;
.toclimit-6 .toclevel-6 {display:none;}
}
.toclimit-7 .toclevel-7 {display:none;}

Revision as of 23:25, 11 September 2010

/* CSS placed here will be applied to all skins */ 

#p-googleadsense .pBody {

    padding-top: 5px;
    text-align:  center;

}

/* 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;
  font-weight: bold;
}

.prophecy { padding-bottom: 1em; }
       
/* 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-2 {display:none;}
.toclimit-3 .toclevel-3 {display:none;}
.toclimit-4 .toclevel-4 {display:none;}
.toclimit-5 .toclevel-5 {display:none;}
.toclimit-6 .toclevel-6 {display:none;}
.toclimit-7 .toclevel-7 {display:none;}