MediaWiki:Common.css: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(41 intermediate revisions by 2 users not shown) | |||
Line 26: | Line 26: | ||
empty-cells:show; |
empty-cells:show; |
||
} |
} |
||
table.wikitable th, table.wikitable td, |
table.wikitable > th, table.wikitable > td, |
||
table.prettytable th, table.prettytable td { |
table.prettytable > th, table.prettytable > td { |
||
border: 1px #aaaaaa solid; |
border: 1px #aaaaaa solid; |
||
padding: 0.2em 0.4em; |
padding: 0.2em 0.4em; |
||
} |
} |
||
table.wikitable th, table.wikitable td.hl3, table.wikitable th.hl3, |
table.wikitable > th, table.wikitable > td.hl3, table.wikitable > th.hl3, |
||
table.prettytable th, table.prettytable td.hl3, table.wikitable th.hl3 { |
table.prettytable > th, table.prettytable > td.hl3, table.wikitable > th.hl3 { |
||
background: #8da7d6; |
background: #8da7d6; |
||
text-align: center; |
text-align: center; |
||
} |
} |
||
table.wikitable td.hl1, table.wikitable th.hl1, |
table.wikitable > td.hl1, table.wikitable > th.hl1, |
||
table.prettytable td.hl1, table.wikitable th.hl1 { |
table.prettytable > td.hl1, table.wikitable > th.hl1 { |
||
background: #c5d8fc; |
background: #c5d8fc; |
||
text-align: center; |
text-align: center; |
||
} |
} |
||
table.wikitable td.hl2, table.wikitable th.hl2, |
table.wikitable > td.hl2, table.wikitable > th.hl2, |
||
table.prettytable td.hl2, table.wikitable th.hl2 { |
table.prettytable > td.hl2, table.wikitable > th.hl2 { |
||
background: #a7c1f2; |
background: #a7c1f2; |
||
text-align: center; |
text-align: center; |
||
Line 55: | Line 55: | ||
/* General purpose "pretty (data) tables" */ |
/* General purpose "pretty (data) tables" */ |
||
table.datatable { background-color: transparent; } |
table.datatable { background-color: transparent; } |
||
table.datatable th, table.datatable td { padding: 4px; } |
table.datatable > th, table.datatable > td { padding: 4px; } |
||
table.datatable th { text-align: left; background-color: #999999; } |
table.datatable > th { text-align: left; background-color: #999999; } |
||
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 |
/* Standard Navigationsleisten, aka box hiding thingy |
||
Line 109: | Line 109: | ||
{ |
{ |
||
width:8.0em; |
width:8.0em; |
||
font-size: x-small; |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
font-size: x-small; |
font-size: x-small; |
||
} |
} |
||
Line 125: | Line 120: | ||
width:7.0em; |
width:7.0em; |
||
font-size: x-small; |
font-size: x-small; |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
} |
} |
||
table.install_log td:first-child + td + td, table.uninstall_log td:first-child + td + td +td, table.install_simple_log td:first-child + td |
table.install_log td:first-child + td + td, table.uninstall_log td:first-child + td + td +td, table.install_simple_log td:first-child + td |
||
Line 131: | Line 130: | ||
/* font-style:italic; */ |
/* font-style:italic; */ |
||
} |
} |
||
table.install_log, table.uninstall_log, table. |
table.install_log, table.uninstall_log, table.install_simple_log, table.install_log td, table.uninstall_log td, table.install_simple_log td |
||
{ |
{ |
||
border-collapse: collapse; |
border-collapse: collapse; |
||
Line 142: | Line 141: | ||
{ |
{ |
||
border: hidden; |
border: hidden; |
||
width: 100%; |
|||
} |
} |
||
/** GeSHi Syntax Highlight - custom styles */ |
/** GeSHi Syntax Highlight - custom styles */ |
||
/** ... by default, we add a left border + left padding + left margin + lightgray background (for clarity) */ |
/** ... by default, we add a left border + left padding + left margin + lightgray background (for clarity) */ |
||
/** No need for background-color: #f9f9f9; -- already in <pre> tag */ |
|||
pre |
pre |
||
{ |
{ |
||
Line 152: | Line 153: | ||
border: none; |
border: none; |
||
border-left: 1px dashed #2f6fab; |
border-left: 1px dashed #2f6fab; |
||
⚫ | |||
} |
} |
||
.mw-highlight { |
|||
/** GeSHi Syntax Highlight - custom styles */ |
|||
⚫ | |||
/** ... by default, we add a left border + left padding + left margin + lightgray background (for clarity) */ |
|||
div.mw-geshi |
|||
{ |
|||
margin: 0.5em 0em 0.5em 2em; |
|||
padding: 0em 0em 0em 1em; |
|||
border-left: 1px dashed #2f6fab; |
|||
background-color: #f9f9f9; |
|||
} |
} |
||
Latest revision as of 20:38, 1 December 2016
/*
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%;
}
/* install_log and uninstall_log class for install log table */
table.install_log td:first-child, table.uninstall_log td:first-child
{
width:8.0em;
font-size: x-small;
}
table.install_log td:first-child:before, table.uninstall_log td:first-child:before, table.install_simple_log td:first-child:before
{
content:url(/miki/skins/monobook/bullet.gif);
margin-right:0.6em;
}
table.uninstall_log td:first-child + td
{
width:7.0em;
font-size: x-small;
}
table.install_simple_log td:first-child
{
width:30%;
}
table.install_log td:first-child + td + td, table.uninstall_log td:first-child + td + td +td, table.install_simple_log td:first-child + td
{
font-size:x-small;
/* font-style:italic; */
}
table.install_log, table.uninstall_log, table.install_simple_log, table.install_log td, table.uninstall_log td, table.install_simple_log td
{
border-collapse: collapse;
empty-cells: show;
border-bottom: 1px solid lightgray;
padding:0em 0.3em;
border-spacing:0px;
}
table.install_log, table.uninstall_log, table.install_simple_log
{
border: hidden;
width: 100%;
}
/** GeSHi Syntax Highlight - custom styles */
/** ... by default, we add a left border + left padding + left margin + lightgray background (for clarity) */
/** No need for background-color: #f9f9f9; -- already in <pre> tag */
pre
{
margin: 0.5em 0em 0.5em 2em;
padding: 0em 0em 0em 1em;
border: none;
border-left: 1px dashed #2f6fab;
}
.mw-highlight {
background: none;
}
/** ... except if the <source> tag is enclosed in a <div class="noborder"> */
div.noborder div.mw-geshi
{
margin: 0px;
padding: 0px;
border-left: none;
background-color: inherit;
}
/*
</nowiki></pre>
*/