MediaWiki:Common.css: Unterschied zwischen den Versionen
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Zurückgesetzt |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung Markierung: Manuelle Zurücksetzung |
||
| Zeile 640: | Zeile 640: | ||
height: 450px; /* Desktop */ | height: 450px; /* Desktop */ | ||
} | } | ||
} | } | ||
Version vom 22. Oktober 2025, 19:23 Uhr
/* Das folgende CSS wird für alle Benutzeroberflächen geladen. */
.cargoChart {
display: block !important;
}
/* --- Layout für die drei Bewertungsboxen --- */
.whisky-rating {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 14px;
margin: 1rem 0 1.5rem;
}
.whisky-rating__item {
border: 1px solid #e5e7eb;
border-radius: 12px;
padding: 12px 14px;
box-shadow: 0 1px 3px rgba(0,0,0,.06);
background: #fff;
}
.whisky-rating__label {
font-weight: 600;
margin-bottom: .5rem;
color: #111827;
}
/* --- Container für die Gläser --- */
.whisky-rating__widget {
display: flex; /* flex statt inline-flex */
flex-wrap: wrap; /* erlaubt Umbruch bei kleinen Screens */
align-items: center;
}
/* --- Gläser (Button) --- */
.whisky-glass {
display: inline-block; /* verhindert Überlappungen */
width: 28px;
height: 28px;
margin: 0 6px 6px 0; /* Abstand zwischen den Gläsern */
border: 0;
padding: 0;
background: none;
cursor: pointer;
background-image: url("/index.php?title=Special:FilePath/Whisky_empty.png");
background-size: contain;
background-repeat: no-repeat;
background-position: center;
line-height: 0;
vertical-align: middle;
box-sizing: content-box;
opacity: .8;
transition: opacity .08s ease, filter .08s ease;
}
/* --- Aktive (gefüllte) Gläser --- */
.whisky-glass.is-active {
background-image: url("/index.php?title=Special:FilePath/Whisky_filled.png");
opacity: 1;
}
/* --- Hover/Fokus-Effekt --- */
.whisky-glass:hover,
.whisky-glass:focus {
opacity: 1;
outline: none;
filter: drop-shadow(0 0 0.4px rgba(0,0,0,.25));
}
/* --- Textbereich unter den Gläsern --- */
.whisky-rating__meta {
margin-top: .4rem;
font-size: .9rem;
color: #4b5563;
}
/* --- Zustand: nicht eingeloggt --- */
.whisky-rating--disabled .whisky-glass {
cursor: not-allowed;
filter: grayscale(0.3) opacity(.5);
}
/* --- Mobile: kleinere Gläser --- */
@media (max-width: 420px) {
.whisky-glass { width: 26px; height: 26px; margin: 0 5px 5px 0; }
}
.whisky-overall-badge {
display: inline-block;
margin-left: .5rem;
padding: .1rem .45rem;
border-radius: .5rem;
background: #111827;
color: #fff;
font-weight: 600;
font-size: .95rem;
line-height: 1.2;
}
/* Tabelle für Whisky-Bewertungen */
.whisky-summary__table {
border-collapse: collapse;
margin-top: 0.5em;
width: auto; /* oder 100% */
}
.whisky-summary__table th,
.whisky-summary__table td {
padding: 0.4em 0.8em;
text-align: left;
}
.whisky-summary__table th {
background: #f5f5f5;
font-weight: 600;
}
.whisky-summary__table tr:nth-child(even) td {
background: #fafafa;
}
/* Letzte Zeile (Gesamt) hervorheben */
.whisky-summary__table tr:last-child td {
padding-top: 0.6em;
padding-bottom: 0.6em;
border-top: 2px solid #333;
font-weight: bold;
background: #fff9e6;
}
/* Whisky Ø-Balken */
.whisky-bar {
display: flex;
align-items: center;
gap: .5rem;
min-width: 160px; /* Platz für den Balken */
}
.whisky-bar__track {
position: relative;
flex: 1 1 auto;
height: 10px;
background: #ececec;
border-radius: 999px;
overflow: hidden;
box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.whisky-bar__fill {
height: 100%;
width: 0%;
border-radius: 999px;
background: linear-gradient(90deg, #f0b429, #d97706); /* bernstein */
transition: width .35s ease;
}
.whisky-bar__value {
font-variant-numeric: tabular-nums;
min-width: 3ch; /* z. B. “7.5” */
text-align: right;
}
/* bessere Touch-Fläche */
.whisky-rating__widget {
display: flex;
gap: 6px;
flex-wrap: wrap;
}
/* Buttons: Größe & Klickfläche, aber Bild erhalten */
.whisky-glass {
width: 36px;
height: 36px;
padding: 0;
border: none;
background-color: transparent; /* NICHT: background: transparent; */
touch-action: manipulation;
/* falls noch nicht gesetzt: */
background-repeat: no-repeat;
background-position: center;
background-size: contain; /* oder 100% 100% */
display: inline-block; /* sicherheitshalber */
cursor: pointer;
}
@media (max-width: 480px) {
.whisky-glass { width: 32px; height: 32px; }
}
-----------------------------------------------------------------------------------
/* Top-5 Widget */
.whisky-top5 {
background: #fff;
border: 1px solid #eee;
border-radius: 12px;
padding: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.whisky-top5__item {
display: grid;
grid-template-columns: auto 1fr auto;
gap: 8px 12px;
align-items: center;
padding: 8px 4px;
border-bottom: 1px dashed #eee;
}
.whisky-top5__item:last-child { border-bottom: 0; }
.whisky-top5__rank {
width: 28px; height: 28px;
border-radius: 999px;
background: #fff1c7;
color: #7a4b00;
font-weight: 700;
display: flex; align-items: center; justify-content: center;
}
.whisky-top5__name a { text-decoration: none; color: #111; }
.whisky-top5__name a:hover { text-decoration: underline; }
/* kleiner Ø-Balken */
.whisky-mini {
display: flex; align-items: center; gap: .5rem;
}
.whisky-mini__track {
flex: 1 1 140px; height: 8px; background: #ececec; border-radius: 999px; overflow: hidden;
box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.whisky-mini__fill {
height: 100%; width: 0%;
background: linear-gradient(90deg, #f0b429, #d97706);
transition: width .35s ease;
}
.whisky-mini__val {
min-width: 3.2ch; text-align: right; font-variant-numeric: tabular-nums;
color: #222;
}
.whisky-top5__votes { color: #666; font-size: .9em; }
-----------------------------------------------------------------------------------
/* Layout Helpers */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1.2fr 0.8fr; } }
.col { display: flex; flex-direction: column; gap: 1rem; }
.card {
background: #fff;
border: 1px solid #e6e6e6;
border-radius: 14px;
padding: 1rem 1.2rem;
box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.card > h2 { margin-top: 0; }
/* Hero */
.hero { background: linear-gradient(180deg,#f6f6f6,#ffffff); border: 1px solid #eee; border-radius: 16px; }
.hero-content { padding: 1.2rem 1.4rem; text-align: center; }
.hero h1 { margin: .2rem 0; font-size: 2rem; }
.hero-actions a {
display: inline-block; margin: .25rem; padding: .4rem .7rem; border: 1px solid #ddd;
border-radius: 999px; text-decoration: none; background: #fff;
}
.hero-actions a:hover { background: #f5f5f5; }
/* Lists & Pills */
.list.compact .news-item { display: flex; gap: .6rem; padding: .25rem 0; border-bottom: 1px dashed #eee; }
.list.compact .news-item:last-child { border-bottom: 0; }
.news-item .date { font-variant-numeric: tabular-nums; color:#666; min-width: 7ch; }
.pill-list a {
display:inline-block; margin:.25rem; padding:.35rem .7rem; border:1px solid #ddd; border-radius:999px; text-decoration:none;
}
.pill-list a:hover { background:#f8f8f8; }
/* Whisky cards */
.whisky-card { display: grid; grid-template-columns: 140px 1fr; gap: .9rem; align-items: start; }
.whisky-card .whisky-media img { border-radius: 10px; }
.whisky-card h3 { margin:.2rem 0; }
.whisky-card .meta { color:#666; font-size:.95rem; }
.whisky-card .note { margin:.4rem 0 0; }
.whisky-mini { display: block; padding:.35rem 0; }
.whisky-mini .dim { color:#666; }
/* Teaser grid (3 columns on wide) */
.teaser-grid { display:grid; grid-template-columns:1fr; gap:.25rem; }
@media (min-width: 700px){ .teaser-grid { grid-template-columns:1fr 1fr 1fr; } }
/* Recent changes block */
.recent-changes { max-height: 360px; overflow:auto; border:1px solid #eee; border-radius:10px; padding:.5rem; background:#fafafa; }
/* Simple star rating (rendered via JS) */
.rating { --stars: 0; position: relative; display:inline-block; font-size: 1.1rem; line-height: 1; }
.rating::before { content: "★★★★★"; letter-spacing: .1rem; color:#ddd; }
.rating::after { content: "★★★★★"; letter-spacing: .1rem; color:#f5b50a; position:absolute; left:0; top:0; width: calc(var(--stars) * 20%); overflow:hidden; }
/* Typo tweaks */
h2, h3 { scroll-margin-top: 80px; }
-----------------------------------------------------------------------------------
/* ===== ADOS: Mobile-first Layout & Styles ===== */
/* Typografie & Basis */
:root {
--bg: #fafafa;
--card: #ffffff;
--muted: #f6f7f8;
--border: #e6e6e6;
--text: #222;
--text-sub: #666;
--link: #2d6ca2;
--link-hover: #1c4d7d;
--radius: 14px;
--shadow: 0 1px 3px rgba(0,0,0,.06);
}
body { background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; border-radius: 8px; }
/* Hero */
.ados-hero { text-align: center; padding: .8rem .5rem .3rem; }
.ados-hero h1 { margin: 0 0 .3rem; font-size: clamp(1.45rem, 2.8vw, 2.1rem); }
.ados-hero p { margin: 0 auto .7rem; max-width: 64ch; text-align: justify; }
/* Chips (horizontales Scrollen auf Handy) */
.ados-chips {
display: flex; gap: .5rem; overflow-x: auto; padding: .4rem .2rem .6rem;
scrollbar-width: thin;
}
.ados-chips a, .ados-chips span {
white-space: nowrap; border: 1px solid var(--border); background: var(--card);
padding: .45rem .7rem; border-radius: 999px; box-shadow: var(--shadow);
}
.ados-chips a:hover { background: var(--muted); }
/* Grid (1 Spalte mobil, 2 Spalten ab 900px) */
.ados-grid { display: grid; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
.ados-grid { grid-template-columns: 1.15fr .85fr; align-items: start; }
}
/* Cards */
.card {
background: var(--card);
border: 1px solid var(--border);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 12px 14px;
}
.card h2 {
margin: 0 0 .5rem; padding-bottom: .25rem;
border-bottom: 1px solid #eee; font-size: 1.12rem;
}
.card-muted { background: var(--muted); }
/* Listen + News */
.list.compact .news-item {
display: flex; gap: .6rem; padding: .36rem 0;
border-bottom: 1px dashed #eaeaea;
}
.list.compact .news-item:last-child { border-bottom: 0; }
.news-item .date { color: var(--text-sub); min-width: 7ch; font-variant-numeric: tabular-nums; }
/* Pill-Row (Kategorien als Wrap-Zeile) */
.pill-row {
display: flex; flex-wrap: wrap; gap: .45rem .55rem; align-items: center;
}
.pill-row a {
border: 1px solid var(--border); padding: .35rem .6rem; border-radius: 999px; background: var(--card);
}
.pill-row a:hover { background: var(--muted); }
/* Teaser grid */
.teaser-grid { display: grid; gap: .35rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .teaser-grid { grid-template-columns: repeat(3, 1fr); } }
/* Meta/Hinweis */
.meta, .hint { font-size: 90%; color: var(--text-sub); margin-top: .35rem; }
/* Navigation Einzeiler */
.navline { margin: 0; }
/* Footer */
.ados-footerdate { font-size: 80%; color: #777; margin-top: .6rem; }
.ados-footerinfo {
border-top: 1px solid var(--border); margin-top: .8rem; padding-top: .5rem;
font-size: 92%; color: var(--text-sub);
}
.ados-footernote { text-align: center; font-size: 90%; margin-top: .8rem; color: var(--text-sub); }
/* Touch-friendly auf sehr kleinen Displays */
@media (max-width: 480px) {
.card { padding: 12px; }
.card h2 { font-size: 1.05rem; }
.ados-chips { gap: .4rem; }
.ados-hero p { font-size: .98em; }
}
/* Leichtes Hover-Feedback (nur Desktop) */
@media (pointer: fine) {
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transition: box-shadow .2s; }
}
/* Top-5 Widget (neutral, passt egal wie das JS ausgibt) */
.whisky-top5 { padding: .25rem 0; }
.whisky-top5 .item, .whisky-top5 li {
display: flex; justify-content: space-between; align-items: baseline;
gap: .6rem; padding: .35rem 0; border-bottom: 1px dashed #eaeaea;
}
.whisky-top5 .item:last-child, .whisky-top5 li:last-child { border-bottom: 0; }
/* Bevorzugt dunkles Farbschema */
@media (prefers-color-scheme: dark) {
:root {
--bg: #121212; --card: #1c1c1c; --muted: #181818; --border: #313131;
--text: #e8e8e8; --text-sub: #b4b4b4; --link: #86c2ff; --link-hover: #c5e1ff;
--shadow: 0 1px 4px rgba(0,0,0,.6);
}
img { filter: brightness(.95) contrast(1.05); }
}
/* Respektiere reduzierte Animationen */
@media (prefers-reduced-motion: reduce) {
* { animation: none !important; transition: none !important; }
}
-------------------------------------------------
/* ===== Hard Fix: Force Light Mode on iOS/Safari ===== */
html { color-scheme: light !important; } /* sagt Safari: NICHT auto-dunkeln */
@media (prefers-color-scheme: dark) {
/* falls Safari trotzdem toggelt: alles hell halten */
html, body { background: #ffffff !important; color: #222 !important; }
.card, .card-muted,
.whisky-rating__item,
.whisky-top5,
.mw-popup-modal,
.whisky-summary__table th,
.whisky-summary__table td {
background: #ffffff !important;
color: #222 !important;
border-color: #e6e6e6 !important;
box-shadow: 0 1px 3px rgba(0,0,0,.04) !important;
}
.whisky-summary__table tr:nth-child(even) td { background: #fafafa !important; }
.list.compact .news-item { border-bottom-color: #eee !important; }
a { color: #2d6ca2 !important; }
a:hover { color: #1c4d7d !important; }
img { filter: none !important; }
}
// .................
/* Overlay & Modal */
.mwnews-overlay{
position:fixed; inset:0;
background:rgba(0,0,0,.45);
z-index:10000;
}
.mwnews-modal{
position:fixed; top:50%; left:50%;
transform:translate(-50%,-50%);
background:#fff; color:#111;
max-width:96%; width:760px;
padding:22px 26px 26px;
border-radius:14px;
z-index:10001;
text-align:center;
box-shadow:0 10px 28px rgba(0,0,0,.35);
max-height:94vh; overflow-y:auto;
}
.mwnews-modal h2{ margin:8px 0 6px; font-size:1.35em; }
.mwnews-intro{ margin:.5em 0 1em; font-size:1.06em; line-height:1.5; }
/* Karten */
.mwnews-cards{
display:flex; gap:12px; flex-wrap:wrap; justify-content:center;
}
.mwnews-card{
display:block; width:300px; text-decoration:none; color:inherit;
background:#f8f9fa; border:1px solid #e3e6e8; border-radius:10px; overflow:hidden;
transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
box-shadow:0 3px 8px rgba(0,0,0,.12);
}
.mwnews-card:hover{ transform:translateY(-2px); box-shadow:0 8px 18px rgba(0,0,0,.18); border-color:#d5dadd; }
.mwnews-thumb img{ display:block; width:100%; height:210px; object-fit:cover; }
.mwnews-meta{ padding:10px 12px; }
.mwnews-title{ font-weight:700; font-size:1.02em; margin-bottom:6px; }
.mwnews-cta{ color:#36c; font-weight:600; }
/* Buttons */
.mwnews-btnrow{ display:flex; justify-content:center; gap:10px; margin-top:12px; }
.mwnews-close{
padding:10px 16px; border:0; background:#36c; color:#fff;
border-radius:6px; cursor:pointer; font-size:1em; font-weight:600;
}
.mwnews-close:hover{ background:#258; }
/* Mobil */
@media (max-width:640px){
.mwnews-modal{ width:calc(100% - 20px); padding:16px; }
.mwnews-card{ width:100%; }
.mwnews-thumb img{ height:240px; object-fit:contain; background:#000; }
}
/* -----------------------------------------
/* ========= 1) Grundlegende Linksichtbarkeit ========= */
.mw-parser-output a {
color: #2d6ca2; /* klarer Blauton */
text-decoration: underline; /* immer erkennbar */
text-underline-offset: 2px;
}
.mw-parser-output a:hover,
.mw-parser-output a:focus {
color: #1c4d7d;
text-decoration-thickness: 2px; /* stärker bei Hover */
}
.mw-parser-output a:visited { color: #5a3fa8; } /* erkennbar „bereits besucht“ */
/* Tastaturfokus (barrierefrei) */
.mw-parser-output a:focus-visible {
outline: 3px solid #99c2ff;
outline-offset: 2px;
border-radius: 4px;
}
/* Tap-Feedback auf Touch-Geräten */
@media (hover:none) and (pointer:coarse) {
.mw-parser-output a:active {
background: rgba(45,108,162,.08);
border-radius: 6px;
}
}
/* ========= 2) Link-Listen / Navigationslisten ========= */
.list-links { list-style: none; padding-left: 0; margin: .4rem 0; }
.list-links li {
display: flex; align-items: center; gap: .5rem;
padding: .45rem .6rem;
border: 1px solid #e6e6e6;
border-radius: 10px;
background: #fff;
margin: .35rem 0;
transition: transform .06s ease, box-shadow .12s ease, background .12s ease;
}
.list-links li::before { content: "›"; font-weight: 700; color: #888; }
.list-links li:hover { background:#f8fbff; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.list-links li a { text-decoration: none; } /* Kachel-Optik: kein Unterstrich im Kasten */
.list-links li a:hover { text-decoration: underline; }
/* ========= 3) „Chips“ / Kategorie-Pillen ========= */
.pill-row a, .pill-list a {
display: inline-block;
border: 1px solid #e0e0e0;
padding: .35rem .7rem;
border-radius: 999px;
background: #fff;
text-decoration: none;
transition: background .12s ease, box-shadow .12s ease, transform .06s ease;
}
.pill-row a:hover, .pill-list a:hover { background:#f2f7ff; box-shadow: 0 1px 6px rgba(0,0,0,.06); transform: translateY(-1px); }
.pill-row a:focus-visible, .pill-list a:focus-visible { outline: 3px solid #99c2ff; outline-offset: 2px; }
/* ========= 4) Ganze Karten klickbar machen ========= */
/* Im Wikitext: innerhalb .card den ersten Link mit class="card-link" setzen */
.card { position: relative; }
.card .card-link {
position: static; /* normal, falls man sie auch im Text sehen will */
font-weight: 600;
}
.card.card-clickable { cursor: pointer; }
.card.card-clickable:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
/* Optional: unsichtbarer Overlay-Link, falls du die ganze Karte klickbar willst:
<a class="card-overlay" href="..."></a> */
.card .card-overlay {
position:absolute; inset:0; z-index:1;
text-indent:-9999px; /* sichtbar lassen? dann weglassen */
background: transparent;
}
/* ========= 5) Kleinere Hinweise-Icons ========= */
a.external::after { content:" ↗"; font-size:.9em; }
a.category-link::after { content:" ⟶"; }
/* ========= 6) Dark-Mode kompatible Farben (nur wenn du Dark-Mode nutzt) ========= */
@media (prefers-color-scheme: dark) {
.mw-parser-output a { color:#86c2ff; }
.mw-parser-output a:hover, .mw-parser-output a:focus { color:#c5e1ff; }
.list-links li { background:#1c1c1c; border-color:#313131; }
.list-links li:hover { background:#20242b; }
.pill-row a, .pill-list a { background:#1c1c1c; border-color:#313131; }
}
.cargoNVD3chart svg {
min-height: 400px !important;
}
.nvd3 .nv-line path {
stroke-width: 3px !important;
stroke: #f0b429 !important;
}
.nvd3 text {
fill: #111 !important;
}
// ----------------Diagramm flexibel--------------------
.ados-chart-multi {
width: 100%;
max-width: 100%;
height: 300px; /* mobile Höhe */
}
@media (min-width: 768px) {
.ados-chart-multi {
height: 450px; /* Desktop */
}
}