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