Setze die Abspiel-Schaltfläche groß und mittig auf das Vorschaubild
Einstieg (Teaser) und Premium-Karten (Medien-, Programm-, Modul-, Bild-und-Text-Karte) gestalten sie gleich: großer Kreis, halbtransparent, mittig auf dem Bild; läuft der Clip, wird sie zur kleinen Anhalten-Schaltfläche in der Ecke. Skripte, Beschriftungen und Tastaturbedienung bleiben unverändert. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
57f3a18b82
commit
bd91104970
6 files changed
+185
-27
No files matched your search
@@ -393,47 +393,52 @@ .is-clip-playing > .lf-pc__clip {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* Abspiel-Schaltfläche: groß und halbtransparent mittig auf dem Vorschaubild; die Größe folgt der Breite des Bildes
|
||||
* (schmale Karte 48 px, breite bis 80 px). Läuft der Clip, wird sie zur kleinen „Anhalten“-Schaltfläche oben rechts, damit
|
||||
* sie das Bild nicht verdeckt. Gleiche Gestaltung wie im Einstieg (.lf-hero__video-toggle).
|
||||
*/
|
||||
.lf-pc__clip-toggle {
|
||||
position: absolute;
|
||||
inset: 8px 8px auto auto;
|
||||
inset: 50% auto auto 50%;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
inline-size: 30px;
|
||||
block-size: 30px;
|
||||
inline-size: clamp(48px, 24%, 80px);
|
||||
aspect-ratio: 1;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
color: var(--lf-white);
|
||||
background: rgb(3 37 81 / 62%);
|
||||
box-shadow: 0 0 0 1px rgb(255 255 255 / 40%);
|
||||
box-shadow: 0 0 0 2px rgb(255 255 255 / 70%), 0 6px 24px rgb(3 37 81 / 35%);
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* Klein im Bild, aber mit 44 px Trefferfläche für Finger und Zeiger. */
|
||||
.lf-pc__clip-toggle::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -7px;
|
||||
transform: translate(-50%, -50%);
|
||||
transition: background-color 0.2s ease, transform 0.2s ease;
|
||||
}
|
||||
|
||||
.is-clip-ready > .lf-pc__clip-toggle {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.lf-pc__clip-toggle:hover,
|
||||
.lf-pc__clip-toggle[aria-pressed="true"] {
|
||||
background: var(--lf-navy-deep, var(--lf-navy));
|
||||
.lf-pc__clip-toggle:hover {
|
||||
background: rgb(3 37 81 / 82%);
|
||||
transform: translate(-50%, -50%) scale(1.06);
|
||||
}
|
||||
|
||||
.lf-pc__clip-toggle:focus-visible {
|
||||
outline: 3px solid var(--color-focus);
|
||||
outline-offset: 3px;
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.lf-pc__clip-icon {
|
||||
inline-size: 16px;
|
||||
block-size: 16px;
|
||||
inline-size: 44%;
|
||||
block-size: 44%;
|
||||
}
|
||||
|
||||
/* Das Dreieck sitzt optisch etwas links; ein kleiner Versatz zentriert es im Kreis. */
|
||||
.lf-pc__clip-play {
|
||||
transform: translateX(1px);
|
||||
}
|
||||
|
||||
.lf-pc__clip-pause,
|
||||
@@ -445,11 +450,37 @@ .lf-pc__clip-toggle[aria-pressed="true"] .lf-pc__clip-pause {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
/* Läuft der Clip: kleine Schaltfläche oben rechts, mit 44 px Trefferfläche. */
|
||||
.lf-pc__clip-toggle[aria-pressed="true"] {
|
||||
inset: 8px 8px auto auto;
|
||||
inline-size: 30px;
|
||||
box-shadow: 0 0 0 1px rgb(255 255 255 / 40%);
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.lf-pc__clip-toggle[aria-pressed="true"]::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -7px;
|
||||
}
|
||||
|
||||
.lf-pc__clip-toggle[aria-pressed="true"]:hover {
|
||||
background: var(--lf-navy-deep, var(--lf-navy));
|
||||
transform: none;
|
||||
}
|
||||
|
||||
.lf-pc__clip-toggle[aria-pressed="true"] .lf-pc__clip-icon {
|
||||
inline-size: 16px;
|
||||
block-size: 16px;
|
||||
}
|
||||
|
||||
.is-clip-playing > .lf-pc__badge {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lf-pc__clip { transition: none; }
|
||||
.lf-pc__clip-toggle { transition: none; }
|
||||
.lf-pc__clip-toggle:hover { transform: translate(-50%, -50%); }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user