Skip to content

Commit

Permalink
fix toc displayed over header menu
Browse files Browse the repository at this point in the history
  • Loading branch information
haxibami committed Nov 13, 2024
1 parent 19eae41 commit e3262a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/env.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// <reference path="../.astro/types.d.ts" />
/// <reference types="astro/client" />

declare module "*.yml" {
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Header/Navigation.astro
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ const data: Navigation[] = {
& > ul {
visibility: hidden;
position: absolute;
z-index: 1;
z-index: 3;
opacity: 0;
width: 100%;
min-width: 20vw;
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Header/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const theOtherLangUrl = canonicalUrl.pathname.startsWith("/en/")
position: fixed;
width: 100%;
height: 100%;
z-index: 1;
z-index: 3;
.hamburger-contents {
display: block;
flex: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/layouts/Toc.astro
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ for (const heading of Astro.props.headings) {
position: sticky;
top: 1rem;
pointer-events: none;
z-index: 100;
z-index: 2;
}
#toc-toggle {
display: flex;
Expand Down

0 comments on commit e3262a9

Please sign in to comment.