Skip to content

Commit

Permalink
fix some offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
fhennig committed Apr 10, 2024
1 parent ee95690 commit 8e66d2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/css/nav.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
.nav {
background: var(--nav-background);
position: relative;
top: var(--toolbar-height);
height: calc(100% - var(--navbar-sub-height));
height: 100%;
}

@media screen and (min-width: 769px) {
Expand All @@ -53,11 +52,10 @@

@media screen and (min-width: 1024px) {
.nav {
top: calc(var(--navbar-height) + var(--navbar-sub-height));
top: calc(var(--navbar-height));
box-shadow: none;
position: sticky;
height: var(--nav-height--desktop);
margin-top: var(--navbar-sub-height);
/* height: var(--nav-height--desktop); */
}
}

Expand Down
3 changes: 1 addition & 2 deletions src/css/toolbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
height: var(--toolbar-height);
justify-content: flex-start;
position: sticky;
top: var(--navbar-height);
z-index: var(--z-index-toolbar);
}

@media screen and (min-width: 1024px) {
.toolbar {
top: calc(var(--navbar-height) + var(--navbar-sub-height));
top: calc(var(--navbar-height));
}
}

Expand Down

0 comments on commit 8e66d2e

Please sign in to comment.