Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(color coding) |
(added pretty table) |
||
Line 3: | Line 3: | ||
.mw-plusminus-pos { color: #006500; } | .mw-plusminus-pos { color: #006500; } | ||
.mw-plusminus-neg { color: #8B0000; } | .mw-plusminus-neg { color: #8B0000; } | ||
+ | |||
+ | /* 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; | ||
+ | } |
Latest revision as of 21:12, 4 November 2007
/** CSS placed here will be applied to all skins */ .mw-plusminus-pos { color: #006500; } .mw-plusminus-neg { color: #8B0000; } /* 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; }