]>
Commit | Line | Data |
---|---|---|
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 | 301 | .video-miniature-information { |
9e01e510 | 302 | flex-grow: 1; |
41c3dfac C |
303 | } |
304 | } | |
a01f107b | 305 | } |
d1992b93 | 306 | } |
41c3dfac | 307 | |
2b3b76ab C |
308 | // If the view is not expanded, take into account the menu |
309 | .privacy-concerns { | |
310 | width: calc(100% - #{$menu-width}); | |
311 | } | |
312 | ||
313 | :host-context(.expanded) { | |
314 | .privacy-concerns { | |
315 | width: 100%; | |
316 | } | |
317 | } | |
318 | ||
319 | .privacy-concerns { | |
320 | position: fixed; | |
321 | bottom: 0; | |
322 | ||
323 | padding: 5px 15px; | |
324 | ||
325 | display: flex; | |
326 | align-items: center; | |
327 | justify-content: flex-start; | |
328 | background-color: rgba(0, 0, 0, 0.9); | |
329 | color: #fff; | |
330 | ||
331 | .privacy-concerns-text { | |
332 | margin: 0 5px; | |
333 | } | |
334 | ||
335 | a { | |
336 | @include disable-default-a-behaviour; | |
337 | ||
338 | color: $orange-color; | |
339 | transition: color 0.3s; | |
340 | ||
341 | &:hover { | |
342 | color: #fff; | |
343 | } | |
344 | } | |
345 | ||
346 | .privacy-concerns-okay { | |
347 | background-color: $orange-color; | |
348 | padding: 5px 8px 5px 7px; | |
349 | margin-left: auto; | |
350 | border-radius: 3px; | |
351 | cursor: pointer; | |
352 | transition: background-color 0.3s; | |
353 | font-weight: $font-semibold; | |
354 | ||
355 | &:hover { | |
356 | background-color: #000; | |
357 | } | |
358 | } | |
359 | } | |
360 | ||
b9828abe | 361 | |
07fa4c97 | 362 | @media screen and (max-width: 1600px) { |
b9828abe C |
363 | .video-bottom { |
364 | .video-info { | |
abf1c585 | 365 | margin-right: 20px; |
9b7d1c72 | 366 | |
1f788f20 | 367 | .video-info-first-row { |
b9828abe C |
368 | flex-direction: column; |
369 | margin-bottom: 30px; | |
1f788f20 C |
370 | |
371 | .video-actions-rates { | |
372 | margin-top: 20px; | |
80109b2d | 373 | align-items: start; |
1f788f20 C |
374 | |
375 | .video-info-likes-dislikes-bar { | |
376 | margin-top: 10px; | |
377 | } | |
378 | } | |
b9828abe C |
379 | } |
380 | ||
1f788f20 | 381 | .video-info-date-views { |
b9828abe C |
382 | flex-direction: column; |
383 | margin-bottom: 30px; | |
384 | ||
385 | .video-info-likes-dislikes-bar { | |
386 | margin-top: 0; | |
387 | } | |
388 | } | |
1f788f20 C |
389 | |
390 | .video-attributes .video-attribute { | |
391 | margin-bottom: 5px; | |
392 | } | |
b9828abe C |
393 | } |
394 | } | |
395 | } | |
b2731bff | 396 | |
23f4c3d4 | 397 | @media screen and (max-width: 1300px) { |
9e01e510 S |
398 | .video-bottom { |
399 | flex-direction: column; | |
400 | } | |
401 | ||
07fa4c97 | 402 | .other-videos { |
9e01e510 | 403 | padding-left: 0; |
ac862a8c C |
404 | |
405 | /deep/ .video-miniature .video-miniature-information { | |
406 | margin-left: 10px; | |
407 | } | |
07fa4c97 | 408 | } |
2b3b76ab C |
409 | |
410 | .privacy-concerns { | |
411 | font-size: 12px; | |
412 | padding: 2px 5px; | |
413 | ||
414 | .privacy-concerns-text { | |
415 | margin: 0; | |
416 | } | |
417 | } | |
07fa4c97 C |
418 | } |
419 | ||
1f788f20 | 420 | @media screen and (max-width: 600px) { |
b2731bff C |
421 | .video-bottom { |
422 | margin: 20px 0 0 0; | |
1f788f20 C |
423 | |
424 | .video-info { | |
425 | ||
426 | .video-info-first-row { | |
427 | ||
428 | .video-info-name { | |
429 | font-size: 20px; | |
430 | height: auto; | |
431 | } | |
432 | } | |
433 | } | |
b2731bff | 434 | } |
2b3b76ab C |
435 | |
436 | .privacy-concerns { | |
437 | width: 100%; | |
438 | ||
439 | strong { | |
440 | display: none; | |
441 | } | |
442 | } | |
b2731bff | 443 | } |
07fa4c97 C |
444 | |
445 | @media screen and (max-width: 450px) { | |
446 | .video-bottom .action-button .icon-text { | |
447 | display: none !important; | |
448 | } | |
449 | } |