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