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