]>
Commit | Line | Data |
---|---|---|
1 | $playlist-menu-width: 350px; | |
2 | ||
3 | .vjs-playlist-menu { | |
4 | position: absolute; | |
5 | right: 0; | |
6 | height: 100%; | |
7 | width: $playlist-menu-width; | |
8 | // !important to prevent none background set on focus | |
9 | background: rgba(0, 0, 0, 0.8) !important; | |
10 | z-index: 101; | |
11 | transition: right 0.2s; | |
12 | overflow-y: scroll; | |
13 | ||
14 | // Hidden | |
15 | right: -$playlist-menu-width; | |
16 | ||
17 | ol { | |
18 | padding: 0; | |
19 | margin: 0; | |
20 | } | |
21 | ||
22 | .header { | |
23 | border-bottom: 1px solid $header-border-color; | |
24 | padding: 20px 10px; | |
25 | display: flex; | |
26 | justify-content: space-between; | |
27 | ||
28 | .title { | |
29 | @include ellipsis; | |
30 | ||
31 | font-size: 14px; | |
32 | margin-bottom: 5px; | |
33 | } | |
34 | ||
35 | .channel { | |
36 | @include ellipsis; | |
37 | ||
38 | font-size: 11px; | |
39 | color: #bfbfbf; | |
40 | } | |
41 | ||
42 | .cross { | |
43 | cursor: pointer; | |
44 | width: 20px; | |
45 | height: 20px; | |
46 | mask-image: url('#{$assets-path}/images/feather/x.svg'); | |
47 | background-color: #fff; | |
48 | mask-size: cover; | |
49 | } | |
50 | } | |
51 | } | |
52 | ||
53 | .playlist-menu-displayed { | |
54 | ||
55 | .vjs-playlist-menu { | |
56 | right: 0; | |
57 | display: block; | |
58 | } | |
59 | ||
60 | .vjs-playlist-button { | |
61 | display: none; | |
62 | } | |
63 | } | |
64 | ||
65 | @media screen and (max-width: $playlist-menu-width) { | |
66 | .vjs-playlist-menu { | |
67 | width: 100%; | |
68 | min-width: unset; | |
69 | display: none; | |
70 | } | |
71 | ||
72 | .playlist-menu-displayed .vjs-playlist-menu { | |
73 | display: block; | |
74 | } | |
75 | } | |
76 | ||
77 | .vjs-playlist-button { | |
78 | font-size: 15px; | |
79 | position: absolute; | |
80 | right: 0; | |
81 | top: 0; | |
82 | z-index: 100; | |
83 | padding: $dock-padding; | |
84 | cursor: pointer; | |
85 | } | |
86 | ||
87 | .vjs-playlist-icon { | |
88 | width: 22px; | |
89 | height: 22px; | |
90 | mask-image: url('#{$assets-path}/images/feather/list.svg'); | |
91 | background-color: #fff; | |
92 | mask-size: cover; | |
93 | margin-bottom: 3px; | |
94 | } | |
95 | ||
96 | .vjs-playing.vjs-user-inactive .vjs-playlist-button { | |
97 | opacity: 0; | |
98 | ||
99 | transition: opacity 1s; | |
100 | } | |
101 | ||
102 | .vjs-playing.vjs-no-flex.vjs-user-inactive .vjs-playlist-button { | |
103 | display: none; | |
104 | } | |
105 | ||
106 | .vjs-playlist-menu-item { | |
107 | display: flex; | |
108 | padding: 10px 0; | |
109 | height: 60px; | |
110 | ||
111 | &:not(.vjs-disabled) { | |
112 | cursor: pointer; | |
113 | } | |
114 | ||
115 | .item-position-block { | |
116 | position: relative; | |
117 | display: flex; | |
118 | align-items: center; | |
119 | justify-content: center; | |
120 | width: 30px; | |
121 | flex-shrink: 0; | |
122 | } | |
123 | ||
124 | .item-unavailable { | |
125 | position: relative; | |
126 | display: flex; | |
127 | align-items: center; | |
128 | justify-content: center; | |
129 | } | |
130 | ||
131 | .item-player { | |
132 | @include play-icon(20px, 16px); | |
133 | ||
134 | display: none; | |
135 | } | |
136 | ||
137 | &.vjs-selected { | |
138 | background-color: rgba(150, 150, 150, 0.3); | |
139 | ||
140 | .item-position { | |
141 | display: none; | |
142 | } | |
143 | ||
144 | .item-player { | |
145 | display: block; | |
146 | } | |
147 | } | |
148 | ||
149 | &:hover:not(.vjs-disabled) { | |
150 | background-color: rgba(150, 150, 150, 0.2); | |
151 | } | |
152 | ||
153 | img { | |
154 | width: 80px; | |
155 | height: 40px; | |
156 | } | |
157 | ||
158 | .info-block { | |
159 | margin: 0 10px; | |
160 | min-width: 1px; | |
161 | ||
162 | .title { | |
163 | @include ellipsis; | |
164 | ||
165 | font-size: 13px; | |
166 | margin-bottom: 3px; | |
167 | } | |
168 | ||
169 | .channel, | |
170 | .timestamps { | |
171 | @include ellipsis; | |
172 | ||
173 | font-size: 11px; | |
174 | color: #bfbfbf; | |
175 | } | |
176 | ||
177 | .timestamps { | |
178 | font-size: 10px; | |
179 | margin-top: 3px; | |
180 | } | |
181 | } | |
182 | } |