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