]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Fix deprecated ng-bootstrap methods
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / video-watch.component.scss
CommitLineData
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 }
22a16e36
C
128
129 my-subscribe-button {
22a16e36
C
130 margin-left: 5px;
131 }
1f788f20
C
132 }
133
b7f5b524
C
134 .video-info-by {
135
136 a {
137 @include disable-default-a-behaviour;
03e12d7c 138
b7f5b524
C
139 display: inline;
140 align-items: center;
141 font-size: 13px;
142 color: #000;
1f788f20 143
b7f5b524
C
144 span:hover {
145 opacity: 0.8;
146 }
147
148 img {
149 @include avatar(18px);
66dc5907 150
b7f5b524
C
151 margin-top: -2px;
152 margin-left: 7px;
153 }
154 }
6e33bf28 155
b7f5b524
C
156 my-help {
157 position: relative;
158 top: 1px;
159 margin-left: 2px;
6e33bf28 160 }
1f788f20 161 }
b2731bff 162
244e76a5
RK
163 my-video-feed {
164 margin-left: 5px;
165 margin-top: 1px;
166 }
167
1f788f20
C
168 .video-actions-rates {
169 display: flex;
170 flex-direction: column;
196b7790 171 align-items: flex-end;
09223546 172
1f788f20
C
173 .video-actions {
174 height: 40px; // Align with the title
1f788f20
C
175 display: flex;
176 align-items: center;
09223546 177
1f788f20
C
178 .action-button:not(:first-child), .action-more {
179 margin-left: 10px;
180 }
0727cab0 181
1f788f20
C
182 .action-button {
183 @include peertube-button;
184 @include grey-button;
7b272fd7 185
1f788f20
C
186 font-size: 15px;
187 font-weight: $font-semibold;
188 display: inline-block;
189 padding: 0 10px 0 10px;
07fa4c97 190 white-space: nowrap;
7b272fd7 191
63347a0f
C
192 &::after {
193 display: none;
194 }
195
1f788f20
C
196 .icon {
197 @include icon(21px);
7b272fd7 198
1f788f20
C
199 position: relative;
200 top: -2px;
201
202 &.icon-like {
203 background-image: url('../../../assets/images/video/like-grey.svg');
204 }
205
206 &.icon-dislike {
207 background-image: url('../../../assets/images/video/dislike-grey.svg');
208 }
7b272fd7 209
07fa4c97
C
210 &.icon-support {
211 background-image: url('../../../assets/images/video/heart.svg');
212 }
213
1f788f20
C
214 &.icon-share {
215 background-image: url('../../../assets/images/video/share.svg');
216 }
217
218 &.icon-more {
219 background-image: url('../../../assets/images/video/more.svg');
220 top: -1px;
221 }
7b272fd7 222 }
d38b8281 223
8c40b7dc
C
224 .icon-text {
225 margin-left: 3px;
196b7790
C
226 }
227
1f788f20
C
228 &.action-button-like.activated {
229 background-color: #39CC0B;
4e1b0973 230
1f788f20
C
231 .icon-like {
232 background-image: url('../../../assets/images/video/like-white.svg');
233 }
7b272fd7 234 }
6e33bf28 235
1f788f20
C
236 &.action-button-dislike.activated {
237 background-color: #FF0000;
d38b8281 238
1f788f20
C
239 .icon-dislike {
240 background-image: url('../../../assets/images/video/dislike-white.svg');
241 }
7b272fd7 242 }
b1fa3eba 243 }
d38b8281 244
1f788f20
C
245 .action-more {
246 display: inline-block;
4f8c0eb0 247
1f788f20
C
248 .dropdown-menu .dropdown-item {
249 padding: 6px 24px;
7b272fd7 250
1f788f20
C
251 .icon {
252 @include icon(24px);
7b272fd7 253
1f788f20
C
254 margin-right: 10px;
255 position: relative;
256 top: -1px;
5f0805d3 257
1f788f20
C
258 &.icon-download {
259 background-image: url('../../../assets/images/video/download-black.svg');
260 }
5f0805d3 261
1f788f20
C
262 &.icon-edit {
263 background-image: url('../../../assets/images/global/edit-black.svg');
264 }
4635f59d 265
1f788f20
C
266 &.icon-alert {
267 background-image: url('../../../assets/images/video/alert.svg');
268 }
7b272fd7 269
1f788f20
C
270 &.icon-blacklist {
271 background-image: url('../../../assets/images/video/blacklist.svg');
272 }
26b7305a 273
191764f3
C
274 &.icon-unblacklist {
275 background-image: url('../../../assets/images/global/undo.svg');
276 }
277
26b7305a
C
278 &.icon-delete {
279 background-image: url('../../../assets/images/global/delete-black.svg');
280 }
5f0805d3 281 }
7b272fd7 282 }
b1fa3eba 283 }
4e1b0973 284 }
6a9e1d42 285
1f788f20
C
286 .video-info-likes-dislikes-bar {
287 height: 5px;
288 width: 186px;
289 background-color: #E5E5E5;
290 margin-top: 25px;
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
361 .other-videos {
ea5cd0fa 362 padding-left: 1em;
f7ecffa4 363
41c3dfac
C
364 .title-page {
365 margin-top: 0;
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 {
abf1c585 442 margin-right: 20px;
9b7d1c72 443
1f788f20 444 .video-info-first-row {
b9828abe
C
445 flex-direction: column;
446 margin-bottom: 30px;
1f788f20
C
447
448 .video-actions-rates {
449 margin-top: 20px;
80109b2d 450 align-items: start;
1f788f20
C
451
452 .video-info-likes-dislikes-bar {
453 margin-top: 10px;
454 }
455 }
b9828abe
C
456 }
457
1f788f20 458 .video-info-date-views {
b9828abe
C
459 flex-direction: column;
460 margin-bottom: 30px;
461
462 .video-info-likes-dislikes-bar {
463 margin-top: 0;
464 }
465 }
1f788f20
C
466
467 .video-attributes .video-attribute {
468 margin-bottom: 5px;
469 }
b9828abe
C
470 }
471 }
472}
b2731bff 473
23f4c3d4 474@media screen and (max-width: 1300px) {
9e01e510
S
475 .video-bottom {
476 flex-direction: column;
477 }
478
07fa4c97 479 .other-videos {
a8981e0b 480 padding-left: 0 !important;
07fa4c97 481 }
2b3b76ab
C
482
483 .privacy-concerns {
484 font-size: 12px;
485 padding: 2px 5px;
486
487 .privacy-concerns-text {
488 margin: 0;
489 }
490 }
07fa4c97
C
491}
492
1f788f20 493@media screen and (max-width: 600px) {
b2731bff
C
494 .video-bottom {
495 margin: 20px 0 0 0;
1f788f20
C
496
497 .video-info {
498
499 .video-info-first-row {
500
501 .video-info-name {
502 font-size: 20px;
503 height: auto;
504 }
505 }
506 }
b2731bff 507 }
2b3b76ab 508
a8981e0b
C
509 .other-videos {
510 /deep/ .video-miniature {
511 flex-direction: column;
a8981e0b
C
512 }
513 }
514
2b3b76ab
C
515 .privacy-concerns {
516 width: 100%;
517
518 strong {
519 display: none;
520 }
521 }
b2731bff 522}
07fa4c97
C
523
524@media screen and (max-width: 450px) {
525 .video-bottom .action-button .icon-text {
526 display: none !important;
527 }
528}