|
2 | 2 | opacity: 0 !important; |
3 | 3 | } |
4 | 4 |
|
5 | | -.reel-video-in-sequence.style-scope.ytd-shorts > #player-container { |
6 | | - position: relative !important; |
| 5 | +.reel-video-in-sequence.style-scope.ytd-shorts { |
| 6 | + #player-container { |
| 7 | + position: relative !important; |
7 | 8 |
|
8 | | - .mute-button { |
9 | | - width: 36px; |
10 | | - height: 36px; |
11 | | - position: absolute !important; |
12 | | - top: 16px; |
13 | | - right: 16px; |
14 | | - z-index: 11; |
15 | | - cursor: pointer; |
16 | | - |
17 | | - svg { |
| 9 | + .mute-button { |
18 | 10 | width: 36px; |
19 | 11 | height: 36px; |
20 | | - fill: #fff; |
| 12 | + position: absolute !important; |
| 13 | + top: 16px; |
| 14 | + right: 16px; |
| 15 | + z-index: 11; |
| 16 | + cursor: pointer; |
| 17 | + |
| 18 | + svg { |
| 19 | + width: 36px; |
| 20 | + height: 36px; |
| 21 | + fill: #fff; |
| 22 | + } |
21 | 23 | } |
22 | | - } |
23 | 24 |
|
24 | | - .processbar { |
25 | | - position: absolute !important; |
26 | | - top: 0 !important; |
27 | | - left: 0 !important; |
28 | | - width: 477px; |
29 | | - height: 3px; |
| 25 | + .processbar { |
| 26 | + position: absolute !important; |
| 27 | + top: 0 !important; |
| 28 | + left: 0 !important; |
| 29 | + width: var(--ytd-shorts-player-width); |
| 30 | + min-width: var(--ytd-shorts-min-width); |
| 31 | + height: 3px; |
30 | 32 |
|
31 | | - &__container { |
32 | | - position: relative; |
33 | | - width: 100%; |
34 | | - height: 100%; |
35 | | - } |
| 33 | + &__container { |
| 34 | + position: relative; |
| 35 | + width: 100%; |
| 36 | + height: 100%; |
| 37 | + } |
36 | 38 |
|
37 | | - &__thumb { |
38 | | - position: absolute; |
39 | | - height: 100%; |
40 | | - background-color: #c00; |
41 | | - transition: width 0.1s; |
| 39 | + &__thumb { |
| 40 | + position: absolute; |
| 41 | + height: 100%; |
| 42 | + background-color: #c00; |
| 43 | + transition: width 0.1s; |
| 44 | + } |
42 | 45 | } |
43 | | - } |
44 | 46 |
|
45 | | - #shorts-controller-overlay { |
46 | | - position: absolute; |
47 | | - top: 0; |
48 | | - left: 0; |
49 | | - background: rgba(0, 0, 0, 0.5); |
50 | | - z-index: 10; |
51 | | - width: 477px; |
52 | | - height: 848px; |
53 | | - display: flex; |
54 | | - justify-content: center; |
55 | | - align-items: center; |
56 | | - opacity: 0; |
57 | | - transition: opacity 0.3s ease-in-out; |
58 | | - |
59 | | - .shorts-controller { |
60 | | - width: 100%; |
| 47 | + #shorts-controller-overlay { |
| 48 | + position: absolute; |
| 49 | + top: 0; |
| 50 | + left: 0; |
| 51 | + background: rgba(0, 0, 0, 0.5); |
| 52 | + z-index: 10; |
| 53 | + width: var(--ytd-shorts-player-width); |
| 54 | + min-width: var(--ytd-shorts-min-width); |
| 55 | + height: 848px; |
61 | 56 | display: flex; |
62 | 57 | justify-content: center; |
| 58 | + align-items: center; |
| 59 | + opacity: 0; |
| 60 | + transition: opacity 0.3s ease-in-out; |
63 | 61 |
|
64 | | - &__buttons { |
| 62 | + .shorts-controller { |
65 | 63 | width: 100%; |
66 | 64 | display: flex; |
67 | 65 | justify-content: center; |
68 | | - align-items: center; |
69 | | - } |
70 | 66 |
|
71 | | - &__button { |
72 | | - width: 60px; |
73 | | - height: 60px; |
74 | | - margin-left: 10px; |
75 | | - margin-right: 10px; |
| 67 | + &__buttons { |
| 68 | + width: 100%; |
| 69 | + display: flex; |
| 70 | + justify-content: center; |
| 71 | + align-items: center; |
| 72 | + } |
| 73 | + |
| 74 | + &__button { |
| 75 | + width: 60px; |
| 76 | + height: 60px; |
| 77 | + margin-left: 10px; |
| 78 | + margin-right: 10px; |
| 79 | + } |
76 | 80 | } |
77 | 81 | } |
78 | | - } |
79 | 82 |
|
80 | | - &:hover #shorts-controller-overlay { |
81 | | - opacity: 1; |
| 83 | + &:hover #shorts-controller-overlay { |
| 84 | + opacity: 1; |
| 85 | + } |
82 | 86 | } |
83 | 87 | } |
0 commit comments