@sentinel-nvr/web 0.20.2 → 0.22.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/README.md +23 -0
- package/dist/chunk-Z5USWUIE.js +1102 -0
- package/dist/chunk-Z5USWUIE.js.map +1 -0
- package/dist/glas/index.d.ts +76 -0
- package/dist/glas/index.js +221 -0
- package/dist/glas/index.js.map +1 -0
- package/dist/glas-data-CSRWRmcF.d.ts +368 -0
- package/dist/ui/glas.css +1629 -0
- package/dist/ui/index.d.ts +68 -96
- package/dist/ui/index.js +925 -685
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/locales/de.json +15 -1
- package/dist/ui/locales/en.json +14 -0
- package/dist/ui/locales/es.json +15 -1
- package/dist/ui/locales/fr.json +15 -1
- package/dist/ui/locales/it.json +15 -1
- package/dist/ui/locales/pt.json +15 -1
- package/dist/ui/locales/sv.json +15 -1
- package/dist/ui/ui.css +44 -0
- package/package.json +9 -2
package/dist/ui/glas.css
ADDED
|
@@ -0,0 +1,1629 @@
|
|
|
1
|
+
/* @sentinel-nvr/web — the style "Glas" for the package's parts (from 0.21.0). Every rule sits under
|
|
2
|
+
:root[data-style='glas'] (set by the glas entry's applyAppearance), values only through variables (no hex, the values
|
|
3
|
+
come from glas-data.ts), no @layer, !important only for the 200-ms fades under reduced motion, a tint on :hover only
|
|
4
|
+
under @media (hover: hover). Load it after ui.css.
|
|
5
|
+
|
|
6
|
+
Moved here from HAPulse's styles/glas (base, accent, material, lists, nvr, pages, tafel; HAPulse a4e3d3c), which
|
|
7
|
+
imports this file at the place of its nvr.css: HAPulse leads the look, both apps show the same parts. HAPulse's own
|
|
8
|
+
names became the package's (.g-nvr → .nvr-gl, .g-tafel → .nvr-tafel, .g-glass → .nvr-glass, the overview's
|
|
9
|
+
.nvr-layout → .nvr-overview, a host class); contexts that covered every place HAPulse shows a part were dropped
|
|
10
|
+
(none of the rules lost against another one by that, checked rule by rule).
|
|
11
|
+
|
|
12
|
+
Host contract: the root values (--g-font, --font-*, --radius-card, tabular figures) as HAPulse's base.css sets them;
|
|
13
|
+
`.nvr-overview` on the overview's content; `--nvr-gl-bleed` (default 16 px), how far the strips reach past the
|
|
14
|
+
content on a phone; `data-glas-scheme="dark"` on the part that shows the camera page. */
|
|
15
|
+
|
|
16
|
+
/* ---- from HAPulse styles/glas/base.css ---- */
|
|
17
|
+
|
|
18
|
+
/* Cards are borderless in Glas; --border itself stays visible for controls and tracks (plan K14). Borders that
|
|
19
|
+
show a state (alarm triggered, motion detected, the chosen colour world) stay as in Klassisch. The Sentinel
|
|
20
|
+
package's cards (.nvr-card, same role) follow, colour only. */
|
|
21
|
+
:root[data-style='glas'] .nvr-card {
|
|
22
|
+
border-color: transparent;
|
|
23
|
+
}
|
|
24
|
+
/* ---- from HAPulse styles/glas/accent.css ---- */
|
|
25
|
+
:root[data-style='glas'] .nvr-btn--primary,
|
|
26
|
+
:root[data-style='glas'] .nvr-chart__bar,
|
|
27
|
+
:root[data-style='glas'] .nvr-meter__rec,
|
|
28
|
+
:root[data-style='glas'] .nvr-legend__sw--rec,
|
|
29
|
+
:root[data-style='glas'] .nvr-vtl .vclip,
|
|
30
|
+
:root[data-style='glas'] .nvr-dt__d--sel,
|
|
31
|
+
:root[data-style='glas'] .nvr-mute[aria-pressed='true'],
|
|
32
|
+
:root[data-style='glas'] .nvr-clipbar__prog > i {
|
|
33
|
+
--accent: var(--g-prominent);
|
|
34
|
+
--on-accent: var(--g-on-prominent);
|
|
35
|
+
}
|
|
36
|
+
/* Focus rings keep the ink on the orange areas above (global :focus-visible and the switch tracks draw them with
|
|
37
|
+
var(--accent)). Where the ring is a box-shadow around the area, the area turns ink while focused. Since stage 5 the
|
|
38
|
+
sliders and the play buttons of the media cards no longer use the accent (controls.css, K93), the pool's bars,
|
|
39
|
+
timeline, on/off and rings have their own colours and focus rings (pool.css, K99), and the library's play button
|
|
40
|
+
and the group menu's check have their own look (music.css). */
|
|
41
|
+
:root[data-style='glas'] :is(.nvr-btn--primary, .nvr-dt__d--sel, .nvr-mute):focus-visible {
|
|
42
|
+
outline-color: var(--g-focus);
|
|
43
|
+
}
|
|
44
|
+
/* ---- from HAPulse styles/glas/material.css ---- */
|
|
45
|
+
:root[data-style='glas'] :where(.nvr-glass) {
|
|
46
|
+
--g-surface-tint: 0;
|
|
47
|
+
--g-t: max(var(--g-surface-tint), var(--g-glass-tint));
|
|
48
|
+
--g-glass-fill: linear-gradient(
|
|
49
|
+
180deg,
|
|
50
|
+
rgb(var(--g-glass-rgb) / calc(var(--g-glass-a0) + 0.4 * var(--g-t))),
|
|
51
|
+
rgb(var(--g-glass-rgb) / calc(var(--g-glass-a1) + 0.4 * var(--g-t)))
|
|
52
|
+
);
|
|
53
|
+
--g-glass-filter: blur(calc(6px + 10px * var(--g-t))) saturate(var(--g-glass-sat)) brightness(var(--g-glass-bright));
|
|
54
|
+
--g-surface-fill: var(--g-glass-fill);
|
|
55
|
+
--g-surface-filter: var(--g-glass-filter);
|
|
56
|
+
--g-surface-shadow: var(--g-glass-shadow);
|
|
57
|
+
--g-surface-rim: var(--g-glass-rim);
|
|
58
|
+
--g-surface-solid: var(--g-card-solid);
|
|
59
|
+
/* what the surface shows — a state rule that has to restore it (hover of an upstream button) uses this */
|
|
60
|
+
--g-surface-bg: var(--g-surface-fill);
|
|
61
|
+
position: relative;
|
|
62
|
+
isolation: isolate;
|
|
63
|
+
background: var(--g-surface-bg);
|
|
64
|
+
-webkit-backdrop-filter: var(--g-surface-filter);
|
|
65
|
+
backdrop-filter: var(--g-surface-filter);
|
|
66
|
+
box-shadow: var(--g-surface-shadow);
|
|
67
|
+
}
|
|
68
|
+
/* Specular rim, 1 px, masked to the edge. */
|
|
69
|
+
:root[data-style='glas'] :where(.nvr-glass)::before {
|
|
70
|
+
content: '';
|
|
71
|
+
position: absolute;
|
|
72
|
+
inset: 0;
|
|
73
|
+
border-radius: inherit;
|
|
74
|
+
padding: 1px;
|
|
75
|
+
pointer-events: none;
|
|
76
|
+
background: var(--g-surface-rim);
|
|
77
|
+
-webkit-mask:
|
|
78
|
+
linear-gradient(black 0 0) content-box,
|
|
79
|
+
linear-gradient(black 0 0);
|
|
80
|
+
-webkit-mask-composite: xor;
|
|
81
|
+
mask-composite: exclude;
|
|
82
|
+
}
|
|
83
|
+
/* Sheen from the touch point while pressed (--gx/--gy in px, written by GlasRuntime on pointerdown). Only controls
|
|
84
|
+
light up (below); panels, menus and toasts keep it at 0. */
|
|
85
|
+
:root[data-style='glas'] :where(.nvr-glass)::after {
|
|
86
|
+
content: '';
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset: 0;
|
|
89
|
+
border-radius: inherit;
|
|
90
|
+
pointer-events: none;
|
|
91
|
+
opacity: 0;
|
|
92
|
+
background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), var(--g-glow), transparent 60%);
|
|
93
|
+
transition: opacity 400ms ease-out;
|
|
94
|
+
}
|
|
95
|
+
/* clear: only over a camera image or video — white glyphs (§3.2); also the name on the Sentinel camera tiles (nvr.css,
|
|
96
|
+
K105), whose markup comes from the package. */
|
|
97
|
+
:root[data-style='glas'] .nvr-glass--clear {
|
|
98
|
+
--g-glass-fill: var(--g-glass-clear-fill);
|
|
99
|
+
--g-glass-filter: var(--g-glass-clear-filter);
|
|
100
|
+
--g-surface-rim: var(--g-glass-clear-rim);
|
|
101
|
+
box-shadow: var(--g-glass-clear-shadow);
|
|
102
|
+
color: var(--g-on-media);
|
|
103
|
+
text-shadow: var(--g-glass-clear-text-shadow);
|
|
104
|
+
}
|
|
105
|
+
/* text on clear glass (the camera tiles' names, the NVR card's pill): the clear fill dims more, so the white text keeps
|
|
106
|
+
4.5:1 over a white picture together with the tile's top shade (GLAS-DESIGN §2.5 rule 5; Etappe 7, K109) */
|
|
107
|
+
:root[data-style='glas'] .nvr-gl__pill {
|
|
108
|
+
--g-glass-fill: var(--g-glass-clear-text-fill);
|
|
109
|
+
}
|
|
110
|
+
/* opaque ("Deckend", "Transparenz reduzieren", more contrast): solid fill, no filter, no rim (§3.4). */
|
|
111
|
+
:root[data-style='glas'][data-glass='opaque'] :where(.nvr-glass) {
|
|
112
|
+
--g-surface-bg: var(--g-surface-solid);
|
|
113
|
+
-webkit-backdrop-filter: none;
|
|
114
|
+
backdrop-filter: none;
|
|
115
|
+
box-shadow: var(--g-glass-opaque-shadow);
|
|
116
|
+
}
|
|
117
|
+
:root[data-style='glas'][data-glass='opaque'] .nvr-glass--clear {
|
|
118
|
+
--g-surface-bg: var(--g-glass-opaque-clear-fill);
|
|
119
|
+
box-shadow: var(--g-glass-opaque-clear-shadow);
|
|
120
|
+
}
|
|
121
|
+
:root[data-style='glas'][data-glass='opaque'] :where(.nvr-glass)::before {
|
|
122
|
+
display: none;
|
|
123
|
+
}
|
|
124
|
+
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
|
|
125
|
+
:root[data-style='glas'] :where(.nvr-glass) {
|
|
126
|
+
--g-surface-bg: var(--g-surface-solid);
|
|
127
|
+
box-shadow: var(--g-glass-opaque-shadow);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:root[data-style='glas'] .nvr-glass--clear {
|
|
131
|
+
--g-surface-bg: var(--g-glass-opaque-clear-fill);
|
|
132
|
+
box-shadow: var(--g-glass-opaque-clear-shadow);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
:root[data-style='glas'] :where(.nvr-glass)::before {
|
|
136
|
+
display: none;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
@media (forced-colors: active) {
|
|
140
|
+
:root[data-style='glas'] :where(.nvr-glass) {
|
|
141
|
+
--g-surface-bg: Canvas;
|
|
142
|
+
color: CanvasText;
|
|
143
|
+
-webkit-backdrop-filter: none;
|
|
144
|
+
backdrop-filter: none;
|
|
145
|
+
border: 1px solid CanvasText;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
:root[data-style='glas'] :where(.nvr-glass)::before,
|
|
149
|
+
:root[data-style='glas'] :where(.nvr-glass)::after {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
/* ---- from HAPulse styles/glas/lists.css ---- */
|
|
154
|
+
/* ---- Fields (K94, GLAS-DESIGN §7.30; also the switch points of the pool's schedule editor, the Music Assistant
|
|
155
|
+
connection below the queue and Sentinel's connection, plan PLAN-ETAPPE-6.md K105): `fill`, radius 10, 36 visible in
|
|
156
|
+
a hit area of 44, text 17 (below 16 px iOS zooms into the field), placeholder `label2`, the focus ring inside the
|
|
157
|
+
field. A field on its own draws its 36 inside a transparent border of 4 above and below (corners 10 / 14, which
|
|
158
|
+
leaves 10 at the visible edge). In a search the bar is 36 and its input reaches 4 above and below it; the magnifier
|
|
159
|
+
is `label2`. ---- */
|
|
160
|
+
:root[data-style='glas'] .nvr-input {
|
|
161
|
+
height: 44px;
|
|
162
|
+
min-height: 44px;
|
|
163
|
+
padding-block: 0;
|
|
164
|
+
padding-right: 12px;
|
|
165
|
+
border: 0;
|
|
166
|
+
border-block: 4px solid transparent;
|
|
167
|
+
border-radius: 10px / 14px;
|
|
168
|
+
background: var(--g-fill);
|
|
169
|
+
background-clip: padding-box;
|
|
170
|
+
box-shadow: none;
|
|
171
|
+
color: var(--g-label);
|
|
172
|
+
font-size: 17px;
|
|
173
|
+
line-height: 22px;
|
|
174
|
+
}
|
|
175
|
+
:root[data-style='glas'] .nvr-input {
|
|
176
|
+
padding-left: 12px;
|
|
177
|
+
}
|
|
178
|
+
:root[data-style='glas'] .nvr-input::placeholder {
|
|
179
|
+
color: var(--g-label-2);
|
|
180
|
+
}
|
|
181
|
+
:root[data-style='glas'] .nvr-input:focus {
|
|
182
|
+
outline: none;
|
|
183
|
+
box-shadow: inset 0 0 0 2px var(--g-focus);
|
|
184
|
+
}
|
|
185
|
+
:root[data-style='glas'] .nvr-select__native {
|
|
186
|
+
max-width: 200px;
|
|
187
|
+
min-height: 44px;
|
|
188
|
+
padding: 0 34px 0 14px;
|
|
189
|
+
border: 0;
|
|
190
|
+
border-block: 4px solid transparent;
|
|
191
|
+
border-radius: 18px / 22px;
|
|
192
|
+
background: var(--g-fill);
|
|
193
|
+
background-clip: padding-box;
|
|
194
|
+
color: var(--g-label);
|
|
195
|
+
font: 400 15px / 20px var(--g-font);
|
|
196
|
+
}
|
|
197
|
+
@media (hover: hover) {
|
|
198
|
+
:root[data-style='glas'] .nvr-select__native:hover {
|
|
199
|
+
background-image: linear-gradient(var(--g-hover), var(--g-hover));
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/* the ring inside the visible capsule like the fields' (the transparent border above and below is hit area) */
|
|
203
|
+
:root[data-style='glas'] .nvr-select__native:focus-visible {
|
|
204
|
+
outline: none;
|
|
205
|
+
box-shadow: inset 0 0 0 2px var(--g-focus);
|
|
206
|
+
}
|
|
207
|
+
:root[data-style='glas'] .nvr-select__chevron {
|
|
208
|
+
right: 14px;
|
|
209
|
+
width: 14px;
|
|
210
|
+
height: 14px;
|
|
211
|
+
color: var(--g-label-2);
|
|
212
|
+
}
|
|
213
|
+
@media (forced-colors: active) {
|
|
214
|
+
:root[data-style='glas'] .nvr-input {
|
|
215
|
+
height: 36px;
|
|
216
|
+
min-height: 36px;
|
|
217
|
+
margin-block: 4px;
|
|
218
|
+
border: 1px solid CanvasText;
|
|
219
|
+
border-radius: 10px;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
:root[data-style='glas'] .nvr-select__native {
|
|
223
|
+
min-height: 36px;
|
|
224
|
+
margin-block: 4px;
|
|
225
|
+
border: 1px solid ButtonText;
|
|
226
|
+
border-radius: 18px;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* forced colours drop the inset ring */
|
|
230
|
+
:root[data-style='glas'] .nvr-input:focus,
|
|
231
|
+
:root[data-style='glas'] .nvr-select__native:focus-visible {
|
|
232
|
+
outline: 2px solid Highlight;
|
|
233
|
+
outline-offset: 2px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
/* ---- from HAPulse styles/glas/nvr.css ---- */
|
|
237
|
+
@keyframes g-nvr-pulse {
|
|
238
|
+
50% {
|
|
239
|
+
opacity: 0.35;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
:root[data-style='glas'] .nvr-gl {
|
|
243
|
+
display: flex;
|
|
244
|
+
flex-direction: column;
|
|
245
|
+
gap: 12px;
|
|
246
|
+
min-width: 0;
|
|
247
|
+
}
|
|
248
|
+
/* ---- Cameras ---- */
|
|
249
|
+
:root[data-style='glas'] .nvr-gl__cams {
|
|
250
|
+
display: grid;
|
|
251
|
+
grid-auto-columns: 100%;
|
|
252
|
+
grid-auto-flow: column;
|
|
253
|
+
gap: 10px;
|
|
254
|
+
overflow-x: auto;
|
|
255
|
+
overscroll-behavior-x: contain;
|
|
256
|
+
scroll-snap-type: x mandatory;
|
|
257
|
+
scrollbar-width: none;
|
|
258
|
+
}
|
|
259
|
+
:root[data-style='glas'] .nvr-gl__cams::-webkit-scrollbar {
|
|
260
|
+
display: none;
|
|
261
|
+
}
|
|
262
|
+
/* several cameras: the next one peeks in from the edge */
|
|
263
|
+
:root[data-style='glas'] .nvr-gl__cams[data-several] {
|
|
264
|
+
grid-auto-columns: calc(100% - 20px);
|
|
265
|
+
margin: 0 calc(-1 * var(--nvr-gl-bleed, 16px));
|
|
266
|
+
padding: 0 var(--nvr-gl-bleed, 16px);
|
|
267
|
+
scroll-padding-inline: var(--nvr-gl-bleed, 16px);
|
|
268
|
+
}
|
|
269
|
+
:root[data-style='glas'] .nvr-gl__cam-item {
|
|
270
|
+
display: flex;
|
|
271
|
+
min-width: 0;
|
|
272
|
+
scroll-snap-align: start;
|
|
273
|
+
}
|
|
274
|
+
:root[data-style='glas'] :is(.nvr-gl__cam, .nvr-gl__wait) {
|
|
275
|
+
position: relative;
|
|
276
|
+
display: block;
|
|
277
|
+
flex: 1 1 auto;
|
|
278
|
+
min-width: 0;
|
|
279
|
+
height: 220px;
|
|
280
|
+
padding: 0;
|
|
281
|
+
border: 0;
|
|
282
|
+
border-radius: 26px;
|
|
283
|
+
overflow: hidden;
|
|
284
|
+
background: var(--g-media-bg);
|
|
285
|
+
color: var(--g-on-media);
|
|
286
|
+
text-align: left;
|
|
287
|
+
}
|
|
288
|
+
:root[data-style='glas'] .nvr-gl__cam {
|
|
289
|
+
cursor: pointer;
|
|
290
|
+
transition: scale var(--g-d-smooth) var(--g-spring-smooth);
|
|
291
|
+
-webkit-tap-highlight-color: transparent;
|
|
292
|
+
}
|
|
293
|
+
:root[data-style='glas'] .nvr-gl__cam:active {
|
|
294
|
+
scale: 0.98;
|
|
295
|
+
transition-duration: 120ms;
|
|
296
|
+
}
|
|
297
|
+
/* the strips clip anything outside their items: the ring goes inside — on the tile as its last layer, an outline
|
|
298
|
+
would lie under the picture. On a picture the ring has the focus colour at the edge, the card's colour inside it and,
|
|
299
|
+
in light mode, a band in the card's counter-tone (`--g-focus-pair`, Etappe 7, K109): two of the tones are ≥ 9:1
|
|
300
|
+
apart, so one of them stands out against any picture (WCAG technique C40; the focus colour alone: 1.8:1 over a dark
|
|
301
|
+
one, focus and white together not over a mid-grey sky). */
|
|
302
|
+
:root[data-style='glas'] .nvr-gl__ev:focus-visible {
|
|
303
|
+
outline: 2px solid var(--g-focus);
|
|
304
|
+
outline-offset: -2px;
|
|
305
|
+
}
|
|
306
|
+
:root[data-style='glas'] .nvr-gl__cam:focus-visible {
|
|
307
|
+
outline: none;
|
|
308
|
+
}
|
|
309
|
+
:root[data-style='glas'] .nvr-gl__cam:focus-visible::after {
|
|
310
|
+
content: '';
|
|
311
|
+
position: absolute;
|
|
312
|
+
inset: 0;
|
|
313
|
+
border: 2px solid var(--g-focus);
|
|
314
|
+
border-radius: inherit;
|
|
315
|
+
box-shadow:
|
|
316
|
+
inset 0 0 0 2px var(--g-card),
|
|
317
|
+
inset 0 0 0 4px var(--g-focus-pair);
|
|
318
|
+
pointer-events: none;
|
|
319
|
+
}
|
|
320
|
+
/* the events are a strip of pictures: the ring lies on the event's picture, in the same two tones */
|
|
321
|
+
:root[data-style='glas'] .nvr-gl__ev {
|
|
322
|
+
position: relative;
|
|
323
|
+
}
|
|
324
|
+
:root[data-style='glas'] .nvr-gl__ev:focus-visible {
|
|
325
|
+
outline: none;
|
|
326
|
+
}
|
|
327
|
+
:root[data-style='glas'] .nvr-gl__ev:focus-visible::after {
|
|
328
|
+
content: '';
|
|
329
|
+
position: absolute;
|
|
330
|
+
inset: 0 0 auto;
|
|
331
|
+
height: 112px;
|
|
332
|
+
border: 2px solid var(--g-focus);
|
|
333
|
+
border-radius: 16px;
|
|
334
|
+
box-shadow:
|
|
335
|
+
inset 0 0 0 2px var(--g-card),
|
|
336
|
+
inset 0 0 0 4px var(--g-focus-pair);
|
|
337
|
+
pointer-events: none;
|
|
338
|
+
}
|
|
339
|
+
/* no answer yet: a calm placeholder, not a black block */
|
|
340
|
+
:root[data-style='glas'] .nvr-gl__wait {
|
|
341
|
+
background: var(--g-fill);
|
|
342
|
+
}
|
|
343
|
+
:root[data-style='glas'] .nvr-gl__cam .nvr-camtile__placeholder {
|
|
344
|
+
color: color-mix(in srgb, var(--g-on-media) 55%, transparent);
|
|
345
|
+
}
|
|
346
|
+
:root[data-style='glas'] .nvr-gl__shade {
|
|
347
|
+
position: absolute;
|
|
348
|
+
inset: 0;
|
|
349
|
+
background:
|
|
350
|
+
linear-gradient(color-mix(in srgb, var(--g-media-bg) 35%, transparent), transparent) top / 100% 76px no-repeat,
|
|
351
|
+
linear-gradient(transparent, color-mix(in srgb, var(--g-media-bg) 60%, transparent)) bottom / 100% 90px no-repeat;
|
|
352
|
+
pointer-events: none;
|
|
353
|
+
}
|
|
354
|
+
/* the clear capsule (material.css .g-glass--clear: fill, rim, white text with shadow) */
|
|
355
|
+
:root[data-style='glas'] .nvr-gl__pill {
|
|
356
|
+
position: absolute;
|
|
357
|
+
top: 12px;
|
|
358
|
+
left: 12px;
|
|
359
|
+
display: flex;
|
|
360
|
+
align-items: center;
|
|
361
|
+
gap: 6px;
|
|
362
|
+
max-width: calc(100% - 24px);
|
|
363
|
+
height: 32px;
|
|
364
|
+
padding: 0 14px 0 12px;
|
|
365
|
+
border-radius: 16px;
|
|
366
|
+
font: 600 15px / 20px var(--g-font);
|
|
367
|
+
}
|
|
368
|
+
:root[data-style='glas'] .nvr-gl__pill-text {
|
|
369
|
+
min-width: 0;
|
|
370
|
+
overflow: hidden;
|
|
371
|
+
text-overflow: ellipsis;
|
|
372
|
+
white-space: nowrap;
|
|
373
|
+
}
|
|
374
|
+
:root[data-style='glas'] .nvr-gl__dot {
|
|
375
|
+
flex: none;
|
|
376
|
+
width: 8px;
|
|
377
|
+
height: 8px;
|
|
378
|
+
border-radius: 50%;
|
|
379
|
+
background: var(--g-live-dot);
|
|
380
|
+
animation: g-nvr-pulse 2s ease-in-out infinite;
|
|
381
|
+
}
|
|
382
|
+
/* recording on but nothing arrives: the dot stands still, grey when offline, yellow while it hangs */
|
|
383
|
+
:root[data-style='glas'] .nvr-gl__cam:not([data-state='ok']) .nvr-gl__dot {
|
|
384
|
+
background: color-mix(in srgb, var(--g-on-media) 55%, transparent);
|
|
385
|
+
animation: none;
|
|
386
|
+
}
|
|
387
|
+
:root[data-style='glas'] .nvr-gl__cam[data-state='stalled'] .nvr-gl__dot {
|
|
388
|
+
background: var(--g-yellow);
|
|
389
|
+
}
|
|
390
|
+
:root[data-style='glas'] .nvr-gl__caption {
|
|
391
|
+
position: absolute;
|
|
392
|
+
right: 16px;
|
|
393
|
+
bottom: 14px;
|
|
394
|
+
left: 16px;
|
|
395
|
+
display: flex;
|
|
396
|
+
flex-direction: column;
|
|
397
|
+
align-items: flex-start;
|
|
398
|
+
color: var(--g-on-media);
|
|
399
|
+
text-shadow: var(--g-glass-clear-text-shadow);
|
|
400
|
+
}
|
|
401
|
+
:root[data-style='glas'] .nvr-gl__title {
|
|
402
|
+
display: none;
|
|
403
|
+
}
|
|
404
|
+
:root[data-style='glas'] .nvr-gl__today {
|
|
405
|
+
max-width: 100%;
|
|
406
|
+
overflow: hidden;
|
|
407
|
+
font: 600 15px / 20px var(--g-font);
|
|
408
|
+
font-variant-numeric: tabular-nums;
|
|
409
|
+
text-overflow: ellipsis;
|
|
410
|
+
white-space: nowrap;
|
|
411
|
+
}
|
|
412
|
+
:root[data-style='glas'] .nvr-gl__empty {
|
|
413
|
+
margin: 0;
|
|
414
|
+
color: var(--g-label-2);
|
|
415
|
+
font: 400 15px / 20px var(--g-font);
|
|
416
|
+
}
|
|
417
|
+
/* ---- Latest events ---- */
|
|
418
|
+
:root[data-style='glas'] .nvr-gl__events {
|
|
419
|
+
display: flex;
|
|
420
|
+
gap: 10px;
|
|
421
|
+
margin: 0 calc(-1 * var(--nvr-gl-bleed, 16px));
|
|
422
|
+
padding: 0 var(--nvr-gl-bleed, 16px);
|
|
423
|
+
overflow-x: auto;
|
|
424
|
+
overscroll-behavior-x: contain;
|
|
425
|
+
list-style: none;
|
|
426
|
+
scroll-padding-inline: var(--nvr-gl-bleed, 16px);
|
|
427
|
+
scroll-snap-type: x proximity;
|
|
428
|
+
scrollbar-width: none;
|
|
429
|
+
}
|
|
430
|
+
:root[data-style='glas'] .nvr-gl__events::-webkit-scrollbar {
|
|
431
|
+
display: none;
|
|
432
|
+
}
|
|
433
|
+
:root[data-style='glas'] .nvr-gl__ev-item {
|
|
434
|
+
flex: none;
|
|
435
|
+
display: flex;
|
|
436
|
+
scroll-snap-align: start;
|
|
437
|
+
}
|
|
438
|
+
:root[data-style='glas'] .nvr-gl__ev {
|
|
439
|
+
display: block;
|
|
440
|
+
width: 150px;
|
|
441
|
+
padding: 0;
|
|
442
|
+
border: 0;
|
|
443
|
+
background: none;
|
|
444
|
+
color: var(--g-label);
|
|
445
|
+
text-align: left;
|
|
446
|
+
cursor: pointer;
|
|
447
|
+
transition:
|
|
448
|
+
background-color 0.2s ease,
|
|
449
|
+
scale var(--g-d-smooth) var(--g-spring-smooth);
|
|
450
|
+
-webkit-tap-highlight-color: transparent;
|
|
451
|
+
}
|
|
452
|
+
:root[data-style='glas'] .nvr-gl__ev:active {
|
|
453
|
+
scale: 0.97;
|
|
454
|
+
transition-duration: 120ms;
|
|
455
|
+
}
|
|
456
|
+
:root[data-style='glas'] .nvr-gl__ev-img {
|
|
457
|
+
display: block;
|
|
458
|
+
width: 150px;
|
|
459
|
+
height: 112px;
|
|
460
|
+
border-radius: 16px;
|
|
461
|
+
background: var(--g-fill);
|
|
462
|
+
object-fit: cover;
|
|
463
|
+
}
|
|
464
|
+
:root[data-style='glas'] .nvr-gl__ev-text {
|
|
465
|
+
display: flex;
|
|
466
|
+
flex-direction: column;
|
|
467
|
+
min-width: 0;
|
|
468
|
+
padding: 6px 4px 0;
|
|
469
|
+
}
|
|
470
|
+
:root[data-style='glas'] .nvr-gl__ev-time {
|
|
471
|
+
font: 600 15px / 20px var(--g-font);
|
|
472
|
+
font-variant-numeric: tabular-nums;
|
|
473
|
+
}
|
|
474
|
+
:root[data-style='glas'] .nvr-gl__ev-sub {
|
|
475
|
+
overflow: hidden;
|
|
476
|
+
color: var(--g-label-2);
|
|
477
|
+
font: 400 13px / 18px var(--g-font);
|
|
478
|
+
text-overflow: ellipsis;
|
|
479
|
+
white-space: nowrap;
|
|
480
|
+
}
|
|
481
|
+
:root[data-style='glas'] .nvr-gl__ev-ago {
|
|
482
|
+
display: none;
|
|
483
|
+
}
|
|
484
|
+
@media (min-width: 900px) {
|
|
485
|
+
:root[data-style='glas'] .nvr-gl__cams {
|
|
486
|
+
grid-auto-columns: min(100%, 360px);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
:root[data-style='glas'] .nvr-gl__cams[data-several] {
|
|
490
|
+
grid-auto-columns: min(calc(100% - 20px), 360px);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
/* ---- The strips' buttons (nvr/NvrStrip.tsx): only from 900 px with a pointer that can hover, shown while it is over
|
|
494
|
+
the strip; a glass circle 36 at each end that can scroll, centred on the pictures ---- */
|
|
495
|
+
:root[data-style='glas'] .nvr-gl__strip {
|
|
496
|
+
position: relative;
|
|
497
|
+
min-width: 0;
|
|
498
|
+
}
|
|
499
|
+
:root[data-style='glas'] .nvr-gl__strip--cams {
|
|
500
|
+
--nvr-gl-paddle-y: 50%;
|
|
501
|
+
}
|
|
502
|
+
:root[data-style='glas'] .nvr-gl__strip--events {
|
|
503
|
+
--nvr-gl-paddle-y: 56px;
|
|
504
|
+
}
|
|
505
|
+
:root[data-style='glas'] .nvr-gl__paddle {
|
|
506
|
+
display: none;
|
|
507
|
+
}
|
|
508
|
+
@media (min-width: 900px) and (hover: hover) {
|
|
509
|
+
:root[data-style='glas'] .nvr-gl__paddle {
|
|
510
|
+
position: absolute;
|
|
511
|
+
top: var(--nvr-gl-paddle-y);
|
|
512
|
+
z-index: 1;
|
|
513
|
+
display: flex;
|
|
514
|
+
align-items: center;
|
|
515
|
+
justify-content: center;
|
|
516
|
+
width: 36px;
|
|
517
|
+
height: 36px;
|
|
518
|
+
padding: 0;
|
|
519
|
+
border: 0;
|
|
520
|
+
border-radius: 50%;
|
|
521
|
+
color: var(--g-label);
|
|
522
|
+
cursor: pointer;
|
|
523
|
+
opacity: 0;
|
|
524
|
+
translate: 0 -50%;
|
|
525
|
+
transition:
|
|
526
|
+
opacity 0.2s ease,
|
|
527
|
+
scale var(--g-d-smooth) var(--g-spring-smooth);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
:root[data-style='glas'] .nvr-gl__paddle[data-dir='prev'] {
|
|
531
|
+
left: 8px;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
:root[data-style='glas'] .nvr-gl__paddle[data-dir='next'] {
|
|
535
|
+
right: 8px;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
:root[data-style='glas'] .nvr-gl__strip:hover > .nvr-gl__paddle {
|
|
539
|
+
opacity: 1;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
:root[data-style='glas'] .nvr-gl__paddle:active {
|
|
543
|
+
scale: 0.92;
|
|
544
|
+
transition-duration: 120ms;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
@media (prefers-reduced-motion: reduce) {
|
|
548
|
+
:root[data-style='glas'] .nvr-gl__dot {
|
|
549
|
+
animation: none;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
:root[data-style='glas'] :is(.nvr-gl__cam, .nvr-gl__ev, .nvr-gl__paddle):active {
|
|
553
|
+
scale: none;
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
@media (forced-colors: active) {
|
|
557
|
+
:root[data-style='glas'] :is(.nvr-gl__cam, .nvr-gl__paddle) {
|
|
558
|
+
border: 1px solid ButtonText;
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
/* a line of text instead of the content (no cameras, Sentinel not reachable): 15/20 `label2` */
|
|
562
|
+
:root[data-style='glas'] .nvr-overview .nvr-muted {
|
|
563
|
+
gap: 6px;
|
|
564
|
+
color: var(--g-label-2);
|
|
565
|
+
font: 400 15px / 20px var(--g-font);
|
|
566
|
+
}
|
|
567
|
+
/* ---- Section titles ("Ereignisse", "Kameras"): like the card titles, a row of 44 with the symbol bare 18 in `label2`
|
|
568
|
+
(on the overview, plan docs/glas/PLAN-ETAPPE-7.md N2) and the title 20/25 600, no capitals ---- */
|
|
569
|
+
:root[data-style='glas'] .nvr-overview .nvr-section {
|
|
570
|
+
gap: 6px;
|
|
571
|
+
}
|
|
572
|
+
:root[data-style='glas'] .nvr-overview .nvr-section > .nvr-section__label {
|
|
573
|
+
display: flex;
|
|
574
|
+
align-items: center;
|
|
575
|
+
gap: 8px;
|
|
576
|
+
min-height: 44px;
|
|
577
|
+
color: var(--g-label);
|
|
578
|
+
font: 600 20px / 25px var(--g-font);
|
|
579
|
+
letter-spacing: normal;
|
|
580
|
+
text-transform: none;
|
|
581
|
+
}
|
|
582
|
+
:root[data-style='glas'] .nvr-overview .nvr-section__icon {
|
|
583
|
+
margin-right: 0;
|
|
584
|
+
color: var(--g-label-2);
|
|
585
|
+
}
|
|
586
|
+
@media (min-width: 900px) {
|
|
587
|
+
:root[data-style='glas'] .nvr-overview .nvr-section > .nvr-section__label {
|
|
588
|
+
padding-left: 4px;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
/* ---- The overview's cameras and events (`.g-nvr-page`, NvrOverviewPage): the NVR card's tiles and events (top of
|
|
592
|
+
this file), the cameras first, all of them, then all recent events. The tiles 16:10 with the capsule, in a column
|
|
593
|
+
below 900 px (two once 300 wide fit; a single camera takes the whole width), in two columns from 900 px; the events
|
|
594
|
+
the card's strip below them, to the screen edge on the phone. ---- */
|
|
595
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page {
|
|
596
|
+
display: flex;
|
|
597
|
+
flex-direction: column;
|
|
598
|
+
gap: 20px;
|
|
599
|
+
min-width: 0;
|
|
600
|
+
}
|
|
601
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page > .nvr-section {
|
|
602
|
+
min-width: 0;
|
|
603
|
+
}
|
|
604
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page :is(.nvr-gl__cams, .nvr-gl__cams[data-several]) {
|
|
605
|
+
grid-auto-columns: auto;
|
|
606
|
+
grid-auto-flow: row;
|
|
607
|
+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
|
|
608
|
+
gap: 12px;
|
|
609
|
+
margin: 0;
|
|
610
|
+
padding: 0;
|
|
611
|
+
overflow: visible;
|
|
612
|
+
scroll-snap-type: none;
|
|
613
|
+
}
|
|
614
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page .nvr-gl__cam {
|
|
615
|
+
height: auto;
|
|
616
|
+
aspect-ratio: 16 / 10;
|
|
617
|
+
}
|
|
618
|
+
/* before today the day in front of the time (also on the NVR card) */
|
|
619
|
+
:root[data-style='glas'] .nvr-gl__ev-day {
|
|
620
|
+
color: var(--g-label-2);
|
|
621
|
+
font-weight: 400;
|
|
622
|
+
}
|
|
623
|
+
@media (min-width: 900px) {
|
|
624
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page {
|
|
625
|
+
--nvr-gl-bleed: 0px;
|
|
626
|
+
gap: 26px;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
:root[data-style='glas'] .nvr-overview .nvr-gl-page .nvr-gl__cams[data-several] {
|
|
630
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
631
|
+
}
|
|
632
|
+
}
|
|
633
|
+
/* ---- Card titles (chart, storage): the symbol bare 18 in `label2`, the title 20/25 600 in one line like the card
|
|
634
|
+
titles of the other pages; the line below the title ("Heute, alle Kameras", "Aufnahme-Datenträger") is left out,
|
|
635
|
+
the chart's axis and the card's rows say it (plan docs/glas/PLAN-ETAPPE-7.md N2) ---- */
|
|
636
|
+
:root[data-style='glas'] .nvr-overview .nvr-ctitle {
|
|
637
|
+
gap: 8px;
|
|
638
|
+
}
|
|
639
|
+
:root[data-style='glas'] .nvr-overview .nvr-ctitle__chip {
|
|
640
|
+
width: auto;
|
|
641
|
+
height: auto;
|
|
642
|
+
border-radius: 0;
|
|
643
|
+
background: none;
|
|
644
|
+
color: var(--g-label-2);
|
|
645
|
+
}
|
|
646
|
+
:root[data-style='glas'] .nvr-overview .nvr-ctitle__chip > svg {
|
|
647
|
+
width: 18px;
|
|
648
|
+
height: 18px;
|
|
649
|
+
stroke-width: 2;
|
|
650
|
+
}
|
|
651
|
+
:root[data-style='glas'] .nvr-overview .nvr-ctitle__title {
|
|
652
|
+
overflow: hidden;
|
|
653
|
+
color: var(--g-label);
|
|
654
|
+
font: 600 20px / 25px var(--g-font);
|
|
655
|
+
letter-spacing: normal;
|
|
656
|
+
text-overflow: ellipsis;
|
|
657
|
+
white-space: nowrap;
|
|
658
|
+
}
|
|
659
|
+
:root[data-style='glas'] .nvr-overview .nvr-ctitle__sub {
|
|
660
|
+
display: none;
|
|
661
|
+
}
|
|
662
|
+
/* the chart and the storage: the title row above the surface (K89, as pages.css does for the other pages) */
|
|
663
|
+
:root[data-style='glas'] .nvr-overview .nvr-card.nvr-statcard {
|
|
664
|
+
--g-card-head: 44px;
|
|
665
|
+
--g-card-gap: 6px;
|
|
666
|
+
position: relative;
|
|
667
|
+
isolation: isolate;
|
|
668
|
+
gap: 12px;
|
|
669
|
+
padding: 0 16px 16px;
|
|
670
|
+
background: none;
|
|
671
|
+
box-shadow: none;
|
|
672
|
+
}
|
|
673
|
+
:root[data-style='glas'] .nvr-overview .nvr-card.nvr-statcard::before {
|
|
674
|
+
content: '';
|
|
675
|
+
position: absolute;
|
|
676
|
+
inset: calc(var(--g-card-head) + var(--g-card-gap)) 0 0;
|
|
677
|
+
z-index: -1;
|
|
678
|
+
border-radius: var(--radius-card);
|
|
679
|
+
background: var(--bg-card);
|
|
680
|
+
box-shadow: var(--shadow-card);
|
|
681
|
+
pointer-events: none;
|
|
682
|
+
}
|
|
683
|
+
:root[data-style='glas'] .nvr-overview .nvr-card.nvr-statcard > .nvr-ctitle {
|
|
684
|
+
min-height: var(--g-card-head);
|
|
685
|
+
margin: 0 -16px calc(var(--g-card-gap) + 4px);
|
|
686
|
+
}
|
|
687
|
+
@media (min-width: 900px) {
|
|
688
|
+
:root[data-style='glas'] .nvr-overview .nvr-card.nvr-statcard > .nvr-ctitle {
|
|
689
|
+
padding-left: 4px;
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
/* Events per hour like the energy chart's day (§7.9): bars up to 14 wide, 3 apart, rounded on top, on a base line;
|
|
693
|
+
the current hour a `fill` column; the axis 12/16 `label2`. The bars' orange comes from accent.css. */
|
|
694
|
+
:root[data-style='glas'] .nvr-overview .nvr-chart {
|
|
695
|
+
gap: 3px;
|
|
696
|
+
border-bottom: 1px solid var(--g-sep-strong);
|
|
697
|
+
}
|
|
698
|
+
:root[data-style='glas'] .nvr-overview .nvr-chart__col {
|
|
699
|
+
justify-content: center;
|
|
700
|
+
border-radius: 4px 4px 0 0;
|
|
701
|
+
}
|
|
702
|
+
:root[data-style='glas'] .nvr-overview .nvr-chart__col--now {
|
|
703
|
+
background: var(--g-fill);
|
|
704
|
+
}
|
|
705
|
+
:root[data-style='glas'] .nvr-overview .nvr-chart__bar {
|
|
706
|
+
max-width: 14px;
|
|
707
|
+
border-radius: 4px 4px 0 0;
|
|
708
|
+
}
|
|
709
|
+
:root[data-style='glas'] .nvr-overview .nvr-chart__axis {
|
|
710
|
+
color: var(--g-label-2);
|
|
711
|
+
font: 400 12px / 16px var(--g-font);
|
|
712
|
+
font-variant-numeric: tabular-nums;
|
|
713
|
+
}
|
|
714
|
+
/* Storage: the meter a capsule 10 in `fill`, the legend's swatches dots 8 with 13/18 `label2`, the values 15/20 (the
|
|
715
|
+
key `label2`, the value 600 `label`), the note a quiet line under a hairline like a list's footnote (plan E7 N2) */
|
|
716
|
+
:root[data-style='glas'] .nvr-overview .nvr-meter {
|
|
717
|
+
height: 10px;
|
|
718
|
+
border: 0;
|
|
719
|
+
background: var(--g-fill);
|
|
720
|
+
}
|
|
721
|
+
:root[data-style='glas'] .nvr-overview .nvr-legend {
|
|
722
|
+
gap: 6px 14px;
|
|
723
|
+
color: var(--g-label-2);
|
|
724
|
+
font: 400 13px / 18px var(--g-font);
|
|
725
|
+
}
|
|
726
|
+
:root[data-style='glas'] .nvr-overview .nvr-legend > span {
|
|
727
|
+
gap: 6px;
|
|
728
|
+
}
|
|
729
|
+
:root[data-style='glas'] .nvr-overview .nvr-legend__sw {
|
|
730
|
+
width: 8px;
|
|
731
|
+
height: 8px;
|
|
732
|
+
border-radius: 50%;
|
|
733
|
+
}
|
|
734
|
+
:root[data-style='glas'] .nvr-overview .nvr-kv {
|
|
735
|
+
gap: 8px;
|
|
736
|
+
}
|
|
737
|
+
:root[data-style='glas'] .nvr-overview .nvr-kv li {
|
|
738
|
+
font: 400 15px / 20px var(--g-font);
|
|
739
|
+
}
|
|
740
|
+
:root[data-style='glas'] .nvr-overview .nvr-kv li > span {
|
|
741
|
+
color: var(--g-label-2);
|
|
742
|
+
}
|
|
743
|
+
:root[data-style='glas'] .nvr-overview .nvr-kv li > b {
|
|
744
|
+
color: var(--g-label);
|
|
745
|
+
font-weight: 600;
|
|
746
|
+
}
|
|
747
|
+
:root[data-style='glas'] .nvr-overview .nvr-kv em {
|
|
748
|
+
color: var(--g-label-2);
|
|
749
|
+
font-weight: 400;
|
|
750
|
+
}
|
|
751
|
+
:root[data-style='glas'] .nvr-overview .nvr-note {
|
|
752
|
+
padding: 12px 0 0;
|
|
753
|
+
border-top: 1px solid var(--g-sep);
|
|
754
|
+
border-radius: 0;
|
|
755
|
+
background: none;
|
|
756
|
+
color: var(--g-label-2);
|
|
757
|
+
font: 400 13px / 18px var(--g-font);
|
|
758
|
+
}
|
|
759
|
+
/* the target out of reach: a dot 8 in `warnInk` before it (as the hero's retention chip), the text `label` */
|
|
760
|
+
:root[data-style='glas'] .nvr-overview .nvr-note--warn {
|
|
761
|
+
background: none;
|
|
762
|
+
color: var(--g-label);
|
|
763
|
+
}
|
|
764
|
+
:root[data-style='glas'] .nvr-overview .nvr-note--warn::before {
|
|
765
|
+
content: '';
|
|
766
|
+
display: inline-block;
|
|
767
|
+
width: 8px;
|
|
768
|
+
height: 8px;
|
|
769
|
+
margin-right: 6px;
|
|
770
|
+
border-radius: 50%;
|
|
771
|
+
background: var(--g-warn-ink);
|
|
772
|
+
vertical-align: 1px;
|
|
773
|
+
}
|
|
774
|
+
/* ---- Date and time (the camera page's window, J6): the month 17/22 600 between the arrows as accent chevrons in
|
|
775
|
+
circles 44, the weekdays 13/18 600 `label2`, the days circles of 44 with 20/25 — the chosen one prominent, today in
|
|
776
|
+
the accent ink, days before the retention `label3`; the time a field of K94 on its own row, below it "Heute" grey
|
|
777
|
+
and "Anzeigen" prominent as the foot's capsules 50 (§7.29) ---- */
|
|
778
|
+
:root[data-style='glas'] .nvr-dt__head {
|
|
779
|
+
margin-bottom: 4px;
|
|
780
|
+
}
|
|
781
|
+
:root[data-style='glas'] .nvr-dt__nav {
|
|
782
|
+
width: 44px;
|
|
783
|
+
height: 44px;
|
|
784
|
+
border-radius: 50%;
|
|
785
|
+
background: none;
|
|
786
|
+
color: var(--g-accent-ink);
|
|
787
|
+
}
|
|
788
|
+
:root[data-style='glas'] .nvr-dt__nav > svg {
|
|
789
|
+
width: 22px;
|
|
790
|
+
height: 22px;
|
|
791
|
+
stroke-width: 2.25;
|
|
792
|
+
}
|
|
793
|
+
:root[data-style='glas'] .nvr-dt__month {
|
|
794
|
+
color: var(--g-label);
|
|
795
|
+
font: 600 17px / 22px var(--g-font);
|
|
796
|
+
}
|
|
797
|
+
:root[data-style='glas'] .nvr-dt__grid {
|
|
798
|
+
gap: 2px 0;
|
|
799
|
+
}
|
|
800
|
+
:root[data-style='glas'] .nvr-dt__wd {
|
|
801
|
+
padding: 6px 0;
|
|
802
|
+
color: var(--g-label-2);
|
|
803
|
+
font: 600 13px / 18px var(--g-font);
|
|
804
|
+
letter-spacing: normal;
|
|
805
|
+
}
|
|
806
|
+
:root[data-style='glas'] .nvr-dt__d {
|
|
807
|
+
justify-self: center;
|
|
808
|
+
width: 100%;
|
|
809
|
+
max-width: 44px;
|
|
810
|
+
height: auto;
|
|
811
|
+
aspect-ratio: 1;
|
|
812
|
+
border-radius: 50%;
|
|
813
|
+
color: var(--g-label);
|
|
814
|
+
font: 400 20px / 25px var(--g-font);
|
|
815
|
+
font-variant-numeric: tabular-nums;
|
|
816
|
+
}
|
|
817
|
+
:root[data-style='glas'] .nvr-dt__d--today {
|
|
818
|
+
box-shadow: none;
|
|
819
|
+
color: var(--g-accent-ink);
|
|
820
|
+
font-weight: 600;
|
|
821
|
+
}
|
|
822
|
+
:root[data-style='glas'] .nvr-dt__d--off {
|
|
823
|
+
color: var(--g-label-3);
|
|
824
|
+
}
|
|
825
|
+
/* the chosen day keeps its fill under the pointer too (the package's hover tint would replace it) */
|
|
826
|
+
:root[data-style='glas'] .nvr-dt__d.nvr-dt__d--sel {
|
|
827
|
+
background: var(--accent);
|
|
828
|
+
color: var(--on-accent);
|
|
829
|
+
font-weight: 600;
|
|
830
|
+
}
|
|
831
|
+
:root[data-style='glas'] :is(.nvr-dt__nav, .nvr-dt__d):focus-visible {
|
|
832
|
+
outline: 2px solid var(--g-focus);
|
|
833
|
+
outline-offset: 2px;
|
|
834
|
+
}
|
|
835
|
+
:root[data-style='glas'] .nvr-dt__foot {
|
|
836
|
+
flex-wrap: wrap;
|
|
837
|
+
gap: 10px;
|
|
838
|
+
}
|
|
839
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-dt__time {
|
|
840
|
+
flex: 1 1 100%;
|
|
841
|
+
order: -1;
|
|
842
|
+
}
|
|
843
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-btn {
|
|
844
|
+
flex: 1 1 0;
|
|
845
|
+
min-width: max-content;
|
|
846
|
+
min-height: 50px;
|
|
847
|
+
padding: 0 18px;
|
|
848
|
+
border: 0;
|
|
849
|
+
border-radius: 25px;
|
|
850
|
+
font: 600 17px / 22px var(--g-font);
|
|
851
|
+
}
|
|
852
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-btn--ghost {
|
|
853
|
+
background: var(--g-fill);
|
|
854
|
+
color: var(--g-label);
|
|
855
|
+
}
|
|
856
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-btn:focus-visible {
|
|
857
|
+
outline: 2px solid var(--g-focus);
|
|
858
|
+
outline-offset: 2px;
|
|
859
|
+
}
|
|
860
|
+
@media (hover: hover) {
|
|
861
|
+
:root[data-style='glas'] .nvr-dt__nav:hover {
|
|
862
|
+
background: var(--g-hover);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
:root[data-style='glas'] .nvr-dt__d:hover:not(:disabled, .nvr-dt__d--sel) {
|
|
866
|
+
background: var(--g-hover);
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-btn--ghost:hover {
|
|
870
|
+
background: var(--g-fill-2);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
@media (hover: none) {
|
|
874
|
+
:root[data-style='glas'] .nvr-dt__d:hover:not(:disabled, .nvr-dt__d--sel) {
|
|
875
|
+
background: none;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
@media (forced-colors: active) {
|
|
879
|
+
:root[data-style='glas'] .nvr-dt__foot > .nvr-btn {
|
|
880
|
+
border: 1px solid ButtonText;
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
/* the chosen day: its fill turns into the page colour, a ring keeps it */
|
|
884
|
+
:root[data-style='glas'] .nvr-dt__d.nvr-dt__d--sel {
|
|
885
|
+
border: 2px solid Highlight;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
:root[data-style='glas'] .nvr-overview .nvr-meter {
|
|
889
|
+
border: 1px solid CanvasText;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/* every state of the dots (their state rules above are more specific than the plain dot) and the warning dot of
|
|
893
|
+
the storage note */
|
|
894
|
+
:root[data-style='glas'] .nvr-overview .nvr-note--warn::before,
|
|
895
|
+
:root[data-style='glas'] .nvr-gl__dot,
|
|
896
|
+
:root[data-style='glas'] .nvr-gl__cam:not([data-state='ok']) .nvr-gl__dot,
|
|
897
|
+
:root[data-style='glas'] .nvr-gl__cam[data-state='stalled'] .nvr-gl__dot {
|
|
898
|
+
forced-color-adjust: none;
|
|
899
|
+
background: CanvasText;
|
|
900
|
+
}
|
|
901
|
+
}
|
|
902
|
+
/* ---- Camera page (stage 6; plan docs/glas/PLAN-ETAPPE-6.md K101–K103, GLAS-DESIGN §7.33) ----
|
|
903
|
+
The package's immersive appearance (CameraPage appearance="immersive", @sentinel-nvr/web 0.18) takes its looks
|
|
904
|
+
from hooks; here they get the Glas values. The page lies in the dark subtree (AppLayout: data-glas-scheme="dark"
|
|
905
|
+
while it is shown), so every --g-* below is the dark one. Over the picture clear glass (§3.2), over the timeline
|
|
906
|
+
regular glass with the date chip's minimum tint (the recipe of material.css), the segment as §7.27, LIVE red with
|
|
907
|
+
its shadow, the gradients of §3.6, the lens with the snappy spring. */
|
|
908
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] {
|
|
909
|
+
--g-nvr-t: max(var(--g-tint-date-chip), var(--g-glass-tint));
|
|
910
|
+
--nvr-ctl-bg: var(--g-glass-clear-fill);
|
|
911
|
+
--nvr-ctl-filter: var(--g-glass-clear-filter);
|
|
912
|
+
--nvr-ctl-rim: var(--g-glass-clear-rim);
|
|
913
|
+
--nvr-ctl-shadow: var(--g-glass-clear-shadow);
|
|
914
|
+
--nvr-ctl-fg: var(--g-on-media);
|
|
915
|
+
--nvr-ctl-text-shadow: var(--g-glass-clear-text-shadow);
|
|
916
|
+
--nvr-float-bg: linear-gradient(
|
|
917
|
+
180deg,
|
|
918
|
+
rgb(var(--g-glass-rgb) / calc(var(--g-glass-a0) + 0.4 * var(--g-nvr-t))),
|
|
919
|
+
rgb(var(--g-glass-rgb) / calc(var(--g-glass-a1) + 0.4 * var(--g-nvr-t)))
|
|
920
|
+
);
|
|
921
|
+
--nvr-float-filter: blur(calc(6px + 10px * var(--g-nvr-t))) saturate(var(--g-glass-sat))
|
|
922
|
+
brightness(var(--g-glass-bright));
|
|
923
|
+
--nvr-float-rim: var(--g-glass-rim);
|
|
924
|
+
--nvr-float-shadow: var(--g-glass-shadow);
|
|
925
|
+
--nvr-float-fg: var(--g-label);
|
|
926
|
+
--nvr-float-accent: var(--g-accent-ink);
|
|
927
|
+
--nvr-seg-track: var(--g-fill);
|
|
928
|
+
--nvr-seg-lens: var(--g-seg);
|
|
929
|
+
--nvr-seg-shadow: var(--g-seg-shadow);
|
|
930
|
+
--nvr-live-bg: var(--g-live);
|
|
931
|
+
--nvr-live-fg: var(--g-on-media);
|
|
932
|
+
--nvr-live-shadow: var(--g-shadow-live);
|
|
933
|
+
--nvr-shade-top: color-mix(in srgb, var(--g-media-bg) 70%, transparent);
|
|
934
|
+
--nvr-shade-bottom: color-mix(in srgb, var(--g-media-bg) 35%, transparent);
|
|
935
|
+
--nvr-ease: var(--g-spring-snappy);
|
|
936
|
+
--nvr-dur: var(--g-d-snappy);
|
|
937
|
+
font-family: var(--g-font);
|
|
938
|
+
font-variant-numeric: tabular-nums;
|
|
939
|
+
}
|
|
940
|
+
/* opaque ("Deckend", "Transparenz reduzieren", more contrast) and without backdrop-filter: solid, no rim (§3.4) */
|
|
941
|
+
:root[data-style='glas'][data-glass='opaque'] .nvr-cam[data-nvr-appearance='immersive'] {
|
|
942
|
+
--nvr-ctl-bg: var(--g-glass-opaque-clear-fill);
|
|
943
|
+
--nvr-ctl-filter: none;
|
|
944
|
+
--nvr-ctl-rim: transparent;
|
|
945
|
+
--nvr-ctl-shadow: var(--g-glass-opaque-clear-shadow);
|
|
946
|
+
--nvr-float-bg: var(--g-card-solid);
|
|
947
|
+
--nvr-float-filter: none;
|
|
948
|
+
--nvr-float-rim: transparent;
|
|
949
|
+
--nvr-float-shadow: var(--g-glass-opaque-shadow);
|
|
950
|
+
}
|
|
951
|
+
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
|
|
952
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] {
|
|
953
|
+
--nvr-ctl-bg: var(--g-glass-opaque-clear-fill);
|
|
954
|
+
--nvr-ctl-rim: transparent;
|
|
955
|
+
--nvr-ctl-shadow: var(--g-glass-opaque-clear-shadow);
|
|
956
|
+
--nvr-float-bg: var(--g-card-solid);
|
|
957
|
+
--nvr-float-rim: transparent;
|
|
958
|
+
--nvr-float-shadow: var(--g-glass-opaque-shadow);
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
/* the secondary texts of the page (state, ticks, times) in Glas grey */
|
|
962
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-title small {
|
|
963
|
+
color: var(--g-label-2);
|
|
964
|
+
}
|
|
965
|
+
/* the timeline keeps the package's geometry and its colours for states (recording band, motion, classes, live; K101);
|
|
966
|
+
the playhead is `label` (§7.33) with its time as a capsule in the same colour */
|
|
967
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vcenter {
|
|
968
|
+
background: var(--g-label);
|
|
969
|
+
box-shadow: none;
|
|
970
|
+
}
|
|
971
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vcenter-t {
|
|
972
|
+
border-color: transparent;
|
|
973
|
+
background: var(--g-label);
|
|
974
|
+
color: var(--g-bg);
|
|
975
|
+
font: 600 13px / 18px var(--g-font);
|
|
976
|
+
}
|
|
977
|
+
/* Focus over the picture (Etappe 7, K109): inside the control, in its own ink, so the ring lies on the control's glass
|
|
978
|
+
(white on clear glass, dark on the pressed sound circle) — the accent ring around it lay on the picture (1.2:1 over
|
|
979
|
+
a bright image). The timeline's events take the playhead's colour (the accent beside the blue band: 2.3:1). */
|
|
980
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-pb, .nvr-mute):focus-visible {
|
|
981
|
+
outline: 2px solid currentColor;
|
|
982
|
+
outline-offset: -2px;
|
|
983
|
+
}
|
|
984
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vev:focus-visible {
|
|
985
|
+
outline-color: var(--g-label);
|
|
986
|
+
}
|
|
987
|
+
@media (max-width: 899px) {
|
|
988
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn:focus-visible {
|
|
989
|
+
outline: 2px solid currentColor;
|
|
990
|
+
outline-offset: -2px;
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
@media (hover: none) {
|
|
994
|
+
:root[data-style='glas']
|
|
995
|
+
.nvr-cam[data-nvr-appearance='immersive']
|
|
996
|
+
:is(.nvr-pb, .nvr-datechip > button):hover:not(:disabled) {
|
|
997
|
+
background: transparent;
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
@media (min-width: 900px) {
|
|
1001
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head {
|
|
1002
|
+
min-height: 44px;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn {
|
|
1006
|
+
width: 44px;
|
|
1007
|
+
height: 44px;
|
|
1008
|
+
min-width: 44px;
|
|
1009
|
+
border-radius: 50%;
|
|
1010
|
+
background: var(--g-fill);
|
|
1011
|
+
color: var(--g-label);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
@media (hover: hover) {
|
|
1015
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn:hover {
|
|
1016
|
+
background: var(--g-fill-2);
|
|
1017
|
+
color: var(--g-label);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn:focus-visible {
|
|
1022
|
+
outline: 2px solid var(--g-focus);
|
|
1023
|
+
outline-offset: 2px;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__title {
|
|
1027
|
+
gap: 12px;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__name {
|
|
1031
|
+
gap: 10px;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__h1 {
|
|
1035
|
+
font: 700 34px / 41px var(--g-font);
|
|
1036
|
+
letter-spacing: 0.37px;
|
|
1037
|
+
color: var(--g-label);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__badge--time {
|
|
1041
|
+
color: var(--g-label-2);
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1045
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button {
|
|
1046
|
+
transition-duration: 200ms !important;
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
@media (forced-colors: active) {
|
|
1050
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vcenter {
|
|
1051
|
+
forced-color-adjust: none;
|
|
1052
|
+
background: CanvasText;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vcenter-t {
|
|
1056
|
+
forced-color-adjust: none;
|
|
1057
|
+
border-color: CanvasText;
|
|
1058
|
+
background: Canvas;
|
|
1059
|
+
color: CanvasText;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
:root[data-style='glas'] .nvr-cam[data-nvr-appearance='immersive'] {
|
|
1063
|
+
--nvr-ctl-bg: Canvas;
|
|
1064
|
+
--nvr-ctl-filter: none;
|
|
1065
|
+
--nvr-ctl-rim: transparent;
|
|
1066
|
+
--nvr-ctl-shadow: none;
|
|
1067
|
+
--nvr-ctl-fg: CanvasText;
|
|
1068
|
+
--nvr-ctl-text-shadow: none;
|
|
1069
|
+
--nvr-float-bg: Canvas;
|
|
1070
|
+
--nvr-float-filter: none;
|
|
1071
|
+
--nvr-float-rim: transparent;
|
|
1072
|
+
--nvr-float-shadow: none;
|
|
1073
|
+
--nvr-float-fg: CanvasText;
|
|
1074
|
+
--nvr-float-accent: CanvasText;
|
|
1075
|
+
--nvr-live-bg: Highlight;
|
|
1076
|
+
--nvr-live-fg: HighlightText;
|
|
1077
|
+
--nvr-live-shadow: none;
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
/* ---- from HAPulse styles/glas/pages.css ---- */
|
|
1081
|
+
/* ---- A card that is its own surface (title in the surface, a head tafel, the alarm panel, the music page's cards) does not
|
|
1082
|
+
tint under the pointer: it is content, not a control (GLAS-DESIGN §6.3: rows, links and tiles answer the pointer).
|
|
1083
|
+
The classic `.card:hover` would paint `cardHover` on it. A card with its title above the surface has no background
|
|
1084
|
+
of its own (above). ---- */
|
|
1085
|
+
:root[data-style='glas'] .nvr-tafel:where(.nvr-card):hover {
|
|
1086
|
+
background-color: var(--bg-card);
|
|
1087
|
+
}
|
|
1088
|
+
/* ---- from HAPulse styles/glas/tafel.css ---- */
|
|
1089
|
+
:root[data-style='glas'] .nvr-card.nvr-tafel {
|
|
1090
|
+
display: flex;
|
|
1091
|
+
flex-direction: column;
|
|
1092
|
+
/* the classic heroes' min-height and space-between (their CSS keeps applying to the class) would spread the parts */
|
|
1093
|
+
justify-content: flex-start;
|
|
1094
|
+
min-height: 0;
|
|
1095
|
+
gap: 16px;
|
|
1096
|
+
padding: 16px;
|
|
1097
|
+
background: var(--bg-card);
|
|
1098
|
+
background-image: none;
|
|
1099
|
+
/* the grid's lone last cell (below) asks the card's width */
|
|
1100
|
+
container: nvr-tafel / inline-size;
|
|
1101
|
+
}
|
|
1102
|
+
/* the classic heroes paint their wash or glow from these; the tafel has none */
|
|
1103
|
+
:root[data-style='glas'] .nvr-card.nvr-tafel::before,
|
|
1104
|
+
:root[data-style='glas'] .nvr-card.nvr-tafel::after {
|
|
1105
|
+
content: none;
|
|
1106
|
+
}
|
|
1107
|
+
/* ---- Head ---- */
|
|
1108
|
+
:root[data-style='glas'] .nvr-tafel__head {
|
|
1109
|
+
display: flex;
|
|
1110
|
+
align-items: center;
|
|
1111
|
+
gap: 12px;
|
|
1112
|
+
min-width: 0;
|
|
1113
|
+
}
|
|
1114
|
+
:root[data-style='glas'] .nvr-tafel__badge {
|
|
1115
|
+
display: inline-grid;
|
|
1116
|
+
flex: none;
|
|
1117
|
+
place-items: center;
|
|
1118
|
+
width: 56px;
|
|
1119
|
+
height: 56px;
|
|
1120
|
+
border-radius: 50%;
|
|
1121
|
+
background: var(--g-fill);
|
|
1122
|
+
color: var(--g-label-2);
|
|
1123
|
+
}
|
|
1124
|
+
:root[data-style='glas'] .nvr-tafel__badge > svg {
|
|
1125
|
+
width: 28px;
|
|
1126
|
+
height: 28px;
|
|
1127
|
+
}
|
|
1128
|
+
:root[data-style='glas'] .nvr-tafel__badge[data-tone='ok'] {
|
|
1129
|
+
background: var(--g-green-soft);
|
|
1130
|
+
color: var(--g-green-ink);
|
|
1131
|
+
}
|
|
1132
|
+
:root[data-style='glas'] .nvr-tafel__badge[data-tone='warn'] {
|
|
1133
|
+
background: var(--g-warn-soft);
|
|
1134
|
+
color: var(--g-warn-ink);
|
|
1135
|
+
}
|
|
1136
|
+
:root[data-style='glas'] .nvr-tafel__badge[data-tone='danger'] {
|
|
1137
|
+
background: var(--g-red-soft);
|
|
1138
|
+
color: var(--g-red-ink);
|
|
1139
|
+
}
|
|
1140
|
+
:root[data-style='glas'] .nvr-tafel__head-text {
|
|
1141
|
+
display: flex;
|
|
1142
|
+
flex-direction: column;
|
|
1143
|
+
min-width: 0;
|
|
1144
|
+
}
|
|
1145
|
+
:root[data-style='glas'] .nvr-tafel__kicker {
|
|
1146
|
+
margin: 0;
|
|
1147
|
+
overflow: hidden;
|
|
1148
|
+
color: var(--g-label-2);
|
|
1149
|
+
font: 400 13px / 18px var(--g-font);
|
|
1150
|
+
text-overflow: ellipsis;
|
|
1151
|
+
white-space: nowrap;
|
|
1152
|
+
}
|
|
1153
|
+
:root[data-style='glas'] .nvr-tafel__title {
|
|
1154
|
+
margin: 0;
|
|
1155
|
+
color: var(--g-label);
|
|
1156
|
+
font: 700 22px / 28px var(--g-font);
|
|
1157
|
+
overflow-wrap: anywhere;
|
|
1158
|
+
}
|
|
1159
|
+
:root[data-style='glas'] .nvr-tafel__title[data-tone='ok'] {
|
|
1160
|
+
color: var(--g-green-ink);
|
|
1161
|
+
}
|
|
1162
|
+
:root[data-style='glas'] .nvr-tafel__title[data-tone='warn'] {
|
|
1163
|
+
color: var(--g-warn-ink);
|
|
1164
|
+
}
|
|
1165
|
+
:root[data-style='glas'] .nvr-tafel__title[data-tone='danger'] {
|
|
1166
|
+
color: var(--g-red-ink);
|
|
1167
|
+
}
|
|
1168
|
+
:root[data-style='glas'] .nvr-tafel__title[data-tone='danger'] .nvr-tafel__part:not(:only-child) {
|
|
1169
|
+
/* one of several problems never breaks inside (NVR: "1 Kamera offline · 1 Aufnahme hängt") */
|
|
1170
|
+
white-space: nowrap;
|
|
1171
|
+
}
|
|
1172
|
+
/* ---- Grid: hairlines between the cells only. Each cell draws one up and one left of itself; the grid clips those
|
|
1173
|
+
that fall outside it (first row, first column). Columns: as many as fit at --g-tafel-min, at most --g-tafel-max. ---- */
|
|
1174
|
+
:root[data-style='glas'] .nvr-tafel__grid {
|
|
1175
|
+
display: grid;
|
|
1176
|
+
grid-template-columns: repeat(
|
|
1177
|
+
auto-fit,
|
|
1178
|
+
minmax(max(var(--nvr-tafel-min, 130px), 100% / var(--nvr-tafel-max, 4) - 1px), 1fr)
|
|
1179
|
+
);
|
|
1180
|
+
margin: 0 0 -6px -12px;
|
|
1181
|
+
overflow: hidden;
|
|
1182
|
+
}
|
|
1183
|
+
@container nvr-tafel (280px <= width < 410px) {
|
|
1184
|
+
:root[data-style='glas'] .nvr-tafel__grid[data-min='130'] > .nvr-tafel__cell:last-child:nth-child(odd) {
|
|
1185
|
+
grid-column: 1 / -1;
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
@container nvr-tafel (300px <= width < 440px) {
|
|
1189
|
+
:root[data-style='glas'] .nvr-tafel__grid[data-min='140'] > .nvr-tafel__cell:last-child:nth-child(odd) {
|
|
1190
|
+
grid-column: 1 / -1;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
:root[data-style='glas'] .nvr-tafel__cell {
|
|
1194
|
+
display: flex;
|
|
1195
|
+
flex-direction: column;
|
|
1196
|
+
gap: 2px;
|
|
1197
|
+
min-width: 0;
|
|
1198
|
+
padding: 10px 8px 10px 12px;
|
|
1199
|
+
box-shadow: -0.5px -0.5px 0 0 var(--g-sep);
|
|
1200
|
+
}
|
|
1201
|
+
:root[data-style='glas'] .nvr-tafel__label {
|
|
1202
|
+
display: flex;
|
|
1203
|
+
align-items: center;
|
|
1204
|
+
gap: 6px;
|
|
1205
|
+
min-width: 0;
|
|
1206
|
+
color: var(--g-label-2);
|
|
1207
|
+
font: 600 13px / 18px var(--g-font);
|
|
1208
|
+
}
|
|
1209
|
+
:root[data-style='glas'] .nvr-tafel__label > svg {
|
|
1210
|
+
flex: none;
|
|
1211
|
+
width: 15px;
|
|
1212
|
+
height: 15px;
|
|
1213
|
+
}
|
|
1214
|
+
:root[data-style='glas'] .nvr-tafel__label-text {
|
|
1215
|
+
overflow: hidden;
|
|
1216
|
+
text-overflow: ellipsis;
|
|
1217
|
+
white-space: nowrap;
|
|
1218
|
+
}
|
|
1219
|
+
:root[data-style='glas'] .nvr-tafel__value {
|
|
1220
|
+
margin: 0;
|
|
1221
|
+
overflow: hidden;
|
|
1222
|
+
color: var(--g-label);
|
|
1223
|
+
font: 600 28px / 34px var(--g-font);
|
|
1224
|
+
font-variant-numeric: tabular-nums;
|
|
1225
|
+
text-overflow: ellipsis;
|
|
1226
|
+
white-space: nowrap;
|
|
1227
|
+
}
|
|
1228
|
+
:root[data-style='glas'] .nvr-tafel__unit {
|
|
1229
|
+
color: var(--g-label-2);
|
|
1230
|
+
font-size: 17px;
|
|
1231
|
+
font-weight: 600;
|
|
1232
|
+
}
|
|
1233
|
+
:root[data-style='glas'] .nvr-tafel__cell[data-tone='warn'] :is(.nvr-tafel__label > svg, .nvr-tafel__value) {
|
|
1234
|
+
color: var(--g-warn-ink);
|
|
1235
|
+
}
|
|
1236
|
+
:root[data-style='glas'] .nvr-tafel__cell[data-tone='danger'] :is(.nvr-tafel__label > svg, .nvr-tafel__value) {
|
|
1237
|
+
color: var(--g-red-ink);
|
|
1238
|
+
}
|
|
1239
|
+
@media (forced-colors: active) {
|
|
1240
|
+
:root[data-style='glas']
|
|
1241
|
+
.nvr-tafel__cell:is([data-tone='warn'], [data-tone='danger'])
|
|
1242
|
+
:is(.nvr-tafel__label > svg, .nvr-tafel__value) {
|
|
1243
|
+
forced-color-adjust: none;
|
|
1244
|
+
color: Highlight;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
:root[data-style='glas'] .nvr-tafel__badge {
|
|
1248
|
+
border: 1px solid CanvasText;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
/* ---- from HAPulse styles/glas/settings.css, pages.css and controls.css (0.22.0): the settings ("Darstellung") ----
|
|
1252
|
+
One iOS settings list, as HAPulse's settings page: the group title 15/20 600 in `label2` above its list, rows 52
|
|
1253
|
+
(inline: 44 inside 4 above and below), the symbol monochrome `label2` in a column of 28 (its colours come inline;
|
|
1254
|
+
the tokens are set on the chip itself), the label 17/22, separators 0.5 px from the text start (56), none above the
|
|
1255
|
+
first row. Explanations start under the label text (desktop) or at the row's inset (phones). The choices are the Glas
|
|
1256
|
+
segment (GlassSegment, `nvr-gl-seg--settings`), the switch, the language as an iOS pop-up row and the accent slider
|
|
1257
|
+
look like HAPulse's controls. Selectors map HAPulse's classes: .settings-card__row → .nvr-set__row,
|
|
1258
|
+
.settings-card__row-label → .nvr-set__label, .settings-card__icon-chip → .nvr-set__chip, .managed-row-hint →
|
|
1259
|
+
.nvr-set__hint, .admin-toggle → .nvr-switch, .settings-select → .nvr-select, .accent-row → .nvr-accent,
|
|
1260
|
+
.accent-slider → .nvr-accent__slider, .g-seg → .nvr-gl-seg. */
|
|
1261
|
+
:root[data-style='glas'] .nvr-set__section {
|
|
1262
|
+
--g-row-indent: 40px;
|
|
1263
|
+
gap: 8px;
|
|
1264
|
+
}
|
|
1265
|
+
@media (max-width: 480px) {
|
|
1266
|
+
:root[data-style='glas'] .nvr-set__section {
|
|
1267
|
+
--g-row-indent: 0px;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
:root[data-style='glas'] .nvr-set__section > .nvr-section__label {
|
|
1271
|
+
padding: 0 16px;
|
|
1272
|
+
color: var(--g-label-2);
|
|
1273
|
+
font: 600 15px / 20px var(--g-font);
|
|
1274
|
+
letter-spacing: normal;
|
|
1275
|
+
text-transform: none;
|
|
1276
|
+
}
|
|
1277
|
+
:root[data-style='glas'] .nvr-set-card {
|
|
1278
|
+
gap: 0;
|
|
1279
|
+
padding: 0;
|
|
1280
|
+
overflow: hidden;
|
|
1281
|
+
}
|
|
1282
|
+
/* rows */
|
|
1283
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row {
|
|
1284
|
+
position: relative;
|
|
1285
|
+
gap: 8px;
|
|
1286
|
+
min-height: 52px;
|
|
1287
|
+
padding: 12px 16px;
|
|
1288
|
+
border: 0;
|
|
1289
|
+
}
|
|
1290
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row--inline {
|
|
1291
|
+
gap: 0 12px;
|
|
1292
|
+
padding: 4px 16px;
|
|
1293
|
+
}
|
|
1294
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row::before {
|
|
1295
|
+
content: '';
|
|
1296
|
+
position: absolute;
|
|
1297
|
+
top: 0;
|
|
1298
|
+
right: 0;
|
|
1299
|
+
left: 56px;
|
|
1300
|
+
height: 0.5px;
|
|
1301
|
+
background: var(--g-sep);
|
|
1302
|
+
pointer-events: none;
|
|
1303
|
+
}
|
|
1304
|
+
:root[data-style='glas'] .nvr-set-card > .nvr-set__row:first-child::before {
|
|
1305
|
+
content: none;
|
|
1306
|
+
}
|
|
1307
|
+
/* label and symbol */
|
|
1308
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__label {
|
|
1309
|
+
gap: 12px;
|
|
1310
|
+
color: var(--g-label);
|
|
1311
|
+
font: 400 17px / 22px var(--g-font);
|
|
1312
|
+
}
|
|
1313
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row--inline > .nvr-set__label {
|
|
1314
|
+
flex: 0 1 auto;
|
|
1315
|
+
min-height: 44px;
|
|
1316
|
+
}
|
|
1317
|
+
/* beside a switch the label wraps, the switch stays at the row's end */
|
|
1318
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row--inline:has(> .nvr-switch) > .nvr-set__label {
|
|
1319
|
+
flex: 1 1 0%;
|
|
1320
|
+
min-width: 0;
|
|
1321
|
+
}
|
|
1322
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__chip {
|
|
1323
|
+
--accent-soft: transparent;
|
|
1324
|
+
--accent: var(--g-label-2);
|
|
1325
|
+
--info-soft: transparent;
|
|
1326
|
+
--info: var(--g-label-2);
|
|
1327
|
+
--warning-soft: transparent;
|
|
1328
|
+
--warning: var(--g-label-2);
|
|
1329
|
+
--bg-subtle: transparent;
|
|
1330
|
+
--text-dim: var(--g-label-2);
|
|
1331
|
+
width: 28px;
|
|
1332
|
+
height: 28px;
|
|
1333
|
+
border-radius: 0;
|
|
1334
|
+
}
|
|
1335
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__chip > svg {
|
|
1336
|
+
width: 22px;
|
|
1337
|
+
height: 22px;
|
|
1338
|
+
}
|
|
1339
|
+
/* explanations */
|
|
1340
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__hint {
|
|
1341
|
+
margin: -6px 0 8px;
|
|
1342
|
+
padding-left: var(--g-row-indent);
|
|
1343
|
+
color: var(--g-label-2);
|
|
1344
|
+
font: 400 13px / 18px var(--g-font);
|
|
1345
|
+
}
|
|
1346
|
+
@media (max-width: 480px) {
|
|
1347
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__hint {
|
|
1348
|
+
margin-top: 0;
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
/* language: the value with its chevron at the row's end, like an iOS pop-up row */
|
|
1352
|
+
:root[data-style='glas'] .nvr-set-card .nvr-select {
|
|
1353
|
+
margin-left: auto;
|
|
1354
|
+
}
|
|
1355
|
+
:root[data-style='glas'] .nvr-set-card .nvr-select__native {
|
|
1356
|
+
min-height: 44px;
|
|
1357
|
+
margin-block: 0;
|
|
1358
|
+
padding: 0 24px 0 8px;
|
|
1359
|
+
border: 0;
|
|
1360
|
+
border-radius: 10px;
|
|
1361
|
+
background: transparent;
|
|
1362
|
+
color: var(--g-label-2);
|
|
1363
|
+
font: 400 17px / 22px var(--g-font);
|
|
1364
|
+
text-align: right;
|
|
1365
|
+
text-align-last: right;
|
|
1366
|
+
}
|
|
1367
|
+
@media (hover: hover) {
|
|
1368
|
+
:root[data-style='glas'] .nvr-set-card .nvr-select__native:hover {
|
|
1369
|
+
background-image: none;
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
:root[data-style='glas'] .nvr-set-card .nvr-select__native:focus-visible {
|
|
1373
|
+
outline: 2px solid var(--g-focus);
|
|
1374
|
+
outline-offset: 0;
|
|
1375
|
+
box-shadow: none;
|
|
1376
|
+
}
|
|
1377
|
+
:root[data-style='glas'] .nvr-set-card .nvr-select__chevron {
|
|
1378
|
+
right: 2px;
|
|
1379
|
+
color: var(--g-label-3);
|
|
1380
|
+
}
|
|
1381
|
+
/* accent: the label line is always 44 high (inside the row's inset), so "Zurücksetzen" appearing on the first drag
|
|
1382
|
+
does not move the slider under the finger; the slider under the label text */
|
|
1383
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent {
|
|
1384
|
+
gap: 8px;
|
|
1385
|
+
}
|
|
1386
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__label {
|
|
1387
|
+
min-height: 44px;
|
|
1388
|
+
margin: -8px 0;
|
|
1389
|
+
}
|
|
1390
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__label > .nvr-set__label {
|
|
1391
|
+
gap: 8px;
|
|
1392
|
+
}
|
|
1393
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__label .nvr-set__chip {
|
|
1394
|
+
margin-right: 4px;
|
|
1395
|
+
}
|
|
1396
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__dot {
|
|
1397
|
+
width: 16px;
|
|
1398
|
+
height: 16px;
|
|
1399
|
+
margin-left: 8px;
|
|
1400
|
+
border: 0;
|
|
1401
|
+
}
|
|
1402
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__reset {
|
|
1403
|
+
display: inline-block;
|
|
1404
|
+
min-height: 44px;
|
|
1405
|
+
padding: 12px 4px;
|
|
1406
|
+
border: 0;
|
|
1407
|
+
background: transparent;
|
|
1408
|
+
color: var(--g-accent-ink);
|
|
1409
|
+
font: 400 17px / 20px var(--g-font);
|
|
1410
|
+
}
|
|
1411
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__reset:hover {
|
|
1412
|
+
background: transparent;
|
|
1413
|
+
color: var(--g-accent-ink);
|
|
1414
|
+
}
|
|
1415
|
+
@media (hover: hover) {
|
|
1416
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__reset:hover {
|
|
1417
|
+
opacity: 0.7;
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__reset:focus-visible {
|
|
1421
|
+
outline: 2px solid var(--g-focus);
|
|
1422
|
+
outline-offset: -2px;
|
|
1423
|
+
border-radius: 10px;
|
|
1424
|
+
}
|
|
1425
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider {
|
|
1426
|
+
align-self: stretch;
|
|
1427
|
+
width: auto;
|
|
1428
|
+
height: 28px;
|
|
1429
|
+
margin-left: var(--g-row-indent);
|
|
1430
|
+
border: 0;
|
|
1431
|
+
border-radius: 14px;
|
|
1432
|
+
transition: transform 200ms var(--g-spring-snappy);
|
|
1433
|
+
}
|
|
1434
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider::-webkit-slider-thumb {
|
|
1435
|
+
width: 24px;
|
|
1436
|
+
height: 24px;
|
|
1437
|
+
border: 0;
|
|
1438
|
+
background: var(--g-knob);
|
|
1439
|
+
box-shadow: var(--g-shadow-knob);
|
|
1440
|
+
}
|
|
1441
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider::-moz-range-thumb {
|
|
1442
|
+
width: 24px;
|
|
1443
|
+
height: 24px;
|
|
1444
|
+
border: 0;
|
|
1445
|
+
background: var(--g-knob);
|
|
1446
|
+
box-shadow: var(--g-shadow-knob);
|
|
1447
|
+
}
|
|
1448
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider:active {
|
|
1449
|
+
transform: scale(1.04);
|
|
1450
|
+
}
|
|
1451
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider:focus-visible {
|
|
1452
|
+
outline: 2px solid var(--g-focus);
|
|
1453
|
+
outline-offset: 2px;
|
|
1454
|
+
}
|
|
1455
|
+
/* switch (GLAS-DESIGN §7.28): 51 × 31 capsule, knob 27 white with its shadow, on = iOS green and the knob 20 to the
|
|
1456
|
+
right; hit area 64 × 44 around the capsule without moving anything */
|
|
1457
|
+
:root[data-style='glas'] .nvr-switch {
|
|
1458
|
+
width: 51px;
|
|
1459
|
+
height: 31px;
|
|
1460
|
+
border: 0;
|
|
1461
|
+
border-radius: 16px;
|
|
1462
|
+
background: var(--g-switch-off);
|
|
1463
|
+
box-shadow: none;
|
|
1464
|
+
transition: background-color 250ms ease;
|
|
1465
|
+
}
|
|
1466
|
+
:root[data-style='glas'] .nvr-switch--on {
|
|
1467
|
+
background: var(--g-switch-on);
|
|
1468
|
+
}
|
|
1469
|
+
:root[data-style='glas'] .nvr-switch__thumb {
|
|
1470
|
+
top: 2px;
|
|
1471
|
+
left: 2px;
|
|
1472
|
+
width: 27px;
|
|
1473
|
+
height: 27px;
|
|
1474
|
+
border-radius: 50%;
|
|
1475
|
+
background: var(--g-knob);
|
|
1476
|
+
box-shadow: var(--g-shadow-knob);
|
|
1477
|
+
transition: transform var(--g-d-snappy) var(--g-spring-snappy);
|
|
1478
|
+
}
|
|
1479
|
+
:root[data-style='glas'] .nvr-switch--on .nvr-switch__thumb {
|
|
1480
|
+
background: var(--g-knob);
|
|
1481
|
+
transform: translateX(20px);
|
|
1482
|
+
}
|
|
1483
|
+
:root[data-style='glas'] .nvr-switch::before {
|
|
1484
|
+
content: '';
|
|
1485
|
+
position: absolute;
|
|
1486
|
+
inset: -6.5px;
|
|
1487
|
+
}
|
|
1488
|
+
:root[data-style='glas'] .nvr-switch:focus-visible {
|
|
1489
|
+
outline: 2px solid var(--g-focus);
|
|
1490
|
+
outline-offset: 2px;
|
|
1491
|
+
}
|
|
1492
|
+
/* segmented control (GLAS-DESIGN §7.27, GlassSegment): track `fill`, lens `seg` + `segShadow` that slides with the
|
|
1493
|
+
snappy spring, equally wide options with text only. The size per use comes from a modifier class that sets the
|
|
1494
|
+
variables: --nvr-gl-seg-h (hit area), --nvr-gl-seg-inset (space above and below the visible track),
|
|
1495
|
+
--nvr-gl-seg-pad (space between track and lens). The component sets --nvr-gl-seg-n (options) and --nvr-gl-seg-i
|
|
1496
|
+
(chosen one). */
|
|
1497
|
+
:root[data-style='glas'] .nvr-gl-seg {
|
|
1498
|
+
--nvr-gl-seg-h: 36px;
|
|
1499
|
+
--nvr-gl-seg-inset: 0px;
|
|
1500
|
+
--nvr-gl-seg-pad: 2px;
|
|
1501
|
+
position: relative;
|
|
1502
|
+
display: flex;
|
|
1503
|
+
height: var(--nvr-gl-seg-h);
|
|
1504
|
+
}
|
|
1505
|
+
:root[data-style='glas'] .nvr-gl-seg__track {
|
|
1506
|
+
position: absolute;
|
|
1507
|
+
inset: var(--nvr-gl-seg-inset) 0;
|
|
1508
|
+
border-radius: 999px;
|
|
1509
|
+
background: var(--g-fill);
|
|
1510
|
+
}
|
|
1511
|
+
:root[data-style='glas'] .nvr-gl-seg__lens {
|
|
1512
|
+
position: absolute;
|
|
1513
|
+
top: calc(var(--nvr-gl-seg-inset) + var(--nvr-gl-seg-pad));
|
|
1514
|
+
left: var(--nvr-gl-seg-pad);
|
|
1515
|
+
width: calc((100% - 2 * var(--nvr-gl-seg-pad)) / var(--nvr-gl-seg-n));
|
|
1516
|
+
height: calc(var(--nvr-gl-seg-h) - 2 * (var(--nvr-gl-seg-inset) + var(--nvr-gl-seg-pad)));
|
|
1517
|
+
border-radius: 999px;
|
|
1518
|
+
background: var(--g-seg);
|
|
1519
|
+
box-shadow: var(--g-seg-shadow);
|
|
1520
|
+
transform: translateX(calc(var(--nvr-gl-seg-i) * 100%));
|
|
1521
|
+
transition: transform var(--g-d-snappy) var(--g-spring-snappy);
|
|
1522
|
+
pointer-events: none;
|
|
1523
|
+
}
|
|
1524
|
+
:root[data-style='glas'] .nvr-gl-seg[data-none] .nvr-gl-seg__lens {
|
|
1525
|
+
display: none;
|
|
1526
|
+
}
|
|
1527
|
+
:root[data-style='glas'] .nvr-gl-seg__opt {
|
|
1528
|
+
position: relative;
|
|
1529
|
+
flex: 1 1 0;
|
|
1530
|
+
min-width: 0;
|
|
1531
|
+
height: var(--nvr-gl-seg-h);
|
|
1532
|
+
padding: 0 4px;
|
|
1533
|
+
border: 0;
|
|
1534
|
+
border-radius: 999px;
|
|
1535
|
+
background: transparent;
|
|
1536
|
+
color: var(--g-label);
|
|
1537
|
+
font: 600 13px / 18px var(--g-font);
|
|
1538
|
+
text-align: center;
|
|
1539
|
+
white-space: nowrap;
|
|
1540
|
+
overflow: hidden;
|
|
1541
|
+
text-overflow: ellipsis;
|
|
1542
|
+
cursor: pointer;
|
|
1543
|
+
-webkit-tap-highlight-color: transparent;
|
|
1544
|
+
}
|
|
1545
|
+
:root[data-style='glas'] .nvr-gl-seg__opt:focus-visible {
|
|
1546
|
+
outline: 2px solid var(--accent);
|
|
1547
|
+
outline-offset: 2px;
|
|
1548
|
+
}
|
|
1549
|
+
/* a label that does not fit (GlassSegment measures it): the whole segment 13/18 with 2 px padding; what still does not
|
|
1550
|
+
fit ends in "…" */
|
|
1551
|
+
:root[data-style='glas'] .nvr-gl-seg[data-tight] .nvr-gl-seg__opt {
|
|
1552
|
+
padding: 0 2px;
|
|
1553
|
+
font-size: 13px;
|
|
1554
|
+
line-height: 18px;
|
|
1555
|
+
}
|
|
1556
|
+
/* the settings' choices (style, strength, light/dark): hit area 44, visible track 32, lens 28, at the row's end; the
|
|
1557
|
+
options equally wide as the longest label (at least 72). A transparent border of 2 on each side gives the measuring
|
|
1558
|
+
its slack. Phones: the segment takes its own line in the row's whole width. */
|
|
1559
|
+
:root[data-style='glas'] .nvr-gl-seg--settings {
|
|
1560
|
+
--nvr-gl-seg-h: 44px;
|
|
1561
|
+
--nvr-gl-seg-inset: 6px;
|
|
1562
|
+
--nvr-gl-seg-pad: 2px;
|
|
1563
|
+
display: inline-grid;
|
|
1564
|
+
flex: none;
|
|
1565
|
+
grid-auto-columns: 1fr;
|
|
1566
|
+
grid-auto-flow: column;
|
|
1567
|
+
margin-left: auto;
|
|
1568
|
+
}
|
|
1569
|
+
:root[data-style='glas'] .nvr-gl-seg--settings .nvr-gl-seg__opt {
|
|
1570
|
+
min-width: 72px;
|
|
1571
|
+
padding: 0 10px;
|
|
1572
|
+
border-inline: 2px solid transparent;
|
|
1573
|
+
}
|
|
1574
|
+
@media (max-width: 480px) {
|
|
1575
|
+
:root[data-style='glas'] .nvr-gl-seg--settings {
|
|
1576
|
+
flex: 1 1 100%;
|
|
1577
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
:root[data-style='glas'] .nvr-gl-seg--settings .nvr-gl-seg__opt {
|
|
1581
|
+
min-width: 0;
|
|
1582
|
+
padding: 0 2px;
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
@media (prefers-reduced-motion: reduce) {
|
|
1586
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider:active {
|
|
1587
|
+
transform: none;
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
@media (forced-colors: active) {
|
|
1591
|
+
:root[data-style='glas'] .nvr-set-card .nvr-set__row::before {
|
|
1592
|
+
forced-color-adjust: none;
|
|
1593
|
+
background: GrayText;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1596
|
+
:root[data-style='glas'] .nvr-switch {
|
|
1597
|
+
forced-color-adjust: none;
|
|
1598
|
+
border: 1px solid ButtonText;
|
|
1599
|
+
background: Canvas;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
:root[data-style='glas'] .nvr-switch__thumb {
|
|
1603
|
+
top: 1px;
|
|
1604
|
+
left: 1px;
|
|
1605
|
+
background: ButtonText;
|
|
1606
|
+
box-shadow: none;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
:root[data-style='glas'] .nvr-switch--on {
|
|
1610
|
+
background: Highlight;
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
:root[data-style='glas'] .nvr-switch--on .nvr-switch__thumb {
|
|
1614
|
+
background: HighlightText;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
:root[data-style='glas'] .nvr-gl-seg__track {
|
|
1618
|
+
border: 1px solid CanvasText;
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
:root[data-style='glas'] .nvr-gl-seg__lens {
|
|
1622
|
+
border: 2px solid Highlight;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
:root[data-style='glas'] .nvr-set-card .nvr-accent__slider {
|
|
1626
|
+
forced-color-adjust: none;
|
|
1627
|
+
border: 1px solid CanvasText;
|
|
1628
|
+
}
|
|
1629
|
+
}
|