Foreground.css: Unterschied zwischen den Versionen
Aus Geodäsie Knowledge Hub
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* ============================= | /* ========================================================= | ||
/ | 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, | ||
| Zeile 15: | Zeile 27: | ||
} | } | ||
/* | /* ========================================================= | ||
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 { | .top-bar-section .dropdown li > a { | ||
background: #e2001a !important; | background: #e2001a !important; | ||
| Zeile 26: | Zeile 58: | ||
} | } | ||
.top-bar-section .dropdown li > a:hover, | .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 { | |||
background: #ffffff !important; | background: #ffffff !important; | ||
color: #e2001a !important; | color: #e2001a !important; | ||
| Zeile 34: | Zeile 66: | ||
} | } | ||
/* | /* ========================================================= | ||
4) Suchformular ausrichten | |||
Das Suchformular wird als Flex-Zeile behandelt, damit | |||
Eingabefeld und Button sauber nebeneinander sitzen. | |||
========================================================= */ | |||
.top-bar .has-form form { | .top-bar .has-form form { | ||
display: flex !important; | display: flex !important; | ||
| Zeile 57: | Zeile 79: | ||
} | } | ||
/* | /* Vertikale Feinjustierung des Suchformulars */ | ||
#searchform { | |||
padding-top: 7px !important; | |||
} | |||
/* ========================================================= | |||
5) Suchfeld | |||
- Höhe 30px | |||
- links abgerundet | |||
- 280px breit | |||
========================================================= */ | |||
.top-bar input, | .top-bar input, | ||
.top-bar input[type="text"], | .top-bar input[type="text"], | ||
| Zeile 64: | Zeile 98: | ||
height: 30px !important; | height: 30px !important; | ||
line-height: 30px !important; | line-height: 30px !important; | ||
width: 280px !important; | |||
margin: 0 !important; | |||
padding: 0 14px !important; | padding: 0 14px !important; | ||
border: 0 !important; | border: 0 !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
background: # | background: #ffffff !important; | ||
color: # | color: #444444 !important; | ||
border-top-left-radius: 15px !important; | border-top-left-radius: 15px !important; | ||
| Zeile 79: | Zeile 113: | ||
} | } | ||
/* Suchbutton */ | |||
/* ========================================================= | |||
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, | ||
.top-bar button.search, | .top-bar button.search, | ||
| Zeile 85: | Zeile 126: | ||
height: 30px !important; | height: 30px !important; | ||
line-height: 30px !important; | line-height: 30px !important; | ||
margin: 0 0 0 -1px !important; | |||
padding: 0 16px !important; | padding: 0 16px !important; | ||
border: 0 !important; | border: 0 !important; | ||
box-shadow: none !important; | box-shadow: none !important; | ||
background: # | background: #ffffff !important; | ||
color: #e2001a !important; | color: #e2001a !important; | ||
| Zeile 98: | Zeile 139: | ||
border-bottom-right-radius: 15px !important; | border-bottom-right-radius: 15px !important; | ||
} | } | ||
# | |||
padding-top: | |||
/* ========================================================= | |||
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; | |||
} | |||
} | } | ||
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;
}
}