| 
4 | 4 |   position: sticky;  | 
5 | 5 |   top: 0;  | 
6 | 6 |   width: 100%;  | 
7 |  | -  background-color: theme.color("background", "nav-blur");  | 
8 |  | -  backdrop-filter: blur(32px);  | 
 | 7 | +  background-color: theme.color("background", "primary");  | 
 | 8 | +  border-bottom: 1px solid theme.color("background", "secondary");  | 
 | 9 | +  // TODO: This causes that navigation is not fixed  | 
 | 10 | +  // backdrop-filter: blur(32px);  | 
9 | 11 | 
 
  | 
10 | 12 |   .content {  | 
11 | 13 |     height: 100%;  | 
 | 
16 | 18 | 
 
  | 
17 | 19 |     .leftMenu {  | 
18 | 20 |       flex: none;  | 
19 |  | -      gap: theme.spacing(6);  | 
 | 21 | +      gap: theme.spacing(4);  | 
 | 22 | +      position: relative;  | 
20 | 23 | 
 
  | 
21 | 24 |       @include theme.row;  | 
22 | 25 | 
 
  | 
23 | 26 |       .logoLink {  | 
24 | 27 |         padding: theme.spacing(3);  | 
25 |  | -        margin: -#{theme.spacing(3)};  | 
26 | 28 |         color: theme.color("foreground");  | 
 | 29 | +          | 
 | 30 | +        @include theme.desktop {  | 
 | 31 | +          position: absolute;  | 
 | 32 | +          left: -#{theme.spacing(16)};  | 
 | 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)};  | 
 | 68 | +        position: relative;  | 
 | 69 | +        @include theme.mobile {  | 
 | 70 | +          display: none;  | 
72 | 71 |         }  | 
73 |  | -      }  | 
74 |  | - | 
75 |  | -      .rightMenu {  | 
76 |  | -        margin-right: -#{theme.spacing(9) + theme.spacing(7)};  | 
77 |  | - | 
78 |  | -        .themeSwitch {  | 
79 |  | -          margin-left: theme.spacing(5);  | 
 | 72 | +        @include theme.desktop {  | 
 | 73 | +          display: block;  | 
 | 74 | +          position: absolute;  | 
 | 75 | +          right: -#{theme.spacing(16)};  | 
80 | 76 |         }  | 
81 | 77 |       }  | 
82 | 78 |     }  | 
 | 79 | +    // Reason: you can absolute position relatively to a container and disable this behavior on mobile  | 
 | 80 | +    // @media screen and (min-width: #{theme.$max-width + (2 * (theme.spacing(9) + theme.spacing(8) + theme.spacing(7)))}) {  | 
 | 81 | +    //   .leftMenu {  | 
 | 82 | +    //     margin-left: -#{theme.spacing(9) + theme.spacing(7)};  | 
 | 83 | + | 
 | 84 | +    //     .logoLink {  | 
 | 85 | +    //       margin-right: -#{theme.spacing(2)};  | 
 | 86 | +    //     }  | 
 | 87 | +    //   }  | 
 | 88 | + | 
 | 89 | +    //   .rightMenu {  | 
 | 90 | +    //     margin-right: -#{theme.spacing(9) + theme.spacing(7)};  | 
 | 91 | + | 
 | 92 | +    //     .themeSwitch {  | 
 | 93 | +    //       margin-left: theme.spacing(5);  | 
 | 94 | +    //     }  | 
 | 95 | +    //   }  | 
 | 96 | +    // }  | 
 | 97 | +  }  | 
 | 98 | +}  | 
 | 99 | + | 
 | 100 | +.hideOnMobile {  | 
 | 101 | +  @include theme.mobile {  | 
 | 102 | +    display: none;  | 
83 | 103 |   }  | 
84 | 104 | }  | 
0 commit comments