]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/videos/+video-watch/video-watch.component.scss
API: Add ability to update video channel avatar
[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
bbe0f064 31.alert {
2186386c
C
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
77af3a97 97 display: inline;
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
9e9afa45
C
246 .glyphicon, .description-loading {
247 margin-left: 3px;
248 }
249
80958c78
C
250 .description-loading {
251 display: inline-block;
252 }
253
b1fa3eba 254 .video-info-description-more {
2de96f4d 255 cursor: pointer;
b1fa3eba
C
256 font-weight: $font-semibold;
257 color: #585858;
258 font-size: 14px;
2de96f4d
C
259
260 .glyphicon {
261 position: relative;
262 top: 2px;
263 }
264 }
09223546
C
265 }
266
1f788f20
C
267 .video-attributes .video-attribute {
268 font-size: 13px;
269 display: block;
270 margin-bottom: 12px;
271
272 .video-attribute-label {
273 width: 86px;
274 display: inline-block;
275 color: #585858;
276 font-weight: $font-bold;
3eeeb87f
C
277 }
278 }
41c3dfac
C
279 }
280
281 .other-videos {
ea5cd0fa 282 padding-left: 1em;
f7ecffa4 283
41c3dfac
C
284 .title-page {
285 margin-top: 0;
286 }
287
288 /deep/ .video-miniature {
289 display: flex;
290 height: 100%;
291 margin-bottom: 20px;
9e01e510 292 flex-wrap: wrap;
a01f107b 293
41c3dfac
C
294 .video-miniature-information {
295 margin-left: 10px;
9e01e510 296 flex-grow: 1;
41c3dfac
C
297 }
298 }
a01f107b 299 }
d1992b93 300}
41c3dfac 301
2b3b76ab
C
302// If the view is not expanded, take into account the menu
303.privacy-concerns {
304 width: calc(100% - #{$menu-width});
305}
306
307:host-context(.expanded) {
308 .privacy-concerns {
309 width: 100%;
310 }
311}
312
313.privacy-concerns {
314 position: fixed;
315 bottom: 0;
316
317 padding: 5px 15px;
318
319 display: flex;
320 align-items: center;
321 justify-content: flex-start;
322 background-color: rgba(0, 0, 0, 0.9);
323 color: #fff;
324
325 .privacy-concerns-text {
326 margin: 0 5px;
327 }
328
329 a {
330 @include disable-default-a-behaviour;
331
332 color: $orange-color;
333 transition: color 0.3s;
334
335 &:hover {
336 color: #fff;
337 }
338 }
339
340 .privacy-concerns-okay {
341 background-color: $orange-color;
342 padding: 5px 8px 5px 7px;
343 margin-left: auto;
344 border-radius: 3px;
345 cursor: pointer;
346 transition: background-color 0.3s;
347 font-weight: $font-semibold;
348
349 &:hover {
350 background-color: #000;
351 }
352 }
353}
354
b9828abe 355
07fa4c97 356@media screen and (max-width: 1600px) {
b9828abe
C
357 .video-bottom {
358 .video-info {
abf1c585 359 margin-right: 20px;
9b7d1c72 360
1f788f20 361 .video-info-first-row {
b9828abe
C
362 flex-direction: column;
363 margin-bottom: 30px;
1f788f20
C
364
365 .video-actions-rates {
366 margin-top: 20px;
80109b2d 367 align-items: start;
1f788f20
C
368
369 .video-info-likes-dislikes-bar {
370 margin-top: 10px;
371 }
372 }
b9828abe
C
373 }
374
1f788f20 375 .video-info-date-views {
b9828abe
C
376 flex-direction: column;
377 margin-bottom: 30px;
378
379 .video-info-likes-dislikes-bar {
380 margin-top: 0;
381 }
382 }
1f788f20
C
383
384 .video-attributes .video-attribute {
385 margin-bottom: 5px;
386 }
b9828abe
C
387 }
388 }
389}
b2731bff 390
23f4c3d4 391@media screen and (max-width: 1300px) {
9e01e510
S
392 .video-bottom {
393 flex-direction: column;
394 }
395
07fa4c97 396 .other-videos {
9e01e510 397 padding-left: 0;
07fa4c97 398 }
2b3b76ab
C
399
400 .privacy-concerns {
401 font-size: 12px;
402 padding: 2px 5px;
403
404 .privacy-concerns-text {
405 margin: 0;
406 }
407 }
07fa4c97
C
408}
409
1f788f20 410@media screen and (max-width: 600px) {
b2731bff
C
411 .video-bottom {
412 margin: 20px 0 0 0;
1f788f20
C
413
414 .video-info {
415
416 .video-info-first-row {
417
418 .video-info-name {
419 font-size: 20px;
420 height: auto;
421 }
422 }
423 }
b2731bff 424 }
2b3b76ab
C
425
426 .privacy-concerns {
427 width: 100%;
428
429 strong {
430 display: none;
431 }
432 }
b2731bff 433}
07fa4c97
C
434
435@media screen and (max-width: 450px) {
436 .video-bottom .action-button .icon-text {
437 display: none !important;
438 }
439}