MediaWiki:Common.css: Difference between revisions
From STX Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
/* CSS placed here will be applied to all skins */ | /* CSS placed here will be applied to all skins */ | ||
/* headings */ | |||
.mw-body h1, .mw-body-content h1 { font-size: 1.8em; font-weight: normal; } | |||
.mw-body h2, .mw-body-content h2 { font-size: 1.5em; font-weight: normal;} | |||
.mw-body h3, .mw-body-content h3 { font-size: 1.4em; font-weight: normal;} | |||
.mw-body h4, .mw-body-content h4 { font-size: 1.3em; font-weight: normal; } | |||
.mw-body h5, .mw-body-content h5 { font-size: 1.2em; font-weight: normal;} | |||
.mw-body h6, .mw-body-content h6 { font-size: 1.1em; font-weight: normal;} | |||
/* and, again, using this for *all* our tables... */ | /* and, again, using this for *all* our tables... */ | ||
| Line 161: | Line 170: | ||
div.keywords { | div.keywords { | ||
display:none; | display:none; | ||
} | |||
/* J.W. 2.8.2018 hotkey formatting */ | |||
kbd { | |||
display: inline-block; | |||
border: 1px solid #ccc; | |||
border-radius: 4px; | |||
padding: 0.1em 0.5em; | |||
margin: 0 0.2em; | |||
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset; | |||
background-color: #f7f7f7; | |||
} | |||
div.sourcelabel { | |||
font-weight: bold; | |||
} | } | ||
Latest revision as of 10:49, 11 September 2019
/* CSS placed here will be applied to all skins */
/* headings */
.mw-body h1, .mw-body-content h1 { font-size: 1.8em; font-weight: normal; }
.mw-body h2, .mw-body-content h2 { font-size: 1.5em; font-weight: normal;}
.mw-body h3, .mw-body-content h3 { font-size: 1.4em; font-weight: normal;}
.mw-body h4, .mw-body-content h4 { font-size: 1.3em; font-weight: normal; }
.mw-body h5, .mw-body-content h5 { font-size: 1.2em; font-weight: normal;}
.mw-body h6, .mw-body-content h6 { font-size: 1.1em; font-weight: normal;}
/* and, again, using this for *all* our tables... */
table {
border: 0px;
border-collapse: collapse;
}
table tr {
border: 1px solid;
border-color: #000000;
}
table th {
border: 1px solid;
border-color: #000000;
background-color:#F3F3F3;
vertical-align: top;
padding-left: 0.8em;
padding-right: 0.8em;
}
table td {
border: 1px solid;
border-color: #000000;
vertical-align: top;
padding-left: 0.8em;
padding-right: 0.8em;
padding-top: 0.2em;
padding-bottom: 0.2em;
}
/* C.G. 6.4.2011: einrahmen - einfacher, dünner Rand allüberall (wie von Toni gewünscht) */
table.einrahmen {
border: 0px;
border-collapse: collapse;
}
table.einrahmen tr {
border: 1px solid;
}
table.einrahmen th {
border: 1px solid;
background-color:#F3F3F3;
}
table.einrahmen td {
border: 1px solid;
}
/* C.G. 6.4.2011: keinrahmen - kein Rand */
table.keinrahmen {
border: 0px;
border-style: hidden;
border-collapse: collapse;
}
table.keinrahmen tr {
border: 0px;
}
table.keinrahmen th {
border: 0px;
border-style: hidden;
background-color:#F3F3F3;
}
table.keinrahmen td {
border: 0px;
border-style: hidden;
}
/* C.G. 6.4.2011: zweirahmen - zweifacher, dünner Rand allüberall (wie von Toni gewünscht) */
table.zweirahmen {
border: 1px;
border-collapse: separate;
border-spacing:2px;
border-style:double;
}
table.zweirahmen tr {
border: 1px;
border-style:double;
border-spacing:2px;
}
table.zweirahmen th {
border: 1px;
border-style:double;
background-color:#F3F3F3;
border-spacing:2px;
}
table.zweirahmen td {
border: 1px;
border-style:double;
border-spacing:2px;
}
/* C.G. 6.4.2011: sicherstellen, dass Variablennamen äquidistant gesetzt werden
J.W. 9.4.2015: background color no longer set - color used instead */
var { font-family: Courier, "Courier New", monospace; color: #9E4F55; font-weight: bold;}
code { font-family: Courier, "Courier New", monospace; background-color: #e0ffff; }
pre { font-family: Courier, "Courier New", monospace; background-color: #e0ffff; }
/* J.W. 20.5.2014: adding TOC limit functionality from default Mediawiki:Common.css */
/*
* Allow limiting of which header levels are shown in a TOC;
* <div class="toclimit-3">, for instance, will limit to
* showing ==headings== and ===headings=== but no further
* (as long as there are no =headings= on the page, which
* there shouldn't be according to the MoS).
* [[Vorlage:TOC limit]]
*/
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
/* J.W. 1.6.2015: adding ability to selectively turn auto-numbering off in table of contents
* Do this with the following code: <div class="noautonum">__TOC__</div>
*/
.noautonum .tocnumber { display: none; }
/* J.W. 26.8.2015
*
*/
.programmerguide {
background-color: white;
border: 1px solid black;
padding: 2px;
margin-bottom; 5px;
float: left;
}
table.wikitable {
clear: both;
}
/* J.W. 22.12.2015 hide the 'Main_Page' title */
body.page-Main_Page h1#firstHeading{ display: none; }
/* J.W. 12.9.2016 hide 'keywords' which are then searchable
e.g. add '<div class="keywords">time expression</div> to
the article 'Segment Expressions'. */
div.keywords {
display:none;
}
/* J.W. 2.8.2018 hotkey formatting */
kbd {
display: inline-block;
border: 1px solid #ccc;
border-radius: 4px;
padding: 0.1em 0.5em;
margin: 0 0.2em;
box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
background-color: #f7f7f7;
}
div.sourcelabel {
font-weight: bold;
}