Difference between revisions of "MediaWiki:Common.css"
Line 76: | Line 76: | ||
table.datatable tr { background-color: #cccccc; } | table.datatable tr { background-color: #cccccc; } | ||
table.datatable tr:hover { background-color: #ffffcc; } | table.datatable tr:hover { background-color: #ffffcc; } | ||
+ | |||
+ | |||
+ | /* SMW tables */ | ||
+ | table.smwtable { border:0; } | ||
+ | table.smwtable th, table.smwtable td { padding: 4px; } | ||
+ | table.smwtable th { text-align: left; } | ||
+ | table.smwtable tr { } |
Revision as of 00:02, 7 February 2009
/* CSS placed here will be applied to all skins */ /* Copied from Mediawiki.org */ /* 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; } /* indenttable class for tables that are indented */ table.indenttable { margin: 0 1em 0 2em; background: #f9f9f9; border: 1px #aaa solid; border-collapse: collapse; empty-cells:show; } .indenttable th, .indenttable td { border: 1px #aaa solid; padding: 0.2em; } .indenttable th { background: #f2f2f2; text-align: center; } .indenttable caption { font-weight: bold; } /* mucolumns class to list items in multiple columns */ table.multicolumns { margin: 1em 1em 1em 0; empty-cells:show; } .mucolumns th, .mucolumns td { padding-right: 1em; vertical-align: top; } /* General purpose "pretty (data) tables" */ table.datatable { background-color: transparent; } table.datatable th, table.datatable td { padding: 4px; } table.datatable th { text-align: left; background-color: #999999; } table.datatable tr { background-color: #cccccc; } table.datatable tr:hover { background-color: #ffffcc; } /* SMW tables */ table.smwtable { border:0; } table.smwtable th, table.smwtable td { padding: 4px; } table.smwtable th { text-align: left; } table.smwtable tr { }