Skip to content

Commit

Permalink
fix: stack navbar on top so that the banner doesn't cover the navbar.
Browse files Browse the repository at this point in the history
  • Loading branch information
adnanhashmi09 committed Oct 2, 2022
1 parent c6f5cf9 commit e7aaebf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Expand Up @@ -39,6 +39,7 @@ export default function NavbarLayout({children}: Props): JSX.Element {
className={clsx(
'navbar',
'navbar--fixed-top',
styles.stackNavbarOnTop,
hideOnScroll && [
styles.navbarHideable,
!isNavbarVisible && styles.navbarHidden,
Expand Down
Expand Up @@ -12,3 +12,7 @@
.navbarHidden {
transform: translate3d(0, calc(-100% - 2px), 0);
}

.stackNavbarOnTop {
z-index: calc(var(--ifm-z-index-fixed) + 1);
}

0 comments on commit e7aaebf

Please sign in to comment.