Zum Inhalt springen

MediaWiki:Vector-2022.css: Unterschied zwischen den Versionen

Aus Pixopedia
Keine Bearbeitungszusammenfassung
Markierung: Manuelle Zurücksetzung
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Zeile 36: Zeile 36:
   flex-direction: column;
   flex-direction: column;
   align-items: center;
   align-items: center;
   padding: 6px 0;
   padding: 4px 0;            /* vorher 6px 0 → etwas schmaler */
}
}
/* Zeile 1: Logo zentriert (ohne Userlinks) */
/* Zeile 1: Logo zentriert (ohne Userlinks) */
.vector-header-start {
.vector-header-start {
   width: 100%;
   width: 100%;
   display: flex;
   display: flex;
   justify-content: center;   /* Logo mittig */
   justify-content: center;
   align-items: center;
   align-items: center;
   margin-bottom: 4px;
   margin-bottom: 2px;        /* vorher 4px → weniger Abstand zwischen Zeile 1/2 */
   padding: 0;
   padding: 0;
}
}
.vector-header-start .mw-logo {
.vector-header-start .mw-logo {
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   gap: 8px;
   gap: 6px;                  /* vorher 8px → leicht kompakter */
}
}
//* Zeile 2: Suche mittig, Userlinks rechts */
 
/* Logo-Icon leicht verkleinern (spart Höhe) */
.vector-header-start .mw-logo-icon {
  height: 40px;
  width: 40px;
}
 
/* Zeile 2: Suche mittig, Userlinks rechts */
.vector-header-end {
.vector-header-end {
   width: 100%;
   width: 100%;
   display: grid !important;
   display: grid !important;
   grid-template-columns: 1fr auto auto; /* links leer, Mitte Suche, rechts Userlinks */
   grid-template-columns: 1fr auto auto;
   align-items: center;
   align-items: center;
   margin: 0;
   margin: 0;
   padding: 0;
   padding: 0;
   gap: 8px;
   gap: 4px;                  /* vorher 8px → weniger vertikale Höhe */
}
}
/* Suche in der Mitte: alles alte Layout killen */
.vector-header-end #p-search {
  grid-column: 2 !important;
  justify-self: center !important;


   float: none !important;
/* Suchfeld-Höhe leicht reduzieren */
   margin: 0 !important;
#searchform .cdx-text-input__input {
   padding: 0 !important;
   padding-top: 2px;
   padding-bottom: 2px;
   height: 30px;             /* Standard etwas niedriger */
}


  /* jedes Flex-Verhalten im Container deaktivieren */
/* Buttons im Header etwas kompakter */
   display: block !important;
.vector-header .cdx-button {
   padding: 2px 8px;
  min-height: 0;
}
}
/*
/* Userlinks-Block rechts */
/* Userlinks-Block rechts */
.vector-header-end .vector-user-links {
.vector-header-end .vector-user-links {
Zeile 88: Zeile 99:
   float: none !important;
   float: none !important;
}
}
 
*/
/* =========================
/* =========================
   HEADER: Layout & Optik ENDE
   HEADER: Layout & Optik ENDE

Version vom 12. Februar 2026, 13:36 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;
}
.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;
}
/* Optional: Hover/Fokus-Farbe anpassen */
.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;            /* vorher 6px 0 → etwas schmaler */
}

/* Zeile 1: Logo zentriert (ohne Userlinks) */
.vector-header-start {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;        /* vorher 4px → weniger Abstand zwischen Zeile 1/2 */
  padding: 0;
}

.vector-header-start .mw-logo {
  display: flex;
  align-items: center;
  gap: 6px;                  /* vorher 8px → leicht kompakter */
}

/* Logo-Icon leicht verkleinern (spart Höhe) */
.vector-header-start .mw-logo-icon {
  height: 40px;
  width: 40px;
}

/* Zeile 2: Suche mittig, Userlinks rechts */
.vector-header-end {
  width: 100%;
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 4px;                  /* vorher 8px → weniger vertikale Höhe */
}

/* 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: #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;
}