MediaWiki:Vector-2022.css: Unterschied zwischen den Versionen
Erscheinungsbild
Änderung 308 von Theleeksz (Diskussion) rückgängig gemacht. Markierungen: Rückgängigmachung Zurückgesetzt |
Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
||
| Zeile 2: | Zeile 2: | ||
HEADER: Layout & Optik | HEADER: Layout & Optik | ||
========================= */ | ========================= */ | ||
/* Header-Container: Hintergrund, Rahmen, sticky */ | /* Header-Container: Hintergrund, Rahmen, sticky */ | ||
.vector-header-container { | .vector-header-container { | ||
| Zeile 9: | Zeile 10: | ||
background-color: #AE9E86; | background-color: #AE9E86; | ||
border-bottom: 1px solid #333; | border-bottom: 1px solid #333; | ||
/* Header künstlich begrenzen (ggf. anpassen/entfernen) */ | |||
max-height: 10vh; | |||
overflow: hidden; | |||
} | } | ||
/* Container UND Header einfärben */ | |||
.vector-header-container, | .vector-header-container, | ||
.vector-header-container .vector-header { | .vector-header-container .vector-header { | ||
background-color: #AE9E86 !important; | background-color: #AE9E86 !important; | ||
} | } | ||
/* Sticky-Header von Vector 2022 deaktivieren */ | /* Sticky-Header von Vector 2022 deaktivieren */ | ||
.client-js.vector-sticky-header-enabled .vector-sticky-header, | .client-js.vector-sticky-header-enabled .vector-sticky-header, | ||
| Zeile 19: | Zeile 27: | ||
display: none !important; | display: none !important; | ||
} | } | ||
/* Username-Link im Header einfärben */ | /* Username-Link im Header einfärben */ | ||
.vector-user-links .mw-list-item a { | .vector-user-links .mw-list-item a { | ||
color: #a86666 !important; | color: #a86666 !important; | ||
} | } | ||
/* | /* Hover/Fokus-Farbe für Username-Link */ | ||
.vector-user-links .mw-list-item a:hover, | .vector-user-links .mw-list-item a:hover, | ||
.vector-user-links .mw-list-item a:focus { | .vector-user-links .mw-list-item a:focus { | ||
| Zeile 36: | Zeile 45: | ||
flex-direction: column; | flex-direction: column; | ||
align-items: center; | align-items: center; | ||
padding: | padding: 4px 0; /* kompakter als vorher */ | ||
} | } | ||
/* Zeile 1: Logo zentriert (ohne Userlinks) */ | /* Zeile 1: Logo zentriert (ohne Userlinks) */ | ||
.vector-header-start { | .vector-header-start { | ||
| Zeile 44: | Zeile 54: | ||
justify-content: center; /* Logo mittig */ | justify-content: center; /* Logo mittig */ | ||
align-items: center; | align-items: center; | ||
margin-bottom: | margin-bottom: 2px; | ||
padding: 0; | padding: 0; | ||
} | } | ||
/* Logo + Wortmark optisch als Block, Logo kleiner */ | |||
.vector-header-start .mw-logo { | .vector-header-start .mw-logo { | ||
display: flex; | display: flex; | ||
| Zeile 52: | Zeile 64: | ||
gap: 8px; | gap: 8px; | ||
} | } | ||
.vector-header-start .mw-logo-icon { | |||
height: 36px; | |||
width: 36px; | |||
} | |||
/* Zeile 2: Suche mittig, Userlinks rechts */ | |||
.vector-header-end { | .vector-header-end { | ||
width: 100%; | width: 100%; | ||
| Zeile 60: | Zeile 77: | ||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
gap: | gap: 4px; | ||
} | } | ||
/* Suche in der Mitte: | |||
/* Suche in der Mitte: altes Layout neutralisieren */ | |||
.vector-header-end #p-search { | .vector-header-end #p-search { | ||
grid-column: 2 !important; | grid-column: 2 !important; | ||
| Zeile 70: | Zeile 88: | ||
margin: 0 !important; | margin: 0 !important; | ||
padding: 0 !important; | padding: 0 !important; | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* Userlinks-Block rechts */ | /* Userlinks-Block rechts */ | ||
.vector-header-end .vector-user-links { | .vector-header-end .vector-user-links { | ||
| Zeile 83: | Zeile 100: | ||
display: block !important; | display: block !important; | ||
} | } | ||
/* Alle direkten Kinder in Zeile 2 neutralisieren */ | /* Alle direkten Kinder in Zeile 2 neutralisieren */ | ||
.vector-header-end > * { | .vector-header-end > * { | ||
margin: 0 !important; | margin: 0 !important; | ||
float: none !important; | float: none !important; | ||
} | |||
/* Buttons im Header kompakter */ | |||
.vector-header .cdx-button { | |||
padding: 2px 8px; | |||
min-height: 0; | |||
} | |||
/* Suchfeld-Höhe reduzieren */ | |||
#searchform .cdx-text-input__input { | |||
padding-top: 2px; | |||
padding-bottom: 2px; | |||
height: 28px; | |||
} | } | ||
| Zeile 92: | Zeile 123: | ||
HEADER: Layout & Optik ENDE | HEADER: Layout & Optik ENDE | ||
========================= */ | ========================= */ | ||
/* Gesamte Seite dunkel setzen */ | /* Gesamte Seite dunkel setzen */ | ||
Version vom 12. Februar 2026, 13:25 Uhr
/* =========================
HEADER: Layout & Optik
========================= */
/* Header-Container: Hintergrund, Rahmen, sticky */
.vector-header-container {
position: sticky;
top: 0;
z-index: 1000;
background-color: #AE9E86;
border-bottom: 1px solid #333;
/* Header künstlich begrenzen (ggf. anpassen/entfernen) */
max-height: 10vh;
overflow: hidden;
}
/* Container UND Header einfärben */
.vector-header-container,
.vector-header-container .vector-header {
background-color: #AE9E86 !important;
}
/* Sticky-Header von Vector 2022 deaktivieren */
.client-js.vector-sticky-header-enabled .vector-sticky-header,
.client-js.vector-sticky-header-enabled .vector-sticky-header-container {
display: none !important;
}
/* Username-Link im Header einfärben */
.vector-user-links .mw-list-item a {
color: #a86666 !important;
}
/* Hover/Fokus-Farbe für Username-Link */
.vector-user-links .mw-list-item a:hover,
.vector-user-links .mw-list-item a:focus {
color: #c87878 !important;
}
/* ## Layout Header ## */
/* Innerer Header als Spalte (Zeile 1: Logo, Zeile 2: Suche+Userlinks) */
.vector-header {
display: flex;
flex-direction: column;
align-items: center;
padding: 4px 0; /* kompakter als vorher */
}
/* Zeile 1: Logo zentriert (ohne Userlinks) */
.vector-header-start {
width: 100%;
display: flex;
justify-content: center; /* Logo mittig */
align-items: center;
margin-bottom: 2px;
padding: 0;
}
/* Logo + Wortmark optisch als Block, Logo kleiner */
.vector-header-start .mw-logo {
display: flex;
align-items: center;
gap: 8px;
}
.vector-header-start .mw-logo-icon {
height: 36px;
width: 36px;
}
/* Zeile 2: Suche mittig, Userlinks rechts */
.vector-header-end {
width: 100%;
display: grid !important;
grid-template-columns: 1fr auto auto; /* links leer, Mitte Suche, rechts Userlinks */
align-items: center;
margin: 0;
padding: 0;
gap: 4px;
}
/* Suche in der Mitte: altes Layout neutralisieren */
.vector-header-end #p-search {
grid-column: 2 !important;
justify-self: center !important;
float: none !important;
margin: 0 !important;
padding: 0 !important;
display: block !important;
}
/* Userlinks-Block rechts */
.vector-header-end .vector-user-links {
grid-column: 3 !important;
justify-self: end !important;
float: none !important;
margin: 0 !important;
display: block !important;
}
/* Alle direkten Kinder in Zeile 2 neutralisieren */
.vector-header-end > * {
margin: 0 !important;
float: none !important;
}
/* Buttons im Header kompakter */
.vector-header .cdx-button {
padding: 2px 8px;
min-height: 0;
}
/* Suchfeld-Höhe reduzieren */
#searchform .cdx-text-input__input {
padding-top: 2px;
padding-bottom: 2px;
height: 28px;
}
/* =========================
HEADER: Layout & Optik ENDE
========================= */
/* Gesamte Seite dunkel setzen */
body {
background-color: #101218;
color: #f5f5f5;
}
.vector-sticky-pinned-container {
display: none !important;
}
/* Haupt-Inhaltsbereich an den dunklen Hintergrund anpassen */
.mw-page-container,
.vector-body,
.mw-content-container,
.mw-content-ltr {
background-color: transparent; /* oder #101218, falls nötig */
color: inherit;
}
/* Links etwas heller, damit sie lesbar bleiben */
.mw-body a {
color: #4ea3ff;
}
/* =====================
Texte Lesbar
===================== */
/* Grundtext im Vector‑2022-Skin hell machen */
.skin-vector-2022 body,
.skin-vector-2022 .mw-body,
.skin-vector-2022 .mw-body-content {
color: #ffffff;
}
/* Seitentitel (H1 „Start“) explizit weiß */
.skin-vector-2022 .mw-first-heading,
.skin-vector-2022 #firstHeading,
.skin-vector-2022 .mw-page-title-main {
color: #ffffff;
}
/* Links weiterhin in eigener Farbe lassen (nur falls du sie schon überschrieben hast) */
.skin-vector-2022 .mw-body a {
color: #4ea3ff;
}
/* Header-Suchfeld (Formular + Input) dunkel machen */
#searchform,
#searchform #simpleSearch,
#searchform .cdx-text-input,
#searchInput {
background-color: #101218 !important;
color: #ffffff !important;
}
/* Optional: Rahmen der Suche anpassen */
#searchform .cdx-text-input__input {
border: 1px solid #333;
}
/* Kategorien-Box (catlinks) dunkel machen */
#catlinks,
#mw-normal-catlinks {
background-color: #101218 !important;
color: #ffffff !important;
border-top: 1px solid #333; /* optional, für leichte Trennung */
}
/* Links in der Kategorien-Box lesbar halten */
#catlinks a {
color: #4ea3ff;
}