MediaWiki:Common.css: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
| (11 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | /* Das folgende CSS wird für alle Benutzeroberflächen geladen. */ | ||
/* ========================================================= | /* ========================================================= | ||
| Zeile 35: | Zeile 36: | ||
} | } | ||
/* Gläser (Button) – | /* Gläser (Button) – konsolidierte Definition */ | ||
.whisky-glass { | .whisky-glass { | ||
display: inline-block; | display: inline-block; | ||
| Zeile 159: | Zeile 160: | ||
line-height: 1.2; | line-height: 1.2; | ||
} | } | ||
| Zeile 173: | Zeile 175: | ||
} | } | ||
/* | /* Strukturierte Items (wenn das JS diese Klassen nutzt) */ | ||
.whisky-top5__item { | .whisky-top5__item { | ||
display: grid; | display: grid; | ||
| Zeile 183: | Zeile 185: | ||
} | } | ||
.whisky-top5__item:last-child { border-bottom: 0; } | .whisky-top5__item:last-child { border-bottom: 0; } | ||
.whisky-top5__rank { | .whisky-top5__rank { | ||
width: 28px; | width: 28px; | ||
| Zeile 231: | Zeile 234: | ||
} | } | ||
/* Generische Fallback-Styles, falls | /* Generische Fallback-Styles, falls nur <li> erzeugt wird */ | ||
.whisky-top5 .item, | .whisky-top5 .item, | ||
.whisky-top5 li { | .whisky-top5 li { | ||
| Zeile 245: | Zeile 248: | ||
border-bottom: 0; | border-bottom: 0; | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
3) Layout-Helper | 3) Layout-Helper, Teaser, Sterne-Rating | ||
========================================================= */ | ========================================================= */ | ||
| Zeile 257: | Zeile 261: | ||
} | } | ||
.col { display: flex; flex-direction: column; gap: 1rem; } | .col { display: flex; flex-direction: column; gap: 1rem; } | ||
/* News-Listen & kompakte Listen */ | /* News-Listen & kompakte Listen */ | ||
| Zeile 302: | Zeile 276: | ||
} | } | ||
/* Pillen / Kategoriechips */ | /* Pillen / Kategoriechips (Basis – Farbe später bei Links) */ | ||
.pill-list a { | .pill-list a { | ||
display:inline-block; | display:inline-block; | ||
| Zeile 328: | Zeile 302: | ||
.whisky-mini .dim { color:#666; } | .whisky-mini .dim { color:#666; } | ||
/* Teaser grid (3 | /* Teaser grid (3 Spalten auf Desktop) */ | ||
.teaser-grid { display:grid; grid-template-columns:1fr; gap:.25rem; } | .teaser-grid { display:grid; grid-template-columns:1fr; gap:.25rem; } | ||
@media (min-width: 700px){ | @media (min-width: 700px){ | ||
| Zeile 370: | Zeile 344: | ||
/* Typo tweaks */ | /* Typo tweaks */ | ||
h2, h3 { scroll-margin-top: 80px; } | h2, h3 { scroll-margin-top: 80px; } | ||
| Zeile 426: | Zeile 401: | ||
} | } | ||
/* | /* Karten (globale Verwendung) */ | ||
.card { | .card { | ||
background: var(--card); | background: var(--card); | ||
| Zeile 507: | Zeile 482: | ||
* { animation: none !important; transition: none !important; } | * { animation: none !important; transition: none !important; } | ||
} | } | ||
| Zeile 537: | Zeile 513: | ||
img { filter: none !important; } | img { filter: none !important; } | ||
} | } | ||
| Zeile 606: | Zeile 583: | ||
object-fit:cover; | object-fit:cover; | ||
} | } | ||
.mwnews-meta { | .mwnews-meta { padding:10px 12px; } | ||
} | |||
.mwnews-title { | .mwnews-title { | ||
font-weight:700; | font-weight:700; | ||
| Zeile 651: | Zeile 626: | ||
} | } | ||
} | } | ||
| Zeile 719: | Zeile 695: | ||
} | } | ||
/* Chips / Kategorie-Pillen */ | /* Chips / Kategorie-Pillen mit warmem Hintergrund */ | ||
.pill-row a, | .pill-row a, | ||
.pill-list a { | .pill-list a { | ||
| Zeile 763: | Zeile 739: | ||
a.category-link::after { content:" ⟶"; } | a.category-link::after { content:" ⟶"; } | ||
/* Dark-Mode | /* Dark-Mode Anpassungen für Link-Kacheln */ | ||
@media (prefers-color-scheme: dark) { | @media (prefers-color-scheme: dark) { | ||
.mw-parser-output a { color:#86c2ff; } | .mw-parser-output a { color:#86c2ff; } | ||
| Zeile 779: | Zeile 755: | ||
} | } | ||
} | } | ||
| Zeile 810: | Zeile 787: | ||
} | } | ||
.ados-chart-multi { margin-bottom: .75rem; } | .ados-chart-multi { margin-bottom: .75rem; } | ||
| Zeile 905: | Zeile 879: | ||
} | } | ||
} | } | ||
| Zeile 917: | Zeile 892: | ||
display: none !important; | display: none !important; | ||
} | } | ||
| Zeile 1.132: | Zeile 1.108: | ||
filter: none !important; | filter: none !important; | ||
} | } | ||
| Zeile 1.183: | Zeile 1.160: | ||
/* Inhalt nach unten schieben, wenn Timer sichtbar */ | /* Inhalt nach unten schieben, wenn Timer sichtbar */ | ||
body.has-ados-timer { padding-top: 38px; } | body.has-ados-timer { padding-top: 38px; } | ||
/* ========================================================= | /* ========================================================= | ||
13) ADOS-Hero – whiskyfarben, | 13) ADOS-Hero – whiskyfarben, Fade, keine weißen Boxen | ||
========================================================= */ | ========================================================= */ | ||
/* | /* Äußerer Hero-Block mit Fade nach unten ins Weiße */ | ||
.mw-parser-output .ados-hero { | |||
. | |||
.ados-hero | |||
background: linear-gradient( | background: linear-gradient( | ||
180deg, | 180deg, | ||
| Zeile 1.323: | Zeile 1.181: | ||
box-shadow: 0 4px 12px rgba(0,0,0,.05); | box-shadow: 0 4px 12px rgba(0,0,0,.05); | ||
border: 1px solid rgba(120,80,40,.15); | border: 1px solid rgba(120,80,40,.15); | ||
} | |||
/* auf Desktop etwas breiter wirken lassen */ | |||
@media (min-width: 960px) { | |||
.mw-parser-output .ados-hero { | |||
margin-left: -1.5rem; | |||
margin-right: -1.5rem; | |||
border-radius: 0 0 12px 12px; | |||
} | |||
} | } | ||
/* Grid: Titel & Text nebeneinander, Spalten unten drunter */ | /* Grid: Titel & Text nebeneinander, Spalten unten drunter */ | ||
.ados-hero__grid { | .ados-hero__grid { | ||
max-width: | max-width: 1200px; | ||
margin: 0 auto; | margin: 0 auto; | ||
display: grid; | display: grid; | ||
| Zeile 1.400: | Zeile 1.267: | ||
.ados-hero__col li { | .ados-hero__col li { | ||
margin: .08rem 0; | margin: .08rem 0; | ||
} | |||
/* Sicherheit: im Hero niemals weiße Karten-Hintergründe */ | |||
.ados-hero .card, | |||
.ados-hero .whisky-top5, | |||
.ados-hero .whisky-rating__item { | |||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
} | } | ||
/* ---------------- MOBIL ---------------- */ | /* ---------------- MOBIL ---------------- */ | ||
@media (max-width: 720px) { | @media (max-width: 720px) { | ||
.ados-hero { | .mw-parser-output .ados-hero { | ||
border-radius: 0; | border-radius: 0; | ||
margin-left: -1rem; | margin-left: -1rem; | ||
| Zeile 1.449: | Zeile 1.325: | ||
list-style-position: inside; | list-style-position: inside; | ||
} | } | ||
} | |||
/* ========================================================= | |||
14) ADOS-Hauptseite – flexibles 2-Spalten-Layout | |||
========================================================= */ | |||
.ados-mainpage { | |||
max-width: 1200px; /* Gesamtbreite der Hauptseitev2 */ | |||
margin: 0 auto 2.5rem; /* zentriert, unten Luft */ | |||
display: grid; | |||
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* links breiter als rechts */ | |||
gap: 1.6rem 2.2rem; | |||
align-items: flex-start; | |||
} | |||
.ados-main-left, | |||
.ados-main-right { | |||
display: flex; | |||
flex-direction: column; | |||
gap: 1.1rem; | |||
} | |||
/* Boxen innerhalb der Hauptseite – etwas „luftiger“ */ | |||
.ados-mainpage .ados-box { | |||
background: #ffffff; | |||
border: 1px solid #e4e4e4; | |||
border-radius: 12px; | |||
padding: 12px 14px; | |||
box-shadow: 0 1px 3px rgba(0,0,0,.04); | |||
} | |||
/* Überschriften in den Boxen */ | |||
.ados-mainpage .ados-box h2, | |||
.ados-mainpage .ados-box h3 { | |||
margin: 0 0 .5rem; | |||
padding-bottom: .25rem; | |||
border-bottom: 1px solid #eeeeee; | |||
font-size: 1.08rem; | |||
} | |||
/* Mobil / schmal: alles untereinander */ | |||
@media (max-width: 900px) { | |||
.ados-mainpage { | |||
display: block; /* keine Spalten, nur Flow */ | |||
max-width: 100%; | |||
margin: 0 0 2rem; | |||
} | |||
.ados-main-right { | |||
margin-top: 1.5rem; | |||
} | |||
.ados-mainpage .ados-box { | |||
border-radius: 0; | |||
border-left: 0; | |||
border-right: 0; | |||
} | |||
} | |||
/* ========================================================= | |||
FIX: Hero – keine weißen Boxen für Titel / Center-Text | |||
========================================================= */ | |||
.ados-hero__title, | |||
.ados-hero__center-box { | |||
background: transparent !important; | |||
border: 0 !important; | |||
box-shadow: none !important; | |||
} | |||
/* ========================================================= | |||
FIX: Hauptseitev2 – breiteres Layout + Hero lockern | |||
========================================================= */ | |||
/* Vector-Container für Hauptseitev2 etwas breiter */ | |||
body.page-Hauptseitev2 .mw-page-container, | |||
body.page-Hauptseitev2 .mw-content-container { | |||
max-width: 1400px; | |||
} | |||
/* Hero innerhalb des Content-Bereichs etwas nach außen ziehen */ | |||
body.page-Hauptseitev2 .mw-parser-output .ados-hero { | |||
margin-left: -1.5rem; | |||
margin-right: -1.5rem; | |||
} | |||
/* ========================================================= | |||
XMAS: Timer-Bar & Snow | |||
========================================================= */ | |||
/* Weihnachts-Variante der bestehenden Timer-Bar */ | |||
#ados-timer-bar.ados-xmas { | |||
background: linear-gradient(90deg, #111827, #164e63); | |||
color: #f9fafb; | |||
border-bottom: 1px solid rgba(15,23,42,.7); | |||
} | |||
#ados-timer-bar.ados-xmas #ados-timer-countdown { | |||
background: #f97316; | |||
color: #111827; | |||
} | |||
#ados-timer-bar.ados-xmas #ados-timer-message::before { | |||
content: "🎄 "; | |||
} | |||
/* Schneefall-Overlay */ | |||
#ados-snow { | |||
position: fixed; | |||
inset: 0; | |||
pointer-events: none; | |||
z-index: 1999; /* unter dem Timer (2000), über Content */ | |||
overflow: hidden; | |||
} | |||
.ados-snowflake { | |||
position: absolute; | |||
top: -10px; | |||
font-size: 0.9rem; | |||
color: rgba(255, 255, 255, 0.9); | |||
text-shadow: 0 0 6px rgba(0,0,0,.45); | |||
animation-name: ados-snow-fall; | |||
animation-timing-function: linear; | |||
animation-iteration-count: infinite; | |||
} | |||
/* Keyframes für leichten Fall-Effekt */ | |||
@keyframes ados-snow-fall { | |||
0% { | |||
transform: translate3d(var(--x-start, 0), -10px, 0) rotate(0deg); | |||
opacity: 0; | |||
} | |||
10% { opacity: 1; } | |||
100% { | |||
transform: translate3d(var(--x-end, 0), 110vh, 0) rotate(360deg); | |||
opacity: 0; | |||
} | |||
} | |||
/* Weniger Motion = Schneefall deaktivieren */ | |||
@media (prefers-reduced-motion: reduce) { | |||
#ados-snow { display: none !important; } | |||
} | |||
/* ADOS "NEU" Badge */ | |||
.ados-neu-badge { | |||
display: inline-block; | |||
margin-left: 6px; | |||
padding: 2px 8px; | |||
font-size: 11px; | |||
font-weight: bold; | |||
color: #fff; | |||
background: #c60000; | |||
border-radius: 10px; | |||
letter-spacing: 0.5px; | |||
animation: adosPulse 1.5s infinite; | |||
} | |||
@keyframes adosPulse { | |||
0% { opacity: 1; } | |||
50% { opacity: 0.4; } | |||
100% { opacity: 1; } | |||
} | |||
/* Klickbare Card für Statistik-Link */ | |||
.mw-parser-output a.chart-box, | |||
.mw-parser-output a.chart-box:visited { | |||
display: block !important; | |||
width: 100%; | |||
box-sizing: border-box; | |||
border: 2px solid #337ab7 !important; | |||
padding: 12px !important; | |||
background: #f0f8ff !important; | |||
margin: 0 0 1em 0 !important; | |||
text-align: center !important; | |||
text-decoration: none !important; | |||
color: inherit !important; | |||
border-radius: 6px !important; | |||
transition: transform .2s ease, background-color .2s ease; | |||
} | |||
.mw-parser-output a.chart-box:hover { | |||
background: #e0ecff !important; | |||
transform: scale(1.01); | |||
} | |||
.mobileonly { display: none; } | |||
.nomobile { display: block; } | |||
.skin-minerva .mobileonly, | |||
.mf-mobile .mobileonly { | |||
display: block; | |||
} | |||
.skin-minerva .nomobile, | |||
.mf-mobile .nomobile { | |||
display: none; | |||
} | } | ||