MediaWiki:Common.css
Материал из NissanWiki
(Различия между версиями)
WikiSysop (Обсуждение | вклад) (+editpage-specialchars) |
K001 (Обсуждение | вклад) (+navbox, +collapsible buttons) |
||
| Строка 60: | Строка 60: | ||
border-style: inset; | border-style: inset; | ||
} | } | ||
| + | |||
| + | |||
| + | /* Default skin for navigation boxes */ | ||
| + | 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: #fdfdfd; /* Background color */ | ||
| + | } | ||
| + | .navbox-list { | ||
| + | border-color: #fdfdfd; /* Must match background color */ | ||
| + | } | ||
| + | .navbox-title, | ||
| + | table.navbox th { | ||
| + | background: #ccccff; /* Level 1 color */ | ||
| + | } | ||
| + | .navbox-abovebelow, | ||
| + | .navbox-group, | ||
| + | .navbox-subgroup .navbox-title { | ||
| + | background: #ddddff; /* Level 2 color */ | ||
| + | } | ||
| + | .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow { | ||
| + | background: #e6e6ff; /* Level 3 color */ | ||
| + | } | ||
| + | .navbox-even { | ||
| + | background: #f7f7f7; /* 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. */ | ||
Версия 12:48, 4 сентября 2009
/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #7dae96 solid;
border-collapse: collapse;
text-align: left;
}
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 tr .odd,
table.prettytable tr .odd {
/*every second line should be shaded */
background-color: transparent;
}
table.wikitable caption,
table.prettytable caption {
margin-left: inherit;
margin-right: inherit;
}
/* For MediaWiki:Edittools 'insert chars' to look like buttons.
Originally taken from #my-buttons at http://ru.wikipedia.org/wiki/MediaWiki:Monobook.css
*/
#editpage-specialchars {
padding: 0.5em;
}
#editpage-specialchars a {
color: black;
background-color: #ccddee;
font-weight: bold;
font-size: 0.9em;
text-decoration: none;
border: thin #006699 outset;
padding: 0 0.1em 0.1em 0.1em;
}
#editpage-specialchars a:hover {
background-color: #bbccdd;
}
#editpage-specialchars a:active {
background-color: #bbccdd;
border-style: inset;
}
/* Default skin for navigation boxes */
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: #fdfdfd; /* Background color */
}
.navbox-list {
border-color: #fdfdfd; /* Must match background color */
}
.navbox-title,
table.navbox th {
background: #ccccff; /* Level 1 color */
}
.navbox-abovebelow,
.navbox-group,
.navbox-subgroup .navbox-title {
background: #ddddff; /* Level 2 color */
}
.navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow {
background: #e6e6ff; /* Level 3 color */
}
.navbox-even {
background: #f7f7f7; /* 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. */
