MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
(Partial import from MediaWiki) |
(NavFrame NavHead NavContent style needed for Template:Hidden) |
||
Line 59: | Line 59: | ||
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; } |
||
/* Standard Navigationsleisten, aka box hiding thingy |
|||
from .de. Documentation at [[Wikipedia:NavFrame]]. */ |
|||
div.NavFrame { |
|||
margin: 0; |
|||
padding: 4px; |
|||
border: 1px solid #aaa; |
|||
text-align: center; |
|||
border-collapse: collapse; |
|||
font-size: 95%; |
|||
} |
|||
div.NavFrame + div.NavFrame { |
|||
border-top-style: none; |
|||
border-top-style: hidden; |
|||
} |
|||
div.NavPic { |
|||
background-color: #fff; |
|||
margin: 0; |
|||
padding: 2px; |
|||
float: left; |
|||
} |
|||
div.NavFrame div.NavHead { |
|||
height: 1.6em; |
|||
font-weight: bold; |
|||
background-color: #ccf; |
|||
position: relative; |
|||
} |
|||
div.NavFrame p, |
|||
div.NavFrame div.NavContent, |
|||
div.NavFrame div.NavContent p { |
|||
font-size: 100%; |
|||
} |
|||
div.NavEnd { |
|||
margin: 0; |
|||
padding: 0; |
|||
line-height: 1px; |
|||
clear: both; |
|||
} |
|||
a.NavToggle { |
|||
position: absolute; |
|||
top: 0; |
|||
right: 3px; |
|||
font-weight: normal; |
|||
font-size: 90%; |
|||
} |
Revision as of 13:16, 27 October 2009
/*
This is the CSS for all skins (for all users) on MediaWiki.org.
SECTIONS:
1. Indication of namespaces
2. Color classes for content
3. Special pages
4. Main page styling
5. Sidebar external links
6. Extension:Matrix stuff
7. Wikitables, infobox templates, warnings, and other such stylings
8. Some other small things
*/
/* <pre><nowiki> */
/***** 7. WIKITABLES, INFOBOX TEMPLATES, WARNINGS AND OTHER SUCH STYLINGS *****/
/* 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;
}
/* 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; }
/* Standard Navigationsleisten, aka box hiding thingy
from .de. Documentation at [[Wikipedia:NavFrame]]. */
div.NavFrame {
margin: 0;
padding: 4px;
border: 1px solid #aaa;
text-align: center;
border-collapse: collapse;
font-size: 95%;
}
div.NavFrame + div.NavFrame {
border-top-style: none;
border-top-style: hidden;
}
div.NavPic {
background-color: #fff;
margin: 0;
padding: 2px;
float: left;
}
div.NavFrame div.NavHead {
height: 1.6em;
font-weight: bold;
background-color: #ccf;
position: relative;
}
div.NavFrame p,
div.NavFrame div.NavContent,
div.NavFrame div.NavContent p {
font-size: 100%;
}
div.NavEnd {
margin: 0;
padding: 0;
line-height: 1px;
clear: both;
}
a.NavToggle {
position: absolute;
top: 0;
right: 3px;
font-weight: normal;
font-size: 90%;
}