Difference between revisions of "MediaWiki:Common.css"

From C4 Wiki
Jump to: navigation, search
(Wiki-Table CSS for pretty tables...)
 
(Make paragraphs a bit denser in wikitable)
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
     border-collapse: collapse;
 
     border-collapse: collapse;
 
}
 
}
.wikitable th, .wikitable td {
+
table.wikitable th, table.wikitable td {
 
     border: 1px #aaa solid;
 
     border: 1px #aaa solid;
 
     padding: 0.2em;
 
     padding: 0.2em;
 
}
 
}
.wikitable th {
+
table.wikitable th {
 
     background: #f2f2f2;
 
     background: #f2f2f2;
 
     text-align: center;
 
     text-align: center;
 
}
 
}
.wikitable caption {
+
table.wikitable caption {
 
     font-weight: bold;
 
     font-weight: bold;
 +
}
 +
table.wikitable p {
 +
    line-height: 1.0em;
 +
}
 +
 +
div#mw-anon-edit-warning {
 +
    border: 4px solid red;
 +
    padding: 4px;
 +
    margin: 10px 4px;
 
}
 
}

Latest revision as of 14:11, 16 October 2014

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

div#mw-anon-edit-warning {
    border: 4px solid red;
    padding: 4px;
    margin: 10px 4px;
}