MediaWiki:Vector-2022.css: Unterschied zwischen den Versionen
Erscheinungsbild
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 8: | Zeile 8: | ||
top: 0; | top: 0; | ||
z-index: 1000; | z-index: 1000; | ||
background-color: # | background-color: #5c4e4e; | ||
border-bottom: 1px solid #333; | border-bottom: 1px solid #333; | ||
} | } | ||
.vector-header-container, | .vector-header-container, | ||
.vector-header-container .vector-header { | .vector-header-container .vector-header { | ||
background-color: # | background-color: #5c4e4e !important; | ||
} | } | ||
/* Sticky-Header von Vector 2022 deaktivieren */ | /* Sticky-Header von Vector 2022 deaktivieren */ | ||
| Zeile 22: | Zeile 22: | ||
/* 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: # | color: #988686 !important; | ||
} | } | ||
/* Optional: Hover/Fokus-Farbe anpassen */ | /* Optional: Hover/Fokus-Farbe anpassen */ | ||
.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 { | ||
color: # | color: #988686 !important; | ||
} | } | ||
/* Globale Linkfarben */ | /* Globale Linkfarben */ | ||
| Zeile 34: | Zeile 34: | ||
.mw-body a:hover, | .mw-body a:hover, | ||
.mw-body a:active { | .mw-body a:active { | ||
color: # | color: #988686; | ||
} | } | ||
| Zeile 115: | Zeile 115: | ||
/* Gesamte Seite dunkel setzen */ | /* Gesamte Seite dunkel setzen */ | ||
body { | body { | ||
background-color: # | background-color: #494949; | ||
color: # | color: #616161; | ||
} | } | ||
.vector-sticky-pinned-container { | .vector-sticky-pinned-container { | ||
| Zeile 126: | Zeile 126: | ||
.mw-content-container, | .mw-content-container, | ||
.mw-content-ltr { | .mw-content-ltr { | ||
background-color: | background-color: #D1D0D0; /* oder #101218, falls nötig */ | ||
color: inherit; | color: inherit; | ||
} | } | ||
/* Links etwas heller, damit sie lesbar bleiben */ | /* Links etwas heller, damit sie lesbar bleiben */ | ||
.mw-body a { | /*.mw-body a { | ||
color: #4ea3ff; | color: #4ea3ff; | ||
} | } */ | ||
/* ===================== | /* ===================== | ||
Texte Lesbar | Texte Lesbar | ||
===================== */ | ===================== */ | ||
/* | |||
/* Grundtext im Vector‑2022-Skin hell machen */ | /* Grundtext im Vector‑2022-Skin hell machen */ | ||
.skin-vector-2022 body, | .skin-vector-2022 body, | ||
| Zeile 157: | Zeile 157: | ||
color: #4ea3ff; | color: #4ea3ff; | ||
} | } | ||
*/ | |||
/* ========================= | /* ========================= | ||
Mobile-Anpassungen (≤ 768px) | Mobile-Anpassungen (≤ 768px) | ||
Version vom 13. Februar 2026, 01:27 Uhr
/* =========================
HEADER: Layout & Optik
========================= */
/* Header-Container: Hintergrund, Rahmen, sticky */
.vector-header-container {
position: sticky;
top: 0;
z-index: 1000;
background-color: #5c4e4e;
border-bottom: 1px solid #333;
}
.vector-header-container,
.vector-header-container .vector-header {
background-color: #5c4e4e !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: #988686 !important;
}
/* Optional: Hover/Fokus-Farbe anpassen */
.vector-user-links .mw-list-item a:hover,
.vector-user-links .mw-list-item a:focus {
color: #988686 !important;
}
/* Globale Linkfarben */
.mw-body a:link,
.mw-body a:visited,
.mw-body a:hover,
.mw-body a:active {
color: #988686;
}
/* ## Layout Header ## */
/* Innerer Header als Spalte (Zeile 1: Logo, Zeile 2: Suche+Userlinks) */
.vector-header {
display: flex;
flex-direction: column;
align-items: center;
padding: 3px 0;
}
/* Zeile 1: Logo zentriert (ohne Userlinks) */
.vector-header-start {
width: 100%;
display: flex;
justify-content: center; /* Logo mittig */
align-items: center;
margin-bottom: 1px;
padding: 0;
}
.vector-header-start .mw-logo {
display: flex;
align-items: center;
gap: 4px;
}
/* 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: 2px;
}
/* Suche in der Mitte: alles alte Layout killen */
.vector-header-end #p-search {
grid-column: 2 !important;
justify-self: center !important;
float: none !important;
margin: 0 !important;
padding: 0 !important;
/* jedes Flex-Verhalten im Container deaktivieren */
display: block !important;
}
/* Suchfeld-Höhe leicht reduzieren */
#searchform .cdx-text-input__input {
padding-top: 2px;
padding-bottom: 2px;
height: 30px; /* Standard etwas niedriger */
}
/* Buttons im Header etwas kompakter */
.vector-header .cdx-button {
padding: 2px 8px;
min-height: 0;
}
/* 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;
}
/* =========================
HEADER: Layout & Optik ENDE
========================= */
/* Gesamte Seite dunkel setzen */
body {
background-color: #494949;
color: #616161;
}
.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: #D1D0D0; /* 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;
}
*/
/* =========================
Mobile-Anpassungen (≤ 768px)
========================= */
@media screen and (max-width: 768px) {
.vector-header {
padding: 6px 0 !important;
flex-direction: column !important;
align-items: stretch !important;
}
.vector-header-start {
margin-bottom: 4px !important;
}
.vector-header-end {
display: flex !important; /* statt grid */
flex-direction: column !important;
align-items: stretch !important;
gap: 4px !important;
grid-template-columns: none !important;
}
.vector-header-end #p-search {
width: 100% !important;
}
.vector-header-end .vector-user-links {
align-self: center !important;
}
.pixo-grid {
display: flex !important;
flex-direction: column !important;
gap: 12px !important;
}
.pixo-card {
width: 100% !important;
}
}