Zum Inhalt springen

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

Aus Pixopedia
Keine Bearbeitungszusammenfassung
Markierung: Zurückgesetzt
Keine Bearbeitungszusammenfassung
 
(186 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* =========================
/*******************************
  HEADER: Layout & Optik
*  Vector-spezifische Anpassungen
  ========================= */
*  (Content nutzt globales Layout aus Common.css)
/* 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 ## */
/* Grid der inneren Page-Container abschalten,
 
  damit der Content die volle Breite bekommt */
/* Innerer Header als Spalte (Zeile 1: Logo, Zeile 2: Suche+Userlinks) */
.mw-page-container-inner,
.vector-header {
.vector-page-container-inner,
  display: flex;
.mw-body {
  flex-direction: column;
    display: block !important;         /* statt grid */
  align-items: center;
  padding: 4px 0;           /* vorher 6px 0 → etwas schmaler */
}
}


/* Zeile 1: Logo zentriert (ohne Userlinks) */
/* Sicherstellen, dass der Content-Block die komplette Breite nutzt */
.vector-header-start {
.mw-content-container,
  width: 100%;
.mw-body .mw-body-content,
  display: flex;
.mw-body #bodyContent {
  justify-content: center;
    grid-column: auto !important;       /* raus aus der 2-Spalten-Logik */
  align-items: center;
    width: 100% !important;
  margin-bottom: 2px;       /* vorher 4px → weniger Abstand zwischen Zeile 1/2 */
  padding: 0;
}
}


.vector-header-start .mw-logo {
/* Optional: Page-Tools-Spalte explizit loslösen, falls noch Reste da sind */
  display: flex;
.mw-body .vector-page-tools {
  align-items: center;
    float: none !important;
  gap: 6px;                 /* vorher 8px → leicht kompakter */
    width: auto !important;
}
}


/* 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-Module ausblenden
  width: 100%;
*  (nur auf normalen Seiten, nicht auf Spezialseiten)
  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 */
/* Sachen, die du wirklich nie brauchst */
#searchform .cdx-text-input__input {
.vector-column-end,
  padding-top: 2px;
.vector-column-start,
  padding-bottom: 2px;
.vector-main-menu-container,
  height: 30px;             /* Standard etwas niedriger */
.vector-sticky-pinned-container,
body:not(.ns-special) .vector-sticky-header,
body:not(.ns-special) .vector-sticky-header-container,
body:not(.ns-special) #vector-sticky-header,
body:not(.ns-special) #pt-createaccount-2,
body:not(.ns-special) #pt-login-2,
body:not(.ns-special) #pt-watchlist,
body:not(.ns-special) #ca-watch,
#footer-info-lastmod,
.vector-toc,
body:not(.ns-special) #pixo-custom-header-left #p-search .search-toggle,
body:not(.ns-special) .vector-user-links .mw-watchlink,
body:not(.ns-special) .vector-user-links .mw-watchlist-link,
body:not(.group-sysop):not(.group-bureaucrat) #ca-history {
    display: none !important;
}
}


/* Buttons im Header etwas kompakter */
/* Toolbar global verstecken */
.vector-header .cdx-button {
.vector-page-toolbar.vector-feature-custom-font-size-clientpref--excluded {
   padding: 2px 8px;
   display: none !important;
  min-height: 0;
}
}


/* Userlinks-Block rechts */
/* Spezialseiten-Einträge nur für Admins sichtbar */
.vector-header-end .vector-user-links {
  grid-column: 3 !important;
  justify-self: end !important;


   float: none !important;
body:not(.group-sysop):not(.group-bureaucrat)
   margin: 0 !important;
   a[href$="Spezial:K%C3%BCrzeste_Seiten"],
   display: block !important;
body:not(.group-sysop):not(.group-bureaucrat)
}
  a[href$="Spezial:L%C3%A4ngste_Seiten"],
/* Alle direkten Kinder in Zeile 2 neutralisieren */
body:not(.group-sysop):not(.group-bureaucrat)
.vector-header-end > * {
   a[href$="Spezial:Nicht_kategorisierte_Dateien"],
   margin: 0 !important;
body:not(.group-sysop):not(.group-bureaucrat)
   float: none !important;
   a[href$="Spezial:Nicht_kategorisierte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:%C3%84lteste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Wenigstbearbeitete_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Dateien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Verwaiste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Gewuenschte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Gewuenschte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Seiten_mit_Eigenschaften"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Tracking-Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Botpassw%C3%B6rter"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Beitr%C3%A4ge"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Liste_der_Sperren"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Letzte_%C3%84nderungen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Diff"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:PageHistory"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Logbuch"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Dateien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meiste_Interwikilinks"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistkategorisierte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistverlinkte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbearbeitete_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Exportieren"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Seiten_vergleichen"],
body:not(.group-sysop):not(.group-bureaucrat)
   a[href$="Spezial:Beitragen"] {
   display: none !important;
}
}


/* =========================
/*******************************
   HEADER: Layout & Optik ENDE
*  Standard-Header „zusammenklappen“
  ========================= */
*  – auf normalen Seiten einklappen,
*   auf Spezialseiten Standard behalten
*******************************/


/* Gesamte Seite dunkel setzen */
/* Normale Seiten: Vector-Header einklappen */
body {
body:not(.ns-special) .vector-header,
  background-color: #101218;
body:not(.ns-special) .vector-header-container {
  color: #f5f5f5;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
}
}
.vector-sticky-pinned-container {
 
  display: none !important;
/* Inhalte des Vector-Headers ausblenden,
  außer unserer Suchbox #p-search (falls noch dort)
  und dem Custom-Header */
body:not(.ns-special) .vector-header > *:not(#pixo-custom-header):not(#p-search) {
    display: none !important;
}
}
/* Haupt-Inhaltsbereich an den dunklen Hintergrund anpassen */
 
.mw-page-container,
.mw-header {
.vector-body,
    margin-bottom: 0 !important;
.mw-content-container,
.mw-content-ltr {
  background-color: transparent;  /* oder #101218, falls nötig */
  color: inherit;
}
}
 
.mw-workspace-container {
/* Links etwas heller, damit sie lesbar bleiben */
    margin-top: -2rem !important;
.mw-body a {
  color: #4ea3ff;
}
}


/*  =====================
/*******************************
    Texte Lesbar
  *  Spezialseiten (Login, Einstellungen, Konto)
    =====================  */
*  – nur Hintergrund + Custom-Header übernehmen
*******************************/


/* Grundtext im Vector‑2022-Skin hell machen */
/* Hintergrund & Padding kommen schon aus Common.css;
.skin-vector-2022 body,
  hier musst du nur sicherstellen, dass Spezialseiten
.skin-vector-2022 .mw-body,
  ihre Module behalten und der Header nicht versteckt wird. */
.skin-vector-2022 .mw-body-content {
  color: #ffffff;
}


/* Seitentitel (H1 „Start“) explizit weiß */
/* Auf Spezialseiten: NICHTS ausblenden, kein Einklappen.
.skin-vector-2022 .mw-first-heading,
  Darum hier keine display:none-Regeln mit .ns-special. */
.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) */
/* Custom-Header auf Spezialseiten anzeigen, falls er mal versteckt wäre */
.skin-vector-2022 .mw-body a {
.ns-special #pixo-custom-header {
  color: #4ea3ff;
    display: block !important;
}
}

Aktuelle Version vom 9. März 2026, 16:01 Uhr

/*******************************
 *  Vector-spezifische Anpassungen
 *  (Content nutzt globales Layout aus Common.css)
 *******************************/

/* Grid der inneren Page-Container abschalten,
   damit der Content die volle Breite bekommt */
.mw-page-container-inner,
.vector-page-container-inner,
.mw-body {
    display: block !important;          /* statt grid */
}

/* Sicherstellen, dass der Content-Block die komplette Breite nutzt */
.mw-content-container,
.mw-body .mw-body-content,
.mw-body #bodyContent {
    grid-column: auto !important;       /* raus aus der 2-Spalten-Logik */
    width: 100% !important;
}

/* Optional: Page-Tools-Spalte explizit loslösen, falls noch Reste da sind */
.mw-body .vector-page-tools {
    float: none !important;
    width: auto !important;
}


/*******************************
 *  Vector-Module ausblenden
 *  (nur auf normalen Seiten, nicht auf Spezialseiten)
 *******************************/

/* Sachen, die du wirklich nie brauchst */
.vector-column-end,
.vector-column-start,
.vector-main-menu-container,
.vector-sticky-pinned-container,
body:not(.ns-special) .vector-sticky-header,
body:not(.ns-special) .vector-sticky-header-container,
body:not(.ns-special) #vector-sticky-header,
body:not(.ns-special) #pt-createaccount-2,
body:not(.ns-special) #pt-login-2,
body:not(.ns-special) #pt-watchlist,
body:not(.ns-special) #ca-watch,
#footer-info-lastmod,
.vector-toc,
body:not(.ns-special) #pixo-custom-header-left #p-search .search-toggle,
body:not(.ns-special) .vector-user-links .mw-watchlink,
body:not(.ns-special) .vector-user-links .mw-watchlist-link,
body:not(.group-sysop):not(.group-bureaucrat) #ca-history {
    display: none !important;
}

/* Toolbar global verstecken */
.vector-page-toolbar.vector-feature-custom-font-size-clientpref--excluded {
  display: none !important;
}

/* Spezialseiten-Einträge nur für Admins sichtbar */

body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:K%C3%BCrzeste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:L%C3%A4ngste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Nicht_kategorisierte_Dateien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Nicht_kategorisierte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:%C3%84lteste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Wenigstbearbeitete_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Dateien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Verwaiste_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Unbenutzte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Gewuenschte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Gewuenschte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Seiten_mit_Eigenschaften"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Tracking-Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Botpassw%C3%B6rter"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Beitr%C3%A4ge"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Liste_der_Sperren"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Letzte_%C3%84nderungen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Diff"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:PageHistory"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Logbuch"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Vorlagen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Dateien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbenutzte_Kategorien"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meiste_Interwikilinks"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistkategorisierte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistverlinkte_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Meistbearbeitete_Seiten"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Exportieren"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Seiten_vergleichen"],
body:not(.group-sysop):not(.group-bureaucrat)
  a[href$="Spezial:Beitragen"] {
  display: none !important;
}

/*******************************
 *  Standard-Header „zusammenklappen“
 *  – auf normalen Seiten einklappen,
 *    auf Spezialseiten Standard behalten
 *******************************/

/* Normale Seiten: Vector-Header einklappen */
body:not(.ns-special) .vector-header,
body:not(.ns-special) .vector-header-container {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    background: transparent !important;
    overflow: visible !important;
}

/* Inhalte des Vector-Headers ausblenden,
   außer unserer Suchbox #p-search (falls noch dort)
   und dem Custom-Header */
body:not(.ns-special) .vector-header > *:not(#pixo-custom-header):not(#p-search) {
    display: none !important;
}

.mw-header {
    margin-bottom: 0 !important;
}
.mw-workspace-container {
    margin-top: -2rem !important;
}

/*******************************
 *  Spezialseiten (Login, Einstellungen, Konto)
 *  – nur Hintergrund + Custom-Header übernehmen
 *******************************/

/* Hintergrund & Padding kommen schon aus Common.css;
   hier musst du nur sicherstellen, dass Spezialseiten
   ihre Module behalten und der Header nicht versteckt wird. */

/* Auf Spezialseiten: NICHTS ausblenden, kein Einklappen.
   Darum hier keine display:none-Regeln mit .ns-special. */

/* Custom-Header auf Spezialseiten anzeigen, falls er mal versteckt wäre */
.ns-special #pixo-custom-header {
    display: block !important;
}