Skip to content

Commit

Permalink
Merge pull request #50 from stackabletech/24-pin-top-level-menu
Browse files Browse the repository at this point in the history
pin top level menu
  • Loading branch information
fhennig authored Nov 15, 2023
2 parents 5d05a8e + c0a4691 commit c8910b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/css/header.css
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,14 @@ body {

.navbar-sub {
display: block;
position: relative;
background-color: var(--color-brand-primary);
padding: 5px 15px 5px 0;
transition: all 0.5s;
height: 42px;
height: var(--navbar-sub-height);
position: fixed;
top: var(--navbar-height);
width: 100%;
z-index: var(--z-index-navbar);
/* overflow: hidden; */
}

Expand Down
3 changes: 2 additions & 1 deletion src/css/vars.css
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@
--footer-link-font-color: var(--color-smoke-70);
/* dimensions and positioning */
--navbar-height: calc(73 / var(--rem-base) * 1rem);
--navbar-sub-height: calc(45 / var(--rem-base) * 1rem);
--toolbar-height: calc(45 / var(--rem-base) * 1rem);
--drawer-height: var(--toolbar-height);
--body-top: var(--navbar-height);
--body-top: calc(var(--navbar-height) + var(--navbar-sub-height));
--body-min-height: calc(100vh - var(--body-top));
--nav-height: calc(var(--body-min-height) - var(--toolbar-height));
--nav-height--desktop: var(--body-min-height);
Expand Down

0 comments on commit c8910b3

Please sign in to comment.