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