]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use 'sass:math'; |
2 | @use '_variables' as *; | |
3 | @use '_mixins' as *; | |
63c4db6d | 4 | |
17119e4a C |
5 | $menu-link-icon-size: 22px; |
6 | $menu-link-icon-margin-right: 18px; | |
5d43dae3 | 7 | $footer-links-base-opacity: .8; |
17119e4a | 8 | |
f1ac6348 C |
9 | .menu-link { |
10 | @include disable-default-a-behaviour; | |
27bc9586 C |
11 | @include padding-left($menu-lateral-padding); |
12 | @include padding-right(20px); | |
f1ac6348 | 13 | |
17119e4a C |
14 | display: flex; |
15 | align-items: center; | |
27bc9586 | 16 | |
17119e4a C |
17 | color: pvar(--menuForegroundColor); |
18 | cursor: pointer; | |
17119e4a C |
19 | white-space: normal; |
20 | word-break: break-word; | |
17119e4a | 21 | transition: background-color .1s ease-in-out; |
26171379 | 22 | line-height: $line-height-normal; |
17119e4a C |
23 | |
24 | &.active { | |
25 | background-color: rgba(255, 255, 255, 0.15); | |
26 | } | |
27 | ||
931d3430 C |
28 | &:hover, |
29 | &.focus-visible { | |
30 | background-color: rgba(255, 255, 255, 0.1); | |
17119e4a C |
31 | } |
32 | ||
33 | my-global-icon { | |
34 | @include apply-svg-color(#808080); | |
27bc9586 | 35 | @include margin-right($menu-link-icon-margin-right); |
17119e4a C |
36 | |
37 | display: flex; | |
38 | width: $menu-link-icon-size; | |
39 | height: $menu-link-icon-size; | |
17119e4a C |
40 | } |
41 | } | |
42 | ||
8afc19a6 C |
43 | .menu-wrapper { |
44 | position: fixed; | |
45 | height: calc(100vh - #{$header-height}); | |
46 | padding: 0; | |
47 | width: $menu-width; | |
36f2981f | 48 | z-index: z(menu); |
e66883b3 | 49 | scrollbar-color: pvar(--actionButtonColor) pvar(--menuBackgroundColor); |
8afc19a6 C |
50 | } |
51 | ||
b33f657c | 52 | menu { |
ef80c66c C |
53 | @include ellipsis; |
54 | ||
e66883b3 | 55 | background-color: pvar(--menuBackgroundColor); |
e66883b3 | 56 | color: pvar(--menuForegroundColor); |
17119e4a | 57 | |
8afc19a6 C |
58 | display: flex; |
59 | flex-direction: column; | |
17119e4a | 60 | height: 100%; |
46ae6f67 | 61 | width: 100%; |
17119e4a C |
62 | margin: 0; |
63 | padding: 0; | |
8afc19a6 | 64 | |
931d3430 C |
65 | &:focus, |
66 | &:hover { | |
a54991da RK |
67 | overflow-y: auto; |
68 | } | |
69 | ||
ca4b1594 K |
70 | @media not all and (hover: hover) and (pointer: fine) { |
71 | overflow-y: auto; | |
72 | } | |
73 | ||
17119e4a | 74 | &.is-logged-in { |
a55052c9 | 75 | .panel-block { |
d3217560 | 76 | margin-bottom: 20px; |
a55052c9 C |
77 | } |
78 | ||
79 | .block-title { | |
80 | margin-bottom: 15px; | |
81 | } | |
82 | } | |
17119e4a | 83 | } |
a55052c9 | 84 | |
17119e4a C |
85 | .top-menu { |
86 | flex-grow: 1; | |
87 | width: $menu-width; | |
88 | } | |
66467298 | 89 | |
17119e4a C |
90 | .logged-in-block { |
91 | margin-bottom: 20px; | |
92 | background-color: rgba(255, 255, 255, 0.15); | |
93 | ||
94 | > div:first-child { | |
95 | height: 80px; | |
b33f657c C |
96 | display: flex; |
97 | align-items: center; | |
51a83970 | 98 | justify-content: left; |
5d43dae3 C |
99 | } |
100 | } | |
ef80c66c | 101 | |
f1ac6348 | 102 | my-notification { |
27bc9586 C |
103 | @include margin-left(auto); |
104 | @include margin-right(15px); | |
f1ac6348 | 105 | } |
5d43dae3 | 106 | |
f1ac6348 | 107 | .logged-in-more { |
c2faa073 | 108 | |
5d43dae3 C |
109 | @mixin display-hints($is-mobile: false) { |
110 | background-color: rgba(255, 255, 255, 0.15); | |
b33f657c | 111 | |
5d43dae3 C |
112 | @if $is-mobile { |
113 | .dropdown-toggle-indicator { | |
114 | display: inherit !important; | |
115 | } | |
27bc9586 | 116 | |
c2faa073 | 117 | > .dropdown-toggle { |
c1936140 | 118 | max-width: 88% !important; |
51a83970 | 119 | } |
5d43dae3 C |
120 | } |
121 | } | |
b33f657c | 122 | |
27bc9586 C |
123 | @include margin-left(13px); |
124 | ||
f1ac6348 | 125 | flex: 1; |
c2faa073 | 126 | border-radius: 25px; |
f1ac6348 C |
127 | transition: all .1s ease-in-out; |
128 | cursor: pointer; | |
129 | line-height: 1; | |
130 | ||
131 | &.show { | |
931d3430 | 132 | background-color: rgba(255, 255, 255, 0.2); |
f1ac6348 C |
133 | box-shadow: inset 0 3px 5px rgba(0, 0, 0, .325); |
134 | } | |
135 | ||
5d43dae3 C |
136 | &:hover { |
137 | @include display-hints; | |
138 | } | |
63347a0f | 139 | |
5d43dae3 C |
140 | /* smartphones and touchscreens */ |
141 | @media (hover: none) and (pointer: coarse) { | |
142 | @include display-hints($is-mobile: true); | |
51a83970 | 143 | |
5d43dae3 C |
144 | /* fill space when on mobile */ |
145 | max-width: calc(100% - 80px); | |
f1ac6348 | 146 | |
5d43dae3 C |
147 | .dropdown-toggle { |
148 | max-width: 100%; | |
149 | } | |
f1ac6348 | 150 | |
5d43dae3 C |
151 | .logged-in-info { |
152 | max-width: calc(100% - 45px) !important; | |
153 | } | |
5d43dae3 | 154 | } |
51a83970 | 155 | |
5d43dae3 C |
156 | .dropdown-toggle-indicator { |
157 | position: relative; | |
5d43dae3 C |
158 | display: none; |
159 | ||
160 | span { | |
161 | position: absolute; | |
5d43dae3 | 162 | top: -8px; |
931d3430 | 163 | color: #808080; |
5d43dae3 C |
164 | } |
165 | } | |
e5b432e0 | 166 | |
c2faa073 C |
167 | .dropdown-toggle::after { |
168 | border: 0; | |
5d43dae3 | 169 | } |
51a83970 | 170 | |
c2faa073 | 171 | > .dropdown-toggle:first-child { |
5d43dae3 C |
172 | display: flex; |
173 | align-items: center; | |
174 | padding: 5px 7px; | |
5d43dae3 | 175 | } |
f1ac6348 | 176 | } |
51a83970 | 177 | |
746018f6 | 178 | my-actor-avatar { |
27bc9586 | 179 | @include margin-right(10px); |
5d43dae3 | 180 | } |
51a83970 | 181 | |
5d43dae3 C |
182 | .logged-in-info { |
183 | max-width: 105px; | |
51a83970 | 184 | |
5d43dae3 | 185 | flex-grow: 1; |
f1ac6348 | 186 | } |
51a83970 | 187 | |
f1ac6348 C |
188 | .logged-in-display-name, |
189 | .logged-in-username { | |
190 | @include ellipsis; | |
191 | } | |
51a83970 | 192 | |
f1ac6348 | 193 | .logged-in-display-name { |
931d3430 C |
194 | @include disable-default-a-behaviour; |
195 | ||
f1ac6348 C |
196 | font-weight: $font-semibold; |
197 | color: pvar(--menuForegroundColor); | |
f1ac6348 | 198 | } |
51a83970 | 199 | |
f1ac6348 C |
200 | .logged-in-username { |
201 | font-size: 13px; | |
202 | color: #C6C6C6; | |
203 | margin-top: 3px; | |
5d43dae3 | 204 | } |
b33f657c | 205 | |
5d43dae3 C |
206 | .logged-in-menu { |
207 | display: flex; | |
208 | flex-direction: column; | |
209 | align-items: flex-start; | |
210 | border-top: 1px solid var(--greyForegroundColor); | |
211 | line-height: $line-height-normal; | |
17119e4a | 212 | |
5d43dae3 | 213 | a { |
5d43dae3 | 214 | $icon-size: 13px; |
8cbc40b2 | 215 | $additional-margin: math.div($menu-link-icon-size - $icon-size, 2); |
9bce8112 | 216 | |
5d43dae3 C |
217 | font-size: 14px; |
218 | width: 100%; | |
219 | min-height: 35px; | |
c30745f3 | 220 | |
5d43dae3 | 221 | my-global-icon { |
27bc9586 C |
222 | // Keep aligned with other icons |
223 | @include margin-left($additional-margin); | |
224 | ||
5d43dae3 C |
225 | width: $icon-size; |
226 | height: $icon-size; | |
5d43dae3 | 227 | } |
17119e4a | 228 | |
5d43dae3 C |
229 | &.active, |
230 | &:hover, | |
231 | &:focus-visible { | |
232 | my-global-icon { | |
233 | @include apply-svg-color(var(--menuForegroundColor)); | |
17119e4a | 234 | } |
5d43dae3 | 235 | } |
17119e4a | 236 | |
5d43dae3 C |
237 | &.active { |
238 | $border-left-width: 4px; | |
9bce8112 | 239 | |
5d43dae3 C |
240 | font-weight: $font-semibold; |
241 | border-left: $border-left-width solid var(--mainColor); | |
b33f657c | 242 | |
5d43dae3 | 243 | my-global-icon { |
27bc9586 | 244 | @include margin-left($additional-margin - $border-left-width); |
b33f657c C |
245 | } |
246 | } | |
247 | } | |
17119e4a C |
248 | } |
249 | ||
250 | .login-buttons-block { | |
931d3430 | 251 | margin: 30px 25px 35px; |
17119e4a | 252 | |
98bd5e22 C |
253 | > a, |
254 | > my-login-link { | |
420a6043 C |
255 | @include ellipsis; |
256 | ||
17119e4a C |
257 | display: block; |
258 | width: 100%; | |
17119e4a | 259 | |
1025ce5d | 260 | &:not(:last-child) { |
f1ac6348 C |
261 | margin-bottom: 10px; |
262 | } | |
263 | } | |
264 | } | |
17119e4a | 265 | |
f1ac6348 C |
266 | .create-account-button { |
267 | color: #fff; | |
268 | background-color: rgba(255, 255, 255, 0.25); | |
17119e4a | 269 | |
f1ac6348 C |
270 | &:hover { |
271 | background-color: rgba(255, 255, 255, 0.28); | |
17119e4a C |
272 | } |
273 | } | |
274 | ||
8beea2d3 | 275 | .menu-block, |
17119e4a C |
276 | .footer-block { |
277 | margin-bottom: 15px; | |
b33f657c C |
278 | |
279 | .block-title { | |
f1ac6348 | 280 | @include ellipsis; |
27bc9586 C |
281 | @include margin-left(26px); |
282 | @include margin-right(30px); | |
f1ac6348 | 283 | |
b33f657c C |
284 | text-transform: uppercase; |
285 | font-weight: $font-bold; // Bold | |
286 | font-size: 13px; | |
287 | margin-bottom: 25px; | |
17119e4a | 288 | } |
0727cab0 | 289 | |
17119e4a | 290 | a { |
17119e4a | 291 | min-height: 40px; |
b33f657c | 292 | } |
17119e4a C |
293 | } |
294 | ||
295 | .footer { | |
17119e4a | 296 | padding-bottom: 15px; |
f1ac6348 | 297 | } |
17119e4a | 298 | |
f1ac6348 | 299 | .footer-bottom { |
f1ac6348 | 300 | padding: 0 $menu-lateral-padding; |
5d43dae3 | 301 | } |
8afc19a6 | 302 | |
5d43dae3 | 303 | .footer-links { |
931d3430 | 304 | > div { |
5d43dae3 C |
305 | display: flex; |
306 | flex-wrap: wrap; | |
307 | } | |
8afc19a6 | 308 | |
ba24a31c C |
309 | a, |
310 | span[role=button] { | |
27bc9586 | 311 | @include margin-right(8px); |
090d100c | 312 | @include disable-default-a-behaviour; |
27bc9586 | 313 | |
5d43dae3 C |
314 | color: pvar(--menuForegroundColor); |
315 | opacity: $footer-links-base-opacity; | |
316 | white-space: nowrap; | |
5b0ec7cd | 317 | font-size: 0.75rem; |
5d43dae3 | 318 | line-height: 1.4rem; |
090d100c C |
319 | font-weight: $font-semibold; |
320 | ||
321 | &:hover { | |
322 | opacity: $footer-links-base-opacity + .2; | |
323 | } | |
17119e4a | 324 | } |
5d43dae3 | 325 | } |
8afc19a6 | 326 | |
090d100c | 327 | .footer-copyleft a { |
5d43dae3 | 328 | @include disable-default-a-behaviour; |
4a216666 | 329 | |
5d43dae3 C |
330 | color: pvar(--menuForegroundColor); |
331 | opacity: $footer-links-base-opacity - .2; | |
090d100c C |
332 | font-size: 0.85rem; |
333 | ||
334 | &:hover { | |
335 | opacity: $footer-links-base-opacity; | |
336 | } | |
d3217560 | 337 | } |
4a216666 | 338 | |
2856af48 C |
339 | .dropdown { |
340 | z-index: #{z('menu') + 1} !important; | |
341 | } | |
342 | ||
d3217560 RK |
343 | .dropdown-menu { |
344 | width: calc(100% + 40px); | |
cc92203f C |
345 | |
346 | // Prevent weird display issue on firefox when global style is not loaded yet | |
347 | &:not(.show) { | |
348 | display: none; | |
349 | } | |
d3217560 | 350 | } |
9a0fc840 | 351 | |
d3217560 RK |
352 | .dropdown-item { |
353 | @include dropdown-with-icon-item; | |
9a0fc840 | 354 | |
d3217560 RK |
355 | cursor: pointer; |
356 | display: flex; | |
357 | align-items: center; | |
358 | ||
d3217560 | 359 | &:hover { |
f1ac6348 | 360 | .hover-display-toggle { |
d3217560 | 361 | display: none; |
8afc19a6 | 362 | } |
51a83970 | 363 | |
f1ac6348 C |
364 | .hover-display-toggle[hidden] { |
365 | display: inherit !important; | |
51a83970 | 366 | } |
8afc19a6 | 367 | } |
b33f657c | 368 | } |
46ae6f67 | 369 | |
d3217560 RK |
370 | .more-settings { |
371 | text-transform: uppercase; | |
372 | font-size: 80%; | |
373 | color: #6c757d; | |
374 | } | |
375 | ||
fdebd9a3 | 376 | @media screen and (max-width: $mobile-view) { |
46ae6f67 C |
377 | .menu-wrapper { |
378 | width: 100% !important; | |
c06be129 | 379 | |
c06be129 C |
380 | menu { |
381 | overflow-y: auto; | |
382 | } | |
383 | } | |
c0022613 | 384 | |
f1ac6348 C |
385 | .top-menu, |
386 | .footer { | |
c0022613 C |
387 | width: 100% !important; |
388 | } | |
51a83970 K |
389 | |
390 | .dropdown-menu { | |
391 | width: calc(100vw - 30px); | |
392 | } | |
c06be129 | 393 | } |
f1ac6348 C |
394 | |
395 | my-global-icon { | |
77662dae C |
396 | position: relative; |
397 | top: -1px; | |
398 | ||
399 | .playlist-icon { | |
27bc9586 C |
400 | @include margin-right(16px); |
401 | ||
f1ac6348 C |
402 | height: 24px; |
403 | width: 24px; | |
f1ac6348 C |
404 | } |
405 | ||
77662dae | 406 | &.channel-icon { |
9c0cdc50 | 407 | top: -2px; |
f1ac6348 C |
408 | } |
409 | } |