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