@sentinel-nvr/web 0.17.0 → 0.18.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/dist/ui/ui.css CHANGED
@@ -2046,3 +2046,558 @@
2046
2046
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
2047
2047
  cursor: pointer;
2048
2048
  }
2049
+
2050
+ /* ---- Camera page: badge next to the name (CameraTitle `live` / `at`) ------------------------------------------
2051
+ Only rendered when the host passes them; without, the header row is as before. */
2052
+ .nvr-cam__name {
2053
+ display: flex;
2054
+ align-items: center;
2055
+ gap: 0.5rem;
2056
+ min-width: 0;
2057
+ }
2058
+ .nvr-cam__badge {
2059
+ flex: none;
2060
+ white-space: nowrap;
2061
+ }
2062
+ .nvr-cam__badge--live {
2063
+ height: 20px;
2064
+ padding: 0 7px;
2065
+ border-radius: 10px;
2066
+ background: var(--nvr-live-bg, var(--danger));
2067
+ color: var(--nvr-live-fg, var(--on-accent));
2068
+ box-shadow: var(--nvr-live-shadow, none);
2069
+ font-size: 11px;
2070
+ font-weight: 700;
2071
+ line-height: 20px;
2072
+ letter-spacing: 0.6px;
2073
+ }
2074
+ .nvr-cam__badge--time {
2075
+ font-size: 15px;
2076
+ font-weight: 600;
2077
+ color: var(--text-dim);
2078
+ }
2079
+
2080
+ /* ---- Camera page, immersive appearance (CameraPage `appearance="immersive"`, 0.18.0) ----------------------------
2081
+ Phones: the page owns the screen (the host hides its own bars) — the picture edge to edge with the header over it
2082
+ (back, name + badge, the host's `nvr-iconbtn` actions), gradients over the picture, the controls as floating
2083
+ capsules, the tabs as a segment, the timeline down to the bottom edge (safe area kept). From 900 px: the header row
2084
+ above the columns as before, the picture without card frame (radius 18), the timeline column a surface without
2085
+ border. Every rule is scoped to [data-nvr-appearance='immersive']: the default page is unchanged
2086
+ (test/ui/immersive-css.test.ts). The timeline keeps its geometry (the code places markers and thumbnails with
2087
+ these offsets).
2088
+ Hooks (all optional, fallback = the default look): over the picture --nvr-ctl-bg / -filter / -rim / -shadow / -fg /
2089
+ -text-shadow; floating over the timeline (date chip, zoom) --nvr-float-bg / -filter / -rim / -shadow / -fg /
2090
+ -accent; segment --nvr-seg-track / -lens / -shadow; motion --nvr-ease / --nvr-dur; LIVE --nvr-live-bg / -fg (badge,
2091
+ live jump, the live line's label) and --nvr-live-shadow (badge, live jump); the gradients' dark end --nvr-shade-top
2092
+ (104 px under the header, fading down) and --nvr-shade-bottom (120 px under the controls, full from half way). Meant
2093
+ for dark tokens: the host scopes its theme dark on this page. The header's name and time sit on the top gradient,
2094
+ which is dark in every theme: without --nvr-ctl-fg they are white. */
2095
+ .nvr-cam[data-nvr-appearance='immersive'] {
2096
+ /* the package derives these on :root and a custom property is computed where it is declared: under a host that
2097
+ scopes dark tokens to this page they would keep the root's (light) values — derive them again here (the overlay
2098
+ with the dark formula, so with the host's dark tokens it is dark with light glyphs) */
2099
+ --nvr-c-person: var(--info);
2100
+ --nvr-c-car: color-mix(in srgb, var(--warning) 58%, var(--danger));
2101
+ --nvr-c-bike: color-mix(in srgb, var(--info) 55%, var(--danger));
2102
+ --nvr-c-animal: var(--positive);
2103
+ --nvr-c-package: var(--warning);
2104
+ --nvr-c-motion: var(--text-faint);
2105
+ --nvr-rec: color-mix(in srgb, var(--info) 60%, var(--bg-subtle));
2106
+ --nvr-rec-motion: var(--positive);
2107
+ --nvr-overlay: color-mix(in srgb, var(--bg) 70%, transparent);
2108
+ --nvr-on-overlay: var(--text);
2109
+ position: relative;
2110
+ color: var(--text);
2111
+ }
2112
+ /* the 1-px rim of a floating capsule (a gradient, masked to the edge) */
2113
+ .nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-pill-ctl, .nvr-mute)::before,
2114
+ .nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool)::before {
2115
+ content: '';
2116
+ position: absolute;
2117
+ inset: 0;
2118
+ border-radius: inherit;
2119
+ padding: 1px;
2120
+ pointer-events: none;
2121
+ background: var(--nvr-ctl-rim, transparent);
2122
+ -webkit-mask:
2123
+ linear-gradient(black 0 0) content-box,
2124
+ linear-gradient(black 0 0);
2125
+ -webkit-mask-composite: xor;
2126
+ mask-composite: exclude;
2127
+ }
2128
+ .nvr-cam[data-nvr-appearance='immersive'] :is(.nvr-datechip, .nvr-vtl .tool)::before {
2129
+ background: var(--nvr-float-rim, transparent);
2130
+ }
2131
+
2132
+ /* ---- over the picture: control capsule, sound, gradients ---- */
2133
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage::after {
2134
+ content: '';
2135
+ position: absolute;
2136
+ inset: auto 0 0;
2137
+ height: 120px;
2138
+ z-index: 2;
2139
+ pointer-events: none;
2140
+ background: linear-gradient(transparent, var(--nvr-shade-bottom, color-mix(in srgb, black 35%, transparent)) 50%);
2141
+ opacity: 0;
2142
+ transition: opacity 0.2s;
2143
+ }
2144
+ /* the bottom gradient carries the capsule: shown when the capsule is (the default page shows it on hover or focus,
2145
+ always without a hovering pointer) */
2146
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage:is(:hover, :focus-within)::after {
2147
+ opacity: 1;
2148
+ }
2149
+ @media (hover: none) {
2150
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage::after {
2151
+ opacity: 1;
2152
+ }
2153
+ }
2154
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-pill-ctl {
2155
+ bottom: 16px;
2156
+ gap: 0;
2157
+ height: 52px;
2158
+ padding: 4px;
2159
+ border-radius: 26px;
2160
+ background: var(--nvr-ctl-bg, var(--nvr-overlay));
2161
+ -webkit-backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2162
+ backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2163
+ box-shadow: var(--nvr-ctl-shadow, none);
2164
+ }
2165
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-pb {
2166
+ width: 44px;
2167
+ height: 44px;
2168
+ border-radius: 22px;
2169
+ color: var(--nvr-ctl-fg, var(--nvr-on-overlay));
2170
+ }
2171
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-pb:disabled {
2172
+ opacity: 0.4;
2173
+ }
2174
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-pb--speed {
2175
+ width: auto;
2176
+ min-width: 44px;
2177
+ padding: 0 8px;
2178
+ font-size: 15px;
2179
+ font-weight: 600;
2180
+ }
2181
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-mute {
2182
+ right: 16px;
2183
+ bottom: 20px;
2184
+ width: 44px;
2185
+ height: 44px;
2186
+ border: 0;
2187
+ background: var(--nvr-ctl-bg, var(--nvr-overlay));
2188
+ -webkit-backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2189
+ backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2190
+ box-shadow: var(--nvr-ctl-shadow, none);
2191
+ color: var(--nvr-ctl-fg, var(--nvr-on-overlay));
2192
+ }
2193
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-mute[aria-pressed='true'] {
2194
+ background: var(--accent);
2195
+ color: var(--on-accent);
2196
+ }
2197
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage:fullscreen,
2198
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage:-webkit-full-screen {
2199
+ border-radius: 0;
2200
+ }
2201
+ /* fullscreen is the stage alone: the header and its top gradient stay on the page */
2202
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage:fullscreen::before,
2203
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage:-webkit-full-screen::before {
2204
+ display: none;
2205
+ }
2206
+
2207
+ /* ---- info bar, tabs as a segment, filters ---- */
2208
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-bar {
2209
+ min-height: 48px;
2210
+ gap: 8px;
2211
+ padding: 0 4px 0 12px;
2212
+ }
2213
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-statusdot {
2214
+ width: 8px;
2215
+ height: 8px;
2216
+ }
2217
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-statusdot--live {
2218
+ box-shadow: none;
2219
+ }
2220
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-title small {
2221
+ font-size: 13px;
2222
+ line-height: 18px;
2223
+ }
2224
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-actions {
2225
+ gap: 0;
2226
+ }
2227
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-actions .nvr-iconbtn {
2228
+ width: 44px;
2229
+ height: 44px;
2230
+ min-width: 44px;
2231
+ border-radius: 22px;
2232
+ background: transparent;
2233
+ color: var(--text-dim);
2234
+ }
2235
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-actions .nvr-iconbtn--on {
2236
+ background: var(--accent-soft);
2237
+ color: var(--accent);
2238
+ }
2239
+ @media (hover: hover) {
2240
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-actions .nvr-iconbtn:not(.nvr-iconbtn--on):hover {
2241
+ background: var(--bg-subtle);
2242
+ color: var(--text);
2243
+ }
2244
+ }
2245
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs {
2246
+ position: relative;
2247
+ height: 40px;
2248
+ margin: 8px 12px 4px;
2249
+ padding: 3px;
2250
+ border-radius: 20px;
2251
+ background: var(--nvr-seg-track, var(--bg-subtle));
2252
+ }
2253
+ /* the lens under the chosen tab, sliding (data-active = the chosen tab) */
2254
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs::before {
2255
+ content: '';
2256
+ position: absolute;
2257
+ top: 3px;
2258
+ bottom: 3px;
2259
+ left: 3px;
2260
+ width: calc(50% - 3px);
2261
+ border-radius: 17px;
2262
+ background: var(--nvr-seg-lens, var(--bg-card));
2263
+ box-shadow: var(--nvr-seg-shadow, var(--shadow-card));
2264
+ transition: translate var(--nvr-dur, 250ms) var(--nvr-ease, ease-out);
2265
+ pointer-events: none;
2266
+ }
2267
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs[data-active='ev']::before {
2268
+ translate: 100% 0;
2269
+ }
2270
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button {
2271
+ position: relative;
2272
+ z-index: 1;
2273
+ height: 34px;
2274
+ padding: 0 8px;
2275
+ border: 0;
2276
+ border-radius: 17px;
2277
+ font-size: 13px;
2278
+ font-weight: 600;
2279
+ letter-spacing: normal;
2280
+ text-transform: none;
2281
+ white-space: nowrap;
2282
+ color: var(--text-dim);
2283
+ }
2284
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active {
2285
+ color: var(--text);
2286
+ }
2287
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button:focus-visible {
2288
+ outline: 2px solid var(--accent);
2289
+ outline-offset: -2px;
2290
+ }
2291
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-filters {
2292
+ gap: 6px;
2293
+ min-height: 0;
2294
+ padding: 4px 12px 8px;
2295
+ border-bottom: 0;
2296
+ }
2297
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-filters:empty {
2298
+ padding: 0;
2299
+ }
2300
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-fchip {
2301
+ height: 32px;
2302
+ gap: 6px;
2303
+ padding: 0 12px 0 6px;
2304
+ border-radius: 16px;
2305
+ font-size: 13px;
2306
+ font-weight: 600;
2307
+ color: var(--text);
2308
+ }
2309
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-fchip:focus-visible {
2310
+ outline: 2px solid var(--accent);
2311
+ outline-offset: 2px;
2312
+ }
2313
+
2314
+ /* ---- floating over the timeline: date chip, zoom, live jump ---- */
2315
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip {
2316
+ height: 44px;
2317
+ gap: 0;
2318
+ padding: 0 4px;
2319
+ border: 0;
2320
+ border-radius: 22px;
2321
+ background: var(--nvr-float-bg, var(--bg-card));
2322
+ -webkit-backdrop-filter: var(--nvr-float-filter, none);
2323
+ backdrop-filter: var(--nvr-float-filter, none);
2324
+ box-shadow: var(--nvr-float-shadow, var(--shadow-elevated));
2325
+ font-size: 15px;
2326
+ }
2327
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip > button {
2328
+ width: 36px;
2329
+ height: 36px;
2330
+ color: var(--nvr-float-fg, var(--text-dim));
2331
+ }
2332
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip .nvr-datechip__lbl {
2333
+ width: auto;
2334
+ padding: 0 6px;
2335
+ border-radius: 18px;
2336
+ font-size: 15px;
2337
+ font-weight: 600;
2338
+ color: var(--nvr-float-fg, var(--text));
2339
+ }
2340
+ /* playing a recording: the chip stays a floating surface, its text takes the accent (fallback: the accent chip) */
2341
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip--rec {
2342
+ background: var(--nvr-float-bg, var(--accent));
2343
+ }
2344
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip--rec > button,
2345
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip--rec .nvr-datechip__lbl {
2346
+ color: var(--nvr-float-accent, var(--on-accent));
2347
+ }
2348
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .tool {
2349
+ position: relative;
2350
+ width: 36px;
2351
+ height: 36px;
2352
+ border: 0;
2353
+ border-radius: 18px;
2354
+ background: var(--nvr-float-bg, var(--bg-card));
2355
+ -webkit-backdrop-filter: var(--nvr-float-filter, none);
2356
+ backdrop-filter: var(--nvr-float-filter, none);
2357
+ box-shadow: var(--nvr-float-shadow, var(--shadow-card));
2358
+ color: var(--nvr-float-fg, var(--text-dim));
2359
+ }
2360
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vtl-zoom {
2361
+ gap: 8px;
2362
+ }
2363
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .livejump {
2364
+ bottom: 62px;
2365
+ height: 36px;
2366
+ padding: 0 14px;
2367
+ border: 0;
2368
+ background: var(--nvr-live-bg, var(--danger));
2369
+ color: var(--nvr-live-fg, var(--on-accent));
2370
+ box-shadow: var(--nvr-live-shadow, var(--shadow-elevated));
2371
+ font-size: 15px;
2372
+ letter-spacing: normal;
2373
+ }
2374
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__right--clip .nvr-vtl .livejump {
2375
+ bottom: 10px;
2376
+ }
2377
+ @media (hover: hover) {
2378
+ /* a tint of the glyph colour; the text keeps its colour (recording: the accent text on the chip) */
2379
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip > button:hover:not(:disabled) {
2380
+ background: color-mix(in srgb, currentColor 14%, transparent);
2381
+ }
2382
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .tool:hover {
2383
+ background:
2384
+ linear-gradient(color-mix(in srgb, currentColor 12%, transparent) 0 0), var(--nvr-float-bg, var(--bg-card));
2385
+ color: var(--nvr-float-fg, var(--text));
2386
+ }
2387
+ }
2388
+ /* the live line's label in the LIVE colours */
2389
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vlive-chip {
2390
+ background: var(--nvr-live-bg, var(--danger));
2391
+ color: var(--nvr-live-fg, var(--on-accent));
2392
+ }
2393
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vthumb {
2394
+ border-color: transparent;
2395
+ border-radius: 12px;
2396
+ }
2397
+
2398
+ /* ---- phones: picture edge to edge, header over it, no cards ---- */
2399
+ @media (max-width: 899px) {
2400
+ .nvr-cam[data-nvr-appearance='immersive'] {
2401
+ gap: 0;
2402
+ }
2403
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head {
2404
+ position: absolute;
2405
+ z-index: 5;
2406
+ top: calc(8px + env(safe-area-inset-top, 0px));
2407
+ left: calc(12px + env(safe-area-inset-left, 0px));
2408
+ right: calc(12px + env(safe-area-inset-right, 0px));
2409
+ display: grid;
2410
+ /* the side columns never get narrower than their buttons; the name takes what is left and ends in an ellipsis */
2411
+ grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr);
2412
+ align-items: center;
2413
+ gap: 8px;
2414
+ min-height: 44px;
2415
+ pointer-events: none;
2416
+ }
2417
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__title {
2418
+ display: contents;
2419
+ }
2420
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head :is(button, a, .nvr-cam__actions) {
2421
+ pointer-events: auto;
2422
+ }
2423
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn {
2424
+ position: relative;
2425
+ justify-self: start;
2426
+ width: 44px;
2427
+ height: 44px;
2428
+ min-width: 44px;
2429
+ border-radius: 22px;
2430
+ background: var(--nvr-ctl-bg, var(--nvr-overlay));
2431
+ -webkit-backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2432
+ backdrop-filter: var(--nvr-ctl-filter, blur(8px));
2433
+ box-shadow: var(--nvr-ctl-shadow, none);
2434
+ color: var(--nvr-ctl-fg, var(--nvr-on-overlay));
2435
+ }
2436
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn::before {
2437
+ content: '';
2438
+ position: absolute;
2439
+ inset: 0;
2440
+ border-radius: inherit;
2441
+ padding: 1px;
2442
+ pointer-events: none;
2443
+ background: var(--nvr-ctl-rim, transparent);
2444
+ -webkit-mask:
2445
+ linear-gradient(black 0 0) content-box,
2446
+ linear-gradient(black 0 0);
2447
+ -webkit-mask-composite: xor;
2448
+ mask-composite: exclude;
2449
+ }
2450
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head :is(.nvr-cam__h1, .nvr-cam__name) {
2451
+ grid-column: 2;
2452
+ justify-self: center;
2453
+ min-width: 0;
2454
+ max-width: 100%;
2455
+ }
2456
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__h1 {
2457
+ font-family: inherit;
2458
+ font-size: 17px;
2459
+ font-weight: 600;
2460
+ line-height: 22px;
2461
+ letter-spacing: normal;
2462
+ color: var(--nvr-ctl-fg, white);
2463
+ text-shadow: var(--nvr-ctl-text-shadow, 0 1px 2px color-mix(in srgb, black 45%, transparent));
2464
+ }
2465
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__badge--time {
2466
+ color: var(--nvr-ctl-fg, white);
2467
+ text-shadow: var(--nvr-ctl-text-shadow, 0 1px 2px color-mix(in srgb, black 45%, transparent));
2468
+ }
2469
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-cam__actions {
2470
+ grid-column: 3;
2471
+ justify-self: end;
2472
+ gap: 8px;
2473
+ }
2474
+ /* the top gradient carries the header */
2475
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage::before {
2476
+ content: '';
2477
+ position: absolute;
2478
+ inset: 0 0 auto;
2479
+ height: calc(104px + env(safe-area-inset-top, 0px));
2480
+ z-index: 2;
2481
+ pointer-events: none;
2482
+ background: linear-gradient(var(--nvr-shade-top, color-mix(in srgb, black 70%, transparent)), transparent);
2483
+ }
2484
+ /* the page owns the screen (the host hides its bars): the body is the viewport; on a short screen the picture
2485
+ yields first (down to 12rem), so its bar, the tabs, the filters and the timeline keep ~15rem; clip mode keeps the
2486
+ default's smaller picture */
2487
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body {
2488
+ gap: 0;
2489
+ height: 100dvh;
2490
+ min-height: 27rem;
2491
+ }
2492
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__body:not(.nvr-cam__body--clip) {
2493
+ --stage-maxh: max(12rem, min(46vh, 100dvh - 15rem));
2494
+ }
2495
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-card {
2496
+ border: 0;
2497
+ border-radius: 0;
2498
+ box-shadow: none;
2499
+ background: transparent;
2500
+ }
2501
+ /* the name is in the header over the picture; the bar keeps the state */
2502
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-title b {
2503
+ display: none;
2504
+ }
2505
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__right {
2506
+ border: 0;
2507
+ border-radius: 0;
2508
+ box-shadow: none;
2509
+ background: transparent;
2510
+ }
2511
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-evlist__day {
2512
+ background: var(--bg);
2513
+ }
2514
+ /* the markers' ring is the page ground (the column has no surface here) */
2515
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vev:not(.vev--minor) {
2516
+ box-shadow: 0 0 0 2px var(--bg);
2517
+ }
2518
+ /* the last row ends above the date chip (44 px at 10 px from the bottom) */
2519
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-evlist {
2520
+ padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
2521
+ }
2522
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-clipbar {
2523
+ padding-bottom: calc(0.375rem + env(safe-area-inset-bottom, 0px));
2524
+ }
2525
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-pipnote {
2526
+ margin: 0 12px 8px;
2527
+ }
2528
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-datechip {
2529
+ left: calc(10px + env(safe-area-inset-left, 0px));
2530
+ bottom: calc(10px + env(safe-area-inset-bottom, 0px));
2531
+ }
2532
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .vtl-zoom {
2533
+ right: calc(8px + env(safe-area-inset-right, 0px));
2534
+ bottom: calc(10px + env(safe-area-inset-bottom, 0px));
2535
+ }
2536
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-vtl .livejump {
2537
+ left: calc(10px + env(safe-area-inset-left, 0px));
2538
+ bottom: calc(62px + env(safe-area-inset-bottom, 0px));
2539
+ }
2540
+ /* clip mode: the clip bar under the timeline keeps the bottom inset */
2541
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__right--clip .nvr-vtl .vtl-zoom {
2542
+ bottom: 10px;
2543
+ }
2544
+ }
2545
+
2546
+ /* ---- from 900 px: header row above the columns, picture without card frame ---- */
2547
+ @media (min-width: 900px) {
2548
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage-card {
2549
+ overflow: visible;
2550
+ border: 0;
2551
+ box-shadow: none;
2552
+ background: transparent;
2553
+ }
2554
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-stage {
2555
+ border-radius: 18px;
2556
+ }
2557
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-cam__right {
2558
+ border: 0;
2559
+ border-radius: 18px;
2560
+ box-shadow: none;
2561
+ }
2562
+ }
2563
+
2564
+ /* reduced motion: no sliding lens — the chosen tab's own fill fades over in 200 ms */
2565
+ @media (prefers-reduced-motion: reduce) {
2566
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs::before {
2567
+ display: none;
2568
+ }
2569
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button {
2570
+ transition:
2571
+ background-color 200ms ease,
2572
+ box-shadow 200ms ease,
2573
+ color 200ms ease;
2574
+ }
2575
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active {
2576
+ background-color: var(--nvr-seg-lens, var(--bg-card));
2577
+ box-shadow: var(--nvr-seg-shadow, var(--shadow-card));
2578
+ }
2579
+ }
2580
+ /* forced colours: the floating surfaces and the lens keep an edge (their fills are dropped) */
2581
+ @media (forced-colors: active) {
2582
+ .nvr-cam[data-nvr-appearance='immersive']
2583
+ :is(.nvr-pill-ctl, .nvr-mute, .nvr-datechip, .nvr-vtl .tool, .nvr-vtl .livejump) {
2584
+ border: 1px solid CanvasText;
2585
+ }
2586
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs {
2587
+ border: 1px solid CanvasText;
2588
+ }
2589
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs::before {
2590
+ border: 2px solid Highlight;
2591
+ }
2592
+ }
2593
+ @media (forced-colors: active) and (max-width: 899px) {
2594
+ .nvr-cam[data-nvr-appearance='immersive'] > .nvr-cam__head .nvr-iconbtn {
2595
+ border: 1px solid CanvasText;
2596
+ }
2597
+ }
2598
+ @media (forced-colors: active) and (prefers-reduced-motion: reduce) {
2599
+ .nvr-cam[data-nvr-appearance='immersive'] .nvr-tabs button.nvr-tabs__tab--active {
2600
+ outline: 2px solid Highlight;
2601
+ outline-offset: -2px;
2602
+ }
2603
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentinel-nvr/web",
3
- "version": "0.17.0",
3
+ "version": "0.18.0",
4
4
  "description": "Shared browser code for the Sentinel NVR plugin for Scrypted: API model + client (/api), player (/player) and React UI with i18n + themes (/ui). Consumed by the plugin's own web UI and the HAPulse dashboard.",
5
5
  "license": "MIT",
6
6
  "author": "Muggedadscher",