]>
Commit | Line | Data |
---|---|---|
63c4db6d C |
1 | @import '_variables'; |
2 | @import '_mixins'; | |
3 | ||
191764f3 C |
4 | .root-row { |
5 | flex-direction: column; | |
6 | } | |
7 | ||
8 | .blacklisted-label { | |
9 | font-weight: $font-semibold; | |
10 | } | |
11 | ||
09edde40 | 12 | #video-element-wrapper { |
be6a4802 C |
13 | background-color: #000; |
14 | display: flex; | |
15 | justify-content: center; | |
b34a444e | 16 | flex-grow: 1; |
6d88de72 C |
17 | |
18 | .remote-server-down { | |
19 | color: #fff; | |
20 | display: flex; | |
21 | flex-direction: column; | |
22 | align-items: center; | |
23 | text-align: center; | |
24 | justify-content: center; | |
25 | background-color: #141313; | |
26 | width: 100%; | |
6d88de72 | 27 | font-size: 24px; |
3b492bff | 28 | height: 500px; |
6d88de72 C |
29 | |
30 | @media screen and (max-width: 1000px) { | |
31 | font-size: 20px; | |
32 | } | |
7b272fd7 | 33 | |
acbffe9c | 34 | @media screen and (max-width: 600px) { |
6d88de72 | 35 | font-size: 16px; |
b9828abe | 36 | } |
6d88de72 C |
37 | } |
38 | ||
39 | /deep/ .video-js { | |
40 | width: 888px; | |
3b492bff C |
41 | height: 500px; |
42 | ||
43 | &.vjs-theater-enabled { | |
44 | height: calc(100vh - #{$header-height} - #{$theater-bottom-space}); | |
45 | width: 100%; | |
46 | } | |
b9828abe | 47 | |
7b272fd7 C |
48 | // VideoJS create an inner video player |
49 | video { | |
50 | outline: 0; | |
b9828abe | 51 | position: relative !important; |
7b272fd7 | 52 | } |
be6a4802 | 53 | } |
054a103b | 54 | |
3b492bff C |
55 | @media screen and (max-width: 600px) { |
56 | .remote-server-down, | |
57 | /deep/ .video-js { | |
58 | width: 100vw; | |
59 | height: calc(100vw / 1.7); // 16/9 | |
60 | } | |
054a103b | 61 | } |
e56b20f5 C |
62 | } |
63 | ||
bbe0f064 | 64 | .alert { |
2186386c C |
65 | text-align: center; |
66 | } | |
67 | ||
9c89a45c C |
68 | #video-not-found { |
69 | height: 300px; | |
70 | line-height: 300px; | |
71 | margin-top: 50px; | |
72 | text-align: center; | |
fb4fd623 C |
73 | font-weight: $font-semibold; |
74 | font-size: 15px; | |
9c89a45c C |
75 | } |
76 | ||
b1fa3eba C |
77 | .video-bottom { |
78 | margin-top: 40px; | |
d1992b93 | 79 | |
b1fa3eba C |
80 | .video-info { |
81 | flex-grow: 1; | |
20acba1c C |
82 | // Set min width for flex item |
83 | min-width: 1px; | |
3eeeb87f | 84 | |
1f788f20 | 85 | .video-info-first-row { |
b1fa3eba | 86 | display: flex; |
1f788f20 | 87 | |
196b7790 | 88 | & > div:first-child { |
1f788f20 C |
89 | flex-grow: 1; |
90 | } | |
d1992b93 | 91 | |
b1fa3eba | 92 | .video-info-name { |
b2731bff | 93 | margin-right: 30px; |
196b7790 | 94 | min-height: 40px; // Align with the action buttons |
b1fa3eba C |
95 | font-size: 27px; |
96 | font-weight: $font-semibold; | |
97 | flex-grow: 1; | |
98 | } | |
09223546 | 99 | |
1f788f20 C |
100 | .video-info-date-views { |
101 | font-size: 16px; | |
102 | margin-bottom: 10px; | |
103 | flex-grow: 1; | |
104 | } | |
105 | ||
106 | .video-info-channel { | |
107 | font-weight: $font-semibold; | |
108 | font-size: 15px; | |
95166f9a C |
109 | |
110 | a { | |
111 | @include disable-default-a-behaviour; | |
112 | ||
113 | color: #000; | |
114 | ||
115 | &:hover { | |
116 | opacity: 0.8; | |
117 | } | |
52d9f792 C |
118 | |
119 | img { | |
120 | @include avatar(18px); | |
121 | ||
122 | margin: -2px 2px 0 5px; | |
123 | } | |
95166f9a | 124 | } |
22a16e36 C |
125 | |
126 | my-subscribe-button { | |
22a16e36 C |
127 | margin-left: 5px; |
128 | } | |
1f788f20 C |
129 | } |
130 | ||
b7f5b524 C |
131 | .video-info-by { |
132 | ||
133 | a { | |
134 | @include disable-default-a-behaviour; | |
03e12d7c | 135 | |
b7f5b524 C |
136 | display: inline; |
137 | align-items: center; | |
138 | font-size: 13px; | |
139 | color: #000; | |
1f788f20 | 140 | |
b7f5b524 C |
141 | span:hover { |
142 | opacity: 0.8; | |
143 | } | |
144 | ||
145 | img { | |
146 | @include avatar(18px); | |
66dc5907 | 147 | |
b7f5b524 C |
148 | margin-top: -2px; |
149 | margin-left: 7px; | |
150 | } | |
151 | } | |
6e33bf28 | 152 | |
b7f5b524 C |
153 | my-help { |
154 | position: relative; | |
155 | top: 1px; | |
156 | margin-left: 2px; | |
6e33bf28 | 157 | } |
1f788f20 | 158 | } |
b2731bff | 159 | |
244e76a5 RK |
160 | my-video-feed { |
161 | margin-left: 5px; | |
162 | margin-top: 1px; | |
163 | } | |
164 | ||
1f788f20 C |
165 | .video-actions-rates { |
166 | display: flex; | |
167 | flex-direction: column; | |
196b7790 | 168 | align-items: flex-end; |
09223546 | 169 | |
1f788f20 C |
170 | .video-actions { |
171 | height: 40px; // Align with the title | |
1f788f20 C |
172 | display: flex; |
173 | align-items: center; | |
09223546 | 174 | |
1f788f20 C |
175 | .action-button:not(:first-child), .action-more { |
176 | margin-left: 10px; | |
177 | } | |
0727cab0 | 178 | |
1f788f20 C |
179 | .action-button { |
180 | @include peertube-button; | |
181 | @include grey-button; | |
7b272fd7 | 182 | |
1f788f20 C |
183 | font-size: 15px; |
184 | font-weight: $font-semibold; | |
185 | display: inline-block; | |
186 | padding: 0 10px 0 10px; | |
07fa4c97 | 187 | white-space: nowrap; |
7b272fd7 | 188 | |
63347a0f C |
189 | &::after { |
190 | display: none; | |
191 | } | |
192 | ||
1f788f20 C |
193 | .icon { |
194 | @include icon(21px); | |
7b272fd7 | 195 | |
1f788f20 C |
196 | position: relative; |
197 | top: -2px; | |
198 | ||
199 | &.icon-like { | |
200 | background-image: url('../../../assets/images/video/like-grey.svg'); | |
201 | } | |
202 | ||
203 | &.icon-dislike { | |
204 | background-image: url('../../../assets/images/video/dislike-grey.svg'); | |
205 | } | |
7b272fd7 | 206 | |
07fa4c97 C |
207 | &.icon-support { |
208 | background-image: url('../../../assets/images/video/heart.svg'); | |
209 | } | |
210 | ||
1f788f20 C |
211 | &.icon-share { |
212 | background-image: url('../../../assets/images/video/share.svg'); | |
213 | } | |
214 | ||
215 | &.icon-more { | |
216 | background-image: url('../../../assets/images/video/more.svg'); | |
217 | top: -1px; | |
218 | } | |
7b272fd7 | 219 | } |
d38b8281 | 220 | |
8c40b7dc C |
221 | .icon-text { |
222 | margin-left: 3px; | |
196b7790 C |
223 | } |
224 | ||
1f788f20 | 225 | &.action-button-like.activated { |
41a676db | 226 | background-color: $green; |
4e1b0973 | 227 | |
1f788f20 C |
228 | .icon-like { |
229 | background-image: url('../../../assets/images/video/like-white.svg'); | |
230 | } | |
7b272fd7 | 231 | } |
6e33bf28 | 232 | |
1f788f20 | 233 | &.action-button-dislike.activated { |
41a676db | 234 | background-color: $red; |
d38b8281 | 235 | |
1f788f20 C |
236 | .icon-dislike { |
237 | background-image: url('../../../assets/images/video/dislike-white.svg'); | |
238 | } | |
7b272fd7 | 239 | } |
b1fa3eba | 240 | } |
d38b8281 | 241 | |
1f788f20 C |
242 | .action-more { |
243 | display: inline-block; | |
4f8c0eb0 | 244 | |
1f788f20 C |
245 | .dropdown-menu .dropdown-item { |
246 | padding: 6px 24px; | |
7b272fd7 | 247 | |
1f788f20 C |
248 | .icon { |
249 | @include icon(24px); | |
7b272fd7 | 250 | |
1f788f20 C |
251 | margin-right: 10px; |
252 | position: relative; | |
253 | top: -1px; | |
5f0805d3 | 254 | |
1f788f20 C |
255 | &.icon-download { |
256 | background-image: url('../../../assets/images/video/download-black.svg'); | |
257 | } | |
5f0805d3 | 258 | |
1f788f20 C |
259 | &.icon-edit { |
260 | background-image: url('../../../assets/images/global/edit-black.svg'); | |
261 | } | |
4635f59d | 262 | |
1f788f20 C |
263 | &.icon-alert { |
264 | background-image: url('../../../assets/images/video/alert.svg'); | |
265 | } | |
7b272fd7 | 266 | |
1f788f20 C |
267 | &.icon-blacklist { |
268 | background-image: url('../../../assets/images/video/blacklist.svg'); | |
269 | } | |
26b7305a | 270 | |
191764f3 C |
271 | &.icon-unblacklist { |
272 | background-image: url('../../../assets/images/global/undo.svg'); | |
273 | } | |
274 | ||
26b7305a C |
275 | &.icon-delete { |
276 | background-image: url('../../../assets/images/global/delete-black.svg'); | |
277 | } | |
5f0805d3 | 278 | } |
7b272fd7 | 279 | } |
b1fa3eba | 280 | } |
4e1b0973 | 281 | } |
6a9e1d42 | 282 | |
1f788f20 | 283 | .video-info-likes-dislikes-bar { |
2d9fea16 RK |
284 | $likes-bar-height: 2px; |
285 | height: $likes-bar-height; | |
286 | margin-top: -$likes-bar-height; | |
1f788f20 C |
287 | width: 186px; |
288 | background-color: #E5E5E5; | |
2d9fea16 RK |
289 | position: relative; |
290 | top: 10px; | |
6a9e1d42 | 291 | |
1f788f20 C |
292 | .likes-bar { |
293 | height: 100%; | |
294 | background-color: #39CC0B; | |
295 | } | |
6a9e1d42 C |
296 | } |
297 | } | |
d1992b93 C |
298 | } |
299 | ||
b1fa3eba C |
300 | .video-info-description { |
301 | margin: 20px 0; | |
302 | font-size: 15px; | |
d1992b93 | 303 | |
54a932e8 | 304 | .video-info-description-html { |
7a14004b | 305 | @include peertube-word-wrap; |
54a932e8 C |
306 | } |
307 | ||
9e9afa45 C |
308 | .glyphicon, .description-loading { |
309 | margin-left: 3px; | |
310 | } | |
311 | ||
80958c78 C |
312 | .description-loading { |
313 | display: inline-block; | |
314 | } | |
315 | ||
b1fa3eba | 316 | .video-info-description-more { |
2de96f4d | 317 | cursor: pointer; |
b1fa3eba C |
318 | font-weight: $font-semibold; |
319 | color: #585858; | |
320 | font-size: 14px; | |
2de96f4d C |
321 | |
322 | .glyphicon { | |
323 | position: relative; | |
324 | top: 2px; | |
325 | } | |
326 | } | |
09223546 C |
327 | } |
328 | ||
1f788f20 C |
329 | .video-attributes .video-attribute { |
330 | font-size: 13px; | |
331 | display: block; | |
332 | margin-bottom: 12px; | |
333 | ||
334 | .video-attribute-label { | |
c6c357ac C |
335 | min-width: 91px; |
336 | padding-right: 5px; | |
1f788f20 C |
337 | display: inline-block; |
338 | color: #585858; | |
339 | font-weight: $font-bold; | |
3eeeb87f | 340 | } |
4278710d C |
341 | |
342 | a.video-attribute-value { | |
343 | @include disable-default-a-behaviour; | |
344 | color: #000; | |
345 | ||
346 | &:hover { | |
347 | opacity: 0.9; | |
348 | } | |
349 | } | |
350 | ||
351 | &.video-attribute-tags { | |
352 | .video-attribute-value:not(:nth-child(2)) { | |
353 | &::before { | |
354 | content: ', ' | |
355 | } | |
356 | } | |
357 | } | |
3eeeb87f | 358 | } |
41c3dfac C |
359 | } |
360 | ||
9a2f7ea7 | 361 | /deep/ .other-videos { |
ea5cd0fa | 362 | padding-left: 1em; |
f7ecffa4 | 363 | |
41c3dfac | 364 | .title-page { |
9a2f7ea7 | 365 | margin-top: 0 !important; |
41c3dfac C |
366 | } |
367 | ||
368 | /deep/ .video-miniature { | |
369 | display: flex; | |
370 | height: 100%; | |
371 | margin-bottom: 20px; | |
9e01e510 | 372 | flex-wrap: wrap; |
a01f107b | 373 | |
41c3dfac | 374 | .video-miniature-information { |
9e01e510 | 375 | flex-grow: 1; |
22a16e36 C |
376 | } |
377 | ||
378 | .video-thumbnail { | |
379 | margin-right: 10px | |
41c3dfac C |
380 | } |
381 | } | |
a01f107b | 382 | } |
d1992b93 | 383 | } |
41c3dfac | 384 | |
2b3b76ab C |
385 | // If the view is not expanded, take into account the menu |
386 | .privacy-concerns { | |
387 | width: calc(100% - #{$menu-width}); | |
388 | } | |
389 | ||
390 | :host-context(.expanded) { | |
391 | .privacy-concerns { | |
392 | width: 100%; | |
393 | } | |
394 | } | |
395 | ||
396 | .privacy-concerns { | |
397 | position: fixed; | |
398 | bottom: 0; | |
399 | ||
400 | padding: 5px 15px; | |
401 | ||
402 | display: flex; | |
403 | align-items: center; | |
404 | justify-content: flex-start; | |
405 | background-color: rgba(0, 0, 0, 0.9); | |
406 | color: #fff; | |
407 | ||
408 | .privacy-concerns-text { | |
409 | margin: 0 5px; | |
410 | } | |
411 | ||
412 | a { | |
413 | @include disable-default-a-behaviour; | |
414 | ||
415 | color: $orange-color; | |
416 | transition: color 0.3s; | |
417 | ||
418 | &:hover { | |
419 | color: #fff; | |
420 | } | |
421 | } | |
422 | ||
423 | .privacy-concerns-okay { | |
424 | background-color: $orange-color; | |
425 | padding: 5px 8px 5px 7px; | |
426 | margin-left: auto; | |
427 | border-radius: 3px; | |
428 | cursor: pointer; | |
429 | transition: background-color 0.3s; | |
430 | font-weight: $font-semibold; | |
431 | ||
432 | &:hover { | |
433 | background-color: #000; | |
434 | } | |
435 | } | |
436 | } | |
437 | ||
b9828abe | 438 | |
07fa4c97 | 439 | @media screen and (max-width: 1600px) { |
b9828abe C |
440 | .video-bottom { |
441 | .video-info { | |
1f788f20 | 442 | .video-info-first-row { |
b9828abe | 443 | flex-direction: column; |
2d9fea16 | 444 | margin-bottom: 20px; |
1f788f20 C |
445 | |
446 | .video-actions-rates { | |
447 | margin-top: 20px; | |
2d9fea16 | 448 | margin-bottom: 10px; |
80109b2d | 449 | align-items: start; |
1f788f20 | 450 | } |
b9828abe C |
451 | } |
452 | ||
1f788f20 | 453 | .video-info-date-views { |
b9828abe C |
454 | flex-direction: column; |
455 | margin-bottom: 30px; | |
456 | ||
457 | .video-info-likes-dislikes-bar { | |
458 | margin-top: 0; | |
459 | } | |
460 | } | |
1f788f20 C |
461 | |
462 | .video-attributes .video-attribute { | |
463 | margin-bottom: 5px; | |
464 | } | |
b9828abe C |
465 | } |
466 | } | |
467 | } | |
b2731bff | 468 | |
23f4c3d4 | 469 | @media screen and (max-width: 1300px) { |
9e01e510 S |
470 | .video-bottom { |
471 | flex-direction: column; | |
472 | } | |
473 | ||
07fa4c97 | 474 | .other-videos { |
a8981e0b | 475 | padding-left: 0 !important; |
07fa4c97 | 476 | } |
2b3b76ab C |
477 | |
478 | .privacy-concerns { | |
479 | font-size: 12px; | |
480 | padding: 2px 5px; | |
481 | ||
482 | .privacy-concerns-text { | |
483 | margin: 0; | |
484 | } | |
485 | } | |
07fa4c97 C |
486 | } |
487 | ||
1f788f20 | 488 | @media screen and (max-width: 600px) { |
b2731bff C |
489 | .video-bottom { |
490 | margin: 20px 0 0 0; | |
1f788f20 C |
491 | |
492 | .video-info { | |
493 | ||
494 | .video-info-first-row { | |
495 | ||
496 | .video-info-name { | |
497 | font-size: 20px; | |
498 | height: auto; | |
499 | } | |
500 | } | |
501 | } | |
b2731bff | 502 | } |
2b3b76ab | 503 | |
a8981e0b C |
504 | .other-videos { |
505 | /deep/ .video-miniature { | |
506 | flex-direction: column; | |
a8981e0b C |
507 | } |
508 | } | |
509 | ||
2b3b76ab C |
510 | .privacy-concerns { |
511 | width: 100%; | |
512 | ||
513 | strong { | |
514 | display: none; | |
515 | } | |
516 | } | |
b2731bff | 517 | } |
07fa4c97 C |
518 | |
519 | @media screen and (max-width: 450px) { | |
520 | .video-bottom .action-button .icon-text { | |
521 | display: none !important; | |
522 | } | |
523 | } |