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