@gcorevideo/player 2.25.5 → 2.25.6

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.
@@ -11,9 +11,11 @@
11
11
  --player-live-color: #ff0101;
12
12
  --player-seekbar-current-color: #ff5700;
13
13
  --player-seekbar-buffer-color: #fff;
14
+ --gplayer-mc-text-color: #fff;
15
+ --gplayer-mc-popup-border-color: rgba(255, 255, 255, 0.1);
14
16
  }
15
17
 
16
- .media-control-skin-1[data-media-control-skin-1] {
18
+ .media-control-skin-1 {
17
19
  position: absolute;
18
20
  width: 100%;
19
21
  height: 100%;
@@ -37,7 +39,7 @@
37
39
  line-height: 0;
38
40
  letter-spacing: 0;
39
41
  speak: none;
40
- color: #fff;
42
+ color: var(--gplayer-mc-text-color);
41
43
  vertical-align: middle;
42
44
  text-align: left;
43
45
  transition: all 0.1s ease;
@@ -73,319 +75,320 @@
73
75
  display: flex;
74
76
  justify-content: space-between;
75
77
 
76
- .media-control-left-panel {
77
- display: flex;
78
- align-items: center;
78
+ }
79
+
80
+ .media-control-left-panel {
81
+ display: flex;
82
+ align-items: center;
83
+ gap: 0.5rem;
84
+ justify-content: flex-start;
85
+ }
86
+
87
+ .media-control-button,
88
+ .media-control-indicator,
89
+ .gplayer-mc-panel-item {
90
+ order: 50;
91
+ }
92
+
93
+ [data-playpause],
94
+ [data-playstop] {
95
+ order: 1;
96
+ }
97
+
98
+ [data-volume] {
99
+ order: 2;
100
+ }
101
+
102
+ [data-position] {
103
+ order: 3;
104
+ }
105
+
106
+ [data-duration] {
107
+ order: 3;
108
+ }
109
+
110
+ .media-control-center-panel {
111
+ height: 100%;
112
+ text-align: center;
113
+ line-height: var(--bottom-panel);
114
+ }
115
+
116
+ .media-control-right-panel {
117
+ display: flex;
118
+ align-items: center;
119
+ gap: 1rem;
120
+ justify-content: flex-end;
121
+
122
+ @media (max-width: 420px) {
79
123
  gap: 0.5rem;
80
- justify-content: flex-start;
124
+ overflow: hidden;
81
125
  }
126
+ }
82
127
 
83
- .media-control-button,
84
- .media-control-indicator,
85
- .gplayer-mc-panel-item {
86
- order: 10;
87
- }
128
+ button.media-control-button {
129
+ background-color: transparent;
130
+ border: 0;
131
+ padding: 0;
132
+ cursor: pointer;
133
+ display: inline-block;
134
+ height: 20px;
135
+ width: 24px;
88
136
 
89
- [data-playpause],
90
- [data-playstop] {
91
- order: 1;
92
- }
137
+ svg {
138
+ height: 20px;
93
139
 
94
- [data-volume] {
95
- order: 2;
140
+ path {
141
+ fill: white;
142
+ }
96
143
  }
97
144
 
98
- [data-position] {
99
- order: 3;
145
+ &:focus {
146
+ outline: none;
100
147
  }
101
148
 
102
- [data-duration] {
103
- order: 3;
149
+ &[data-play] {
150
+ float: left;
151
+ height: 100%;
104
152
  }
105
153
 
106
- .media-control-center-panel {
154
+ &[data-pause] {
155
+ float: left;
107
156
  height: 100%;
108
- text-align: center;
109
- line-height: var(--bottom-panel);
110
157
  }
111
158
 
112
- .media-control-right-panel {
113
- display: flex;
114
- align-items: center;
115
- gap: 1rem;
116
- justify-content: flex-end;
159
+ &[data-stop] {
160
+ float: left;
161
+ height: 100%;
162
+ }
117
163
 
118
- @media (max-width: 420px) {
119
- gap: 0.5rem;
120
- overflow: hidden;
121
- }
164
+ &[data-fullscreen] {
165
+ order: 100;
166
+ background-color: transparent;
167
+ border: 0;
168
+ height: 40px;
122
169
  }
123
170
 
124
- button.media-control-button {
171
+ &[data-hd-indicator] {
125
172
  background-color: transparent;
126
173
  border: 0;
127
- padding: 0;
128
- cursor: pointer;
129
- display: inline-block;
130
- height: 20px;
131
- width: 24px;
174
+ cursor: default;
175
+ display: none !important;
176
+ float: right;
177
+ height: 100%;
178
+ }
179
+ }
132
180
 
133
- svg {
134
- height: 20px;
181
+ .media-control-indicator {
135
182
 
136
- path {
137
- fill: white;
138
- }
139
- }
183
+ &[data-position],
184
+ &[data-duration] {
185
+ display: flex;
186
+ color: white;
187
+ cursor: default;
188
+ line-height: var(--bottom-panel);
189
+ position: relative;
190
+ }
140
191
 
141
- &:focus {
142
- outline: none;
143
- }
192
+ &[data-position] {
193
+ margin: 1px 0 0 7px;
194
+ }
144
195
 
145
- &[data-play] {
146
- float: left;
147
- height: 100%;
196
+ &[data-duration] {
197
+ &::before {
198
+ content: "|";
199
+ margin-right: 7px;
148
200
  }
149
201
 
150
- &[data-pause] {
151
- float: left;
202
+ color: rgb(255 255 255);
203
+ opacity: 0.5;
204
+ margin-top: 1px;
205
+ margin-right: 6px;
206
+ }
207
+ }
208
+
209
+ .bar-container[data-seekbar] {
210
+ position: absolute;
211
+ top: -11px;
212
+ left: 0;
213
+ display: inline-block;
214
+ vertical-align: middle;
215
+ width: 100%;
216
+ height: 20px;
217
+ cursor: pointer;
218
+
219
+ .bar-background[data-seekbar] {
220
+ width: 100%;
221
+ height: 3px;
222
+ position: relative;
223
+ top: 8px;
224
+ background-color: #666;
225
+
226
+ .bar-fill-1[data-seekbar] {
227
+ position: absolute;
228
+ top: 0;
229
+ left: 0;
230
+ width: 0;
152
231
  height: 100%;
232
+ background-color: var(--player-seekbar-buffer-color);
233
+ transition: all 0.1s ease-out;
153
234
  }
154
235
 
155
- &[data-stop] {
156
- float: left;
236
+ .bar-fill-2[data-seekbar] {
237
+ position: absolute;
238
+ top: 0;
239
+ left: 0;
240
+ width: 0;
157
241
  height: 100%;
242
+ background-color: var(--player-seekbar-current-color);
243
+ transition: all 0.1s ease-out;
158
244
  }
245
+ }
159
246
 
160
- &[data-fullscreen] {
161
- order: 100;
162
- background-color: transparent;
163
- border: 0;
164
- height: 40px;
165
- }
247
+ &.seek-disabled {
248
+ cursor: default;
249
+ display: none;
250
+ }
251
+ }
166
252
 
167
- &[data-hd-indicator] {
168
- background-color: transparent;
169
- border: 0;
170
- cursor: default;
171
- display: none !important;
172
- float: right;
173
- height: 100%;
174
- }
253
+ .bar-container[data-seekbar].seek-disabled+.bar-scrubber[data-seekbar] {
254
+ cursor: default;
255
+ display: none;
256
+ }
257
+
258
+ .bar-scrubber[data-seekbar] {
259
+ position: absolute;
260
+ transform: translateX(-50%);
261
+ top: -11.5px;
262
+ left: 0;
263
+ width: 20px;
264
+ height: 20px;
265
+ opacity: 1;
266
+ transition: all 0.1s ease-out;
267
+
268
+ .bar-scrubber-icon[data-seekbar] {
269
+ position: absolute;
270
+ left: 4.5px;
271
+ top: 4.5px;
272
+ width: 11px;
273
+ height: 11px;
274
+ border-radius: 50%;
275
+ background-color: white;
175
276
  }
277
+ }
278
+
279
+ .drawer-container[data-volume] {
280
+ display: flex;
281
+ justify-content: flex-start;
282
+ height: var(--bottom-panel);
283
+ cursor: pointer;
284
+ box-sizing: border-box;
176
285
 
177
- .media-control-indicator {
286
+ .drawer-icon-container[data-volume] {
287
+ bottom: 0;
178
288
 
179
- &[data-position],
180
- &[data-duration] {
181
- display: flex;
182
- color: white;
183
- cursor: default;
184
- line-height: var(--bottom-panel);
185
- position: relative;
186
- }
289
+ .drawer-icon[data-volume] {
290
+ background-color: transparent;
291
+ border: 0;
292
+ box-sizing: content-box;
293
+ height: var(--bottom-panel);
294
+ width: 20px;
187
295
 
188
- &[data-position] {
189
- margin: 1px 0 0 7px;
190
- }
296
+ svg {
297
+ height: 20px;
298
+ position: relative;
299
+ top: 3px;
300
+ margin-top: 7px;
191
301
 
192
- &[data-duration] {
193
- &::before {
194
- content: "|";
195
- margin-right: 7px;
302
+ path {
303
+ fill: white;
304
+ }
196
305
  }
197
306
 
198
- color: rgb(255 255 255);
199
- opacity: 0.5;
200
- margin-top: 1px;
201
- margin-right: 6px;
307
+ &.muted svg {
308
+ margin-left: 2px;
309
+ }
202
310
  }
203
311
  }
204
312
 
205
- .bar-container[data-seekbar] {
206
- position: absolute;
207
- top: -11px;
208
- left: 0;
209
- display: inline-block;
210
- vertical-align: middle;
211
- width: 100%;
212
- height: 20px;
213
- cursor: pointer;
313
+ .bar-container[data-volume] {
314
+ position: relative;
315
+ margin-left: 10px;
316
+ top: 8px;
317
+ width: 80px;
318
+ height: 23px;
319
+ padding: 3px 0;
320
+ transition: width 0.2s ease-out;
214
321
 
215
- .bar-background[data-seekbar] {
216
- width: 100%;
322
+ .bar-background[data-volume] {
217
323
  height: 3px;
324
+ border-radius: 100px;
218
325
  position: relative;
219
- top: 8px;
326
+ top: 7px;
220
327
  background-color: #666;
221
328
 
222
- .bar-fill-1[data-seekbar] {
329
+ .bar-fill-1[data-volume] {
223
330
  position: absolute;
224
331
  top: 0;
225
332
  left: 0;
226
333
  width: 0;
227
334
  height: 100%;
228
- background-color: var(--player-seekbar-buffer-color);
335
+ border-radius: 100px;
336
+ background-color: white;
229
337
  transition: all 0.1s ease-out;
230
338
  }
231
339
 
232
- .bar-fill-2[data-seekbar] {
340
+ .bar-fill-2[data-volume] {
233
341
  position: absolute;
234
342
  top: 0;
235
343
  left: 0;
236
344
  width: 0;
237
345
  height: 100%;
238
- background-color: var(--player-seekbar-current-color);
346
+ background-color: var(--player-vod-color);
239
347
  transition: all 0.1s ease-out;
240
348
  }
241
349
  }
242
350
 
243
- &.seek-disabled {
244
- cursor: default;
245
- display: none;
246
- }
247
- }
248
-
249
- .bar-container[data-seekbar].seek-disabled+.bar-scrubber[data-seekbar] {
250
- cursor: default;
251
- display: none;
252
- }
253
-
254
- .bar-scrubber[data-seekbar] {
255
- position: absolute;
256
- transform: translateX(-50%);
257
- top: -11.5px;
258
- left: 0;
259
- width: 20px;
260
- height: 20px;
261
- opacity: 1;
262
- transition: all 0.1s ease-out;
263
-
264
- .bar-scrubber-icon[data-seekbar] {
351
+ .bar-scrubber[data-volume] {
265
352
  position: absolute;
266
- left: 4.5px;
267
- top: 4.5px;
268
- width: 11px;
269
- height: 11px;
270
- border-radius: 50%;
271
- background-color: white;
272
- }
273
- }
274
-
275
- .drawer-container[data-volume] {
276
- display: flex;
277
- justify-content: flex-start;
278
- height: var(--bottom-panel);
279
- cursor: pointer;
280
- box-sizing: border-box;
281
-
282
- .drawer-icon-container[data-volume] {
283
- bottom: 0;
284
-
285
- .drawer-icon[data-volume] {
286
- background-color: transparent;
287
- border: 0;
288
- box-sizing: content-box;
289
- height: var(--bottom-panel);
290
- width: 20px;
291
-
292
- svg {
293
- height: 20px;
294
- position: relative;
295
- top: 3px;
296
- margin-top: 7px;
297
-
298
- path {
299
- fill: white;
300
- }
301
- }
302
-
303
- &.muted svg {
304
- margin-left: 2px;
305
- }
353
+ transform: translateX(-50%);
354
+ top: 3px;
355
+ margin-left: 3px;
356
+ width: 16px;
357
+ height: 16px;
358
+ opacity: 1;
359
+ transition: all 0.1s ease-out;
360
+
361
+ .bar-scrubber-icon[data-volume] {
362
+ position: absolute;
363
+ left: 3px;
364
+ top: 5px;
365
+ width: 7px;
366
+ height: 7px;
367
+ border-radius: 50%;
368
+ background-color: white;
306
369
  }
307
370
  }
308
371
 
309
- .bar-container[data-volume] {
310
- position: relative;
311
- margin-left: 10px;
312
- top: 8px;
313
- width: 80px;
314
- height: 23px;
315
- padding: 3px 0;
316
- transition: width 0.2s ease-out;
317
-
318
- .bar-background[data-volume] {
319
- height: 3px;
320
- border-radius: 100px;
321
- position: relative;
322
- top: 7px;
323
- background-color: #666;
324
-
325
- .bar-fill-1[data-volume] {
326
- position: absolute;
327
- top: 0;
328
- left: 0;
329
- width: 0;
330
- height: 100%;
331
- border-radius: 100px;
332
- background-color: white;
333
- transition: all 0.1s ease-out;
334
- }
335
-
336
- .bar-fill-2[data-volume] {
337
- position: absolute;
338
- top: 0;
339
- left: 0;
340
- width: 0;
341
- height: 100%;
342
- background-color: var(--player-vod-color);
343
- transition: all 0.1s ease-out;
344
- }
345
- }
372
+ .segmented-bar-element[data-volume] {
373
+ float: left;
374
+ width: 4px;
375
+ padding-left: 2px;
376
+ height: 12px;
377
+ opacity: 0.5;
378
+ box-shadow: inset 2px 0 0 white;
379
+ transition: transform 0.2s ease-out;
346
380
 
347
- .bar-scrubber[data-volume] {
348
- position: absolute;
349
- transform: translateX(-50%);
350
- top: 3px;
351
- margin-left: 3px;
352
- width: 16px;
353
- height: 16px;
381
+ &.fill {
382
+ box-shadow: inset 2px 0 0 #fff;
354
383
  opacity: 1;
355
- transition: all 0.1s ease-out;
356
-
357
- .bar-scrubber-icon[data-volume] {
358
- position: absolute;
359
- left: 3px;
360
- top: 5px;
361
- width: 7px;
362
- height: 7px;
363
- border-radius: 50%;
364
- background-color: white;
365
- }
366
384
  }
367
385
 
368
- .segmented-bar-element[data-volume] {
369
- float: left;
370
- width: 4px;
371
- padding-left: 2px;
372
- height: 12px;
373
- opacity: 0.5;
374
- box-shadow: inset 2px 0 0 white;
375
- transition: transform 0.2s ease-out;
376
-
377
- &.fill {
378
- box-shadow: inset 2px 0 0 #fff;
379
- opacity: 1;
380
- }
381
-
382
- &:nth-of-type(1) {
383
- padding-left: 0;
384
- }
386
+ &:nth-of-type(1) {
387
+ padding-left: 0;
388
+ }
385
389
 
386
- &:hover {
387
- transform: scaleY(1.5);
388
- }
390
+ &:hover {
391
+ transform: scaleY(1.5);
389
392
  }
390
393
  }
391
394
  }
@@ -393,65 +396,7 @@
393
396
  }
394
397
 
395
398
  /* TODO distribute between plugins' styles */
396
- .media-control-skin-1[data-media-control-skin-1] {
397
- .media-control-cc {
398
- button[data-cc-button] {
399
- display: flex;
400
- justify-content: center;
401
- padding: 0;
402
- align-items: center;
403
-
404
- &:hover {
405
- color: white;
406
- }
407
- }
408
-
409
- ul {
410
- // TODO extract common styles
411
- background-color: rgb(74 74 74 / 60%);
412
- border: none;
413
- width: auto;
414
- border-radius: 4px;
415
- bottom: 52px;
416
- margin-left: -28px;
417
-
418
- li {
419
- font-size: 16px;
420
- text-align: center;
421
- white-space: nowrap;
422
- height: 30px;
423
-
424
- a {
425
- height: 30px;
426
- padding: 5px 10px;
427
- color: #fffffe;
428
-
429
- &:hover {
430
- background-color: rgb(0 0 0 / 40%);
431
- }
432
- }
433
-
434
- &.current a {
435
- background-color: rgb(0 0 0 / 40%);
436
- }
437
-
438
- &:first-child {
439
- a {
440
- border-bottom-left-radius: 4px;
441
- border-bottom-right-radius: 4px;
442
- }
443
- }
444
-
445
- &:last-child {
446
- a {
447
- border-top-left-radius: 4px;
448
- border-top-right-radius: 4px;
449
- }
450
- }
451
- }
452
- }
453
- }
454
-
399
+ .media-control-skin-1 {
455
400
  .seek-time {
456
401
  height: 26px;
457
402
  line-height: 26px;
@@ -470,4 +415,18 @@
470
415
  padding-right: 8px;
471
416
  }
472
417
  }
418
+ }
419
+
420
+ @keyframes pulse {
421
+ 0% {
422
+ color: #fff;
423
+ }
424
+
425
+ 50% {
426
+ color: #ff0101
427
+ }
428
+
429
+ 100% {
430
+ color: #B80000;
431
+ }
473
432
  }
@@ -1,4 +1,5 @@
1
- .media-control-skin-1[data-media-control-skin-1].w270 {
1
+ .media-control-skin-1.w270 {
2
+
2
3
  .media-control-quality,
3
4
  .media-control-audiotracks {
4
5
  display: none;
@@ -47,4 +48,4 @@
47
48
  }
48
49
  }
49
50
  }
50
- }
51
+ }
@@ -1,4 +1,4 @@
1
- .media-control-skin-1[data-media-control-skin-1].w370 {
1
+ .media-control-skin-1.w370 {
2
2
  .media-control-cc {
3
3
  width: 28px;
4
4