MediaWiki:Common.css: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 8: | Zeile 8: | ||
--content-bg: #3a332d; | --content-bg: #3a332d; | ||
--text-color: #e6d5c4; | --text-color: #e6d5c4; | ||
--content-text: #ffffff; /* Hellerer Text für Content-Bereich */ | |||
--link-color: #dfc5a1; | --link-color: #dfc5a1; | ||
--header-color: #e6c9a3; | --header-color: #e6c9a3; | ||
| Zeile 47: | Zeile 48: | ||
border-radius: 4px; | border-radius: 4px; | ||
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); | box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3); | ||
margin: 1em 0 1em 11em; | margin: 1em 0 1em 11em; | ||
position: relative; | position: relative; | ||
width: auto; | width: auto; | ||
min-width: 45em; | min-width: 45em; | ||
color: var(--content-text); /* Hellerer Text im Content-Bereich */ | |||
} | } | ||
| Zeile 56: | Zeile 58: | ||
background-color: var(--main-bg); | background-color: var(--main-bg); | ||
position: absolute; | position: absolute; | ||
width: calc(100% - 11em); | width: calc(100% - 11em); | ||
margin-left: 11em; | margin-left: 11em; | ||
} | } | ||
| Zeile 68: | Zeile 70: | ||
} | } | ||
/* | /* Überschriften */ | ||
h1, h2, h3, h4, h5, h6 { | h1, h2, h3, h4, h5, h6 { | ||
color: var(--header-color); | color: var(--header-color); | ||
| Zeile 76: | Zeile 78: | ||
} | } | ||
/* Einheitliche Linkfarben für alle Zustände */ | |||
a, | a, | ||
a:visited, | a:visited, | ||
| Zeile 95: | Zeile 98: | ||
} | } | ||
/* Hover-Effekt nur mit Unterstreichung */ | |||
a:hover, | a:hover, | ||
a.new:hover, | a.new:hover, | ||
| Zeile 106: | Zeile 110: | ||
} | } | ||
/* Navigation Tabs */ | |||
.vector-menu-tabs, .vector-menu-tabs a { | .vector-menu-tabs, .vector-menu-tabs a { | ||
background-color: var(--main-bg); | background-color: var(--main-bg); | ||
| Zeile 117: | Zeile 122: | ||
} | } | ||
/* Suchfeld */ | |||
#searchInput { | #searchInput { | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
| Zeile 131: | Zeile 137: | ||
} | } | ||
/* Linke Sidebar */ | |||
#mw-panel .portal { | #mw-panel .portal { | ||
background-color: var(--main-bg); | background-color: var(--main-bg); | ||
| Zeile 139: | Zeile 146: | ||
} | } | ||
/* Tabellen */ | |||
table.wikitable { | table.wikitable { | ||
background-color: var(--content-bg); | background-color: var(--content-bg); | ||
| Zeile 158: | Zeile 166: | ||
border: 1px solid var(--border-color); | border: 1px solid var(--border-color); | ||
padding: 0.5em; | padding: 0.5em; | ||
color: var(--content-text); /* Hellerer Text in Tabellenzellen */ | |||
} | } | ||
/* Bearbeitungsbereich */ | |||
#editform textarea { | #editform textarea { | ||
background-color: var(--input-bg); | background-color: var(--input-bg); | ||
| Zeile 167: | Zeile 177: | ||
} | } | ||
/* Buttons */ | |||
.mw-ui-button { | .mw-ui-button { | ||
background-color: var(--link-color); | background-color: var(--link-color); | ||
| Zeile 180: | Zeile 191: | ||
} | } | ||
/* Code und Vorformatierter Text */ | |||
pre, code { | pre, code { | ||
background-color: var(--input-bg); | background-color: var(--input-bg); | ||
| Zeile 185: | Zeile 197: | ||
padding: 0.2em 0.4em; | padding: 0.2em 0.4em; | ||
border-radius: 3px; | border-radius: 3px; | ||
color: var(--content-text); /* Hellerer Text für Code-Blöcke */ | |||
} | } | ||
/* Infoboxen und Warnungen */ | |||
.mw-message-box { | .mw-message-box { | ||
background-color: var(--input-bg); | background-color: var(--input-bg); | ||
border-color: var(--border-color); | border-color: var(--border-color); | ||
color: var(--text | color: var(--content-text); /* Hellerer Text für Meldungen */ | ||
} | } | ||
/* Entfernen der roten Farbe für neue Artikel-Links */ | |||
a.new::after { | a.new::after { | ||
content: " (noch nicht angelegt)"; | content: " (noch nicht angelegt)"; | ||
| Zeile 198: | Zeile 213: | ||
} | } | ||
/* Vector 2010 spezifische Anpassungen für Tabs */ | |||
div#mw-head div.vector-menu h3 { | div#mw-head div.vector-menu h3 { | ||
background-color: var(--main-bg); | background-color: var(--main-bg); | ||
Version vom 19. November 2024, 11:50 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
/* Library Theme für MediaWiki - Vector 2010 Anpassung */
/* Grundlegende Farben */
:root {
--main-bg: #2c2620;
--content-bg: #3a332d;
--text-color: #e6d5c4;
--content-text: #ffffff; /* Hellerer Text für Content-Bereich */
--link-color: #dfc5a1;
--header-color: #e6c9a3;
--border-color: #564b41;
--input-bg: #463c34;
}
/* Basis-Layout und Header-Bereich für Vector 2010 */
body {
background-color: var(--main-bg);
color: var(--text-color);
font-family: 'Georgia', serif;
}
/* Vector-spezifische Anpassungen für den oberen Bereich */
#mw-page-base {
background-color: var(--main-bg);
background-image: none;
}
#mw-head-base {
background-color: var(--main-bg);
background-image: none;
}
/* Korrektur der Navigation und des Inhaltslayouts */
#mw-panel {
background-color: var(--main-bg);
color: var(--text-color);
position: absolute;
width: 10em;
left: 0;
}
#content {
background-color: var(--content-bg);
padding: 2em;
border: 1px solid var(--border-color);
border-radius: 4px;
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
margin: 1em 0 1em 11em;
position: relative;
width: auto;
min-width: 45em;
color: var(--content-text); /* Hellerer Text im Content-Bereich */
}
div#mw-head {
background-color: var(--main-bg);
position: absolute;
width: calc(100% - 11em);
margin-left: 11em;
}
#p-personal {
background-color: var(--main-bg);
}
#left-navigation, #right-navigation {
background-color: var(--main-bg);
}
/* Überschriften */
h1, h2, h3, h4, h5, h6 {
color: var(--header-color);
font-family: 'Libre Baskerville', Georgia, serif;
border-bottom: 1px solid var(--border-color);
padding-bottom: 0.3em;
}
/* Einheitliche Linkfarben für alle Zustände */
a,
a:visited,
a:hover,
a:active,
a.new,
a.new:visited,
a.new:hover,
#mw-panel a,
#mw-panel a:visited,
#p-personal a,
#p-personal a:visited,
#left-navigation a,
#right-navigation a,
.vector-menu-content a,
.vector-menu-content a:visited {
color: var(--link-color);
text-decoration: none;
}
/* Hover-Effekt nur mit Unterstreichung */
a:hover,
a.new:hover,
#mw-panel a:hover,
#p-personal a:hover,
#left-navigation a:hover,
#right-navigation a:hover,
.vector-menu-content a:hover {
text-decoration: underline;
color: var(--link-color);
}
/* Navigation Tabs */
.vector-menu-tabs, .vector-menu-tabs a {
background-color: var(--main-bg);
color: var(--link-color);
}
.vector-menu-tabs .selected a,
.vector-menu-tabs .selected a:visited {
background-color: var(--content-bg);
color: var(--link-color);
}
/* Suchfeld */
#searchInput {
border: 1px solid var(--border-color);
border-radius: 3px;
padding: 0.5em;
background-color: var(--input-bg);
color: var(--text-color);
}
#searchButton {
background-color: var(--input-bg);
border: 1px solid var(--border-color);
color: var(--text-color);
}
/* Linke Sidebar */
#mw-panel .portal {
background-color: var(--main-bg);
}
#mw-panel .portal .body {
background-image: none;
}
/* Tabellen */
table.wikitable {
background-color: var(--content-bg);
border: 1px solid var(--border-color);
border-collapse: collapse;
margin: 1em 0;
}
table.wikitable > tr > th,
table.wikitable > * > tr > th {
background-color: var(--input-bg);
border: 1px solid var(--border-color);
padding: 0.5em;
color: var(--header-color);
}
table.wikitable > tr > td,
table.wikitable > * > tr > td {
border: 1px solid var(--border-color);
padding: 0.5em;
color: var(--content-text); /* Hellerer Text in Tabellenzellen */
}
/* Bearbeitungsbereich */
#editform textarea {
background-color: var(--input-bg);
color: var(--text-color);
border: 1px solid var(--border-color);
padding: 0.5em;
}
/* Buttons */
.mw-ui-button {
background-color: var(--link-color);
color: var(--main-bg);
border: none;
padding: 0.5em 1em;
border-radius: 3px;
}
.mw-ui-button:hover {
background-color: var(--link-color);
text-decoration: none;
}
/* Code und Vorformatierter Text */
pre, code {
background-color: var(--input-bg);
border: 1px solid var(--border-color);
padding: 0.2em 0.4em;
border-radius: 3px;
color: var(--content-text); /* Hellerer Text für Code-Blöcke */
}
/* Infoboxen und Warnungen */
.mw-message-box {
background-color: var(--input-bg);
border-color: var(--border-color);
color: var(--content-text); /* Hellerer Text für Meldungen */
}
/* Entfernen der roten Farbe für neue Artikel-Links */
a.new::after {
content: " (noch nicht angelegt)";
color: var(--text-color);
}
/* Vector 2010 spezifische Anpassungen für Tabs */
div#mw-head div.vector-menu h3 {
background-color: var(--main-bg);
color: var(--text-color);
}
div#mw-head div.vector-menu h3 span {
color: var(--text-color);
}