MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
K (Klappt's jetzt mit inlining?) |
Peu (Diskussion | Beiträge) (+toptextcells als Stil für Tabellen: Inhalt beginnt immer oben, wird *nicht* vertikal zentriert viel Spaß damit :) Hilfe folgt später) |
||
| Zeile 1: | Zeile 1: | ||
/** CSS an dieser Stelle wirkt sich auf alle Skins aus */ | /** CSS an dieser Stelle wirkt sich auf alle Skins aus */ | ||
| − | /** Definitionen aus Wikipedia: http://de.wikipedia.org/wiki/MediaWiki:Common.css | + | /** |
| + | * Für Tabellen, mit Rahmen und getöntem Hintergrund | ||
| + | * Definitionen aus Wikipedia: http://de.wikipedia.org/wiki/MediaWiki:Common.css | ||
| + | */ | ||
.wikitable, | .wikitable, | ||
.prettytable { | .prettytable { | ||
| Zeile 22: | Zeile 25: | ||
margin-right: inherit; | margin-right: inherit; | ||
font-weight: bold; | font-weight: bold; | ||
| + | } | ||
| + | |||
| + | /** | ||
| + | * Für Tabellen, deren Zellinhalt nicht vertikal zentriert, | ||
| + | * sondern an der Oberkante ausgerichtet werden soll | ||
| + | */ | ||
| + | .toptextcells td { | ||
| + | vertical-align: top; | ||
} | } | ||
Version vom 7. Januar 2009, 16:51 Uhr
/** CSS an dieser Stelle wirkt sich auf alle Skins aus */
/**
* Für Tabellen, mit Rahmen und getöntem Hintergrund
* Definitionen aus Wikipedia: http://de.wikipedia.org/wiki/MediaWiki:Common.css
*/
.wikitable,
.prettytable {
margin: 1em 1em 1em 0;
background: #f9f9f9;
border: 1px #AAA solid;
border-collapse: collapse;
empty-cells:show;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
border: 1px #AAA solid;
padding: 0.3em;
}
.wikitable caption,
.prettytable caption {
margin-left: inherit;
margin-right: inherit;
font-weight: bold;
}
/**
* Für Tabellen, deren Zellinhalt nicht vertikal zentriert,
* sondern an der Oberkante ausgerichtet werden soll
*/
.toptextcells td {
vertical-align: top;
}
.imagemap-inline, .imagemap-inline div {
display: inline;
position: static;
}
/** Bei Bedarf keine Bearbeiten-Links für Abschnitte anbieten.
Ist für Überschriften aus Vorlagen verdammt praktisch. ;-) **/
h1.noeditsection .editsection,
h2.noeditsection .editsection,
h3.noeditsection .editsection,
h4.noeditsection .editsection,
h5.noeditsection .editsection,
h6.noeditsection .editsection {
display: none;
}
/** Für die ein- und ausklappbaren Boxen. **/
.BoxToggle {
font-size: x-small;
float:right;
}
/** Für Boxen mit grüner Hintergrundfarbe und weißem Text.
Eignet sich bestens für besondere Navigationskarteireiter,
wie sie zum Beispiel auf http://wiki.vorratsdatenspeicherung.de/Freedom_Not_Fear_2008 eingesetzt werden.
**/
.whiteLinks a:link,
.whiteLinks a:visited,
.whiteLinks a:focus,
.whiteLinks a:hover,
.whiteLinks a:active {
color: #fff ! important;
}
.boldLinks a:link,
.boldLinks a:visited,
.boldLinks a:focus,
.boldLinks a:hover,
.boldLinks a:active {
font-weight: bold ! important;
}
.bolderLinks a:link,
.bolderLinks a:visited,
.bolderLinks a:focus,
.bolderLinks a:hover,
.bolderLinks a:active {
font-weight: bold ! important;
}