@3deye-toolkit/react-camera 0.0.1-alpha.19 → 0.0.1-alpha.22

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.
@@ -1,99 +1,337 @@
1
- .box-selector {
2
- border: 2px solid deepskyblue;
3
- background-color: rgba(0, 191, 255, 0.5);
1
+ .x-3deye-player * {
2
+ box-sizing: border-box;
4
3
  }
5
4
 
6
- .box-selector-close {
7
- background-color: skyblue;
8
- transition: 0.2s ease-in;
9
- color: #026282;
5
+ .x-3deye-player {
6
+ position: relative;
7
+ background-color: black;
8
+ overflow: hidden;
10
9
  }
11
10
 
12
- .box-selector-close:hover {
11
+ .x-3deye-player__zoomable {
12
+ width: 100%;
13
+ height: 100%;
14
+ }
15
+
16
+ .x-3deye-player video {
17
+ width: 100%;
18
+ height: 100%;
19
+ position: absolute;
20
+ top: 0;
21
+ left: 0;
22
+ bottom: 0;
23
+ right: 0;
24
+ }
25
+
26
+ .x-3deye-button {
27
+ color: inherit;
28
+ background: none;
29
+ border: none;
30
+ position: relative;
31
+ padding: 4px;
32
+ text-transform: uppercase;
33
+ -webkit-user-select: none;
34
+ -moz-user-select: none;
35
+ -ms-user-select: none;
36
+ user-select: none;
37
+ font-family: 'Roboto', sans-serif;
38
+ text-align: center;
39
+ align-items: flex-start;
40
+ }
41
+
42
+ .x-3deye-button.fullwidth {
43
+ width: 100%;
44
+ }
45
+
46
+ .x-3deye-button:focus,
47
+ .x-3deye-button.x-3deye-button:not(:disabled):hover {
48
+ background-color: rgba(var(--surface-highlight-rgb), 0.1);
49
+ }
50
+
51
+ .x-3deye-button--icon {
52
+ border-radius: 16px;
53
+ width: 32px;
54
+ height: 32px;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ justify-content: center;
58
+ }
59
+
60
+ .x-3deye-button:disabled {
61
+ opacity: 0.4;
62
+ }
63
+
64
+ .x-3deye-button.x-3deye-button--ok,
65
+ .x-3deye-button.x-3deye-button--cancel {
13
66
  color: white;
67
+ border-radius: 4px;
68
+ text-transform: none;
69
+ margin: 4px;
70
+ min-width: 80px;
14
71
  }
15
72
 
16
- .box-selector-preview {
17
- width: 40px;
18
- height: 40px;
19
- position: relative;
20
- margin: 20px 20px 0px 10px;
73
+ .x-3deye-button.x-3deye-button--ok.fullwidth,
74
+ .x-3deye-button.x-3deye-button--cancel.fullwidth {
75
+ width: calc(100% - 8px);
21
76
  }
22
77
 
23
- @keyframes expand-box-selector-preview {
24
- from {
25
- width: 20px;
26
- height: 16px;
27
- }
78
+ .x-3deye-button:not(:disabled) {
79
+ cursor: pointer;
80
+ }
28
81
 
29
- to {
30
- width: 50px;
31
- height: 30px;
32
- }
82
+ .x-3deye-button.x-3deye-button--ok {
83
+ background-color: #27b9a1;
33
84
  }
34
85
 
35
- .box-selector-preview .box-selector {
36
- /* width: 20px;
37
- height: 16px; */
38
- width: 50px;
39
- height: 30px;
40
- position: relative;
41
- will-change: width, height;
86
+ .x-3deye-button.x-3deye-button--ok:not(:disabled):hover {
87
+ background-color: #61beaf;
88
+ }
42
89
 
43
- animation-duration: 0.5s;
44
- animation-name: expand-box-selector-preview;
90
+ .x-3deye-button.x-3deye-button--ok:focus {
91
+ transition: box-shadow 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
92
+ box-shadow: 0 0 0 2px rgba(39, 185, 161, 0.33);
45
93
  }
46
94
 
47
- .box-selector-preview .icon {
95
+ .x-3deye-button.x-3deye-button--cancel {
96
+ background-color: rgb(119, 87, 178);
97
+ }
98
+
99
+ .x-3deye-button.x-3deye-button--cancel:not(:disabled):hover {
100
+ background-color: rgb(142, 122, 180);
101
+ }
102
+
103
+ .x-3deye-button.x-3deye-button--cancel:focus {
104
+ transition: box-shadow 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
105
+ box-shadow: 0 0 0 2px rgba(119, 87, 178, 0.33);
106
+ }
107
+
108
+ .x-3deye-button canvas {
109
+ color: rgb(var(--surface-highlight-rgb));
110
+ }
111
+
112
+ :root {
113
+ --reach-tooltip: 1;
114
+ }
115
+
116
+ [data-reach-tooltip] {
117
+ z-index: 1;
118
+ pointer-events: none;
48
119
  position: absolute;
49
- bottom: -7px;
50
- right: -7px;
120
+ padding: 0.25em 0.5em;
121
+ box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.1);
122
+ white-space: nowrap;
123
+ font-size: 85%;
124
+ background: #f0f0f0;
125
+ color: #444;
126
+ border: solid 1px #ccc;
51
127
  }
52
128
 
53
- /* .box-selector-select:hover .box-selector {
54
- width: 50px;
55
- height: 30px;
56
- } */
129
+ .spinner {
130
+ -webkit-animation: spinner-rotation 1.5s linear infinite;
131
+ animation: spinner-rotation 1.5s linear infinite;
132
+ width: 65px;
133
+ height: 65px;
134
+ }
57
135
 
58
- .box-selector-select {
59
- color: rgba(255, 255, 255, 0.8);
60
- background-color: rgba(0, 0, 0, 0.5);
61
- backdrop-filter: blur(2px);
62
- text-transform: uppercase;
63
- font-weight: bold;
64
- text-align: center;
65
- border-radius: 4px;
66
- padding: 8px;
67
- width: content-width;
136
+ .spinner circle {
137
+ stroke-dasharray: 207.34;
138
+ stroke-dashoffset: 0;
139
+ transform-origin: center;
140
+ -webkit-animation: spinner-dash 1.5s ease-in-out infinite;
141
+ animation: spinner-dash 1.5s ease-in-out infinite;
68
142
  }
69
143
 
70
- .box-selector-cancel {
144
+ @-webkit-keyframes spinner-rotation {
145
+ 0% {
146
+ transform: rotate(0deg);
147
+ }
148
+ 100% {
149
+ transform: rotate(270deg);
150
+ }
151
+ }
152
+
153
+ @keyframes spinner-rotation {
154
+ 0% {
155
+ transform: rotate(0deg);
156
+ }
157
+ 100% {
158
+ transform: rotate(270deg);
159
+ }
160
+ }
161
+
162
+ @-webkit-keyframes spinner-dash {
163
+ 0% {
164
+ stroke-dashoffset: 207.34;
165
+ }
166
+ 50% {
167
+ stroke-dashoffset: 51.835; /* offset / 4 */
168
+ transform: rotate(135deg);
169
+ }
170
+ 100% {
171
+ stroke-dashoffset: 207.34;
172
+ transform: rotate(450deg);
173
+ }
174
+ }
175
+
176
+ @keyframes spinner-dash {
177
+ 0% {
178
+ stroke-dashoffset: 207.34;
179
+ }
180
+ 50% {
181
+ stroke-dashoffset: 51.835; /* offset / 4 */
182
+ transform: rotate(135deg);
183
+ }
184
+ 100% {
185
+ stroke-dashoffset: 207.34;
186
+ transform: rotate(450deg);
187
+ }
188
+ }
189
+
190
+ .x-3deye-player__camera-name-popover.x-3deye-popover-body {
191
+ border-radius: 2px;
192
+ background-color: rgba(15, 15, 20, 0.8);
193
+ box-shadow: none;
194
+ color: white;
195
+ white-space: nowrap;
196
+ }
197
+
198
+ .x-3deye-player__camera-name-popover.x-3deye-popover-body svg {
199
+ fill: rgba(15, 15, 20, 0.8);
200
+ }
201
+
202
+ .x-3deye-player__camera-name-popover.x-3deye-popover-body button.x-3deye-button {
71
203
  pointer-events: auto;
204
+ font-size: inherit;
72
205
  }
73
- .x-3deye-player * {
74
- box-sizing: border-box;
206
+
207
+ .x-3deye-player__camera-name-popover.x-3deye-popover-body button.x-3deye-button:hover {
208
+ text-decoration: underline;
75
209
  }
76
210
 
77
- .x-3deye-player {
211
+ .x-3deye-player__camera-name {
212
+ background-color: rgba(0, 0, 0, 0.25);
213
+ text-shadow: 1px 1px 1px black;
214
+ opacity: 0.8;
215
+ padding: 2px 16px;
216
+ border-radius: 16px;
217
+ line-height: 16px;
218
+ cursor: pointer;
219
+ -webkit-backdrop-filter: blur(3px);
220
+ backdrop-filter: blur(3px);
221
+ }
222
+
223
+ .x-3deye-player__camera-name:hover {
224
+ text-decoration: underline;
225
+ }
226
+
227
+ .x-3deye-popover {
78
228
  position: relative;
79
- background-color: black;
80
- overflow: hidden;
81
229
  }
82
230
 
83
- .x-3deye-player__zoomable {
84
- width: 100%;
85
- height: 100%;
231
+ .x-3deye-popover-body {
232
+ background-color: white;
233
+ padding: 8px;
234
+ border-radius: 8px;
235
+ box-shadow: 0 0 8px 0px black;
236
+ }
237
+
238
+ .x-3deye-player__stats > summary:hover {
239
+ text-decoration: underline;
240
+ }
241
+
242
+ .x-3deye-player__stats dl {
243
+ display: table;
244
+ }
245
+
246
+ .x-3deye-player__stats dl > div {
247
+ display: table-row;
248
+ }
249
+
250
+ .x-3deye-player__stats dl > div > dt, .x-3deye-player__stats dl > div > dd {
251
+ display: table-cell;
252
+ }
253
+
254
+ .x-3deye-player__stats dl > div > dd {
255
+ text-align: right;
256
+ }
257
+
258
+ .x-3deye-live-indicator {
259
+ -webkit-user-select: none;
260
+ -moz-user-select: none;
261
+ -ms-user-select: none;
262
+ user-select: none;
263
+ padding: 0 5px;
264
+ color: rgba(0, 0, 0, 0.7);
265
+ background-color: white;
266
+ font-weight: bold;
267
+ text-transform: uppercase;
268
+ opacity: 0.8;
269
+ }
270
+
271
+ .x-3deye-button--live {
272
+ height: 24px;
273
+ padding: 0 12px;
274
+ background-color: rgba(0, 0, 0, 0.25);
275
+ border-radius: 15px;
276
+ margin: 0;
277
+ color: orange;
278
+ text-shadow: 1px 1px 1px black;
279
+ }
280
+
281
+ .x-3deye-player__overlay .x-3deye-button-go-live:focus {
282
+ box-shadow: 0 0 2px orange;
283
+ }
284
+
285
+ .x-3deye-delay-indicator:hover {
286
+ text-decoration: underline;
287
+ }
288
+
289
+ .x-3deye-delay-indicator {
290
+ background-color: rgba(0, 0, 0, 0.25);
291
+ border-radius: 15px;
292
+ padding: 2px 8px;
293
+ }
294
+
295
+ .x-3deye-player__playback-indicator {
296
+ pointer-events: none;
297
+ position: absolute;
298
+ top: 50%;
299
+ left: 50%;
300
+ transform: translate(-50%, -50%);
301
+ -webkit-animation: playback-indicator-fade-out 0.5s linear forwards;
302
+ animation: playback-indicator-fade-out 0.5s linear forwards;
303
+ display: none;
304
+ background-color: rgba(0, 0, 0, 0.5);
305
+ width: 48px;
306
+ height: 48px;
307
+ padding: 8px;
308
+ border-radius: 48px;
309
+ }
310
+
311
+ @-webkit-keyframes playback-indicator-fade-out {
312
+ 0% {
313
+ opacity: 1;
314
+ transform: translate(-50%, -50%) scale(1);
315
+ }
316
+
317
+ 100% {
318
+ opacity: 0;
319
+ transform: translate(-50%, -50%) scale(2);
320
+ }
321
+ }
322
+
323
+ @keyframes playback-indicator-fade-out {
324
+ 0% {
325
+ opacity: 1;
326
+ transform: translate(-50%, -50%) scale(1);
327
+ }
328
+
329
+ 100% {
330
+ opacity: 0;
331
+ transform: translate(-50%, -50%) scale(2);
332
+ }
86
333
  }
87
334
 
88
- .x-3deye-player video {
89
- width: 100%;
90
- height: 100%;
91
- position: absolute;
92
- top: 0;
93
- left: 0;
94
- bottom: 0;
95
- right: 0;
96
- }
97
335
  .x-3deye-player__overlay {
98
336
  position: absolute;
99
337
  top: 0;
@@ -134,6 +372,7 @@
134
372
 
135
373
  .x-3deye-player__overlay .x-3deye-button--live {
136
374
  opacity: 0;
375
+ margin: 3px 5px;
137
376
  }
138
377
 
139
378
  .x-3deye-player__overlay:hover .x-3deye-button--live, .x-3deye-button--live:focus {
@@ -199,7 +438,8 @@
199
438
  padding: 10px 5px;
200
439
  background-color: rgba(0, 0, 0, 0.5);
201
440
  border-radius: 4px;
202
- backdrop-filter: blur(2px);
441
+ -webkit-backdrop-filter: blur(2px);
442
+ backdrop-filter: blur(2px);
203
443
  }
204
444
 
205
445
  .x-3deye-player__zoom-slider .tick {
@@ -237,125 +477,7 @@
237
477
  .x-3deye-player__zoom-preview:focus {
238
478
  display: block;
239
479
  }
240
- .x-3deye-button {
241
- color: inherit;
242
- background: none;
243
- border: none;
244
- position: relative;
245
- padding: 4px;
246
- text-transform: uppercase;
247
- user-select: none;
248
- font-family: 'Roboto', sans-serif;
249
- text-align: center;
250
- align-items: flex-start;
251
- }
252
-
253
- .x-3deye-button.fullwidth {
254
- width: 100%;
255
- }
256
-
257
- .x-3deye-button:focus, .x-3deye-button.x-3deye-button--icon:hover {
258
- background-color: rgba(255, 255, 255, 0.1);
259
- }
260
-
261
- .x-3deye-button--icon {
262
- border-radius: 16px;
263
- width: 32px;
264
- height: 32px;
265
- }
266
-
267
- .x-3deye-button:disabled {
268
- opacity: 0.6;
269
- }
270
-
271
- .x-3deye-button.x-3deye-button--save, .x-3deye-button.x-3deye-button--cancel {
272
- color: white;
273
- border-radius: 4px;
274
- text-transform: none;
275
- margin: 4px;
276
- min-width: 80px;
277
- }
278
-
279
- .x-3deye-button.x-3deye-button--save.fullwidth, .x-3deye-button.x-3deye-button--cancel.fullwidth {
280
- width: calc(100% - 8px);
281
- }
282
-
283
- .x-3deye-button:not(:disabled) {
284
- cursor: pointer;
285
- }
286
-
287
- .x-3deye-button.x-3deye-button--save {
288
- background-color: #27B9A1;
289
- }
290
-
291
- .x-3deye-button.x-3deye-button--cancel {
292
- background-color: #7758B2;
293
- }
294
-
295
- .x-3deye-button canvas {
296
- color: rgb(var(--surface-highlight-rgb));
297
- }
298
- .x-3deye-popover {
299
- position: relative;
300
- }
301
-
302
- .x-3deye-popover-body {
303
- background-color: white;
304
- padding: 8px;
305
- border-radius: 8px;
306
- box-shadow: 0 0 8px 0px black;
307
- }
308
- .spinner {
309
- animation: spinner-rotation 1.5s linear infinite;
310
- width: 65px;
311
- height: 65px;
312
- }
313
-
314
- .spinner circle {
315
- stroke-dasharray: 207.34;
316
- stroke-dashoffset: 0;
317
- transform-origin: center;
318
- animation: spinner-dash 1.5s ease-in-out infinite;
319
- }
320
-
321
- @keyframes spinner-rotation {
322
- 0% {
323
- transform: rotate(0deg);
324
- }
325
- 100% {
326
- transform: rotate(270deg);
327
- }
328
- }
329
-
330
- @keyframes spinner-dash {
331
- 0% {
332
- stroke-dashoffset: 207.34;
333
- }
334
- 50% {
335
- stroke-dashoffset: 51.835; /* offset / 4 */
336
- transform: rotate(135deg);
337
- }
338
- 100% {
339
- stroke-dashoffset: 207.34;
340
- transform: rotate(450deg);
341
- }
342
- }
343
- :root {
344
- --reach-tooltip: 1;
345
- }
346
480
 
347
- [data-reach-tooltip] {
348
- z-index: 1;
349
- pointer-events: none;
350
- position: absolute;
351
- padding: 0.25em 0.5em;
352
- box-shadow: 2px 2px 10px hsla(0, 0%, 0%, 0.1);
353
- white-space: nowrap;
354
- font-size: 85%;
355
- background: #f0f0f0;
356
- color: #444;
357
- border: solid 1px #ccc;
358
- }
359
481
  .x-3deye-player__controls {
360
482
  display: flex;
361
483
  padding: 8px;
@@ -388,12 +510,12 @@
388
510
  border-left: 1px solid rgb(26,30,29);
389
511
  }
390
512
 
391
- .x-3deye-player__control:hover {
513
+ .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control:hover {
392
514
  background-color: #2a2e2d;
393
515
  color: white;
394
516
  }
395
517
 
396
- .x-3deye-player__control:focus {
518
+ .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control:focus {
397
519
  box-shadow: 0 0 0 0.2rem rgba(52,58,64,.5);
398
520
  background-color: rgb(26,30,29, 0.8);
399
521
  z-index: 1;
@@ -423,27 +545,28 @@
423
545
  background-color: rgba(156, 51, 49, 0.8);
424
546
  }
425
547
 
426
- .x-3deye-player__control-close:hover {
548
+ .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-close:hover {
427
549
  background-color: rgba(156, 51, 49);
428
550
  }
429
551
 
430
- .x-3deye-player__control-close:focus {
552
+ .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-close:focus {
431
553
  background-color: rgba(156, 51, 49, 0.8);
432
554
  box-shadow: 0 0 0 0.2rem rgba(101, 20, 46, 0.5);
433
555
  }
434
556
 
435
- .x-3deye-player--paused .x-3deye-player__control-playpause {
557
+ .x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause {
436
558
  background-color: rgba(49, 106, 156, 0.8);
437
559
  }
438
560
 
439
- .x-3deye-player--paused .x-3deye-player__control-playpause:hover {
561
+ .x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause:hover {
440
562
  background-color: rgba(49, 106, 156);
441
563
  }
442
564
 
443
- .x-3deye-player--paused .x-3deye-player__control-playpause:focus {
565
+ .x-3deye-player--paused .x-3deye-button.x-3deye-button:not(:disabled).x-3deye-player__control-playpause:focus {
444
566
  background-color: rgba(49, 106, 156, 0.8);
445
567
  box-shadow: 0 0 0 0.2rem rgba(20, 69, 101, 0.5);
446
568
  }
569
+
447
570
  .volume-control:hover .volume-range, .volume-control:focus .volume-range {
448
571
  visibility: visible;
449
572
  transition: visibility 0s;
@@ -463,115 +586,167 @@
463
586
  transform: rotate(270deg);
464
587
  }
465
588
 
466
- .x-3deye-player__camera-name-popover.x-3deye-popover-body {
467
- border-radius: 2px;
468
- background-color: rgba(15, 15, 20, 0.8);
469
- box-shadow: none;
470
- color: white;
471
- white-space: nowrap;
589
+
590
+ .box-selector {
591
+ border: 2px solid deepskyblue;
592
+ background-color: rgba(0, 191, 255, 0.5);
472
593
  }
473
594
 
474
- .x-3deye-player__camera-name-popover.x-3deye-popover-body svg {
475
- fill: rgba(15, 15, 20, 0.8);
595
+ .box-selector-close {
596
+ background-color: skyblue;
597
+ transition: 0.2s ease-in;
598
+ color: #026282;
476
599
  }
477
600
 
478
- .x-3deye-player__camera-name-popover.x-3deye-popover-body button.x-3deye-button {
479
- pointer-events: auto;
480
- font-size: inherit;
601
+ .box-selector-close:hover {
602
+ color: white;
481
603
  }
482
604
 
483
- .x-3deye-player__camera-name-popover.x-3deye-popover-body button.x-3deye-button:hover {
484
- text-decoration: underline;
605
+ .box-selector-preview {
606
+ width: 40px;
607
+ height: 40px;
608
+ position: relative;
609
+ margin: 20px 20px 0px 10px;
485
610
  }
486
611
 
487
- .x-3deye-player__camera-name {
488
- background-color: rgba(0, 0, 0, 0.25);
489
- text-shadow: 1px 1px 1px black;
490
- opacity: 0.8;
491
- padding: 2px 16px;
492
- border-radius: 16px;
493
- line-height: 16px;
494
- cursor: pointer;
612
+ @-webkit-keyframes expand-box-selector-preview {
613
+ from {
614
+ width: 20px;
615
+ height: 16px;
616
+ }
617
+
618
+ to {
619
+ width: 50px;
620
+ height: 30px;
621
+ }
495
622
  }
496
623
 
497
- .x-3deye-player__camera-name:hover {
498
- text-decoration: underline;
624
+ @keyframes expand-box-selector-preview {
625
+ from {
626
+ width: 20px;
627
+ height: 16px;
628
+ }
629
+
630
+ to {
631
+ width: 50px;
632
+ height: 30px;
633
+ }
499
634
  }
500
- .x-3deye-live-indicator {
501
- user-select: none;
502
- padding: 0 5px;
503
- color: rgba(0, 0, 0, 0.7);
504
- background-color: white;
505
- font-weight: bold;
506
- text-transform: uppercase;
507
- opacity: 0.8;
635
+
636
+ .box-selector-preview .box-selector {
637
+ /* width: 20px;
638
+ height: 16px; */
639
+ width: 50px;
640
+ height: 30px;
641
+ position: relative;
642
+ will-change: width, height;
643
+
644
+ -webkit-animation-duration: 0.5s;
645
+
646
+ animation-duration: 0.5s;
647
+ -webkit-animation-name: expand-box-selector-preview;
648
+ animation-name: expand-box-selector-preview;
508
649
  }
509
650
 
510
- .x-3deye-button--live {
511
- height: 24px;
512
- padding: 0 12px;
513
- background-color: rgba(0, 0, 0, 0.25);
514
- border-radius: 15px;
515
- margin: 0;
516
- color: orange;
517
- text-shadow: 1px 1px 1px black;
651
+ .box-selector-preview .icon {
652
+ position: absolute;
653
+ bottom: -7px;
654
+ right: -7px;
518
655
  }
519
656
 
520
- .x-3deye-player__overlay .x-3deye-button-go-live:focus {
521
- box-shadow: 0 0 2px orange;
657
+ /* .box-selector-select:hover .box-selector {
658
+ width: 50px;
659
+ height: 30px;
660
+ } */
661
+
662
+ .box-selector-select {
663
+ color: rgba(255, 255, 255, 0.8);
664
+ background-color: rgba(0, 0, 0, 0.5);
665
+ -webkit-backdrop-filter: blur(2px);
666
+ backdrop-filter: blur(2px);
667
+ text-transform: uppercase;
668
+ font-weight: bold;
669
+ text-align: center;
670
+ border-radius: 4px;
671
+ padding: 8px;
672
+ width: content-width;
522
673
  }
523
674
 
524
- .x-3deye-delay-indicator:hover {
525
- text-decoration: underline;
675
+ .box-selector-cancel {
676
+ pointer-events: auto;
526
677
  }
527
678
 
528
- .x-3deye-delay-indicator {
529
- background-color: rgba(0, 0, 0, 0.25);
530
- border-radius: 15px;
531
- padding: 2px 8px;
679
+ .ptz-popover.x-3deye-popover-body {
680
+ border-radius: 6px;
681
+ background-color: rgba(15, 15, 20, 0.7);
682
+ box-shadow: none;
683
+ color: rgba(255, 255, 255, 0.8);
684
+ border: 1px solid rgba(255, 255, 255, 0.2);
685
+ -webkit-backdrop-filter: blur(1px);
686
+ backdrop-filter: blur(1px);
532
687
  }
533
- .x-3deye-player__playback-indicator {
534
- pointer-events: none;
535
- position: absolute;
536
- top: 50%;
537
- left: 50%;
538
- transform: translate(-50%, -50%);
539
- animation: playback-indicator-fade-out 0.5s linear forwards;
540
- display: none;
541
- background-color: rgba(0, 0, 0, 0.5);
542
- width: 48px;
543
- height: 48px;
544
- padding: 8px;
545
- border-radius: 48px;
688
+
689
+ .ptz-popover .tip {
690
+ fill: rgba(15, 15, 20, 0.5);
546
691
  }
547
692
 
548
- @keyframes playback-indicator-fade-out {
549
- 0% {
550
- opacity: 1;
551
- transform: translate(-50%, -50%) scale(1);
552
- }
693
+ .segmented-control-wrapper {
694
+ display: inline-grid;
695
+ border-radius: 6px;
696
+ background: rgba(0, 0, 0, 0.065);
697
+ }
553
698
 
554
- 100% {
555
- opacity: 0;
556
- transform: translate(-50%, -50%) scale(2);
557
- }
699
+ .segmented-control {
700
+ display: grid;
701
+ margin: 2px;
702
+ position: relative;
703
+ grid-auto-flow: column;
704
+ grid-auto-columns: 1fr;
705
+ --indicator-offset: 0%;
558
706
  }
559
- .x-3deye-player__stats > summary:hover {
560
- text-decoration: underline;
707
+
708
+ .segmented-control-indicator {
709
+ position: absolute;
710
+ height: 100%;
711
+ pointer-events: none;
712
+ transform: translateX(var(--indicator-offset));
713
+ transition: 0.2s ease-in-out;
561
714
  }
562
715
 
563
- .x-3deye-player__stats dl {
564
- display: table;
716
+ .segmented-control-indicator-inner {
717
+ box-shadow: 0 0 5px rgba(0, 0, 0, 0.16);
718
+ border-radius: 6px;
719
+ background: #fff;
720
+ transition: 0.2s;
721
+ transform: scale(1);
722
+ position: absolute;
723
+ inset: 0;
565
724
  }
566
725
 
567
- .x-3deye-player__stats dl > div {
568
- display: table-row;
726
+ .segmented-control-indicator.active .segmented-control-indicator-inner {
727
+ transform: scale(0.95);
569
728
  }
570
729
 
571
- .x-3deye-player__stats dl > div > dt, .x-3deye-player__stats dl > div > dd {
572
- display: table-cell;
730
+ .segmented-control-button {
731
+ font-family: inherit;
732
+ min-height: 24px;
733
+ margin: 2px;
734
+ background: none;
735
+ border: none;
736
+ color: currentColor;
737
+ -webkit-user-select: none;
738
+ -moz-user-select: none;
739
+ -ms-user-select: none;
740
+ user-select: none;
741
+ text-overflow: ellipsis;
742
+ overflow: hidden;
743
+ z-index: 1;
573
744
  }
574
745
 
575
- .x-3deye-player__stats dl > div > dd {
576
- text-align: right;
746
+ .segmented-control-button:not(.current):hover {
747
+ opacity: 0.6;
748
+ }
749
+
750
+ .segmented-control-button.current {
751
+ color: black;
577
752
  }