Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pin top level menu #50

Merged
merged 2 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading