Difference between revisions of "MediaWiki:Common.css"

esse quam videri
Jump to: navigation, search
(replace old wikitable code with the one from wikipedia; it'll look nicer)
Line 1: Line 1:
 
/** CSS placed here will be applied to all skins */
 
/** CSS placed here will be applied to all skins */
  
 
+
/* wikitable/prettytable class for skinning normal tables */
table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td
+
table.wikitable,
 
+
table.prettytable {
{
+
    margin: 1em 1em 1em 0;
 
+
    background: #f9f9f9;
border-top-width: 1px;
+
    border: 1px #aaa solid;
border-right-width: 1px;
+
    border-collapse: collapse;
border-bottom-width: 1px;
 
border-left-width: 1px;
 
border-top-style: solid;
 
border-right-style: solid;
 
border-bottom-style: solid;
 
border-left-style: solid;
 
border-top-color: #aaaaaa;
 
border-right-color: #aaaaaa;
 
border-bottom-color: #aaaaaa;
 
border-left-color: #aaaaaa;
 
padding-top: 0.2em;
 
padding-right: 0.2em;
 
padding-bottom: 0.2em;
 
padding-left: 0.2em;
 
 
}
 
}
 
+
.wikitable th, .wikitable td,
table.wikitable th, table.prettytable th  
+
.prettytable th, .prettytable td {
 
+
    border: 1px #aaa solid;
{
+
    padding: 0.2em;
background-color: #f2f2f2;
+
}
background-image: none;
+
.wikitable th,
background-repeat: repeat;
+
.prettytable th {
background-attachment: scroll;
+
    background: #f2f2f2;
background-x-position: 0%;
+
    text-align: center;
background-y-position: 0%;
+
}
text-align: center;
+
.wikitable caption,
 +
.prettytable caption {
 +
    margin-left: inherit;
 +
    margin-right: inherit;
 +
    font-weight: bold;
 
}
 
}

Revision as of 16:29, 24 September 2008

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

/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
    margin: 1em 1em 1em 0;
    background: #f9f9f9;
    border: 1px #aaa solid;
    border-collapse: collapse;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
    border: 1px #aaa solid;
    padding: 0.2em;
}
.wikitable th,
.prettytable th {
    background: #f2f2f2;
    text-align: center;
}
.wikitable caption,
.prettytable caption {
    margin-left: inherit;
    margin-right: inherit;
    font-weight: bold;
}