Skip to content

Commit

Permalink
navbar stickiness
Browse files Browse the repository at this point in the history
  • Loading branch information
Agrim Jain authored and Agrim Jain committed May 23, 2024
1 parent fd2ffe8 commit 11f4ad4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Header/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
width: 100%;
position: fixed;
background-color: white;
z-index: 10;
z-index: 10000;
top: 0px;
display: flex;
flex-direction: column;
align-items: center;
Expand Down
2 changes: 2 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
--demo-account: #377cfc;
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
--nav-height: 72px;
--navtop-height: 53px;
--ifm-menu-color: #414652;
--ifm-menu-link-sublist-icon-2: url(/img/arrow_sidebar.svg);
--ifm-menu-link-padding-vertical: 9px;
Expand Down Expand Up @@ -159,6 +160,7 @@ html,
body {
overflow-x: hidden;
overflow-anchor: none;
padding-top: var(--navtop-height);
}

.hidden {
Expand Down

0 comments on commit 11f4ad4

Please sign in to comment.