Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
(wikitable, as requested in http://forum.el-wiki.net/viewtopic.php?f=3&t=703 users might have to force a reload to get their css files updated) |
(added styles for Template:Navbox ; cleanup) |
||
Line 73: | Line 73: | ||
position: relative; | position: relative; | ||
} | } | ||
− | /* Table specific | + | |
+ | /* Table specific styles, e.g. used in Weapons and Armour */ | ||
table.rightbordergrey * td, table.rightbordergrey * th { | table.rightbordergrey * td, table.rightbordergrey * th { | ||
border-right:1px solid grey; | border-right:1px solid grey; | ||
} | } | ||
− | /* wikitable class for skinning normal tables | + | /* wikitable class for skinning normal tables |
− | + | See: http://forum.el-wiki.net/viewtopic.php?t=703 | |
− | / | + | Styles were copied and modified from: |
+ | http://el-wiki.net/skins/common/shared.css | ||
+ | |||
Notes on el-wiki colors (from dark to light): | Notes on el-wiki colors (from dark to light): | ||
current nav menu: #d1d7b1 (good for table heading) | current nav menu: #d1d7b1 (good for table heading) | ||
Line 88: | Line 91: | ||
current background: #e9eccf | current background: #e9eccf | ||
*/ | */ | ||
− | table.wikitable | + | table.wikitable { |
− | { | ||
margin: 1em 1em 1em 0; | margin: 1em 1em 1em 0; | ||
− | background: #e0e4c5; | + | background: #e0e4c5; /* wikitable content background */ |
border: 1px solid gray; | border: 1px solid gray; | ||
border-collapse: collapse; | border-collapse: collapse; | ||
} | } | ||
− | |||
table.wikitable th, | table.wikitable th, | ||
− | table.wikitable td | + | table.wikitable td { |
− | { | ||
border: 1px solid gray; | border: 1px solid gray; | ||
padding: 0.2em; | padding: 0.2em; | ||
+ | } | ||
+ | table.wikitable th { | ||
+ | background: #d1d7b1; /* wikitable header background */ | ||
+ | text-align: center; | ||
+ | } | ||
+ | table.wikitable caption { | ||
+ | font-weight: bold; | ||
} | } | ||
− | table. | + | /* Default skin for navigation boxes |
− | { | + | See: http://forum.el-wiki.net/viewtopic.php?t=716 |
− | + | Styles were copied and modified from: | |
+ | http://en.wikipedia.org/wiki/MediaWiki:Common.css | ||
+ | */ | ||
+ | table.navbox { /* Navbox container style */ | ||
+ | border: 1px solid #aaa; | ||
+ | width: 100%; | ||
+ | margin: auto; | ||
+ | clear: both; | ||
+ | font-size: 88%; | ||
text-align: center; | text-align: center; | ||
+ | padding: 1px; | ||
+ | } | ||
+ | table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ | ||
+ | margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ | ||
+ | } | ||
+ | .navbox-title, | ||
+ | .navbox-abovebelow, | ||
+ | table.navbox th { | ||
+ | text-align: center; /* Title and above/below styles */ | ||
+ | padding-left: 1em; | ||
+ | padding-right: 1em; | ||
+ | } | ||
+ | .navbox-group { /* Group style */ | ||
+ | white-space: nowrap; | ||
+ | text-align: right; | ||
+ | font-weight: bold; | ||
+ | padding-left: 1em; | ||
+ | padding-right: 1em; | ||
+ | } | ||
+ | .navbox, .navbox-subgroup { | ||
+ | background: #e9eccf; /* Background color */ | ||
+ | } | ||
+ | .navbox-list { | ||
+ | border-color: #e9eccf; /* Must match background color */ | ||
+ | } | ||
+ | .navbox-title, | ||
+ | table.navbox th { | ||
+ | background: #d7ffb0; /* Level 1 color */ | ||
+ | } | ||
+ | .navbox-abovebelow, | ||
+ | .navbox-group, | ||
+ | .navbox-subgroup .navbox-title { | ||
+ | background: #e3facd; /* Level 2 color */ | ||
+ | } | ||
+ | .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { | ||
+ | background: #eaf7dc; /* Level 3 color */ | ||
+ | } | ||
+ | .navbox-even { | ||
+ | background: #e0e4c5; /* Even row striping */ | ||
+ | } | ||
+ | .navbox-odd { | ||
+ | background: transparent; /* Odd row striping */ | ||
} | } | ||
− | + | .collapseButton { /* 'show'/'hide' buttons created dynamically */ | |
− | + | float: right; /* by the CollapsibleTables javascript in */ | |
− | + | font-weight: normal; /* [[MediaWiki:Common.js]]are styled here */ | |
+ | text-align: right; /* so they can be customised. */ | ||
+ | width: auto; | ||
} | } | ||
+ | .navbox .collapseButton { /* In navboxes, the show/hide button balances */ | ||
+ | width: 6em; /* the vde links from [[Template:Tnavbar]], */ | ||
+ | } /* so they need to be the same width. */ |
Revision as of 00:08, 10 November 2010
/** CSS placed here will be applied to all skins */ /* FOCW header style */ #g_title p, #g_footer p, #g_description p { margin: 0; } #g_footer { font-size:0.85em; font-family:Georgia, "Times New Roman", Times, serif; color:#697335; text-align:center; margin:0px; } #page-title { font-family:Georgia, "Times New Roman", Times, serif; text-align:left; font-style:italic; font-size:2.25em;color:#697335;margin:0;border-bottom:3px solid #A0AA6D; padding-top:75px; border:none; } #container { width: 718px; text-align: left; padding: 0px; background-color:#E9ECCF; margin:0px auto; } #page-title { font-family:Georgia, "Times New Roman", Times, serif; text-align:left; font-style:italic; padding-top:75px; border:none; } #g_description { font-family:Georgia, "Times New Roman", Times, serif; text-align:right; padding-left:25px; padding-right:25px; font-style:italic; color:#A0AA6D; line-height:4.75em; } #header { background: URL("./skins/common/images/skin_branch_repeat.jpg") repeat-x top left; position: relative; background-color: #D2D6B1; } #header2 { background: URL("./skins/common/images/skin_branch_right.jpg") no-repeat top right; position: relative; } #header .wrapper { background: URL("./skins/common/images/skin_branch_top.jpg") no-repeat top left; padding-left: 260px; } #onecolumn #main-content .wrapper {} body {background:#E9ECCF; text-align:left; } #bodyContent { width: 100%; min-width: 540px; background-color:#E9ECCF; position: relative; } /* Table specific styles, e.g. used in Weapons and Armour */ table.rightbordergrey * td, table.rightbordergrey * th { border-right:1px solid grey; } /* wikitable class for skinning normal tables See: http://forum.el-wiki.net/viewtopic.php?t=703 Styles were copied and modified from: http://el-wiki.net/skins/common/shared.css Notes on el-wiki colors (from dark to light): current nav menu: #d1d7b1 (good for table heading) approx (bg+nav)/2: #dde1bf (too dark for table content; too light for table heading) approx (bg+nav)/3: #e0e4c5 (good for table content) approx (bg+nav)/4: #e3e7c7 (too similar to background) current background: #e9eccf */ table.wikitable { margin: 1em 1em 1em 0; background: #e0e4c5; /* wikitable content background */ border: 1px solid gray; border-collapse: collapse; } table.wikitable th, table.wikitable td { border: 1px solid gray; padding: 0.2em; } table.wikitable th { background: #d1d7b1; /* wikitable header background */ text-align: center; } table.wikitable caption { font-weight: bold; } /* Default skin for navigation boxes See: http://forum.el-wiki.net/viewtopic.php?t=716 Styles were copied and modified from: http://en.wikipedia.org/wiki/MediaWiki:Common.css */ table.navbox { /* Navbox container style */ border: 1px solid #aaa; width: 100%; margin: auto; clear: both; font-size: 88%; text-align: center; padding: 1px; } table.navbox + table.navbox { /* Single pixel border between adjacent navboxes */ margin-top: -1px; /* (doesn't work for IE6, but that's okay) */ } .navbox-title, .navbox-abovebelow, table.navbox th { text-align: center; /* Title and above/below styles */ padding-left: 1em; padding-right: 1em; } .navbox-group { /* Group style */ white-space: nowrap; text-align: right; font-weight: bold; padding-left: 1em; padding-right: 1em; } .navbox, .navbox-subgroup { background: #e9eccf; /* Background color */ } .navbox-list { border-color: #e9eccf; /* Must match background color */ } .navbox-title, table.navbox th { background: #d7ffb0; /* Level 1 color */ } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title { background: #e3facd; /* Level 2 color */ } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { background: #eaf7dc; /* Level 3 color */ } .navbox-even { background: #e0e4c5; /* Even row striping */ } .navbox-odd { background: transparent; /* Odd row striping */ } .collapseButton { /* 'show'/'hide' buttons created dynamically */ float: right; /* by the CollapsibleTables javascript in */ font-weight: normal; /* [[MediaWiki:Common.js]]are styled here */ text-align: right; /* so they can be customised. */ width: auto; } .navbox .collapseButton { /* In navboxes, the show/hide button balances */ width: 6em; /* the vde links from [[Template:Tnavbar]], */ } /* so they need to be the same width. */