]>
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 { | |
432e7ddc C |
40 | width: 888px; |
41 | height: 500px; | |
3b492bff C |
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 | 100 | .video-info-date-views { |
1f788f20 | 101 | flex-grow: 1; |
8ff3f883 C |
102 | margin-bottom: 10px; |
103 | margin-right: 10px; | |
104 | font-size: 16px; | |
1f788f20 C |
105 | } |
106 | ||
107 | .video-info-channel { | |
108 | font-weight: $font-semibold; | |
109 | font-size: 15px; | |
95166f9a C |
110 | |
111 | a { | |
112 | @include disable-default-a-behaviour; | |
113 | ||
9a0fc840 | 114 | color: var(--mainForegroundColor); |
95166f9a C |
115 | |
116 | &:hover { | |
117 | opacity: 0.8; | |
118 | } | |
52d9f792 C |
119 | |
120 | img { | |
121 | @include avatar(18px); | |
122 | ||
123 | margin: -2px 2px 0 5px; | |
124 | } | |
95166f9a | 125 | } |
22a16e36 C |
126 | |
127 | my-subscribe-button { | |
22a16e36 C |
128 | margin-left: 5px; |
129 | } | |
1f788f20 C |
130 | } |
131 | ||
b7f5b524 C |
132 | .video-info-by { |
133 | ||
134 | a { | |
135 | @include disable-default-a-behaviour; | |
03e12d7c | 136 | |
b7f5b524 C |
137 | display: inline; |
138 | align-items: center; | |
139 | font-size: 13px; | |
9a0fc840 | 140 | color: var(--mainForegroundColor); |
1f788f20 | 141 | |
b7f5b524 C |
142 | span:hover { |
143 | opacity: 0.8; | |
144 | } | |
145 | ||
146 | img { | |
147 | @include avatar(18px); | |
66dc5907 | 148 | |
b7f5b524 C |
149 | margin-top: -2px; |
150 | margin-left: 7px; | |
151 | } | |
152 | } | |
6e33bf28 | 153 | |
b7f5b524 C |
154 | my-help { |
155 | position: relative; | |
156 | top: 1px; | |
157 | margin-left: 2px; | |
6e33bf28 | 158 | } |
1f788f20 | 159 | } |
b2731bff | 160 | |
244e76a5 RK |
161 | my-video-feed { |
162 | margin-left: 5px; | |
163 | margin-top: 1px; | |
164 | } | |
165 | ||
1f788f20 | 166 | .video-actions-rates { |
8ff3f883 | 167 | margin: 20px 0 10px 0; |
2303a803 | 168 | align-items: start; |
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 | 287 | width: 186px; |
1d6587aa | 288 | background-color: $red; |
2d9fea16 RK |
289 | position: relative; |
290 | top: 10px; | |
6a9e1d42 | 291 | |
1f788f20 C |
292 | .likes-bar { |
293 | height: 100%; | |
1d6587aa | 294 | background-color: $green; |
1f788f20 | 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; | |
9a0fc840 | 344 | color: var(--mainForegroundColor); |
4278710d C |
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; |
8ff3f883 | 363 | width: 260px; |
f7ecffa4 | 364 | |
41c3dfac | 365 | .title-page { |
9a2f7ea7 | 366 | margin-top: 0 !important; |
41c3dfac C |
367 | } |
368 | ||
8ff3f883 | 369 | .video-miniature { |
41c3dfac C |
370 | display: flex; |
371 | height: 100%; | |
372 | margin-bottom: 20px; | |
9e01e510 | 373 | flex-wrap: wrap; |
a01f107b | 374 | |
41c3dfac | 375 | .video-miniature-information { |
9e01e510 | 376 | flex-grow: 1; |
22a16e36 C |
377 | } |
378 | ||
379 | .video-thumbnail { | |
380 | margin-right: 10px | |
41c3dfac C |
381 | } |
382 | } | |
a01f107b | 383 | } |
d1992b93 | 384 | } |
41c3dfac | 385 | |
1d6587aa C |
386 | my-video-comments { |
387 | display: inline-block; | |
66467298 | 388 | width: 100%; |
1d6587aa C |
389 | margin-bottom: 20px; |
390 | } | |
391 | ||
2b3b76ab C |
392 | // If the view is not expanded, take into account the menu |
393 | .privacy-concerns { | |
394 | width: calc(100% - #{$menu-width}); | |
395 | } | |
396 | ||
8ff3f883 C |
397 | @media screen and (max-width: $small-view) { |
398 | .privacy-concerns { | |
399 | margin-left: $menu-width; | |
400 | } | |
401 | } | |
402 | ||
2b3b76ab C |
403 | :host-context(.expanded) { |
404 | .privacy-concerns { | |
405 | width: 100%; | |
8ff3f883 | 406 | margin-left: 0; |
2b3b76ab C |
407 | } |
408 | } | |
409 | ||
410 | .privacy-concerns { | |
411 | position: fixed; | |
412 | bottom: 0; | |
413 | ||
414 | padding: 5px 15px; | |
415 | ||
416 | display: flex; | |
417 | align-items: center; | |
418 | justify-content: flex-start; | |
419 | background-color: rgba(0, 0, 0, 0.9); | |
420 | color: #fff; | |
421 | ||
422 | .privacy-concerns-text { | |
423 | margin: 0 5px; | |
424 | } | |
425 | ||
426 | a { | |
427 | @include disable-default-a-behaviour; | |
428 | ||
9a0fc840 | 429 | color: var(--mainColor); |
2b3b76ab C |
430 | transition: color 0.3s; |
431 | ||
432 | &:hover { | |
433 | color: #fff; | |
434 | } | |
435 | } | |
436 | ||
437 | .privacy-concerns-okay { | |
9a0fc840 | 438 | background-color: var(--mainColor); |
2b3b76ab C |
439 | padding: 5px 8px 5px 7px; |
440 | margin-left: auto; | |
441 | border-radius: 3px; | |
442 | cursor: pointer; | |
443 | transition: background-color 0.3s; | |
444 | font-weight: $font-semibold; | |
445 | ||
446 | &:hover { | |
447 | background-color: #000; | |
448 | } | |
449 | } | |
450 | } | |
451 | ||
b9828abe | 452 | |
07fa4c97 | 453 | @media screen and (max-width: 1600px) { |
8ff3f883 C |
454 | .video-bottom .video-info .video-attributes .video-attribute { |
455 | margin-bottom: 5px; | |
b9828abe C |
456 | } |
457 | } | |
b2731bff | 458 | |
23f4c3d4 | 459 | @media screen and (max-width: 1300px) { |
2303a803 | 460 | /deep/ .other-videos { |
a8981e0b | 461 | padding-left: 0 !important; |
07fa4c97 | 462 | } |
2b3b76ab C |
463 | |
464 | .privacy-concerns { | |
465 | font-size: 12px; | |
466 | padding: 2px 5px; | |
467 | ||
468 | .privacy-concerns-text { | |
469 | margin: 0; | |
470 | } | |
471 | } | |
07fa4c97 C |
472 | } |
473 | ||
1f788f20 | 474 | @media screen and (max-width: 600px) { |
b2731bff C |
475 | .video-bottom { |
476 | margin: 20px 0 0 0; | |
1f788f20 C |
477 | |
478 | .video-info { | |
479 | ||
480 | .video-info-first-row { | |
481 | ||
482 | .video-info-name { | |
483 | font-size: 20px; | |
484 | height: auto; | |
485 | } | |
486 | } | |
487 | } | |
b2731bff | 488 | } |
2b3b76ab | 489 | |
2303a803 | 490 | /deep/ .other-videos { |
a8981e0b C |
491 | /deep/ .video-miniature { |
492 | flex-direction: column; | |
a8981e0b C |
493 | } |
494 | } | |
495 | ||
2b3b76ab C |
496 | .privacy-concerns { |
497 | width: 100%; | |
498 | ||
499 | strong { | |
500 | display: none; | |
501 | } | |
502 | } | |
b2731bff | 503 | } |
07fa4c97 C |
504 | |
505 | @media screen and (max-width: 450px) { | |
506 | .video-bottom .action-button .icon-text { | |
507 | display: none !important; | |
508 | } | |
509 | } |