MediaWiki:Common.css: Unterschied zwischen den Versionen

Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(10 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) – eine konsolidierte Definition */
/* 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:
}
}


/* Variante: strukturierte Items (falls JS so ausgibt) */
/* 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 das Gadget nur <li> generiert */
/* 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, Karten, Teaser, Ratings
   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; }
/* Karten (generell im Wiki) */
.card {
  background: #fffaf2;                /* warm statt weiß */
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  position: relative;
}
.card > h2 { margin-top: 0; }
/* „Hero“-Karten (nicht ADOS-Header) */
.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; }


/* 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 columns on wide) */
/* 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:
}
}


/* Cards (globale Verwendung) */
/* 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; }
  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 Anpassung für Link-Kacheln */
/* 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; }
.chart-total-info {
 
  margin-top:.5rem;
  margin-bottom:.5rem;
}




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, elegant, ohne weiße Boxen
   13) ADOS-Hero – whiskyfarben, Fade, keine weißen Boxen
   ========================================================= */
   ========================================================= */


/* Whiskyfarbener Headerblock wie ConanWiki, aber dezenter */
/* Äußerer Hero-Block mit Fade nach unten ins Weiße */
.ados-hero {
.mw-parser-output .ados-hero {
  background: linear-gradient(135deg, #e7cfa4 0%, #d4b287 100%);
  padding: 1.4rem 1.6rem 1.6rem;
  margin: 0 0 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  border: 1px solid rgba(120,80,40,.15);
}
 
/* Grid im Hero */
.ados-hero__grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 1.2rem;
  align-items: center;
}
 
/* Titel links */
.ados-hero__title {
  font-family: "Georgia","Times New Roman",serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #4b2b14;
}
.ados-hero__title span { display:block; }
.ados-hero__title hr {
  width: 50%;
  margin-top: .6rem;
  border: 0;
  border-top: 1px solid rgba(75,43,20,.28);
}
 
/* Mitte – nur Text, KEINE Box */
.ados-hero__center-box {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #3a2918;
  text-align: center;
  padding: .2rem;
}
.ados-hero__center-box strong {
  color: #4b2b14;
  font-weight: 700;
}
 
/* Rechte Spalten */
.ados-hero__cols {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.ados-hero__col-title {
  font-weight: 700;
  margin-bottom: .2rem;
  color: #4b2b14;
  font-size: .95rem;
}
.ados-hero__col ul {
  margin: 0;
  padding-left: 1rem;
}
.ados-hero__col li {
  margin: .1rem 0;
}
 
/* Mobil: wie ConanWiki, alles untereinander */
@media (max-width: 720px) {
 
  .ados-hero {
    border-radius: 0;
    margin-left: -1rem;
    margin-right: -1rem;
    padding: 1.2rem 1rem 1.4rem;
  }
 
  .ados-hero__grid {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
 
  .ados-hero__title {
    font-size: 1.6rem;
  }
 
  .ados-hero__cols {
    flex-direction: column;
    gap: 1rem;
  }
 
  .ados-hero__col {
    text-align: center;
  }
}
 
/* Sicherheit: im Hero niemals weiße Boxkarten */
.ados-hero .card,
.ados-hero .whisky-top5,
.ados-hero .whisky-rating__item {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
 
 
 
 
 
 
 
/* ============================================
  ADOS-Hero – whiskyfarben, Fade nach unten
  ============================================ */
 
.ados-hero {
  /* whiskyfarben → nach unten ins Weiße auslaufen */
   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;
  }
}
}


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;
}
}