@skerbis/nativecss 0.0.0-stage → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/LICENSE +28 -0
- package/README.md +144 -2
- package/dist/base.css +225 -0
- package/dist/browser-fixes.css +32 -0
- package/dist/colors.css +288 -0
- package/dist/components/accordion-split.css +269 -0
- package/dist/components/alert.css +179 -0
- package/dist/components/app-shell.css +266 -0
- package/dist/components/audio-player.css +697 -0
- package/dist/components/audio.css +35 -0
- package/dist/components/aurora.css +132 -0
- package/dist/components/avatar.css +102 -0
- package/dist/components/back-to-top.css +120 -0
- package/dist/components/backdrop.css +94 -0
- package/dist/components/badge.css +95 -0
- package/dist/components/breadcrumb.css +58 -0
- package/dist/components/card.css +721 -0
- package/dist/components/code-block.css +234 -0
- package/dist/components/combobox.css +103 -0
- package/dist/components/command-palette.css +351 -0
- package/dist/components/comments.css +243 -0
- package/dist/components/compare.css +218 -0
- package/dist/components/count-up.css +140 -0
- package/dist/components/countdown.css +74 -0
- package/dist/components/cover.css +45 -0
- package/dist/components/curtain.css +116 -0
- package/dist/components/dialog-close.css +44 -0
- package/dist/components/disclosure.css +37 -0
- package/dist/components/downloads.css +47 -0
- package/dist/components/dropdown.css +260 -0
- package/dist/components/dropzone.css +181 -0
- package/dist/components/effects.css +236 -0
- package/dist/components/empty-state.css +74 -0
- package/dist/components/events.css +165 -0
- package/dist/components/expand-panels.css +220 -0
- package/dist/components/filter.css +179 -0
- package/dist/components/floating-label.css +69 -0
- package/dist/components/footer.css +56 -0
- package/dist/components/hero.css +139 -0
- package/dist/components/hovercard.css +146 -0
- package/dist/components/input-group.css +67 -0
- package/dist/components/kbd.css +44 -0
- package/dist/components/leaders.css +99 -0
- package/dist/components/lightbox.css +165 -0
- package/dist/components/lists.css +221 -0
- package/dist/components/livesearch.css +106 -0
- package/dist/components/map.css +245 -0
- package/dist/components/marginnote.css +109 -0
- package/dist/components/marquee.css +119 -0
- package/dist/components/modal.css +385 -0
- package/dist/components/morph.css +317 -0
- package/dist/components/nav-drilldown.css +190 -0
- package/dist/components/nav-priority.css +157 -0
- package/dist/components/nav.css +528 -0
- package/dist/components/notification.css +290 -0
- package/dist/components/off-canvas.css +107 -0
- package/dist/components/overlay.css +122 -0
- package/dist/components/pagination.css +139 -0
- package/dist/components/pill-group.css +143 -0
- package/dist/components/placeholder.css +28 -0
- package/dist/components/preferences-fonts.css +65 -0
- package/dist/components/preferences.css +283 -0
- package/dist/components/pricing.css +220 -0
- package/dist/components/rating.css +121 -0
- package/dist/components/reveal-pin.css +165 -0
- package/dist/components/roadmap.css +173 -0
- package/dist/components/scroll-frames.css +97 -0
- package/dist/components/scroll-horizontal.css +141 -0
- package/dist/components/scroll-progress.css +63 -0
- package/dist/components/scroll-stack.css +363 -0
- package/dist/components/scroll-video.css +172 -0
- package/dist/components/scrolly.css +190 -0
- package/dist/components/search.css +52 -0
- package/dist/components/segmented.css +209 -0
- package/dist/components/select.css +186 -0
- package/dist/components/slideshow.css +441 -0
- package/dist/components/sortable.css +186 -0
- package/dist/components/sparkline.css +50 -0
- package/dist/components/spinner.css +50 -0
- package/dist/components/split.css +85 -0
- package/dist/components/spotlight.css +111 -0
- package/dist/components/stat.css +82 -0
- package/dist/components/stepper.css +217 -0
- package/dist/components/subnav.css +151 -0
- package/dist/components/table-sort.css +111 -0
- package/dist/components/tabs.css +304 -0
- package/dist/components/tag.css +130 -0
- package/dist/components/testimonial.css +188 -0
- package/dist/components/text-reveal.css +141 -0
- package/dist/components/theme-toggle.css +62 -0
- package/dist/components/tile.css +53 -0
- package/dist/components/timeline.css +211 -0
- package/dist/components/toolbar.css +139 -0
- package/dist/components/tooltip.css +89 -0
- package/dist/components/topbar.css +92 -0
- package/dist/components/video-bg.css +176 -0
- package/dist/components/video-card.css +145 -0
- package/dist/components/video-float.css +142 -0
- package/dist/components/video-player.css +1116 -0
- package/dist/components/video-text.css +91 -0
- package/dist/components/video.css +65 -0
- package/dist/fonts/README.md +29 -0
- package/dist/fonts/atkinson-hyperlegible-next/OFL.txt +93 -0
- package/dist/fonts/atkinson-hyperlegible-next/atkinson-hyperlegible-next.woff2 +0 -0
- package/dist/fonts/lexend/OFL.txt +93 -0
- package/dist/fonts/lexend/lexend.woff2 +0 -0
- package/dist/fonts/opendyslexic/OFL.txt +94 -0
- package/dist/fonts/opendyslexic/OpenDyslexic-Bold.woff2 +0 -0
- package/dist/fonts/opendyslexic/OpenDyslexic-Regular.woff2 +0 -0
- package/dist/helpers/a11y.css +71 -0
- package/dist/helpers/animations.css +206 -0
- package/dist/helpers/elevation.css +87 -0
- package/dist/helpers/float.css +117 -0
- package/dist/helpers/forms.css +503 -0
- package/dist/helpers/icons.css +130 -0
- package/dist/helpers/layout.css +549 -0
- package/dist/helpers/media.css +77 -0
- package/dist/helpers/reveal.css +172 -0
- package/dist/helpers/scroll-shadow.css +129 -0
- package/dist/helpers/scroll.css +163 -0
- package/dist/helpers/surfaces.css +87 -0
- package/dist/helpers/tables.css +85 -0
- package/dist/helpers/typography.css +347 -0
- package/dist/helpers/visibility.css +134 -0
- package/dist/integrations/fontawesome-font-display-fix.css +67 -0
- package/dist/integrations/webawesome-bridge.css +195 -0
- package/dist/js/audio-player.js +942 -0
- package/dist/js/backdrop.js +119 -0
- package/dist/js/code-block.js +238 -0
- package/dist/js/combobox.js +382 -0
- package/dist/js/command-fallback.js +35 -0
- package/dist/js/command-palette.js +477 -0
- package/dist/js/compare.js +73 -0
- package/dist/js/content-observer.js +82 -0
- package/dist/js/count-up.js +150 -0
- package/dist/js/countdown.js +185 -0
- package/dist/js/dialog-light-dismiss.js +123 -0
- package/dist/js/dismiss.js +144 -0
- package/dist/js/downloads.js +181 -0
- package/dist/js/dropdown.js +300 -0
- package/dist/js/dropzone.js +304 -0
- package/dist/js/events.js +501 -0
- package/dist/js/filter.js +177 -0
- package/dist/js/hero-video-motion.js +37 -0
- package/dist/js/hide-on-scroll-fallback.js +102 -0
- package/dist/js/hovercard.js +228 -0
- package/dist/js/icon.js +166 -0
- package/dist/js/ics.js +290 -0
- package/dist/js/lightbox.js +144 -0
- package/dist/js/livesearch.js +253 -0
- package/dist/js/map.js +625 -0
- package/dist/js/marquee.js +108 -0
- package/dist/js/modal-router.js +298 -0
- package/dist/js/nav-drilldown.js +250 -0
- package/dist/js/nav-priority.js +221 -0
- package/dist/js/nav.js +28 -0
- package/dist/js/ncss-container.js +117 -0
- package/dist/js/notification.js +372 -0
- package/dist/js/page-transitions-quiet.js +44 -0
- package/dist/js/preferences-early.js +51 -0
- package/dist/js/preferences.js +346 -0
- package/dist/js/reveal.js +79 -0
- package/dist/js/scroll-frames.js +284 -0
- package/dist/js/scroll-horizontal.js +121 -0
- package/dist/js/scroll-stack-fallback.js +250 -0
- package/dist/js/scroll-video.js +332 -0
- package/dist/js/scrolly.js +109 -0
- package/dist/js/slideshow.js +416 -0
- package/dist/js/sortable.js +530 -0
- package/dist/js/sparkline.js +199 -0
- package/dist/js/spotlight.js +104 -0
- package/dist/js/subnav.js +163 -0
- package/dist/js/table-sort.js +312 -0
- package/dist/js/tabs.js +243 -0
- package/dist/js/text-reveal.js +108 -0
- package/dist/js/theme-toggle-early.js +28 -0
- package/dist/js/theme-toggle.js +135 -0
- package/dist/js/toolbar.js +130 -0
- package/dist/js/tooltip.js +214 -0
- package/dist/js/video-bg.js +193 -0
- package/dist/js/video-card.js +80 -0
- package/dist/js/video-float.js +119 -0
- package/dist/js/video-player.js +1267 -0
- package/dist/js/view-transitions.js +118 -0
- package/dist/js/wa-close-on-scroll.js +56 -0
- package/dist/ncss.css +165 -0
- package/dist/page-transitions.css +150 -0
- package/dist/reset.css +196 -0
- package/dist/theme.css +112 -0
- package/dist/tokens.css +238 -0
- package/package.json +52 -4
|
@@ -0,0 +1,1116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ncss - <ncss-video-player> (Layer "components"): eigener Videoplayer über einem
|
|
3
|
+
* nativen <video controls>, Logik in js/video-player.js (Markup/Attribute/Tasten dort).
|
|
4
|
+
*
|
|
5
|
+
* <ncss-video-player>
|
|
6
|
+
* <video controls playsinline preload="metadata" poster="poster.jpg" src="film.mp4">
|
|
7
|
+
* <track kind="captions" src="de.vtt" srclang="de" label="Deutsch">
|
|
8
|
+
* </video>
|
|
9
|
+
* </ncss-video-player>
|
|
10
|
+
*
|
|
11
|
+
* Karte mit Kapitel- und Playlist-Spalte (wie <ncss-audio-player layout="card">):
|
|
12
|
+
* <ncss-video-player layout="card">
|
|
13
|
+
* <video ...></video>
|
|
14
|
+
* <p class="ncss-video-player-title">Titel</p>
|
|
15
|
+
* <p class="ncss-video-player-meta">Untertitel/Quelle</p>
|
|
16
|
+
* <ol class="ncss-video-player-playlist">
|
|
17
|
+
* <li><a href="b.mp4" data-poster="b.jpg" data-title="B"><img src="b.jpg" alt="">
|
|
18
|
+
* <span>B</span> <span>0:10</span></a></li>
|
|
19
|
+
* </ol>
|
|
20
|
+
* </ncss-video-player>
|
|
21
|
+
*
|
|
22
|
+
* Gestaltung: dieselbe Formensprache wie components/audio-player.css - gleiche Symbole,
|
|
23
|
+
* runder Play-Button in der Akzentfarbe, 0.3rem-Spur mit Griff + Ring, Kapitel als
|
|
24
|
+
* Lücken, gleiche Kapitel-/Playlist-Listen und Menüs. Weil die Bedienelemente über einem
|
|
25
|
+
* beliebigen Videobild liegen, stehen sie auf einem weichen Verlauf am unteren Rand
|
|
26
|
+
* (kein umrahmtes Panel) und sind dort fest weiß - eine Kontrast-Konstante "über Bild",
|
|
27
|
+
* keine Theme-Farbe (wie .ncss-text-light). Karte, Listen, Zeit-Pille und Menü folgen
|
|
28
|
+
* dem Seiten-Theme. Die Werte sind bewusst in dieser Datei dupliziert statt aus
|
|
29
|
+
* audio-player.css geerbt: jede Datei bleibt einzeln einsetzbar.
|
|
30
|
+
*
|
|
31
|
+
* Zustände:
|
|
32
|
+
* - :not(:defined) (kein JS): natives <video controls>, Titel und Playlist als
|
|
33
|
+
* einfache Liste darunter (Links öffnen die Dateien).
|
|
34
|
+
* - .is-enhanced: eigene Bedienung auf .ncss-video-player-stage (Video + Ebenen; im
|
|
35
|
+
* Vollbild nur diese Bühne). Bei layout="card" steht .ncss-video-player-panel
|
|
36
|
+
* (Titel, Kapitel, Playlist) neben der Bühne, wenn ~54rem Platz sind, sonst
|
|
37
|
+
* darunter (flex-wrap, kein Breakpoint).
|
|
38
|
+
*
|
|
39
|
+
* Anpassbar (auf dem Element): --ncss-video-player-accent (Default --ncss-color-brand,
|
|
40
|
+
* wie der Audioplayer), --ncss-video-player-radius, --ncss-video-player-cue-size.
|
|
41
|
+
*
|
|
42
|
+
* Benötigt: tokens.css + colors.css (+ reset/base). Keine anderen ncss-Dateien - eigene
|
|
43
|
+
* visually-hidden-Klasse (.ncss-video-player-sr).
|
|
44
|
+
*/
|
|
45
|
+
|
|
46
|
+
ncss-video-player {
|
|
47
|
+
--ncss-video-player-accent: var(--ncss-color-brand);
|
|
48
|
+
--ncss-video-player-radius: var(--ncss-radius-lg);
|
|
49
|
+
--ncss-video-player-cue-size: clamp(0.875rem, 3.2cqi, 2rem);
|
|
50
|
+
--ncss-video-player-btn: 2.25rem;
|
|
51
|
+
--ncss-video-player-fade: 400ms;
|
|
52
|
+
display: block;
|
|
53
|
+
container: ncss-video-player / inline-size;
|
|
54
|
+
color: var(--ncss-color-text);
|
|
55
|
+
|
|
56
|
+
& > video {
|
|
57
|
+
display: block;
|
|
58
|
+
width: 100%;
|
|
59
|
+
height: auto;
|
|
60
|
+
border-radius: var(--ncss-video-player-radius);
|
|
61
|
+
}
|
|
62
|
+
&:focus {
|
|
63
|
+
outline: none;
|
|
64
|
+
}
|
|
65
|
+
&:focus-visible {
|
|
66
|
+
outline: var(--ncss-focus-ring-width) solid var(--ncss-color-focus-ring);
|
|
67
|
+
outline-offset: 2px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* --- Bühne: Video + Ebenen ------------------------------------------------------------ */
|
|
72
|
+
.ncss-video-player-stage {
|
|
73
|
+
position: relative;
|
|
74
|
+
isolation: isolate;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
container: ncss-video-player-stage / inline-size;
|
|
77
|
+
color: #fff;
|
|
78
|
+
background-color: #000;
|
|
79
|
+
border-radius: var(--ncss-video-player-radius);
|
|
80
|
+
line-height: 1.2;
|
|
81
|
+
-webkit-tap-highlight-color: transparent;
|
|
82
|
+
|
|
83
|
+
& > video {
|
|
84
|
+
display: block;
|
|
85
|
+
width: 100%;
|
|
86
|
+
height: auto;
|
|
87
|
+
}
|
|
88
|
+
/* Weicher Verlauf am unteren Rand: trägt die Lesbarkeit der weißen Bedienelemente auf
|
|
89
|
+
jedem Bild, ohne sichtbare Panel-Kante. */
|
|
90
|
+
&::after {
|
|
91
|
+
content: "";
|
|
92
|
+
position: absolute;
|
|
93
|
+
inset: auto 0 0;
|
|
94
|
+
z-index: 1;
|
|
95
|
+
height: min(55%, 10rem);
|
|
96
|
+
background: linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 30%) 45%, rgb(0 0 0 / 0%));
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
transition: opacity var(--ncss-video-player-fade) var(--ncss-motion-easing);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
ncss-video-player.is-fullscreen .ncss-video-player-stage {
|
|
102
|
+
border-radius: 0;
|
|
103
|
+
|
|
104
|
+
& > video {
|
|
105
|
+
position: absolute;
|
|
106
|
+
inset: 0;
|
|
107
|
+
height: 100%;
|
|
108
|
+
object-fit: contain;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ncss-video-player-sr {
|
|
113
|
+
position: absolute;
|
|
114
|
+
width: 1px;
|
|
115
|
+
height: 1px;
|
|
116
|
+
margin: -1px;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
clip-path: inset(50%);
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/* --- Buttons (Form wie im Audioplayer) ------------------------------------------------ */
|
|
123
|
+
.ncss-video-player-btn {
|
|
124
|
+
position: relative;
|
|
125
|
+
display: inline-grid;
|
|
126
|
+
place-items: center;
|
|
127
|
+
flex: none;
|
|
128
|
+
min-width: var(--ncss-video-player-btn);
|
|
129
|
+
height: var(--ncss-video-player-btn);
|
|
130
|
+
margin: 0;
|
|
131
|
+
padding: 0 0.35rem;
|
|
132
|
+
font: inherit;
|
|
133
|
+
color: inherit;
|
|
134
|
+
background: transparent;
|
|
135
|
+
border: var(--ncss-border-width) solid transparent;
|
|
136
|
+
border-radius: var(--ncss-radius-md);
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
touch-action: manipulation;
|
|
139
|
+
transition: background-color var(--ncss-motion-duration-fast) var(--ncss-motion-easing),
|
|
140
|
+
scale var(--ncss-motion-duration-fast) var(--ncss-motion-easing),
|
|
141
|
+
opacity var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
142
|
+
|
|
143
|
+
&[hidden] {
|
|
144
|
+
display: none;
|
|
145
|
+
}
|
|
146
|
+
&:active {
|
|
147
|
+
scale: 0.92;
|
|
148
|
+
}
|
|
149
|
+
&:disabled {
|
|
150
|
+
opacity: 0.4;
|
|
151
|
+
cursor: default;
|
|
152
|
+
scale: 1;
|
|
153
|
+
}
|
|
154
|
+
/* Doppelter Ring (weiß + dunkel): sichtbar auf jedem Videobild */
|
|
155
|
+
&:focus-visible {
|
|
156
|
+
outline: 2px solid #fff;
|
|
157
|
+
outline-offset: 1px;
|
|
158
|
+
box-shadow: 0 0 0 4px rgb(0 0 0 / 55%);
|
|
159
|
+
}
|
|
160
|
+
&::before {
|
|
161
|
+
content: "";
|
|
162
|
+
width: 1.2rem;
|
|
163
|
+
height: 1.2rem;
|
|
164
|
+
background-color: currentColor;
|
|
165
|
+
filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 40%));
|
|
166
|
+
/* Longhands statt mask-Kurzform: die Kurzform setzt mask-image mit zurück und würde
|
|
167
|
+
die Icon-Regeln unten überschreiben. */
|
|
168
|
+
-webkit-mask-position: center;
|
|
169
|
+
mask-position: center;
|
|
170
|
+
-webkit-mask-size: contain;
|
|
171
|
+
mask-size: contain;
|
|
172
|
+
-webkit-mask-repeat: no-repeat;
|
|
173
|
+
mask-repeat: no-repeat;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@media (hover: hover) and (pointer: fine) {
|
|
177
|
+
.ncss-video-player-btn:hover:not(:active, :disabled) {
|
|
178
|
+
background-color: rgb(255 255 255 / 14%);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
.ncss-video-player-btn--play::before,
|
|
182
|
+
.ncss-video-player-btn--big::before {
|
|
183
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E");
|
|
184
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E");
|
|
185
|
+
}
|
|
186
|
+
.ncss-video-player-btn--play.is-alt::before,
|
|
187
|
+
.ncss-video-player-btn--big.is-alt::before {
|
|
188
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3Crect x='14' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3C/svg%3E");
|
|
189
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3Crect x='14' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3C/svg%3E");
|
|
190
|
+
}
|
|
191
|
+
.ncss-video-player-btn--mute::before {
|
|
192
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E");
|
|
193
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E");
|
|
194
|
+
}
|
|
195
|
+
.ncss-video-player-btn--mute.is-alt::before {
|
|
196
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M15.5 9l5 6m0-6l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
197
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3z'/%3E%3Cpath d='M15.5 9l5 6m0-6l-5 6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
198
|
+
}
|
|
199
|
+
.ncss-video-player-btn--prev::before {
|
|
200
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='5' width='2.6' height='14' rx='1'/%3E%3Cpath d='M19 6.1v11.8a1 1 0 0 1-1.55.83L9.3 13.2a1.4 1.4 0 0 1 0-2.4l8.15-5.53A1 1 0 0 1 19 6.1z'/%3E%3C/svg%3E");
|
|
201
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='5' width='2.6' height='14' rx='1'/%3E%3Cpath d='M19 6.1v11.8a1 1 0 0 1-1.55.83L9.3 13.2a1.4 1.4 0 0 1 0-2.4l8.15-5.53A1 1 0 0 1 19 6.1z'/%3E%3C/svg%3E");
|
|
202
|
+
}
|
|
203
|
+
.ncss-video-player-btn--next::before {
|
|
204
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='16.4' y='5' width='2.6' height='14' rx='1'/%3E%3Cpath d='M5 6.1v11.8a1 1 0 0 0 1.55.83l8.15-5.53a1.4 1.4 0 0 0 0-2.4L6.55 5.27A1 1 0 0 0 5 6.1z'/%3E%3C/svg%3E");
|
|
205
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='16.4' y='5' width='2.6' height='14' rx='1'/%3E%3Cpath d='M5 6.1v11.8a1 1 0 0 0 1.55.83l8.15-5.53a1.4 1.4 0 0 0 0-2.4L6.55 5.27A1 1 0 0 0 5 6.1z'/%3E%3C/svg%3E");
|
|
206
|
+
}
|
|
207
|
+
.ncss-video-player-btn--cc::before {
|
|
208
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M10.5 10.2a2.3 2.3 0 1 0 0 3.6M17 10.2a2.3 2.3 0 1 0 0 3.6' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
209
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M10.5 10.2a2.3 2.3 0 1 0 0 3.6M17 10.2a2.3 2.3 0 1 0 0 3.6' stroke-linecap='round'/%3E%3C/svg%3E");
|
|
210
|
+
}
|
|
211
|
+
/* Untertitel an: gefülltes Symbol (Zustand nicht nur über Farbe) */
|
|
212
|
+
.ncss-video-player-btn--cc.is-alt::before {
|
|
213
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4zm2.9 5a3 3 0 1 0 2.2 5l-1.2-1.1a1.4 1.4 0 1 1 0-1.8l1.2-1.1A3 3 0 0 0 8.9 9zm6.6 0a3 3 0 1 0 2.2 5l-1.2-1.1a1.4 1.4 0 1 1 0-1.8l1.2-1.1a3 3 0 0 0-2.2-1z'/%3E%3C/svg%3E");
|
|
214
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M6 4h12a4 4 0 0 1 4 4v8a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V8a4 4 0 0 1 4-4zm2.9 5a3 3 0 1 0 2.2 5l-1.2-1.1a1.4 1.4 0 1 1 0-1.8l1.2-1.1A3 3 0 0 0 8.9 9zm6.6 0a3 3 0 1 0 2.2 5l-1.2-1.1a1.4 1.4 0 1 1 0-1.8l1.2-1.1a3 3 0 0 0-2.2-1z'/%3E%3C/svg%3E");
|
|
215
|
+
}
|
|
216
|
+
.ncss-video-player-btn--settings::before {
|
|
217
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M19.14 12.94c.04-.3.06-.61.06-.94s-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96a7 7 0 0 0-1.62-.94l-.36-2.54a.48.48 0 0 0-.48-.41h-3.84a.47.47 0 0 0-.47.41l-.36 2.54a7.2 7.2 0 0 0-1.62.94l-2.39-.96a.48.48 0 0 0-.59.22L2.74 8.87a.47.47 0 0 0 .12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54a7 7 0 0 0 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32a.47.47 0 0 0-.12-.61zM12 15.6a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2z'/%3E%3C/svg%3E");
|
|
218
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M19.14 12.94c.04-.3.06-.61.06-.94s-.02-.64-.07-.94l2.03-1.58a.49.49 0 0 0 .12-.61l-1.92-3.32a.49.49 0 0 0-.59-.22l-2.39.96a7 7 0 0 0-1.62-.94l-.36-2.54a.48.48 0 0 0-.48-.41h-3.84a.47.47 0 0 0-.47.41l-.36 2.54a7.2 7.2 0 0 0-1.62.94l-2.39-.96a.48.48 0 0 0-.59.22L2.74 8.87a.47.47 0 0 0 .12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58a.49.49 0 0 0-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54a7 7 0 0 0 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32a.47.47 0 0 0-.12-.61zM12 15.6a3.6 3.6 0 1 1 0-7.2 3.6 3.6 0 0 1 0 7.2z'/%3E%3C/svg%3E");
|
|
219
|
+
transition: rotate var(--ncss-motion-duration-slow) var(--ncss-motion-easing-emphasized);
|
|
220
|
+
}
|
|
221
|
+
ncss-video-player.is-menu-open .ncss-video-player-btn--settings::before {
|
|
222
|
+
rotate: 45deg;
|
|
223
|
+
}
|
|
224
|
+
/* Abweichende Geschwindigkeit als kleines Badge am Zahnrad ("1.5×") */
|
|
225
|
+
.ncss-video-player-btn--settings:not([data-badge=""])::after {
|
|
226
|
+
content: attr(data-badge);
|
|
227
|
+
position: absolute;
|
|
228
|
+
top: -0.1rem;
|
|
229
|
+
right: -0.2rem;
|
|
230
|
+
padding: 0.1rem 0.3rem;
|
|
231
|
+
font-size: 0.625rem;
|
|
232
|
+
font-weight: var(--ncss-font-weight-bold);
|
|
233
|
+
font-variant-numeric: tabular-nums;
|
|
234
|
+
line-height: 1;
|
|
235
|
+
color: var(--ncss-color-brand-contrast);
|
|
236
|
+
background-color: var(--ncss-video-player-accent);
|
|
237
|
+
border-radius: var(--ncss-radius-full);
|
|
238
|
+
}
|
|
239
|
+
.ncss-video-player-btn--pip::before {
|
|
240
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3'/%3E%3Crect x='12' y='11.5' width='7' height='5' rx='1' fill='black' stroke='none'/%3E%3C/svg%3E");
|
|
241
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9'%3E%3Crect x='2.5' y='4.5' width='19' height='15' rx='3'/%3E%3Crect x='12' y='11.5' width='7' height='5' rx='1' fill='black' stroke='none'/%3E%3C/svg%3E");
|
|
242
|
+
}
|
|
243
|
+
.ncss-video-player-btn--pip.is-alt {
|
|
244
|
+
background-color: rgb(255 255 255 / 18%);
|
|
245
|
+
}
|
|
246
|
+
.ncss-video-player-btn--fs::before {
|
|
247
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15'/%3E%3C/svg%3E");
|
|
248
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9V5.5A1.5 1.5 0 0 1 5.5 4H9M15 4h3.5A1.5 1.5 0 0 1 20 5.5V9M20 15v3.5a1.5 1.5 0 0 1-1.5 1.5H15M9 20H5.5A1.5 1.5 0 0 1 4 18.5V15'/%3E%3C/svg%3E");
|
|
249
|
+
}
|
|
250
|
+
.ncss-video-player-btn--fs.is-alt::before {
|
|
251
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4M20 9h-3.5A1.5 1.5 0 0 1 15 7.5V4M15 20v-3.5a1.5 1.5 0 0 1 1.5-1.5H20M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20'/%3E%3C/svg%3E");
|
|
252
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4v3.5A1.5 1.5 0 0 1 7.5 9H4M20 9h-3.5A1.5 1.5 0 0 1 15 7.5V4M15 20v-3.5a1.5 1.5 0 0 1 1.5-1.5H20M4 15h3.5A1.5 1.5 0 0 1 9 16.5V20'/%3E%3C/svg%3E");
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/* Play: gefüllter Kreis in der Akzentfarbe - wie im Audioplayer */
|
|
256
|
+
.ncss-video-player-btn--play,
|
|
257
|
+
.ncss-video-player-btn--big {
|
|
258
|
+
width: var(--ncss-video-player-btn);
|
|
259
|
+
padding: 0;
|
|
260
|
+
color: var(--ncss-color-brand-contrast);
|
|
261
|
+
background-color: var(--ncss-video-player-accent);
|
|
262
|
+
border-radius: var(--ncss-radius-full);
|
|
263
|
+
|
|
264
|
+
&::before {
|
|
265
|
+
translate: 6% 0;
|
|
266
|
+
filter: none;
|
|
267
|
+
}
|
|
268
|
+
&.is-alt::before {
|
|
269
|
+
translate: none;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
@media (hover: hover) and (pointer: fine) {
|
|
273
|
+
.ncss-video-player-btn--play:hover:not(:active) {
|
|
274
|
+
background-color: color-mix(in oklch, var(--ncss-video-player-accent) 85%, #fff);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/* Großer Play-Button in der Bildmitte: derselbe Akzent-Kreis wie der Play-Button der
|
|
279
|
+
Audio-Karte, nur größer; verschwindet während der Wiedergabe. */
|
|
280
|
+
.ncss-video-player-btn--big {
|
|
281
|
+
--ncss-video-player-btn: clamp(3.25rem, 11cqi, 4.5rem);
|
|
282
|
+
position: absolute;
|
|
283
|
+
z-index: 2;
|
|
284
|
+
/* mittig im Bildbereich ÜBER der Leiste, damit er sie auf kleinen Bühnen nicht berührt */
|
|
285
|
+
inset: 0 0 2.75rem;
|
|
286
|
+
margin: auto;
|
|
287
|
+
box-shadow: 0 0 0 6px color-mix(in oklch, var(--ncss-video-player-accent) 30%, transparent), var(--ncss-shadow-lg);
|
|
288
|
+
transition: opacity var(--ncss-motion-duration-slow) var(--ncss-motion-easing),
|
|
289
|
+
scale var(--ncss-motion-duration-slow) var(--ncss-motion-easing-emphasized),
|
|
290
|
+
background-color var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
291
|
+
|
|
292
|
+
&::before {
|
|
293
|
+
width: 40%;
|
|
294
|
+
height: 40%;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
@media (hover: hover) and (pointer: fine) {
|
|
298
|
+
.ncss-video-player-btn--big:hover:not(:active) {
|
|
299
|
+
background-color: color-mix(in oklch, var(--ncss-video-player-accent) 85%, #fff);
|
|
300
|
+
scale: 1.06;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
ncss-video-player:is(.is-playing, .is-waiting, .is-error) .ncss-video-player-btn--big {
|
|
304
|
+
opacity: 0;
|
|
305
|
+
scale: 0.7;
|
|
306
|
+
pointer-events: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
/* --- Leiste: keine Fläche, nur Inhalt über dem Verlauf ------------------------------- */
|
|
310
|
+
.ncss-video-player-bar {
|
|
311
|
+
position: absolute;
|
|
312
|
+
z-index: 3;
|
|
313
|
+
inset: auto 0 0;
|
|
314
|
+
display: flex;
|
|
315
|
+
flex-direction: column;
|
|
316
|
+
gap: 0.125rem;
|
|
317
|
+
padding: 0 clamp(0.5rem, 2.5cqi, 1rem) clamp(0.25rem, 1.5cqi, 0.6rem);
|
|
318
|
+
transition: opacity var(--ncss-video-player-fade) var(--ncss-motion-easing),
|
|
319
|
+
translate var(--ncss-video-player-fade) var(--ncss-motion-easing);
|
|
320
|
+
}
|
|
321
|
+
.ncss-video-player-controls {
|
|
322
|
+
display: flex;
|
|
323
|
+
align-items: center;
|
|
324
|
+
gap: 0.25rem;
|
|
325
|
+
min-width: 0;
|
|
326
|
+
}
|
|
327
|
+
.ncss-video-player-time {
|
|
328
|
+
padding-inline: 0.5rem 0.25rem;
|
|
329
|
+
font-size: var(--ncss-font-size-sm);
|
|
330
|
+
font-variant-numeric: tabular-nums;
|
|
331
|
+
white-space: nowrap;
|
|
332
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
|
|
333
|
+
}
|
|
334
|
+
.ncss-video-player-time-sep,
|
|
335
|
+
.ncss-video-player-time-total,
|
|
336
|
+
.ncss-video-player-chapter {
|
|
337
|
+
color: rgb(255 255 255 / 72%);
|
|
338
|
+
}
|
|
339
|
+
.ncss-video-player-chapter {
|
|
340
|
+
min-width: 0;
|
|
341
|
+
overflow: hidden;
|
|
342
|
+
font-size: var(--ncss-font-size-sm);
|
|
343
|
+
text-overflow: ellipsis;
|
|
344
|
+
white-space: nowrap;
|
|
345
|
+
text-shadow: 0 1px 2px rgb(0 0 0 / 50%);
|
|
346
|
+
|
|
347
|
+
&:not(:empty)::before {
|
|
348
|
+
content: "· ";
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
.ncss-video-player-spacer {
|
|
352
|
+
flex: 1 1 0;
|
|
353
|
+
min-width: 0;
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/* Nach Inaktivität ausblenden (Leiste, Verlauf, Mauszeiger) */
|
|
357
|
+
ncss-video-player.is-idle .ncss-video-player-stage {
|
|
358
|
+
cursor: none;
|
|
359
|
+
|
|
360
|
+
& > .ncss-video-player-bar {
|
|
361
|
+
opacity: 0;
|
|
362
|
+
translate: 0 0.5rem;
|
|
363
|
+
pointer-events: none;
|
|
364
|
+
}
|
|
365
|
+
&::after {
|
|
366
|
+
opacity: 0;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* --- Regler (wie im Audioplayer: 0.3rem-Spur, Griff in Akzentfarbe mit Ring) ------- */
|
|
371
|
+
.ncss-video-player-range {
|
|
372
|
+
-webkit-appearance: none;
|
|
373
|
+
appearance: none;
|
|
374
|
+
display: block;
|
|
375
|
+
margin: 0;
|
|
376
|
+
padding: 0;
|
|
377
|
+
min-width: 0;
|
|
378
|
+
height: 1.5rem;
|
|
379
|
+
background: transparent;
|
|
380
|
+
cursor: pointer;
|
|
381
|
+
|
|
382
|
+
&:focus {
|
|
383
|
+
outline: none;
|
|
384
|
+
}
|
|
385
|
+
&:focus-visible {
|
|
386
|
+
outline: 2px solid #fff;
|
|
387
|
+
outline-offset: 1px;
|
|
388
|
+
border-radius: var(--ncss-radius-sm);
|
|
389
|
+
}
|
|
390
|
+
&:disabled {
|
|
391
|
+
cursor: default;
|
|
392
|
+
}
|
|
393
|
+
&::-webkit-slider-runnable-track {
|
|
394
|
+
height: 100%;
|
|
395
|
+
background: transparent;
|
|
396
|
+
border: 0;
|
|
397
|
+
}
|
|
398
|
+
&::-moz-range-track {
|
|
399
|
+
height: 100%;
|
|
400
|
+
background: transparent;
|
|
401
|
+
border: 0;
|
|
402
|
+
}
|
|
403
|
+
&::-webkit-slider-thumb {
|
|
404
|
+
-webkit-appearance: none;
|
|
405
|
+
appearance: none;
|
|
406
|
+
width: 0.875rem;
|
|
407
|
+
height: 0.875rem;
|
|
408
|
+
margin-top: 0.3125rem;
|
|
409
|
+
background-color: var(--ncss-video-player-accent);
|
|
410
|
+
border: 0;
|
|
411
|
+
border-radius: 50%;
|
|
412
|
+
box-shadow: 0 0 0 2px #fff, var(--ncss-shadow-sm);
|
|
413
|
+
}
|
|
414
|
+
&::-moz-range-thumb {
|
|
415
|
+
width: 0.875rem;
|
|
416
|
+
height: 0.875rem;
|
|
417
|
+
background-color: var(--ncss-video-player-accent);
|
|
418
|
+
border: 0;
|
|
419
|
+
border-radius: 50%;
|
|
420
|
+
box-shadow: 0 0 0 2px #fff;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/* Lautstärke: Symbol, Regler klappt beim Zeigen bzw. Tastaturfokus auf */
|
|
425
|
+
.ncss-video-player-volume {
|
|
426
|
+
display: flex;
|
|
427
|
+
flex: none;
|
|
428
|
+
align-items: center;
|
|
429
|
+
}
|
|
430
|
+
.ncss-video-player-range--volume {
|
|
431
|
+
width: 0;
|
|
432
|
+
opacity: 0;
|
|
433
|
+
transition: width var(--ncss-motion-duration-slow) var(--ncss-motion-easing-emphasized),
|
|
434
|
+
opacity var(--ncss-motion-duration) var(--ncss-motion-easing),
|
|
435
|
+
margin var(--ncss-motion-duration-slow) var(--ncss-motion-easing-emphasized);
|
|
436
|
+
|
|
437
|
+
&::-webkit-slider-runnable-track {
|
|
438
|
+
height: 0.25rem;
|
|
439
|
+
margin-block: 0.625rem;
|
|
440
|
+
border-radius: var(--ncss-radius-full);
|
|
441
|
+
background: linear-gradient(to right, var(--ncss-video-player-accent) calc(var(--ncss-video-player-pct, 1) * 100%), rgb(255 255 255 / 30%) 0);
|
|
442
|
+
}
|
|
443
|
+
&::-webkit-slider-thumb {
|
|
444
|
+
width: 0.75rem;
|
|
445
|
+
height: 0.75rem;
|
|
446
|
+
margin-top: -0.25rem;
|
|
447
|
+
}
|
|
448
|
+
&::-moz-range-track {
|
|
449
|
+
height: 0.25rem;
|
|
450
|
+
border-radius: var(--ncss-radius-full);
|
|
451
|
+
background: rgb(255 255 255 / 30%);
|
|
452
|
+
}
|
|
453
|
+
&::-moz-range-progress {
|
|
454
|
+
height: 0.25rem;
|
|
455
|
+
border-radius: var(--ncss-radius-full);
|
|
456
|
+
background: var(--ncss-video-player-accent);
|
|
457
|
+
}
|
|
458
|
+
&::-moz-range-thumb {
|
|
459
|
+
width: 0.75rem;
|
|
460
|
+
height: 0.75rem;
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
.ncss-video-player-volume:focus-within .ncss-video-player-range--volume {
|
|
464
|
+
width: 4.5rem;
|
|
465
|
+
opacity: 1;
|
|
466
|
+
margin-inline: 0.25rem 0.5rem;
|
|
467
|
+
}
|
|
468
|
+
@media (hover: hover) and (pointer: fine) {
|
|
469
|
+
.ncss-video-player-volume:hover .ncss-video-player-range--volume {
|
|
470
|
+
width: 4.5rem;
|
|
471
|
+
opacity: 1;
|
|
472
|
+
margin-inline: 0.25rem 0.5rem;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
/* Zeitleiste */
|
|
477
|
+
.ncss-video-player-seek {
|
|
478
|
+
position: relative;
|
|
479
|
+
height: 1.5rem;
|
|
480
|
+
min-width: 3rem;
|
|
481
|
+
margin-inline: 0.4375rem;
|
|
482
|
+
touch-action: none;
|
|
483
|
+
}
|
|
484
|
+
.ncss-video-player-track {
|
|
485
|
+
position: absolute;
|
|
486
|
+
inset-inline: 0;
|
|
487
|
+
top: 50%;
|
|
488
|
+
height: 0.3rem;
|
|
489
|
+
translate: 0 -50%;
|
|
490
|
+
overflow: hidden;
|
|
491
|
+
border-radius: var(--ncss-radius-full);
|
|
492
|
+
background-color: rgb(255 255 255 / 30%);
|
|
493
|
+
|
|
494
|
+
& > * {
|
|
495
|
+
position: absolute;
|
|
496
|
+
inset-block: 0;
|
|
497
|
+
inset-inline-start: 0;
|
|
498
|
+
}
|
|
499
|
+
/* Vorschau bis zur Zeigerposition */
|
|
500
|
+
&::after {
|
|
501
|
+
content: "";
|
|
502
|
+
position: absolute;
|
|
503
|
+
inset-block: 0;
|
|
504
|
+
inset-inline-start: 0;
|
|
505
|
+
width: calc(var(--ncss-video-player-tip, 0) * 100%);
|
|
506
|
+
background-color: rgb(255 255 255 / 28%);
|
|
507
|
+
opacity: 0;
|
|
508
|
+
transition: opacity var(--ncss-motion-duration) var(--ncss-motion-easing);
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
.ncss-video-player-seek.is-active .ncss-video-player-track::after {
|
|
512
|
+
opacity: 1;
|
|
513
|
+
}
|
|
514
|
+
.ncss-video-player-buffered {
|
|
515
|
+
inset-inline-end: 0;
|
|
516
|
+
|
|
517
|
+
& > span {
|
|
518
|
+
position: absolute;
|
|
519
|
+
inset-block: 0;
|
|
520
|
+
inset-inline-start: calc(var(--ncss-video-player-start) * 100%);
|
|
521
|
+
width: calc(var(--ncss-video-player-size) * 100%);
|
|
522
|
+
background-color: rgb(255 255 255 / 22%);
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
.ncss-video-player-progress {
|
|
526
|
+
z-index: 1;
|
|
527
|
+
width: calc(var(--ncss-video-player-pct, 0) * 100%);
|
|
528
|
+
background-color: var(--ncss-video-player-accent);
|
|
529
|
+
}
|
|
530
|
+
/* Kapitelgrenzen als Lücken in der Spur (wie im Audioplayer) */
|
|
531
|
+
.ncss-video-player-marks {
|
|
532
|
+
z-index: 2;
|
|
533
|
+
inset-inline-end: 0;
|
|
534
|
+
|
|
535
|
+
& > span {
|
|
536
|
+
position: absolute;
|
|
537
|
+
inset-block: 0;
|
|
538
|
+
inset-inline-start: calc(var(--ncss-video-player-start) * 100%);
|
|
539
|
+
width: 3px;
|
|
540
|
+
translate: -50% 0;
|
|
541
|
+
background-color: rgb(0 0 0 / 75%);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
.ncss-video-player-range--seek {
|
|
545
|
+
position: absolute;
|
|
546
|
+
z-index: 3;
|
|
547
|
+
inset: 0 -0.4375rem;
|
|
548
|
+
width: calc(100% + 0.875rem);
|
|
549
|
+
height: 100%;
|
|
550
|
+
}
|
|
551
|
+
/* Zeit-Pille über der Zeigerposition (Kapitel + Zeit) */
|
|
552
|
+
.ncss-video-player-tip {
|
|
553
|
+
position: absolute;
|
|
554
|
+
z-index: 4;
|
|
555
|
+
bottom: calc(100% + 0.375rem);
|
|
556
|
+
inset-inline-start: clamp(2rem, calc(var(--ncss-video-player-tip, 0) * 100%), calc(100% - 2rem));
|
|
557
|
+
display: grid;
|
|
558
|
+
justify-items: center;
|
|
559
|
+
padding: 0.25rem 0.6rem;
|
|
560
|
+
font-size: var(--ncss-font-size-sm);
|
|
561
|
+
font-variant-numeric: tabular-nums;
|
|
562
|
+
line-height: 1.3;
|
|
563
|
+
white-space: nowrap;
|
|
564
|
+
color: var(--ncss-color-text);
|
|
565
|
+
background-color: var(--ncss-color-surface);
|
|
566
|
+
border-radius: var(--ncss-radius-md);
|
|
567
|
+
box-shadow: var(--ncss-shadow-md);
|
|
568
|
+
pointer-events: none;
|
|
569
|
+
opacity: 0;
|
|
570
|
+
translate: -50% 0.25rem;
|
|
571
|
+
transition: opacity var(--ncss-motion-duration-fast) var(--ncss-motion-easing),
|
|
572
|
+
translate var(--ncss-motion-duration-fast) var(--ncss-motion-easing);
|
|
573
|
+
}
|
|
574
|
+
.ncss-video-player-seek.is-active .ncss-video-player-tip {
|
|
575
|
+
opacity: 1;
|
|
576
|
+
translate: -50% 0;
|
|
577
|
+
}
|
|
578
|
+
.ncss-video-player-tip-chapter {
|
|
579
|
+
max-width: 12rem;
|
|
580
|
+
overflow: hidden;
|
|
581
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
582
|
+
text-overflow: ellipsis;
|
|
583
|
+
|
|
584
|
+
&:empty {
|
|
585
|
+
display: none;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/* --- Einstellungs-Menü (wie das Menü des Audioplayers, folgt dem Seiten-Theme) ----- */
|
|
590
|
+
.ncss-video-player-menu {
|
|
591
|
+
position: fixed;
|
|
592
|
+
inset: var(--ncss-video-player-menu-top, auto) var(--ncss-video-player-menu-right, auto) var(--ncss-video-player-menu-bottom, auto) auto;
|
|
593
|
+
max-height: var(--ncss-video-player-menu-max, 24rem);
|
|
594
|
+
min-width: 11rem;
|
|
595
|
+
margin: 0;
|
|
596
|
+
padding: 0.25rem;
|
|
597
|
+
overflow: auto;
|
|
598
|
+
color: var(--ncss-color-text);
|
|
599
|
+
font-size: var(--ncss-font-size-sm);
|
|
600
|
+
background-color: var(--ncss-color-surface);
|
|
601
|
+
border: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
602
|
+
border-radius: var(--ncss-radius-md);
|
|
603
|
+
box-shadow: var(--ncss-shadow-lg);
|
|
604
|
+
}
|
|
605
|
+
.ncss-video-player-menu-group + .ncss-video-player-menu-group {
|
|
606
|
+
margin-top: 0.25rem;
|
|
607
|
+
padding-top: 0.25rem;
|
|
608
|
+
border-top: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
609
|
+
}
|
|
610
|
+
.ncss-video-player-menu-heading {
|
|
611
|
+
margin: 0;
|
|
612
|
+
padding: 0.4rem 0.5rem 0.2rem;
|
|
613
|
+
font-size: var(--ncss-font-size-sm);
|
|
614
|
+
font-weight: var(--ncss-font-weight-bold);
|
|
615
|
+
letter-spacing: var(--ncss-tracking-wide);
|
|
616
|
+
text-transform: uppercase;
|
|
617
|
+
color: var(--ncss-color-text-muted);
|
|
618
|
+
}
|
|
619
|
+
.ncss-video-player-menu-item {
|
|
620
|
+
display: flex;
|
|
621
|
+
align-items: center;
|
|
622
|
+
gap: 0.5rem;
|
|
623
|
+
width: 100%;
|
|
624
|
+
padding: 0.45rem 0.75rem 0.45rem 0.5rem;
|
|
625
|
+
font: inherit;
|
|
626
|
+
text-align: start;
|
|
627
|
+
color: inherit;
|
|
628
|
+
background: transparent;
|
|
629
|
+
border: 0;
|
|
630
|
+
border-radius: var(--ncss-radius-sm);
|
|
631
|
+
cursor: pointer;
|
|
632
|
+
|
|
633
|
+
&::before {
|
|
634
|
+
content: "";
|
|
635
|
+
flex: none;
|
|
636
|
+
width: 1rem;
|
|
637
|
+
height: 1rem;
|
|
638
|
+
background-color: var(--ncss-color-brand-on-soft);
|
|
639
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
640
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
641
|
+
opacity: 0;
|
|
642
|
+
}
|
|
643
|
+
&[aria-checked="true"] {
|
|
644
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
645
|
+
}
|
|
646
|
+
&[aria-checked="true"]::before {
|
|
647
|
+
opacity: 1;
|
|
648
|
+
}
|
|
649
|
+
&:focus-visible {
|
|
650
|
+
outline: var(--ncss-focus-ring-width) solid var(--ncss-color-focus-ring);
|
|
651
|
+
outline-offset: -2px;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
654
|
+
@media (hover: hover) and (pointer: fine) {
|
|
655
|
+
.ncss-video-player-menu-item:hover {
|
|
656
|
+
background-color: var(--ncss-color-bg-subtle);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/* --- Untertitel (vom Script gerendert, über den Bedienelementen) -------------------- */
|
|
661
|
+
.ncss-video-player-cues {
|
|
662
|
+
position: absolute;
|
|
663
|
+
z-index: 2;
|
|
664
|
+
inset-inline: 6%;
|
|
665
|
+
bottom: 4.75rem;
|
|
666
|
+
display: flex;
|
|
667
|
+
flex-direction: column;
|
|
668
|
+
align-items: center;
|
|
669
|
+
gap: 0.15em;
|
|
670
|
+
font-size: var(--ncss-video-player-cue-size);
|
|
671
|
+
line-height: 1.35;
|
|
672
|
+
text-align: center;
|
|
673
|
+
pointer-events: none;
|
|
674
|
+
transition: bottom var(--ncss-video-player-fade) var(--ncss-motion-easing);
|
|
675
|
+
}
|
|
676
|
+
ncss-video-player.is-idle .ncss-video-player-cues {
|
|
677
|
+
bottom: 6%;
|
|
678
|
+
}
|
|
679
|
+
.ncss-video-player-cue {
|
|
680
|
+
padding: 0.12em 0.5em;
|
|
681
|
+
color: #fff;
|
|
682
|
+
background-color: rgb(0 0 0 / 74%);
|
|
683
|
+
border-radius: var(--ncss-radius-sm);
|
|
684
|
+
-webkit-box-decoration-break: clone;
|
|
685
|
+
box-decoration-break: clone;
|
|
686
|
+
text-wrap: balance;
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
/* --- Rückmeldung, Spinner, Fehler --------------------------------------------------- */
|
|
690
|
+
.ncss-video-player-flash {
|
|
691
|
+
position: absolute;
|
|
692
|
+
z-index: 2;
|
|
693
|
+
top: 50%;
|
|
694
|
+
left: 50%;
|
|
695
|
+
display: grid;
|
|
696
|
+
place-items: center;
|
|
697
|
+
min-width: 3.75rem;
|
|
698
|
+
min-height: 3.75rem;
|
|
699
|
+
padding: 0.5rem 1rem;
|
|
700
|
+
font-size: var(--ncss-font-size-md);
|
|
701
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
702
|
+
font-variant-numeric: tabular-nums;
|
|
703
|
+
white-space: nowrap;
|
|
704
|
+
background-color: rgb(255 255 255 / 16%);
|
|
705
|
+
-webkit-backdrop-filter: blur(18px) saturate(170%);
|
|
706
|
+
backdrop-filter: blur(18px) saturate(170%);
|
|
707
|
+
border-radius: var(--ncss-radius-full);
|
|
708
|
+
box-shadow: inset 0 0 0 1px rgb(255 255 255 / 30%);
|
|
709
|
+
translate: -50% -50%;
|
|
710
|
+
pointer-events: none;
|
|
711
|
+
opacity: 0;
|
|
712
|
+
|
|
713
|
+
&[data-icon="play"]::before,
|
|
714
|
+
&[data-icon="pause"]::before {
|
|
715
|
+
content: "";
|
|
716
|
+
width: 1.75rem;
|
|
717
|
+
height: 1.75rem;
|
|
718
|
+
background-color: currentColor;
|
|
719
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
720
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E") center / contain no-repeat;
|
|
721
|
+
}
|
|
722
|
+
&[data-icon="pause"]::before {
|
|
723
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3Crect x='14' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3C/svg%3E");
|
|
724
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5.5' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3Crect x='14' y='4.5' width='4.5' height='15' rx='1.2'/%3E%3C/svg%3E");
|
|
725
|
+
}
|
|
726
|
+
&.is-on {
|
|
727
|
+
animation: ncss-video-player-flash 0.7s var(--ncss-motion-easing) forwards;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
@keyframes ncss-video-player-flash {
|
|
731
|
+
0% { opacity: 0; scale: 0.85; }
|
|
732
|
+
15% { opacity: 1; scale: 1; }
|
|
733
|
+
70% { opacity: 1; }
|
|
734
|
+
100% { opacity: 0; scale: 1.08; }
|
|
735
|
+
}
|
|
736
|
+
/* Bei reduzierter Bewegung kappt reset.css die Animation auf 0.01ms - die Rückmeldung
|
|
737
|
+
bliebe dann unsichtbar. Stattdessen ohne Bewegung einfach kurz einblenden (das
|
|
738
|
+
Script entfernt .is-on nach 700ms wieder). */
|
|
739
|
+
@media (prefers-reduced-motion: reduce) {
|
|
740
|
+
.ncss-video-player-flash.is-on {
|
|
741
|
+
animation: none;
|
|
742
|
+
opacity: 1;
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.ncss-video-player-spinner {
|
|
747
|
+
position: absolute;
|
|
748
|
+
z-index: 2;
|
|
749
|
+
inset: 0;
|
|
750
|
+
width: 2.75rem;
|
|
751
|
+
height: 2.75rem;
|
|
752
|
+
margin: auto;
|
|
753
|
+
border: 3px solid rgb(255 255 255 / 25%);
|
|
754
|
+
border-top-color: #fff;
|
|
755
|
+
border-radius: 50%;
|
|
756
|
+
opacity: 0;
|
|
757
|
+
visibility: hidden;
|
|
758
|
+
pointer-events: none;
|
|
759
|
+
}
|
|
760
|
+
ncss-video-player.is-waiting .ncss-video-player-spinner {
|
|
761
|
+
opacity: 1;
|
|
762
|
+
visibility: visible;
|
|
763
|
+
animation: ncss-video-player-spin 0.8s linear infinite;
|
|
764
|
+
}
|
|
765
|
+
@keyframes ncss-video-player-spin {
|
|
766
|
+
to { rotate: 1turn; }
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
.ncss-video-player-error {
|
|
770
|
+
position: absolute;
|
|
771
|
+
z-index: 4;
|
|
772
|
+
inset: 0;
|
|
773
|
+
display: grid;
|
|
774
|
+
place-content: center;
|
|
775
|
+
justify-items: center;
|
|
776
|
+
gap: 0.75rem;
|
|
777
|
+
padding: var(--ncss-space-sm);
|
|
778
|
+
text-align: center;
|
|
779
|
+
background-color: rgb(0 0 0 / 85%);
|
|
780
|
+
|
|
781
|
+
&[hidden] {
|
|
782
|
+
display: none;
|
|
783
|
+
}
|
|
784
|
+
& p {
|
|
785
|
+
margin: 0;
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
.ncss-video-player-retry {
|
|
789
|
+
padding: 0.5rem 1.1rem;
|
|
790
|
+
font: inherit;
|
|
791
|
+
font-size: var(--ncss-font-size-sm);
|
|
792
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
793
|
+
color: var(--ncss-color-brand-contrast);
|
|
794
|
+
background-color: var(--ncss-video-player-accent);
|
|
795
|
+
border: 0;
|
|
796
|
+
border-radius: var(--ncss-radius-md);
|
|
797
|
+
cursor: pointer;
|
|
798
|
+
}
|
|
799
|
+
ncss-video-player.is-error .ncss-video-player-bar {
|
|
800
|
+
display: none;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/* --- Karte: Bühne + Spalte mit Kapiteln/Playlist (wie die Audio-Karte) ------------- */
|
|
804
|
+
ncss-video-player[layout="card"] {
|
|
805
|
+
/* Breakpoint-frei statt Container Query (ein Element kann seine EIGENE Breite nicht
|
|
806
|
+
abfragen): die Bühne wächst bevorzugt (flex-grow 999), die Spalte bleibt bei
|
|
807
|
+
~16-20rem daneben - ist dafür kein Platz, bricht sie unter die Bühne um. */
|
|
808
|
+
display: flex;
|
|
809
|
+
flex-wrap: wrap;
|
|
810
|
+
align-items: flex-start;
|
|
811
|
+
gap: var(--ncss-space-sm);
|
|
812
|
+
padding: var(--ncss-space-sm);
|
|
813
|
+
background-color: var(--ncss-color-surface);
|
|
814
|
+
border: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
815
|
+
border-radius: var(--ncss-video-player-radius);
|
|
816
|
+
box-shadow: var(--ncss-shadow-md);
|
|
817
|
+
|
|
818
|
+
& > video,
|
|
819
|
+
& > .ncss-video-player-stage {
|
|
820
|
+
border-radius: var(--ncss-radius-md);
|
|
821
|
+
}
|
|
822
|
+
& > .ncss-video-player-stage {
|
|
823
|
+
flex: 999 1 36rem;
|
|
824
|
+
min-width: 0;
|
|
825
|
+
}
|
|
826
|
+
& > .ncss-video-player-panel {
|
|
827
|
+
flex: 1 1 16rem;
|
|
828
|
+
max-width: 100%;
|
|
829
|
+
}
|
|
830
|
+
/* Vor dem Script (nur natives Markup): alles untereinander */
|
|
831
|
+
& > :not(.ncss-video-player-stage, .ncss-video-player-panel, .ncss-video-player-sr, .ncss-video-player-menu) {
|
|
832
|
+
flex: 1 1 100%;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
.ncss-video-player-panel {
|
|
836
|
+
display: grid;
|
|
837
|
+
align-content: start;
|
|
838
|
+
gap: var(--ncss-space-xs);
|
|
839
|
+
min-width: 0;
|
|
840
|
+
}
|
|
841
|
+
.ncss-video-player-head {
|
|
842
|
+
display: grid;
|
|
843
|
+
gap: 0.2rem;
|
|
844
|
+
}
|
|
845
|
+
.ncss-video-player-title {
|
|
846
|
+
margin: 0;
|
|
847
|
+
font-size: var(--ncss-font-size-md);
|
|
848
|
+
font-weight: var(--ncss-font-weight-bold);
|
|
849
|
+
line-height: var(--ncss-line-height-tight);
|
|
850
|
+
overflow-wrap: anywhere;
|
|
851
|
+
}
|
|
852
|
+
.ncss-video-player-meta {
|
|
853
|
+
margin: 0;
|
|
854
|
+
font-size: var(--ncss-font-size-sm);
|
|
855
|
+
color: var(--ncss-color-text-muted);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
/* --- Kapitelliste (identisch zur Audio-Karte) ---------------------------------------- */
|
|
859
|
+
.ncss-video-player-chapters {
|
|
860
|
+
& ol {
|
|
861
|
+
display: grid;
|
|
862
|
+
gap: 0.125rem;
|
|
863
|
+
margin: 0;
|
|
864
|
+
padding: 0;
|
|
865
|
+
list-style: none;
|
|
866
|
+
}
|
|
867
|
+
& button {
|
|
868
|
+
display: flex;
|
|
869
|
+
gap: 0.75rem;
|
|
870
|
+
width: 100%;
|
|
871
|
+
padding: 0.4rem 0.6rem;
|
|
872
|
+
font: inherit;
|
|
873
|
+
font-size: var(--ncss-font-size-sm);
|
|
874
|
+
text-align: start;
|
|
875
|
+
color: inherit;
|
|
876
|
+
background: transparent;
|
|
877
|
+
border: 0;
|
|
878
|
+
border-radius: var(--ncss-radius-sm);
|
|
879
|
+
cursor: pointer;
|
|
880
|
+
|
|
881
|
+
&:focus-visible {
|
|
882
|
+
outline: var(--ncss-focus-ring-width) solid var(--ncss-color-focus-ring);
|
|
883
|
+
outline-offset: 0;
|
|
884
|
+
}
|
|
885
|
+
&[aria-current="true"] {
|
|
886
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
887
|
+
color: var(--ncss-color-brand-on-soft);
|
|
888
|
+
background-color: var(--ncss-color-brand-100);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
@media (hover: hover) and (pointer: fine) {
|
|
893
|
+
.ncss-video-player-chapters button:hover:not([aria-current="true"]) {
|
|
894
|
+
background-color: var(--ncss-color-bg-subtle);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
.ncss-video-player-chapters-title {
|
|
898
|
+
margin: 0 0 0.25rem;
|
|
899
|
+
font-size: var(--ncss-font-size-sm);
|
|
900
|
+
font-weight: var(--ncss-font-weight-bold);
|
|
901
|
+
letter-spacing: var(--ncss-tracking-wide);
|
|
902
|
+
text-transform: uppercase;
|
|
903
|
+
color: var(--ncss-color-text-muted);
|
|
904
|
+
}
|
|
905
|
+
.ncss-video-player-chapter-time {
|
|
906
|
+
min-width: 2.75rem;
|
|
907
|
+
font-variant-numeric: tabular-nums;
|
|
908
|
+
color: var(--ncss-color-text-muted);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
/* --- Playlist (wie die Audio-Playlist, zusätzlich mit Vorschaubild) ------------------ */
|
|
912
|
+
.ncss-video-player-playlist {
|
|
913
|
+
display: grid;
|
|
914
|
+
gap: 0.125rem;
|
|
915
|
+
margin: 0;
|
|
916
|
+
padding: var(--ncss-space-2xs) 0 0;
|
|
917
|
+
list-style: none;
|
|
918
|
+
border-top: var(--ncss-border-width) solid var(--ncss-color-border);
|
|
919
|
+
counter-reset: ncss-video-track;
|
|
920
|
+
|
|
921
|
+
& li {
|
|
922
|
+
counter-increment: ncss-video-track;
|
|
923
|
+
}
|
|
924
|
+
& a {
|
|
925
|
+
display: flex;
|
|
926
|
+
align-items: center;
|
|
927
|
+
gap: 0.6rem;
|
|
928
|
+
padding: 0.4rem 0.6rem;
|
|
929
|
+
font-size: var(--ncss-font-size-sm);
|
|
930
|
+
color: inherit;
|
|
931
|
+
text-decoration: none;
|
|
932
|
+
border-radius: var(--ncss-radius-sm);
|
|
933
|
+
|
|
934
|
+
&::before {
|
|
935
|
+
content: counter(ncss-video-track);
|
|
936
|
+
flex: none;
|
|
937
|
+
display: inline-grid;
|
|
938
|
+
place-items: center;
|
|
939
|
+
width: 1.25rem;
|
|
940
|
+
height: 1.25rem;
|
|
941
|
+
font-variant-numeric: tabular-nums;
|
|
942
|
+
color: var(--ncss-color-text-muted);
|
|
943
|
+
}
|
|
944
|
+
& > img {
|
|
945
|
+
flex: none;
|
|
946
|
+
width: 4rem;
|
|
947
|
+
aspect-ratio: 16 / 9;
|
|
948
|
+
object-fit: cover;
|
|
949
|
+
border-radius: var(--ncss-radius-sm);
|
|
950
|
+
background-color: var(--ncss-color-bg-subtle);
|
|
951
|
+
}
|
|
952
|
+
&:focus-visible {
|
|
953
|
+
outline: var(--ncss-focus-ring-width) solid var(--ncss-color-focus-ring);
|
|
954
|
+
outline-offset: 0;
|
|
955
|
+
}
|
|
956
|
+
& > span:last-child {
|
|
957
|
+
margin-inline-start: auto;
|
|
958
|
+
font-variant-numeric: tabular-nums;
|
|
959
|
+
color: var(--ncss-color-text-muted);
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
& .is-active > a {
|
|
963
|
+
font-weight: var(--ncss-font-weight-semibold);
|
|
964
|
+
color: var(--ncss-color-brand-on-soft);
|
|
965
|
+
background-color: var(--ncss-color-brand-100);
|
|
966
|
+
|
|
967
|
+
/* aktiver Titel: Play-Symbol statt Nummer, beim Abspielen pulsierende Balken */
|
|
968
|
+
&::before {
|
|
969
|
+
content: "";
|
|
970
|
+
background-color: currentColor;
|
|
971
|
+
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
|
|
972
|
+
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.1v13.8a1 1 0 0 0 1.5.86l11-6.9a1 1 0 0 0 0-1.72l-11-6.9A1 1 0 0 0 8 5.1z'/%3E%3C/svg%3E") center / 0.85rem no-repeat;
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
& .is-playing > a::before {
|
|
976
|
+
-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='9' width='4' height='11' rx='1'/%3E%3Crect x='10' y='4' width='4' height='16' rx='1'/%3E%3Crect x='16' y='12' width='4' height='8' rx='1'/%3E%3C/svg%3E");
|
|
977
|
+
mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='9' width='4' height='11' rx='1'/%3E%3Crect x='10' y='4' width='4' height='16' rx='1'/%3E%3Crect x='16' y='12' width='4' height='8' rx='1'/%3E%3C/svg%3E");
|
|
978
|
+
animation: ncss-video-player-eq 0.9s var(--ncss-motion-easing) infinite alternate;
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
@media (hover: hover) and (pointer: fine) {
|
|
982
|
+
.ncss-video-player-playlist li:not(.is-active) > a:hover {
|
|
983
|
+
background-color: var(--ncss-color-bg-subtle);
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
@keyframes ncss-video-player-eq {
|
|
987
|
+
from { scale: 1 0.6; }
|
|
988
|
+
to { scale: 1 1; }
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
/* --- Kleine Bühnen zeigen weniger ------------------------------------------------------ */
|
|
992
|
+
@container ncss-video-player-stage (inline-size < 34rem) {
|
|
993
|
+
.ncss-video-player-chapter,
|
|
994
|
+
.ncss-video-player-btn--pip {
|
|
995
|
+
display: none;
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
@container ncss-video-player-stage (inline-size < 26rem) {
|
|
999
|
+
.ncss-video-player-time-sep,
|
|
1000
|
+
.ncss-video-player-time-total,
|
|
1001
|
+
.ncss-video-player-range--volume,
|
|
1002
|
+
.ncss-video-player-btn--prev,
|
|
1003
|
+
.ncss-video-player-btn--next {
|
|
1004
|
+
display: none;
|
|
1005
|
+
}
|
|
1006
|
+
.ncss-video-player-controls {
|
|
1007
|
+
gap: 0;
|
|
1008
|
+
}
|
|
1009
|
+
.ncss-video-player-btn--big {
|
|
1010
|
+
--ncss-video-player-btn: 2.75rem;
|
|
1011
|
+
box-shadow: 0 0 0 4px color-mix(in oklch, var(--ncss-video-player-accent) 30%, transparent), var(--ncss-shadow-md);
|
|
1012
|
+
}
|
|
1013
|
+
.ncss-video-player-cues {
|
|
1014
|
+
bottom: 4.5rem;
|
|
1015
|
+
font-size: 0.8125rem;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
/* Sehr kleine Bühne: der Play-Button der Leiste genügt, ein zweiter in der Mitte
|
|
1019
|
+
würde nur das Bild verdecken. */
|
|
1020
|
+
@container ncss-video-player-stage (inline-size < 22rem) {
|
|
1021
|
+
.ncss-video-player-btn--big {
|
|
1022
|
+
display: none;
|
|
1023
|
+
}
|
|
1024
|
+
}
|
|
1025
|
+
@container ncss-video-player-stage (inline-size < 18rem) {
|
|
1026
|
+
.ncss-video-player-btn--cc {
|
|
1027
|
+
display: none;
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
/* --- Präferenzen ---------------------------------------------------------------------- */
|
|
1032
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
1033
|
+
.ncss-video-player-flash {
|
|
1034
|
+
background-color: rgb(20 20 22);
|
|
1035
|
+
-webkit-backdrop-filter: none;
|
|
1036
|
+
backdrop-filter: none;
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
@media (prefers-contrast: more) {
|
|
1040
|
+
.ncss-video-player-stage::after {
|
|
1041
|
+
background: linear-gradient(to top, rgb(0 0 0 / 88%), rgb(0 0 0 / 0%));
|
|
1042
|
+
}
|
|
1043
|
+
.ncss-video-player-track {
|
|
1044
|
+
background-color: rgb(255 255 255 / 45%);
|
|
1045
|
+
}
|
|
1046
|
+
}
|
|
1047
|
+
@media (forced-colors: active) {
|
|
1048
|
+
.ncss-video-player-bar,
|
|
1049
|
+
.ncss-video-player-flash,
|
|
1050
|
+
.ncss-video-player-menu,
|
|
1051
|
+
.ncss-video-player-tip {
|
|
1052
|
+
border: 1px solid CanvasText;
|
|
1053
|
+
background: Canvas;
|
|
1054
|
+
}
|
|
1055
|
+
.ncss-video-player-btn {
|
|
1056
|
+
border-color: ButtonText;
|
|
1057
|
+
}
|
|
1058
|
+
.ncss-video-player-btn::before,
|
|
1059
|
+
.ncss-video-player-flash::before,
|
|
1060
|
+
.ncss-video-player-menu-item::before,
|
|
1061
|
+
.ncss-video-player-playlist .is-active > a::before {
|
|
1062
|
+
forced-color-adjust: none;
|
|
1063
|
+
background-color: ButtonText;
|
|
1064
|
+
filter: none;
|
|
1065
|
+
}
|
|
1066
|
+
.ncss-video-player-btn:is(.ncss-video-player-btn--play, .ncss-video-player-btn--big) {
|
|
1067
|
+
forced-color-adjust: none;
|
|
1068
|
+
color: ButtonText;
|
|
1069
|
+
background: ButtonFace;
|
|
1070
|
+
border: 2px solid ButtonText;
|
|
1071
|
+
box-shadow: none;
|
|
1072
|
+
}
|
|
1073
|
+
.ncss-video-player-track {
|
|
1074
|
+
forced-color-adjust: none;
|
|
1075
|
+
background: Canvas;
|
|
1076
|
+
outline: 1px solid CanvasText;
|
|
1077
|
+
}
|
|
1078
|
+
.ncss-video-player-progress {
|
|
1079
|
+
forced-color-adjust: none;
|
|
1080
|
+
background: Highlight;
|
|
1081
|
+
}
|
|
1082
|
+
.ncss-video-player-buffered > span {
|
|
1083
|
+
forced-color-adjust: none;
|
|
1084
|
+
background: GrayText;
|
|
1085
|
+
}
|
|
1086
|
+
.ncss-video-player-range {
|
|
1087
|
+
forced-color-adjust: none;
|
|
1088
|
+
}
|
|
1089
|
+
.ncss-video-player-range::-webkit-slider-thumb {
|
|
1090
|
+
background: Highlight;
|
|
1091
|
+
box-shadow: 0 0 0 2px Canvas;
|
|
1092
|
+
}
|
|
1093
|
+
.ncss-video-player-range--volume {
|
|
1094
|
+
width: 4rem;
|
|
1095
|
+
opacity: 1;
|
|
1096
|
+
}
|
|
1097
|
+
.ncss-video-player-cue {
|
|
1098
|
+
forced-color-adjust: none;
|
|
1099
|
+
color: CanvasText;
|
|
1100
|
+
background: Canvas;
|
|
1101
|
+
border: 1px solid CanvasText;
|
|
1102
|
+
}
|
|
1103
|
+
.ncss-video-player-menu-item[aria-checked="true"] {
|
|
1104
|
+
outline: 1px solid Highlight;
|
|
1105
|
+
}
|
|
1106
|
+
.ncss-video-player-chapters button[aria-current="true"],
|
|
1107
|
+
.ncss-video-player-playlist .is-active > a {
|
|
1108
|
+
forced-color-adjust: none;
|
|
1109
|
+
color: HighlightText;
|
|
1110
|
+
background: Highlight;
|
|
1111
|
+
}
|
|
1112
|
+
.ncss-video-player-chapters button[aria-current="true"] .ncss-video-player-chapter-time,
|
|
1113
|
+
.ncss-video-player-playlist .is-active > a > span:last-child {
|
|
1114
|
+
color: inherit;
|
|
1115
|
+
}
|
|
1116
|
+
}
|