]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
Fix tests
[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 {
130 /deep/ span[role=button] {
131 font-size: 13px !important;
132 }
133
134 margin-left: 5px;
135 }
1f788f20
C
136 }
137
b7f5b524
C
138 .video-info-by {
139
140 a {
141 @include disable-default-a-behaviour;
03e12d7c 142
b7f5b524
C
143 display: inline;
144 align-items: center;
145 font-size: 13px;
146 color: #000;
1f788f20 147
b7f5b524
C
148 span:hover {
149 opacity: 0.8;
150 }
151
152 img {
153 @include avatar(18px);
66dc5907 154
b7f5b524
C
155 margin-top: -2px;
156 margin-left: 7px;
157 }
158 }
6e33bf28 159
b7f5b524
C
160 my-help {
161 position: relative;
162 top: 1px;
163 margin-left: 2px;
6e33bf28 164 }
1f788f20 165 }
b2731bff 166
244e76a5
RK
167 my-video-feed {
168 margin-left: 5px;
169 margin-top: 1px;
170 }
171
1f788f20
C
172 .video-actions-rates {
173 display: flex;
174 flex-direction: column;
196b7790 175 align-items: flex-end;
09223546 176
1f788f20
C
177 .video-actions {
178 height: 40px; // Align with the title
1f788f20
C
179 display: flex;
180 align-items: center;
09223546 181
1f788f20
C
182 .action-button:not(:first-child), .action-more {
183 margin-left: 10px;
184 }
0727cab0 185
1f788f20
C
186 .action-button {
187 @include peertube-button;
188 @include grey-button;
7b272fd7 189
1f788f20
C
190 font-size: 15px;
191 font-weight: $font-semibold;
192 display: inline-block;
193 padding: 0 10px 0 10px;
07fa4c97 194 white-space: nowrap;
7b272fd7 195
63347a0f
C
196 &::after {
197 display: none;
198 }
199
1f788f20
C
200 .icon {
201 @include icon(21px);
7b272fd7 202
1f788f20
C
203 position: relative;
204 top: -2px;
205
206 &.icon-like {
207 background-image: url('../../../assets/images/video/like-grey.svg');
208 }
209
210 &.icon-dislike {
211 background-image: url('../../../assets/images/video/dislike-grey.svg');
212 }
7b272fd7 213
07fa4c97
C
214 &.icon-support {
215 background-image: url('../../../assets/images/video/heart.svg');
216 }
217
1f788f20
C
218 &.icon-share {
219 background-image: url('../../../assets/images/video/share.svg');
220 }
221
222 &.icon-more {
223 background-image: url('../../../assets/images/video/more.svg');
224 top: -1px;
225 }
7b272fd7 226 }
d38b8281 227
8c40b7dc
C
228 .icon-text {
229 margin-left: 3px;
196b7790
C
230 }
231
1f788f20
C
232 &.action-button-like.activated {
233 background-color: #39CC0B;
4e1b0973 234
1f788f20
C
235 .icon-like {
236 background-image: url('../../../assets/images/video/like-white.svg');
237 }
7b272fd7 238 }
6e33bf28 239
1f788f20
C
240 &.action-button-dislike.activated {
241 background-color: #FF0000;
d38b8281 242
1f788f20
C
243 .icon-dislike {
244 background-image: url('../../../assets/images/video/dislike-white.svg');
245 }
7b272fd7 246 }
b1fa3eba 247 }
d38b8281 248
1f788f20
C
249 .action-more {
250 display: inline-block;
4f8c0eb0 251
1f788f20
C
252 .dropdown-menu .dropdown-item {
253 padding: 6px 24px;
7b272fd7 254
1f788f20
C
255 .icon {
256 @include icon(24px);
7b272fd7 257
1f788f20
C
258 margin-right: 10px;
259 position: relative;
260 top: -1px;
5f0805d3 261
1f788f20
C
262 &.icon-download {
263 background-image: url('../../../assets/images/video/download-black.svg');
264 }
5f0805d3 265
1f788f20
C
266 &.icon-edit {
267 background-image: url('../../../assets/images/global/edit-black.svg');
268 }
4635f59d 269
1f788f20
C
270 &.icon-alert {
271 background-image: url('../../../assets/images/video/alert.svg');
272 }
7b272fd7 273
1f788f20
C
274 &.icon-blacklist {
275 background-image: url('../../../assets/images/video/blacklist.svg');
276 }
26b7305a 277
191764f3
C
278 &.icon-unblacklist {
279 background-image: url('../../../assets/images/global/undo.svg');
280 }
281
26b7305a
C
282 &.icon-delete {
283 background-image: url('../../../assets/images/global/delete-black.svg');
284 }
5f0805d3 285 }
7b272fd7 286 }
b1fa3eba 287 }
4e1b0973 288 }
6a9e1d42 289
1f788f20
C
290 .video-info-likes-dislikes-bar {
291 height: 5px;
292 width: 186px;
293 background-color: #E5E5E5;
294 margin-top: 25px;
6a9e1d42 295
1f788f20
C
296 .likes-bar {
297 height: 100%;
298 background-color: #39CC0B;
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;
348 color: #000;
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
365 .other-videos {
ea5cd0fa 366 padding-left: 1em;
f7ecffa4 367
41c3dfac
C
368 .title-page {
369 margin-top: 0;
370 }
371
372 /deep/ .video-miniature {
373 display: flex;
374 height: 100%;
375 margin-bottom: 20px;
9e01e510 376 flex-wrap: wrap;
a01f107b 377
41c3dfac 378 .video-miniature-information {
9e01e510 379 flex-grow: 1;
22a16e36
C
380 }
381
382 .video-thumbnail {
383 margin-right: 10px
41c3dfac
C
384 }
385 }
a01f107b 386 }
d1992b93 387}
41c3dfac 388
2b3b76ab
C
389// If the view is not expanded, take into account the menu
390.privacy-concerns {
391 width: calc(100% - #{$menu-width});
392}
393
394:host-context(.expanded) {
395 .privacy-concerns {
396 width: 100%;
397 }
398}
399
400.privacy-concerns {
401 position: fixed;
402 bottom: 0;
403
404 padding: 5px 15px;
405
406 display: flex;
407 align-items: center;
408 justify-content: flex-start;
409 background-color: rgba(0, 0, 0, 0.9);
410 color: #fff;
411
412 .privacy-concerns-text {
413 margin: 0 5px;
414 }
415
416 a {
417 @include disable-default-a-behaviour;
418
419 color: $orange-color;
420 transition: color 0.3s;
421
422 &:hover {
423 color: #fff;
424 }
425 }
426
427 .privacy-concerns-okay {
428 background-color: $orange-color;
429 padding: 5px 8px 5px 7px;
430 margin-left: auto;
431 border-radius: 3px;
432 cursor: pointer;
433 transition: background-color 0.3s;
434 font-weight: $font-semibold;
435
436 &:hover {
437 background-color: #000;
438 }
439 }
440}
441
b9828abe 442
07fa4c97 443@media screen and (max-width: 1600px) {
b9828abe
C
444 .video-bottom {
445 .video-info {
abf1c585 446 margin-right: 20px;
9b7d1c72 447
1f788f20 448 .video-info-first-row {
b9828abe
C
449 flex-direction: column;
450 margin-bottom: 30px;
1f788f20
C
451
452 .video-actions-rates {
453 margin-top: 20px;
80109b2d 454 align-items: start;
1f788f20
C
455
456 .video-info-likes-dislikes-bar {
457 margin-top: 10px;
458 }
459 }
b9828abe
C
460 }
461
1f788f20 462 .video-info-date-views {
b9828abe
C
463 flex-direction: column;
464 margin-bottom: 30px;
465
466 .video-info-likes-dislikes-bar {
467 margin-top: 0;
468 }
469 }
1f788f20
C
470
471 .video-attributes .video-attribute {
472 margin-bottom: 5px;
473 }
b9828abe
C
474 }
475 }
476}
b2731bff 477
23f4c3d4 478@media screen and (max-width: 1300px) {
9e01e510
S
479 .video-bottom {
480 flex-direction: column;
481 }
482
07fa4c97 483 .other-videos {
a8981e0b 484 padding-left: 0 !important;
07fa4c97 485 }
2b3b76ab
C
486
487 .privacy-concerns {
488 font-size: 12px;
489 padding: 2px 5px;
490
491 .privacy-concerns-text {
492 margin: 0;
493 }
494 }
07fa4c97
C
495}
496
1f788f20 497@media screen and (max-width: 600px) {
b2731bff
C
498 .video-bottom {
499 margin: 20px 0 0 0;
1f788f20
C
500
501 .video-info {
502
503 .video-info-first-row {
504
505 .video-info-name {
506 font-size: 20px;
507 height: auto;
508 }
509 }
510 }
b2731bff 511 }
2b3b76ab 512
a8981e0b
C
513 .other-videos {
514 /deep/ .video-miniature {
515 flex-direction: column;
a8981e0b
C
516 }
517 }
518
2b3b76ab
C
519 .privacy-concerns {
520 width: 100%;
521
522 strong {
523 display: none;
524 }
525 }
b2731bff 526}
07fa4c97
C
527
528@media screen and (max-width: 450px) {
529 .video-bottom .action-button .icon-text {
530 display: none !important;
531 }
532}