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