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