]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
09edde40 | 4 | #video-element-wrapper { |
be6a4802 C |
5 | background-color: #000; |
6 | display: flex; | |
7 | justify-content: center; | |
8 | ||
b891f9bc | 9 | /deep/ .video-js { |
be6a4802 C |
10 | width: 888px; |
11 | height: 500px; | |
7b272fd7 | 12 | |
acbffe9c | 13 | @media screen and (max-width: 600px) { |
b9828abe | 14 | height: auto; |
acbffe9c | 15 | max-height: calc(100vh - #{$header-height}); |
b9828abe C |
16 | } |
17 | ||
7b272fd7 C |
18 | // VideoJS create an inner video player |
19 | video { | |
20 | outline: 0; | |
b9828abe | 21 | position: relative !important; |
7b272fd7 | 22 | } |
be6a4802 | 23 | } |
e56b20f5 C |
24 | } |
25 | ||
9c89a45c C |
26 | #video-not-found { |
27 | height: 300px; | |
28 | line-height: 300px; | |
29 | margin-top: 50px; | |
30 | text-align: center; | |
fb4fd623 C |
31 | font-weight: $font-semibold; |
32 | font-size: 15px; | |
9c89a45c C |
33 | } |
34 | ||
b1fa3eba C |
35 | .video-bottom { |
36 | margin-top: 40px; | |
37 | display: flex; | |
d1992b93 | 38 | |
b1fa3eba C |
39 | .video-info { |
40 | flex-grow: 1; | |
20acba1c C |
41 | margin-right: 40px; |
42 | // Set min width for flex item | |
43 | min-width: 1px; | |
3eeeb87f | 44 | |
1f788f20 | 45 | .video-info-first-row { |
b1fa3eba | 46 | display: flex; |
1f788f20 | 47 | |
196b7790 | 48 | & > div:first-child { |
1f788f20 C |
49 | flex-grow: 1; |
50 | } | |
d1992b93 | 51 | |
b1fa3eba | 52 | .video-info-name { |
b2731bff | 53 | margin-right: 30px; |
196b7790 | 54 | min-height: 40px; // Align with the action buttons |
b1fa3eba C |
55 | font-size: 27px; |
56 | font-weight: $font-semibold; | |
57 | flex-grow: 1; | |
58 | } | |
09223546 | 59 | |
1f788f20 C |
60 | .video-info-date-views { |
61 | font-size: 16px; | |
62 | margin-bottom: 10px; | |
63 | flex-grow: 1; | |
64 | } | |
65 | ||
66 | .video-info-channel { | |
67 | font-weight: $font-semibold; | |
68 | font-size: 15px; | |
69 | } | |
70 | ||
03e12d7c C |
71 | .video-info-by a { |
72 | @include disable-default-a-behaviour; | |
73 | ||
6e33bf28 | 74 | display: flex; |
1f788f20 C |
75 | align-items: center; |
76 | font-size: 13px; | |
03e12d7c | 77 | color: #000; |
1f788f20 | 78 | |
03e12d7c C |
79 | span:hover { |
80 | opacity: 0.8; | |
66dc5907 C |
81 | } |
82 | ||
1f788f20 C |
83 | img { |
84 | @include avatar(18px); | |
6e33bf28 | 85 | |
1f788f20 | 86 | margin-left: 7px; |
6e33bf28 | 87 | } |
1f788f20 | 88 | } |
b2731bff | 89 | |
244e76a5 RK |
90 | my-video-feed { |
91 | margin-left: 5px; | |
92 | margin-top: 1px; | |
93 | } | |
94 | ||
1f788f20 C |
95 | .video-actions-rates { |
96 | display: flex; | |
97 | flex-direction: column; | |
196b7790 | 98 | align-items: flex-end; |
09223546 | 99 | |
1f788f20 C |
100 | .video-actions { |
101 | height: 40px; // Align with the title | |
1f788f20 C |
102 | display: flex; |
103 | align-items: center; | |
09223546 | 104 | |
1f788f20 C |
105 | .action-button:not(:first-child), .action-more { |
106 | margin-left: 10px; | |
107 | } | |
0727cab0 | 108 | |
1f788f20 C |
109 | .action-button { |
110 | @include peertube-button; | |
111 | @include grey-button; | |
7b272fd7 | 112 | |
1f788f20 C |
113 | font-size: 15px; |
114 | font-weight: $font-semibold; | |
115 | display: inline-block; | |
116 | padding: 0 10px 0 10px; | |
07fa4c97 | 117 | white-space: nowrap; |
7b272fd7 | 118 | |
1f788f20 C |
119 | .icon { |
120 | @include icon(21px); | |
7b272fd7 | 121 | |
1f788f20 C |
122 | position: relative; |
123 | top: -2px; | |
124 | ||
125 | &.icon-like { | |
126 | background-image: url('../../../assets/images/video/like-grey.svg'); | |
127 | } | |
128 | ||
129 | &.icon-dislike { | |
130 | background-image: url('../../../assets/images/video/dislike-grey.svg'); | |
131 | } | |
7b272fd7 | 132 | |
07fa4c97 C |
133 | &.icon-support { |
134 | background-image: url('../../../assets/images/video/heart.svg'); | |
135 | } | |
136 | ||
1f788f20 C |
137 | &.icon-share { |
138 | background-image: url('../../../assets/images/video/share.svg'); | |
139 | } | |
140 | ||
141 | &.icon-more { | |
142 | background-image: url('../../../assets/images/video/more.svg'); | |
143 | top: -1px; | |
144 | } | |
7b272fd7 | 145 | } |
d38b8281 | 146 | |
196b7790 C |
147 | &.action-button-share { |
148 | width: 82px; | |
149 | } | |
150 | ||
1f788f20 C |
151 | &.action-button-like.activated { |
152 | background-color: #39CC0B; | |
4e1b0973 | 153 | |
1f788f20 C |
154 | .icon-like { |
155 | background-image: url('../../../assets/images/video/like-white.svg'); | |
156 | } | |
7b272fd7 | 157 | } |
6e33bf28 | 158 | |
1f788f20 C |
159 | &.action-button-dislike.activated { |
160 | background-color: #FF0000; | |
d38b8281 | 161 | |
1f788f20 C |
162 | .icon-dislike { |
163 | background-image: url('../../../assets/images/video/dislike-white.svg'); | |
164 | } | |
7b272fd7 | 165 | } |
b1fa3eba | 166 | } |
d38b8281 | 167 | |
1f788f20 C |
168 | .action-more { |
169 | display: inline-block; | |
4f8c0eb0 | 170 | |
1f788f20 C |
171 | .dropdown-menu .dropdown-item { |
172 | padding: 6px 24px; | |
7b272fd7 | 173 | |
1f788f20 C |
174 | .icon { |
175 | @include icon(24px); | |
7b272fd7 | 176 | |
1f788f20 C |
177 | margin-right: 10px; |
178 | position: relative; | |
179 | top: -1px; | |
5f0805d3 | 180 | |
1f788f20 C |
181 | &.icon-download { |
182 | background-image: url('../../../assets/images/video/download-black.svg'); | |
183 | } | |
5f0805d3 | 184 | |
1f788f20 C |
185 | &.icon-edit { |
186 | background-image: url('../../../assets/images/global/edit-black.svg'); | |
187 | } | |
4635f59d | 188 | |
1f788f20 C |
189 | &.icon-alert { |
190 | background-image: url('../../../assets/images/video/alert.svg'); | |
191 | } | |
7b272fd7 | 192 | |
1f788f20 C |
193 | &.icon-blacklist { |
194 | background-image: url('../../../assets/images/video/blacklist.svg'); | |
195 | } | |
5f0805d3 | 196 | } |
7b272fd7 | 197 | } |
b1fa3eba | 198 | } |
4e1b0973 | 199 | } |
6a9e1d42 | 200 | |
1f788f20 C |
201 | .video-info-likes-dislikes-bar { |
202 | height: 5px; | |
203 | width: 186px; | |
204 | background-color: #E5E5E5; | |
205 | margin-top: 25px; | |
6a9e1d42 | 206 | |
1f788f20 C |
207 | .likes-bar { |
208 | height: 100%; | |
209 | background-color: #39CC0B; | |
210 | } | |
6a9e1d42 C |
211 | } |
212 | } | |
d1992b93 C |
213 | } |
214 | ||
b1fa3eba C |
215 | .video-info-description { |
216 | margin: 20px 0; | |
217 | font-size: 15px; | |
d1992b93 | 218 | |
54a932e8 | 219 | .video-info-description-html { |
7a14004b | 220 | @include peertube-word-wrap; |
54a932e8 C |
221 | } |
222 | ||
80958c78 C |
223 | .description-loading { |
224 | display: inline-block; | |
225 | } | |
226 | ||
b1fa3eba | 227 | .video-info-description-more { |
2de96f4d | 228 | cursor: pointer; |
b1fa3eba C |
229 | font-weight: $font-semibold; |
230 | color: #585858; | |
231 | font-size: 14px; | |
2de96f4d C |
232 | |
233 | .glyphicon { | |
234 | position: relative; | |
235 | top: 2px; | |
236 | } | |
237 | } | |
09223546 C |
238 | } |
239 | ||
1f788f20 C |
240 | .video-attributes .video-attribute { |
241 | font-size: 13px; | |
242 | display: block; | |
243 | margin-bottom: 12px; | |
244 | ||
245 | .video-attribute-label { | |
246 | width: 86px; | |
247 | display: inline-block; | |
248 | color: #585858; | |
249 | font-weight: $font-bold; | |
3eeeb87f C |
250 | } |
251 | } | |
41c3dfac C |
252 | } |
253 | ||
254 | .other-videos { | |
ea5cd0fa | 255 | padding-left: 1em; |
f7ecffa4 | 256 | |
41c3dfac C |
257 | .title-page { |
258 | margin-top: 0; | |
259 | } | |
260 | ||
261 | /deep/ .video-miniature { | |
262 | display: flex; | |
263 | height: 100%; | |
264 | margin-bottom: 20px; | |
a01f107b | 265 | |
41c3dfac C |
266 | .video-miniature-information { |
267 | margin-left: 10px; | |
268 | } | |
269 | } | |
a01f107b | 270 | } |
d1992b93 | 271 | } |
41c3dfac | 272 | |
2b3b76ab C |
273 | // If the view is not expanded, take into account the menu |
274 | .privacy-concerns { | |
275 | width: calc(100% - #{$menu-width}); | |
276 | } | |
277 | ||
278 | :host-context(.expanded) { | |
279 | .privacy-concerns { | |
280 | width: 100%; | |
281 | } | |
282 | } | |
283 | ||
284 | .privacy-concerns { | |
285 | position: fixed; | |
286 | bottom: 0; | |
287 | ||
288 | padding: 5px 15px; | |
289 | ||
290 | display: flex; | |
291 | align-items: center; | |
292 | justify-content: flex-start; | |
293 | background-color: rgba(0, 0, 0, 0.9); | |
294 | color: #fff; | |
295 | ||
296 | .privacy-concerns-text { | |
297 | margin: 0 5px; | |
298 | } | |
299 | ||
300 | a { | |
301 | @include disable-default-a-behaviour; | |
302 | ||
303 | color: $orange-color; | |
304 | transition: color 0.3s; | |
305 | ||
306 | &:hover { | |
307 | color: #fff; | |
308 | } | |
309 | } | |
310 | ||
311 | .privacy-concerns-okay { | |
312 | background-color: $orange-color; | |
313 | padding: 5px 8px 5px 7px; | |
314 | margin-left: auto; | |
315 | border-radius: 3px; | |
316 | cursor: pointer; | |
317 | transition: background-color 0.3s; | |
318 | font-weight: $font-semibold; | |
319 | ||
320 | &:hover { | |
321 | background-color: #000; | |
322 | } | |
323 | } | |
324 | } | |
325 | ||
b9828abe | 326 | |
07fa4c97 | 327 | @media screen and (max-width: 1600px) { |
b9828abe C |
328 | .video-bottom { |
329 | .video-info { | |
abf1c585 | 330 | margin-right: 20px; |
9b7d1c72 | 331 | |
1f788f20 | 332 | .video-info-first-row { |
b9828abe C |
333 | flex-direction: column; |
334 | margin-bottom: 30px; | |
1f788f20 C |
335 | |
336 | .video-actions-rates { | |
337 | margin-top: 20px; | |
80109b2d | 338 | align-items: start; |
1f788f20 C |
339 | |
340 | .video-info-likes-dislikes-bar { | |
341 | margin-top: 10px; | |
342 | } | |
343 | } | |
b9828abe C |
344 | } |
345 | ||
1f788f20 | 346 | .video-info-date-views { |
b9828abe C |
347 | flex-direction: column; |
348 | margin-bottom: 30px; | |
349 | ||
350 | .video-info-likes-dislikes-bar { | |
351 | margin-top: 0; | |
352 | } | |
353 | } | |
1f788f20 C |
354 | |
355 | .video-attributes .video-attribute { | |
356 | margin-bottom: 5px; | |
357 | } | |
b9828abe C |
358 | } |
359 | } | |
360 | } | |
b2731bff | 361 | |
23f4c3d4 | 362 | @media screen and (max-width: 1300px) { |
07fa4c97 C |
363 | .other-videos { |
364 | display: none; | |
365 | } | |
2b3b76ab C |
366 | |
367 | .privacy-concerns { | |
368 | font-size: 12px; | |
369 | padding: 2px 5px; | |
370 | ||
371 | .privacy-concerns-text { | |
372 | margin: 0; | |
373 | } | |
374 | } | |
07fa4c97 C |
375 | } |
376 | ||
1f788f20 | 377 | @media screen and (max-width: 600px) { |
b2731bff C |
378 | .video-bottom { |
379 | margin: 20px 0 0 0; | |
1f788f20 C |
380 | |
381 | .video-info { | |
382 | ||
383 | .video-info-first-row { | |
384 | ||
385 | .video-info-name { | |
386 | font-size: 20px; | |
387 | height: auto; | |
388 | } | |
389 | } | |
390 | } | |
b2731bff | 391 | } |
2b3b76ab C |
392 | |
393 | .privacy-concerns { | |
394 | width: 100%; | |
395 | ||
396 | strong { | |
397 | display: none; | |
398 | } | |
399 | } | |
b2731bff | 400 | } |
07fa4c97 C |
401 | |
402 | @media screen and (max-width: 450px) { | |
403 | .video-bottom .action-button .icon-text { | |
404 | display: none !important; | |
405 | } | |
406 | } |