@gcorevideo/player 2.25.4 → 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,323 +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
- .gplayer-mc-panel-item {
206
- height: 32px;
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;
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;
218
321
 
219
- .bar-background[data-seekbar] {
220
- width: 100%;
322
+ .bar-background[data-volume] {
221
323
  height: 3px;
324
+ border-radius: 100px;
222
325
  position: relative;
223
- top: 8px;
326
+ top: 7px;
224
327
  background-color: #666;
225
328
 
226
- .bar-fill-1[data-seekbar] {
329
+ .bar-fill-1[data-volume] {
227
330
  position: absolute;
228
331
  top: 0;
229
332
  left: 0;
230
333
  width: 0;
231
334
  height: 100%;
232
- background-color: var(--player-seekbar-buffer-color);
335
+ border-radius: 100px;
336
+ background-color: white;
233
337
  transition: all 0.1s ease-out;
234
338
  }
235
339
 
236
- .bar-fill-2[data-seekbar] {
340
+ .bar-fill-2[data-volume] {
237
341
  position: absolute;
238
342
  top: 0;
239
343
  left: 0;
240
344
  width: 0;
241
345
  height: 100%;
242
- background-color: var(--player-seekbar-current-color);
346
+ background-color: var(--player-vod-color);
243
347
  transition: all 0.1s ease-out;
244
348
  }
245
349
  }
246
350
 
247
- &.seek-disabled {
248
- cursor: default;
249
- display: none;
250
- }
251
- }
252
-
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] {
351
+ .bar-scrubber[data-volume] {
269
352
  position: absolute;
270
- left: 4.5px;
271
- top: 4.5px;
272
- width: 11px;
273
- height: 11px;
274
- border-radius: 50%;
275
- background-color: white;
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;
285
-
286
- .drawer-icon-container[data-volume] {
287
- bottom: 0;
288
-
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;
295
-
296
- svg {
297
- height: 20px;
298
- position: relative;
299
- top: 3px;
300
- margin-top: 7px;
301
-
302
- path {
303
- fill: white;
304
- }
305
- }
306
-
307
- &.muted svg {
308
- margin-left: 2px;
309
- }
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;
310
369
  }
311
370
  }
312
371
 
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;
321
-
322
- .bar-background[data-volume] {
323
- height: 3px;
324
- border-radius: 100px;
325
- position: relative;
326
- top: 7px;
327
- background-color: #666;
328
-
329
- .bar-fill-1[data-volume] {
330
- position: absolute;
331
- top: 0;
332
- left: 0;
333
- width: 0;
334
- height: 100%;
335
- border-radius: 100px;
336
- background-color: white;
337
- transition: all 0.1s ease-out;
338
- }
339
-
340
- .bar-fill-2[data-volume] {
341
- position: absolute;
342
- top: 0;
343
- left: 0;
344
- width: 0;
345
- height: 100%;
346
- background-color: var(--player-vod-color);
347
- transition: all 0.1s ease-out;
348
- }
349
- }
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;
350
380
 
351
- .bar-scrubber[data-volume] {
352
- position: absolute;
353
- transform: translateX(-50%);
354
- top: 3px;
355
- margin-left: 3px;
356
- width: 16px;
357
- height: 16px;
381
+ &.fill {
382
+ box-shadow: inset 2px 0 0 #fff;
358
383
  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;
369
- }
370
384
  }
371
385
 
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;
380
-
381
- &.fill {
382
- box-shadow: inset 2px 0 0 #fff;
383
- opacity: 1;
384
- }
385
-
386
- &:nth-of-type(1) {
387
- padding-left: 0;
388
- }
386
+ &:nth-of-type(1) {
387
+ padding-left: 0;
388
+ }
389
389
 
390
- &:hover {
391
- transform: scaleY(1.5);
392
- }
390
+ &:hover {
391
+ transform: scaleY(1.5);
393
392
  }
394
393
  }
395
394
  }
@@ -397,65 +396,7 @@
397
396
  }
398
397
 
399
398
  /* TODO distribute between plugins' styles */
400
- .media-control-skin-1[data-media-control-skin-1] {
401
- .media-control-cc {
402
- button[data-cc-button] {
403
- display: flex;
404
- justify-content: center;
405
- padding: 0;
406
- align-items: center;
407
-
408
- &:hover {
409
- color: white;
410
- }
411
- }
412
-
413
- ul {
414
- // TODO extract common styles
415
- background-color: rgb(74 74 74 / 60%);
416
- border: none;
417
- width: auto;
418
- border-radius: 4px;
419
- bottom: 52px;
420
- margin-left: -28px;
421
-
422
- li {
423
- font-size: 16px;
424
- text-align: center;
425
- white-space: nowrap;
426
- height: 30px;
427
-
428
- a {
429
- height: 30px;
430
- padding: 5px 10px;
431
- color: #fffffe;
432
-
433
- &:hover {
434
- background-color: rgb(0 0 0 / 40%);
435
- }
436
- }
437
-
438
- &.current a {
439
- background-color: rgb(0 0 0 / 40%);
440
- }
441
-
442
- &:first-child {
443
- a {
444
- border-bottom-left-radius: 4px;
445
- border-bottom-right-radius: 4px;
446
- }
447
- }
448
-
449
- &:last-child {
450
- a {
451
- border-top-left-radius: 4px;
452
- border-top-right-radius: 4px;
453
- }
454
- }
455
- }
456
- }
457
- }
458
-
399
+ .media-control-skin-1 {
459
400
  .seek-time {
460
401
  height: 26px;
461
402
  line-height: 26px;
@@ -474,4 +415,18 @@
474
415
  padding-right: 8px;
475
416
  }
476
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
+ }
477
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
+ }