Aktionen

MediaWiki

Foreground.css: Unterschied zwischen den Versionen

Aus Geodäsie Knowledge Hub

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(15 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
/* Einheitliche rote Top-Leiste */
/* =========================================================
  Wiki / Foreground Anpassungen
  Farbe: #e2001a
  Ziel:
  - obere Leiste dauerhaft rot
  - Hauptmenü rot/weiß
  - Untermenü bei Hover: weiß/rot
  - Suchfeld als saubere Einheit
  - Foreground/Foundation-Defaults (#333) überschreiben
  ========================================================= */
 
 
/* =========================================================
  1) Grundfarbe der oberen Leiste
  Diese Regeln färben die komplette Kopf-/Navigationsleiste rot.
  ========================================================= */
 
.top-bar,
.top-bar,
.top-bar-section ul,
.top-bar-section > ul,
.top-bar-section li,
.top-bar-section > ul > li,
.top-bar-section li:not(.has-form) a,
.top-bar-section .dropdown li,
.contain-to-grid,
.contain-to-grid,
.fixed,
.tab-bar,
.tab-bar,
.left-small,
.fixed {
.right-small {
     background: #e2001a !important;
     background: #b30000 !important;
    background-color: #b30000 !important;
     border: 0 !important;
     border: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
}
}


/* Menülinks immer gleich rot, auch aktiv/hover/focus */
 
.top-bar-section li:not(.has-form) a,
/* =========================================================
.top-bar-section li.active > a,
  2) Hauptmenü (erste Ebene)
.top-bar-section li:hover > a,
  Die obere Menüleiste bleibt rot mit weißer Schrift.
.top-bar-section li:focus > a,
  Beim Hover nur leichte Transparenz, kein Farbwechsel.
.top-bar-section .dropdown li a,
  ========================================================= */
 
.top-bar-section > ul > li > a {
    background: #e2001a !important;
    color: #ffffff !important;
}
 
.top-bar-section > ul > li:not(.has-form) > a:hover {
    background: #e2001a !important;
    color: #ffffff !important;
    opacity: 0.85;
}
 
 
/* =========================================================
  3) Untermenüs / Dropdowns
  Standard: rot mit weißer Schrift
  Hover/Aktiv: Farben tauschen -> weißer Hintergrund, roter Text
  ========================================================= */
 
.top-bar-section .dropdown li > a {
    background: #e2001a !important;
    color: #ffffff !important;
    opacity: 1 !important;
}
 
.top-bar-section .dropdown li > a:hover,
.top-bar-section .dropdown li:hover > a,
.top-bar-section .dropdown li:hover > a,
.top-bar-section .dropdown li.active > a {
.top-bar-section .dropdown li.active > a {
     background: #b30000 !important;
     background: #ffffff !important;
     background-color: #b30000 !important;
     color: #e2001a !important;
     color: #fff !important;
     opacity: 1 !important;
}
}


/* Optional: Hover nur über Schrift lösen, nicht über dunklere Fläche */
 
.top-bar-section li:not(.has-form) a:hover,
/* =========================================================
.top-bar-section .dropdown li a:hover {
  4) Suchformular ausrichten
     background: #b30000 !important;
  Das Suchformular wird als Flex-Zeile behandelt, damit
     color: #fff !important;
  Eingabefeld und Button sauber nebeneinander sitzen.
     opacity: 0.9;
  ========================================================= */
 
.top-bar .has-form form {
     display: flex !important;
     align-items: center !important;
     margin: 0 !important;
}
}


/* Trennlinien entfernen */
/* Vertikale Feinjustierung des Suchformulars */
.top-bar-section li,
#searchform {
.top-bar-section ul li > a,
    padding-top: 7px !important;
.top-bar-section .has-dropdown > a,
.top-bar .toggle-topbar.menu-icon a {
    border: none !important;
}
}


/* Suchbereich sauber integrieren */
 
.top-bar .has-form,
/* =========================================================
.top-bar form,
  5) Suchfeld
  - Höhe 30px
  - links abgerundet
  - 280px breit
  ========================================================= */
 
.top-bar input,
.top-bar input,
.top-bar .button,
.top-bar input[type="text"],
.top-bar button {
.top-bar input[type="search"],
#searchInput {
    height: 30px !important;
    line-height: 30px !important;
    width: 280px !important;
     margin: 0 !important;
     margin: 0 !important;
    padding: 0 14px !important;
    border: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
    background: #ffffff !important;
    color: #444444 !important;
    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
}


/* Suchfeld eckig statt abgerundet */
.top-bar input[type="search"],
.top-bar input[type="text"],
#searchInput,
#searchText {
    border-radius: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #bfbfbf !important;
    box-shadow: none !important;
    height: 2.2rem !important;
}


/* Suchbutton passend */
/* =========================================================
.top-bar .button,
  6) Suchbutton
.top-bar button,
  - gleiche Höhe wie das Eingabefeld
  - rechts abgerundet
  - weiße Fläche mit roter Schrift
  ========================================================= */
 
.top-bar .button.search,
.top-bar button.search,
#searchButton {
#searchButton {
     border-radius: 0 !important;
     height: 30px !important;
     background: #0078a0 !important;
    line-height: 30px !important;
    margin: 0 0 0 -1px !important;
     padding: 0 16px !important;
 
     border: 0 !important;
     border: 0 !important;
     box-shadow: none !important;
     box-shadow: none !important;
     height: 2.2rem !important;
     background: #ffffff !important;
     line-height: 2.2rem !important;
     color: #e2001a !important;
     padding-top: 0 !important;
 
     padding-bottom: 0 !important;
     border-top-left-radius: 0 !important;
     border-bottom-left-radius: 0 !important;
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}
}


/* Icons rechts: gleicher roter Hintergrund */
.top-bar-section .dropdown > li,
.top-bar-section .has-dropdown > a,
.right-off-canvas-toggle,
.left-off-canvas-toggle {
    background: #b30000 !important;
}


/* Weiße Schrift/Icons oben */
/* =========================================================
.top-bar *,
  7) Foreground/Foundation-Desktop-Defaults überschreiben
.top-bar-section a,
  Foreground setzt ab Desktop-Breite teilweise wieder #333333.
.top-bar .fa,
  Diese Regeln erzwingen auch dort dein Rot.
.top-bar i {
  ========================================================= */
    color: #fff !important;
 
@media only screen and (min-width: 40.0625em) {
    .top-bar {
        background: #e2001a !important;
        overflow: visible;
    }
 
    .top-bar-section .has-form {
        background: #e2001a !important;
        height: 2.8125rem;
        padding: 0 0.9375rem;
    }
 
    .top-bar-section ul li {
        background: #e2001a !important;
    }
 
    .top-bar .has-form form {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
 
    .top-bar input,
    .top-bar input[type="text"],
    .top-bar input[type="search"],
    #searchInput {
        height: 30px !important;
        line-height: 30px !important;
        width: 280px !important;
        margin: 0 !important;
        padding: 0 14px !important;
 
        border: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #444444 !important;
 
        border-top-left-radius: 15px !important;
        border-bottom-left-radius: 15px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }
 
    .top-bar .button.search,
    .top-bar button.search,
    #searchButton {
        height: 30px !important;
        line-height: 30px !important;
        margin: 0 0 0 -1px !important;
        padding: 0 16px !important;
 
        border: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #e2001a !important;
 
        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
    }
}
}

Aktuelle Version vom 7. März 2026, 11:56 Uhr

/* =========================================================
   Wiki / Foreground Anpassungen
   Farbe: #e2001a
   Ziel:
   - obere Leiste dauerhaft rot
   - Hauptmenü rot/weiß
   - Untermenü bei Hover: weiß/rot
   - Suchfeld als saubere Einheit
   - Foreground/Foundation-Defaults (#333) überschreiben
   ========================================================= */


/* =========================================================
   1) Grundfarbe der oberen Leiste
   Diese Regeln färben die komplette Kopf-/Navigationsleiste rot.
   ========================================================= */

.top-bar,
.top-bar-section > ul,
.top-bar-section > ul > li,
.contain-to-grid,
.tab-bar,
.fixed {
    background: #e2001a !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   2) Hauptmenü (erste Ebene)
   Die obere Menüleiste bleibt rot mit weißer Schrift.
   Beim Hover nur leichte Transparenz, kein Farbwechsel.
   ========================================================= */

.top-bar-section > ul > li > a {
    background: #e2001a !important;
    color: #ffffff !important;
}

.top-bar-section > ul > li:not(.has-form) > a:hover {
    background: #e2001a !important;
    color: #ffffff !important;
    opacity: 0.85;
}


/* =========================================================
   3) Untermenüs / Dropdowns
   Standard: rot mit weißer Schrift
   Hover/Aktiv: Farben tauschen -> weißer Hintergrund, roter Text
   ========================================================= */

.top-bar-section .dropdown li > a {
    background: #e2001a !important;
    color: #ffffff !important;
    opacity: 1 !important;
}

.top-bar-section .dropdown li > a:hover,
.top-bar-section .dropdown li:hover > a,
.top-bar-section .dropdown li.active > a {
    background: #ffffff !important;
    color: #e2001a !important;
    opacity: 1 !important;
}


/* =========================================================
   4) Suchformular ausrichten
   Das Suchformular wird als Flex-Zeile behandelt, damit
   Eingabefeld und Button sauber nebeneinander sitzen.
   ========================================================= */

.top-bar .has-form form {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

/* Vertikale Feinjustierung des Suchformulars */
#searchform {
    padding-top: 7px !important;
}


/* =========================================================
   5) Suchfeld
   - Höhe 30px
   - links abgerundet
   - 280px breit
   ========================================================= */

.top-bar input,
.top-bar input[type="text"],
.top-bar input[type="search"],
#searchInput {
    height: 30px !important;
    line-height: 30px !important;
    width: 280px !important;
    margin: 0 !important;
    padding: 0 14px !important;

    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #444444 !important;

    border-top-left-radius: 15px !important;
    border-bottom-left-radius: 15px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}


/* =========================================================
   6) Suchbutton
   - gleiche Höhe wie das Eingabefeld
   - rechts abgerundet
   - weiße Fläche mit roter Schrift
   ========================================================= */

.top-bar .button.search,
.top-bar button.search,
#searchButton {
    height: 30px !important;
    line-height: 30px !important;
    margin: 0 0 0 -1px !important;
    padding: 0 16px !important;

    border: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #e2001a !important;

    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 15px !important;
    border-bottom-right-radius: 15px !important;
}


/* =========================================================
   7) Foreground/Foundation-Desktop-Defaults überschreiben
   Foreground setzt ab Desktop-Breite teilweise wieder #333333.
   Diese Regeln erzwingen auch dort dein Rot.
   ========================================================= */

@media only screen and (min-width: 40.0625em) {
    .top-bar {
        background: #e2001a !important;
        overflow: visible;
    }

    .top-bar-section .has-form {
        background: #e2001a !important;
        height: 2.8125rem;
        padding: 0 0.9375rem;
    }

    .top-bar-section ul li {
        background: #e2001a !important;
    }

    .top-bar .has-form form {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .top-bar input,
    .top-bar input[type="text"],
    .top-bar input[type="search"],
    #searchInput {
        height: 30px !important;
        line-height: 30px !important;
        width: 280px !important;
        margin: 0 !important;
        padding: 0 14px !important;

        border: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #444444 !important;

        border-top-left-radius: 15px !important;
        border-bottom-left-radius: 15px !important;
        border-top-right-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .top-bar .button.search,
    .top-bar button.search,
    #searchButton {
        height: 30px !important;
        line-height: 30px !important;
        margin: 0 0 0 -1px !important;
        padding: 0 16px !important;

        border: 0 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #e2001a !important;

        border-top-left-radius: 0 !important;
        border-bottom-left-radius: 0 !important;
        border-top-right-radius: 15px !important;
        border-bottom-right-radius: 15px !important;
    }
}