Difference between revisions of "MediaWiki:Common.css"

From GRFSpecs
Jump to navigationJump to search
m (another change)
(separate style templates for <pre> tag: example, pseudo and small (=max height 200px))
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
/* CSS placed here will be applied to all skins */
 
/* CSS placed here will be applied to all skins */
   
 
table.wikitable td, th {
/* Normal font styling for table row headers with scope="row" tag */
 
  +
border: 1px solid #CCCCCC;
.wikitable.plainrowheaders th[scope=row] {
 
font-weight: normal;
+
padding: 0 5px;
  +
}
text-align: left;
 
  +
table {
  +
border-collapse: collapse;
  +
empty-cells: show;
  +
background: #FAFAFF;
 
}
 
}
   
  +
td, th {
table.wikitable td, table.wikitable th {
 
border: 1px solid #ddd;
+
border: 1px solid #CCCCCC;
padding: 1px;
+
padding: 0px 5px;
cellpadding: 1px;
 
cellspacing: 1px;
 
 
}
 
}
   
  +
code {
/* lists in data cells are always left-aligned */
 
  +
color: darkgreen;
.wikitable td ul,
 
  +
}
.wikitable td ol,
 
  +
.wikitable td dl {
 
  +
pre {
text-align: left;
 
  +
color: black;
  +
white-space: pre-wrap
  +
}
  +
pre.example {
  +
color: darkblue;
  +
}
  +
pre.pseudo {
  +
color: black;
  +
}
  +
pre.small {
  +
max-height: 200px;
  +
overflow:scroll;
  +
}
  +
  +
  +
/* Pad Google AdSense box in portlet in sidebar */
  +
#p-googleadsense .pBody {
  +
padding-top: 5px;
 
text-align: center;
 
}
 
}

Latest revision as of 21:22, 27 August 2011

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

table.wikitable td, th {
    border: 1px solid #CCCCCC;
    padding: 0 5px;
}
table {
    border-collapse: collapse;
    empty-cells: show;
    background: #FAFAFF;
}

td, th {
    border:  1px solid #CCCCCC;
    padding: 0px 5px;
}

code {
    color: darkgreen;
}

pre {
    color: black;
    white-space: pre-wrap
}
pre.example {
    color: darkblue;
}
pre.pseudo {
    color: black;
}
pre.small {
   max-height: 200px; 
   overflow:scroll;
}


/* Pad Google AdSense box in portlet in sidebar */
#p-googleadsense .pBody {
    padding-top: 5px;
    text-align:  center;
}