Biete das Vollbild für Vorschauclips je Widget an (ADR-43)
Neue Einstellung "fullscreen" (Vorgabe: nicht anbieten) an den Kartenwidgets und an Bild und Text. Die Schaltfläche erscheint nur mit freigegebenem Clip und wenn das Gerät Vollbild kann. Im Vollbild gibt es Ton und native Bedienung, Scrollen und Zeiger stoppen den Clip nicht; beim Verlassen kehrt die Karte zum Kartenbild zurück. Gemeinsames Modul resources/js/player/fullscreen.js. iPhone-Weg bisher nur als Logik, Gerätetest steht aus. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fd5db90b77
commit
adaa68948a
11 files changed
+382
-7
No files matched your search
@@ -474,6 +474,76 @@ .lf-pc__clip-toggle[aria-pressed="true"] .lf-pc__clip-icon {
|
||||
block-size: 16px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Vollbild (nur wenn das Widget es anbietet, data-clip-fullscreen, resources/js/card-clip.js): kleine runde Schaltfläche
|
||||
* unten rechts mit 44 px Trefferfläche. Sie bleibt verborgen, bis das Skript sie freigibt (Gerät kann Vollbild).
|
||||
*/
|
||||
.lf-pc__clip-fullscreen {
|
||||
position: absolute;
|
||||
inset: auto 8px 8px auto;
|
||||
display: none;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
inline-size: 32px;
|
||||
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 / 55%);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.lf-pc__clip-fullscreen::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: -6px;
|
||||
}
|
||||
|
||||
.is-clip-ready > .lf-pc__clip-fullscreen:not([hidden]) {
|
||||
display: inline-flex;
|
||||
}
|
||||
|
||||
.lf-pc__clip-fullscreen:hover {
|
||||
background: var(--lf-navy-deep, var(--lf-navy));
|
||||
}
|
||||
|
||||
.lf-pc__clip-fullscreen:focus-visible {
|
||||
outline: 3px solid var(--color-focus);
|
||||
outline-offset: 3px;
|
||||
}
|
||||
|
||||
.lf-pc__clip-fullscreen-icon {
|
||||
inline-size: 16px;
|
||||
block-size: 16px;
|
||||
}
|
||||
|
||||
/*
|
||||
* Der Clip im Vollbild: ganze Fläche, ohne Ausschnitt und Ecken (nichts wird abgeschnitten, auch nicht im Hochformat),
|
||||
* sofort sichtbar und bedienbar. Die beiden Selektoren stehen getrennt, weil ein unbekannter den anderen entwerten würde.
|
||||
*/
|
||||
video.lf-pc__clip:fullscreen {
|
||||
inline-size: 100%;
|
||||
block-size: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0;
|
||||
background: #000;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
video.lf-pc__clip:-webkit-full-screen {
|
||||
inline-size: 100%;
|
||||
block-size: 100%;
|
||||
object-fit: contain;
|
||||
border-radius: 0;
|
||||
background: #000;
|
||||
opacity: 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.is-clip-playing > .lf-pc__badge {
|
||||
opacity: 0.85;
|
||||
}
|
||||
@@ -481,6 +551,7 @@ .is-clip-playing > .lf-pc__badge {
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.lf-pc__clip { transition: none; }
|
||||
.lf-pc__clip-toggle { transition: none; }
|
||||
.lf-pc__clip-fullscreen { transition: none; }
|
||||
.lf-pc__clip-toggle:hover { transform: translate(-50%, -50%); }
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user