Difference between revisions of "MediaWiki:Common.css"
From CHG-Wiki
Jump to navigationJump to searchm (Experimenting with proper CSS markup.) |
m |
||
Line 10: | Line 10: | ||
} | } | ||
− | table.wikitable> tr> th | + | table.wikitable> tr> th, |
− | table.wikitable> tr> td | + | table.wikitable> tr> td, |
− | table.wikitable> *> tr> th | + | table.wikitable> *> tr> th, |
table.wikitable> *> tr> td { | table.wikitable> *> tr> td { | ||
border: 1px #cccc99 solid; | border: 1px #cccc99 solid; | ||
Line 18: | Line 18: | ||
} | } | ||
− | table.wikitable> tr> th | + | table.wikitable> tr> th, |
table.wikitable> *> tr> th { | table.wikitable> *> tr> th { | ||
background-color: #ffec8b; | background-color: #ffec8b; |
Revision as of 12:20, 2 November 2012
/* CSS placed here will be applied to all skins */ /* Wikitable */ table.wikitable { margin: 1em 1em 1em 5px; background-color: #ffffff; border: 1px #cccc99 solid; empty-cells:show; font-size: 95%; } table.wikitable> tr> th, table.wikitable> tr> td, table.wikitable> *> tr> th, table.wikitable> *> tr> td { border: 1px #cccc99 solid; padding: 0.2em; } table.wikitable> tr> th, table.wikitable> *> tr> th { background-color: #ffec8b; text-align: center; } .wikitable th { background-color: #ffec8b ! important; text-align: center; } /* 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; empty-cells: show; } table.wikitable th, table.wikitable td, table.prettytable th, table.prettytable td { border: 1px #aaaaaa solid; padding: 0.2em 0.4em; } table.wikitable th, table.wikitable td.hl3, table.wikitable th.hl3, table.prettytable th, table.prettytable td.hl3, table.wikitable th.hl3 { background: #8da7d6; text-align: center; } table.wikitable td.hl1, table.wikitable th.hl1, table.prettytable td.hl1, table.wikitable th.hl1 { background: #c5d8fc; text-align: center; } table.wikitable td.hl2, table.wikitable th.hl2, table.prettytable td.hl2, table.wikitable th.hl2 { background: #a7c1f2; text-align: center; } table.wikitable caption, table.prettytable caption { margin-left: inherit; margin-right: inherit; font-weight: bold; }