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