Banner-Slider: Vor-/Zurück-Steuerung
Prev/Next-Navigationsbuttons für den Banner-Slider (carousel.js, generisch über [data-carousel-prev/next]), zugehörige ad-banner-Steuerungs-Styles und Chevron- Icons. Ohne JS bleiben die Controls ausgeblendet (progressive enhancement). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HGzc6GhWhmLJt1jC2q1SRZ
This commit is contained in:
@@ -1369,25 +1369,28 @@
|
||||
--banner-interval: 6s;
|
||||
}
|
||||
|
||||
/* Sektions-Kopf zentriert (einheitlich mit partners/persons/…) */
|
||||
.ad-banner > .container > h2,
|
||||
.ad-banner__subline {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ad-banner__subline {
|
||||
margin-top: 0.75rem;
|
||||
/* Volle Breite, damit der Dank in einer Zeile steht; auf Mobil bricht er natürlich um. */
|
||||
max-width: none;
|
||||
text-wrap: balance;
|
||||
}
|
||||
|
||||
.ad-banner__track {
|
||||
list-style: none;
|
||||
margin: 2rem 0 0;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Meta-Zeile unter dem Slider: Label links, Controls rechts */
|
||||
.ad-banner__meta {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
margin-top: 1rem;
|
||||
min-height: 2rem;
|
||||
}
|
||||
|
||||
.ad-banner__meta-label {
|
||||
font-size: var(--fs-400);
|
||||
color: var(--clr-text-muted);
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
|
||||
.ad-banner__slide[hidden] {
|
||||
display: none;
|
||||
}
|
||||
@@ -1613,13 +1616,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* Steuerung: Pause/Play-Taste + Indikatorleiste. */
|
||||
/* Steuerung: Pause/Play-Taste + Indikatorleiste — sitzt rechts in .ad-banner__meta. */
|
||||
.ad-banner__controls {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 1rem;
|
||||
margin-top: 1.75rem;
|
||||
gap: 0.75rem;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.ad-banner__controls[hidden] {
|
||||
@@ -1644,6 +1646,30 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ad-banner__nav-btn {
|
||||
display: inline-grid;
|
||||
place-items: center;
|
||||
width: 2.25rem;
|
||||
height: 2.25rem;
|
||||
padding: 0;
|
||||
font-size: 1rem;
|
||||
color: var(--clr-text);
|
||||
background: var(--clr-glass-bg);
|
||||
border: 1px solid var(--clr-glass-border);
|
||||
border-radius: 999px;
|
||||
cursor: pointer;
|
||||
transition: background var(--transition);
|
||||
}
|
||||
|
||||
.ad-banner__nav-btn:hover {
|
||||
background: rgb(255 255 255 / 0.2);
|
||||
}
|
||||
|
||||
.ad-banner__nav-btn:focus-visible {
|
||||
outline: 2px solid var(--clr-text);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.ad-banner__toggle:hover {
|
||||
background: rgb(255 255 255 / 0.2);
|
||||
}
|
||||
@@ -1654,7 +1680,7 @@
|
||||
}
|
||||
|
||||
.ad-banner__toggle-icon {
|
||||
font-size: 1.15rem;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
/* Pause-Icon im Abspiel-Zustand, Play-Icon wenn pausiert. */
|
||||
|
||||
Reference in New Issue
Block a user