Skip to content

Commit e48a6d4

Browse files
committed
fix(theme): hamburger menu visibility
Signed-off-by: Emilien Escalle <[email protected]>
1 parent 048e2f4 commit e48a6d4

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/theme/src/styles/hoverkraft.css

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ body {
8787
}
8888

8989
.navbar {
90-
backdrop-filter: blur(10px);
91-
background: rgba(255, 255, 255, 0.95);
90+
background: transparent;
9291
box-shadow: var(--ifm-navbar-shadow);
9392
color: var(--hk-color-dark);
9493
padding: 0.75rem 2rem;
@@ -100,11 +99,24 @@ body {
10099
box-shadow 0.3s ease;
101100
}
102101

102+
.navbar::before {
103+
content: "";
104+
position: absolute;
105+
inset: 0;
106+
background: rgba(255, 255, 255, 0.95);
107+
backdrop-filter: blur(10px);
108+
-webkit-backdrop-filter: blur(10px);
109+
z-index: -1;
110+
}
111+
103112
[data-theme="dark"] .navbar {
104-
background: rgba(37, 40, 50, 0.95);
105113
color: var(--hk-color-light);
106114
}
107115

116+
[data-theme="dark"] .navbar::before {
117+
background: rgba(37, 40, 50, 0.95);
118+
}
119+
108120
.navbar__title {
109121
display: flex;
110122
align-items: center;

0 commit comments

Comments
 (0)