|
5 | 5 | top: 0; |
6 | 6 | width: 100%; |
7 | 7 | background-color: theme.color("background", "nav-blur"); |
8 | | - backdrop-filter: blur(32px); |
| 8 | + // TODO: This causes that navigation is not fixed |
| 9 | + // backdrop-filter: blur(32px); |
9 | 10 |
|
10 | 11 | .content { |
11 | 12 | height: 100%; |
|
16 | 17 |
|
17 | 18 | .leftMenu { |
18 | 19 | flex: none; |
19 | | - gap: theme.spacing(6); |
| 20 | + gap: theme.spacing(4); |
| 21 | + position: relative; |
20 | 22 |
|
21 | 23 | @include theme.row; |
22 | 24 |
|
23 | 25 | .logoLink { |
24 | 26 | padding: theme.spacing(3); |
25 | | - margin: -#{theme.spacing(3)}; |
26 | 27 | color: theme.color("foreground"); |
| 28 | + position: absolute; |
| 29 | + left: -#{theme.spacing(16)}; |
| 30 | + @include theme.mobile { |
| 31 | + left: 0; |
| 32 | + position: relative; |
| 33 | + } |
27 | 34 |
|
28 | 35 | .logoWrapper { |
29 | | - width: theme.spacing(9); |
30 | | - height: theme.spacing(9); |
| 36 | + width: theme.spacing(8); |
| 37 | + height: theme.spacing(8); |
31 | 38 | position: relative; |
32 | 39 |
|
33 | 40 | .logo { |
|
52 | 59 |
|
53 | 60 | .rightMenu { |
54 | 61 | flex: none; |
| 62 | + position: relative; |
55 | 63 | gap: theme.spacing(2); |
56 | 64 |
|
57 | 65 | @include theme.row; |
58 | 66 |
|
59 | | - margin-right: -#{theme.button-padding("sm", false)}; |
60 | | - |
61 | 67 | .themeSwitch { |
62 | | - margin-left: theme.spacing(1); |
63 | | - } |
64 | | - } |
65 | | - |
66 | | - @media screen and (min-width: #{theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))}) { |
67 | | - .leftMenu { |
68 | | - margin-left: -#{theme.spacing(9) + theme.spacing(7)}; |
69 | | - |
70 | | - .logoLink { |
71 | | - margin-right: -#{theme.spacing(2)}; |
72 | | - } |
73 | | - } |
74 | | - |
75 | | - .rightMenu { |
76 | | - margin-right: -#{theme.spacing(9) + theme.spacing(7)}; |
77 | | - |
78 | | - .themeSwitch { |
79 | | - margin-left: theme.spacing(5); |
| 68 | + position: absolute; |
| 69 | + right: -#{theme.spacing(16)}; |
| 70 | + top: 0; |
| 71 | + @include theme.mobile { |
| 72 | + display: none; |
80 | 73 | } |
81 | 74 | } |
82 | 75 | } |
| 76 | + // Reason: you can absolute position relatively to a container and disable this behavior on mobile |
| 77 | + // @media screen and (min-width: #{theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))}) { |
| 78 | + // .leftMenu { |
| 79 | + // margin-left: -#{theme.spacing(9) + theme.spacing(7)}; |
| 80 | + |
| 81 | + // .logoLink { |
| 82 | + // margin-right: -#{theme.spacing(2)}; |
| 83 | + // } |
| 84 | + // } |
| 85 | + |
| 86 | + // .rightMenu { |
| 87 | + // margin-right: -#{theme.spacing(9) + theme.spacing(7)}; |
| 88 | + |
| 89 | + // .themeSwitch { |
| 90 | + // margin-left: theme.spacing(5); |
| 91 | + // } |
| 92 | + // } |
| 93 | + // } |
| 94 | + } |
| 95 | +} |
| 96 | + |
| 97 | +.hideOnMobile { |
| 98 | + @include theme.mobile { |
| 99 | + display: none; |
83 | 100 | } |
84 | 101 | } |
0 commit comments