Difference between revisions of "MediaWiki:Common.css"
From FansubWiki
(styling for collapsible tables) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 2: | Line 2: | ||
/*<pre>*/ | /*<pre>*/ | ||
| + | |||
| + | |||
| + | /* wikitable class for skinning normal tables */ | ||
| + | table.wikitable { | ||
| + | margin: 0.5em 0.5em 0.5em 0; | ||
| + | background: #f9f9f9; | ||
| + | border: 1px #aaa solid; | ||
| + | border-collapse: collapse; | ||
| + | } | ||
| + | .wikitable th, .wikitable td { | ||
| + | border: 1px #aaa solid; | ||
| + | padding: 0.2em 1em 0.2em 1em; | ||
| + | vertical-align: top; | ||
| + | } | ||
| + | .wikitable th { | ||
| + | text-align: center; | ||
| + | background: #f2f2ff; | ||
| + | } | ||
| + | .wikitable caption { | ||
| + | font-weight: bold; | ||
| + | } | ||
| + | |||
| + | /* Removes underlines from certain links */ | ||
| + | .nounderlines a { | ||
| + | text-decoration: none !important; | ||
| + | } | ||
| + | |||
| + | |||
| + | /* For template documentation */ | ||
| + | .template-documentation { | ||
| + | clear: both; | ||
| + | margin: 1em 0 0 0; | ||
| + | border: 1px solid #aaa; | ||
| + | background-color: #ecfcf4; | ||
| + | padding: 1em; | ||
| + | } | ||
| + | |||
/** Collapsible tables ********************************************************* | /** Collapsible tables ********************************************************* | ||
Latest revision as of 13:27, 26 July 2013
/* CSS placed here will be applied to all skins */
/*<pre>*/
/* wikitable class for skinning normal tables */
table.wikitable {
margin: 0.5em 0.5em 0.5em 0;
background: #f9f9f9;
border: 1px #aaa solid;
border-collapse: collapse;
}
.wikitable th, .wikitable td {
border: 1px #aaa solid;
padding: 0.2em 1em 0.2em 1em;
vertical-align: top;
}
.wikitable th {
text-align: center;
background: #f2f2ff;
}
.wikitable caption {
font-weight: bold;
}
/* Removes underlines from certain links */
.nounderlines a {
text-decoration: none !important;
}
/* For template documentation */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #aaa;
background-color: #ecfcf4;
padding: 1em;
}
/** Collapsible tables *********************************************************
*
* Description: Allows tables to be collapsed, showing only the header. See
* http://www.mediawiki.org/wiki/Manual:Collapsible_tables.
* Maintainers: [[en:User:R. Koot]]
*/
table.collapsed tr.collapsible {
display: none;
}
.collapseButton { /* 'show'/'hide' buttons created dynamically by the */
float: right; /* CollapsibleTables JavaScript in [[MediaWiki:Common.js]] */
font-weight: normal; /* are styled here so they can be customised. */
text-align: right;
width: auto;
}
/*</pre>*/