]>
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; | |
162 | right: -35px; | |
163 | top: -8px; | |
931d3430 | 164 | color: #808080; |
5d43dae3 C |
165 | } |
166 | } | |
e5b432e0 | 167 | |
c2faa073 C |
168 | .dropdown-toggle::after { |
169 | border: 0; | |
5d43dae3 | 170 | } |
51a83970 | 171 | |
c2faa073 | 172 | > .dropdown-toggle:first-child { |
5d43dae3 C |
173 | display: flex; |
174 | align-items: center; | |
175 | padding: 5px 7px; | |
5d43dae3 | 176 | } |
f1ac6348 | 177 | } |
51a83970 | 178 | |
746018f6 | 179 | my-actor-avatar { |
27bc9586 | 180 | @include margin-right(10px); |
5d43dae3 | 181 | } |
51a83970 | 182 | |
5d43dae3 C |
183 | .logged-in-info { |
184 | max-width: 105px; | |
51a83970 | 185 | |
5d43dae3 | 186 | flex-grow: 1; |
f1ac6348 | 187 | } |
51a83970 | 188 | |
f1ac6348 C |
189 | .logged-in-display-name, |
190 | .logged-in-username { | |
191 | @include ellipsis; | |
192 | } | |
51a83970 | 193 | |
f1ac6348 | 194 | .logged-in-display-name { |
931d3430 C |
195 | @include disable-default-a-behaviour; |
196 | ||
f1ac6348 C |
197 | font-weight: $font-semibold; |
198 | color: pvar(--menuForegroundColor); | |
f1ac6348 | 199 | } |
51a83970 | 200 | |
f1ac6348 C |
201 | .logged-in-username { |
202 | font-size: 13px; | |
203 | color: #C6C6C6; | |
204 | margin-top: 3px; | |
5d43dae3 | 205 | } |
b33f657c | 206 | |
5d43dae3 C |
207 | .logged-in-menu { |
208 | display: flex; | |
209 | flex-direction: column; | |
210 | align-items: flex-start; | |
211 | border-top: 1px solid var(--greyForegroundColor); | |
212 | line-height: $line-height-normal; | |
17119e4a | 213 | |
5d43dae3 | 214 | a { |
5d43dae3 | 215 | $icon-size: 13px; |
8cbc40b2 | 216 | $additional-margin: math.div($menu-link-icon-size - $icon-size, 2); |
9bce8112 | 217 | |
5d43dae3 C |
218 | font-size: 14px; |
219 | width: 100%; | |
220 | min-height: 35px; | |
c30745f3 | 221 | |
5d43dae3 | 222 | my-global-icon { |
27bc9586 C |
223 | // Keep aligned with other icons |
224 | @include margin-left($additional-margin); | |
225 | ||
5d43dae3 C |
226 | width: $icon-size; |
227 | height: $icon-size; | |
5d43dae3 | 228 | } |
17119e4a | 229 | |
5d43dae3 C |
230 | &.active, |
231 | &:hover, | |
232 | &:focus-visible { | |
233 | my-global-icon { | |
234 | @include apply-svg-color(var(--menuForegroundColor)); | |
17119e4a | 235 | } |
5d43dae3 | 236 | } |
17119e4a | 237 | |
5d43dae3 C |
238 | &.active { |
239 | $border-left-width: 4px; | |
9bce8112 | 240 | |
5d43dae3 C |
241 | font-weight: $font-semibold; |
242 | border-left: $border-left-width solid var(--mainColor); | |
b33f657c | 243 | |
5d43dae3 | 244 | my-global-icon { |
27bc9586 | 245 | @include margin-left($additional-margin - $border-left-width); |
b33f657c C |
246 | } |
247 | } | |
248 | } | |
17119e4a C |
249 | } |
250 | ||
251 | .login-buttons-block { | |
931d3430 | 252 | margin: 30px 25px 35px; |
17119e4a | 253 | |
f1ac6348 | 254 | > a { |
17119e4a C |
255 | display: block; |
256 | width: 100%; | |
17119e4a | 257 | |
1025ce5d | 258 | &:not(:last-child) { |
f1ac6348 C |
259 | margin-bottom: 10px; |
260 | } | |
261 | } | |
262 | } | |
17119e4a | 263 | |
f1ac6348 C |
264 | .create-account-button { |
265 | color: #fff; | |
266 | background-color: rgba(255, 255, 255, 0.25); | |
17119e4a | 267 | |
f1ac6348 C |
268 | &:hover { |
269 | background-color: rgba(255, 255, 255, 0.28); | |
17119e4a C |
270 | } |
271 | } | |
272 | ||
8beea2d3 | 273 | .menu-block, |
17119e4a C |
274 | .footer-block { |
275 | margin-bottom: 15px; | |
b33f657c C |
276 | |
277 | .block-title { | |
f1ac6348 | 278 | @include ellipsis; |
27bc9586 C |
279 | @include margin-left(26px); |
280 | @include margin-right(30px); | |
f1ac6348 | 281 | |
b33f657c C |
282 | text-transform: uppercase; |
283 | font-weight: $font-bold; // Bold | |
284 | font-size: 13px; | |
285 | margin-bottom: 25px; | |
17119e4a | 286 | } |
0727cab0 | 287 | |
17119e4a | 288 | a { |
17119e4a | 289 | min-height: 40px; |
b33f657c | 290 | } |
17119e4a C |
291 | } |
292 | ||
293 | .footer { | |
294 | width: $menu-width; | |
295 | padding-bottom: 15px; | |
f1ac6348 | 296 | } |
17119e4a | 297 | |
f1ac6348 C |
298 | .footer-bottom { |
299 | display: flex; | |
300 | flex-direction: column; | |
301 | padding: 0 $menu-lateral-padding; | |
5d43dae3 | 302 | } |
8afc19a6 | 303 | |
5d43dae3 | 304 | .footer-links { |
931d3430 C |
305 | &, |
306 | > div { | |
5d43dae3 C |
307 | display: flex; |
308 | flex-wrap: wrap; | |
309 | } | |
8afc19a6 | 310 | |
f1ac6348 C |
311 | a, |
312 | span[role=button] { | |
27bc9586 C |
313 | @include margin-right(8px); |
314 | ||
5d43dae3 C |
315 | display: inline-block; |
316 | text-decoration: none; | |
317 | color: pvar(--menuForegroundColor); | |
318 | opacity: $footer-links-base-opacity; | |
319 | white-space: nowrap; | |
5b0ec7cd | 320 | font-size: 0.75rem; |
5d43dae3 C |
321 | font-weight: 500; |
322 | line-height: 1.4rem; | |
17119e4a | 323 | } |
5d43dae3 | 324 | } |
8afc19a6 | 325 | |
5d43dae3 C |
326 | .footer-copyleft small a { |
327 | @include disable-default-a-behaviour; | |
4a216666 | 328 | |
5d43dae3 C |
329 | color: pvar(--menuForegroundColor); |
330 | opacity: $footer-links-base-opacity - .2; | |
d3217560 | 331 | } |
4a216666 | 332 | |
2856af48 C |
333 | .dropdown { |
334 | z-index: #{z('menu') + 1} !important; | |
335 | } | |
336 | ||
d3217560 RK |
337 | .dropdown-menu { |
338 | width: calc(100% + 40px); | |
cc92203f C |
339 | |
340 | // Prevent weird display issue on firefox when global style is not loaded yet | |
341 | &:not(.show) { | |
342 | display: none; | |
343 | } | |
d3217560 | 344 | } |
9a0fc840 | 345 | |
d3217560 RK |
346 | .dropdown-item { |
347 | @include dropdown-with-icon-item; | |
9a0fc840 | 348 | |
d3217560 RK |
349 | cursor: pointer; |
350 | display: flex; | |
351 | align-items: center; | |
352 | ||
d3217560 | 353 | &:hover { |
f1ac6348 | 354 | .hover-display-toggle { |
d3217560 | 355 | display: none; |
8afc19a6 | 356 | } |
51a83970 | 357 | |
f1ac6348 C |
358 | .hover-display-toggle[hidden] { |
359 | display: inherit !important; | |
51a83970 | 360 | } |
8afc19a6 | 361 | } |
b33f657c | 362 | } |
46ae6f67 | 363 | |
d3217560 RK |
364 | .more-settings { |
365 | text-transform: uppercase; | |
366 | font-size: 80%; | |
367 | color: #6c757d; | |
368 | } | |
369 | ||
fdebd9a3 | 370 | @media screen and (max-width: $mobile-view) { |
46ae6f67 C |
371 | .menu-wrapper { |
372 | width: 100% !important; | |
c06be129 | 373 | |
c06be129 C |
374 | menu { |
375 | overflow-y: auto; | |
376 | } | |
377 | } | |
c0022613 | 378 | |
f1ac6348 C |
379 | .top-menu, |
380 | .footer { | |
c0022613 C |
381 | width: 100% !important; |
382 | } | |
51a83970 K |
383 | |
384 | .dropdown-menu { | |
385 | width: calc(100vw - 30px); | |
386 | } | |
c06be129 | 387 | } |
f1ac6348 C |
388 | |
389 | my-global-icon { | |
931d3430 | 390 | &[iconName=playlists] { |
27bc9586 C |
391 | @include margin-right(16px); |
392 | ||
f1ac6348 C |
393 | height: 24px; |
394 | width: 24px; | |
f1ac6348 C |
395 | } |
396 | ||
931d3430 | 397 | &[iconName=videos] { |
f1ac6348 C |
398 | position: relative; |
399 | right: -1px; | |
400 | } | |
401 | ||
931d3430 | 402 | &[iconName=channel] { |
f1ac6348 C |
403 | margin-top: -2px; |
404 | } | |
405 | ||
931d3430 | 406 | &[iconName='sign-out'] { |
f1ac6348 C |
407 | position: relative; |
408 | right: -2px; | |
409 | height: 20px; | |
410 | width: 20px; | |
411 | } | |
412 | } |