Skip to content

Commit 2f1dcb3

Browse files
fix(website): responsive mobile navigation and hamburger menu
1 parent 917228d commit 2f1dcb3

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

website/css/styles.css

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1152,14 +1152,17 @@ p {
11521152
top: 60px;
11531153
left: 0;
11541154
right: 0;
1155-
bottom: 0;
1155+
width: 100vw;
1156+
height: calc(100vh - 60px);
11561157
flex-direction: column;
11571158
align-items: stretch;
11581159
padding: var(--space-xl);
11591160
gap: var(--space-sm);
11601161
background: var(--bg-dark);
11611162
border-top: 1px solid rgba(255, 255, 255, 0.1);
11621163
overflow-y: auto;
1164+
z-index: 1000;
1165+
backdrop-filter: blur(10px);
11631166
}
11641167

11651168
.nav-links.active {
@@ -1194,11 +1197,12 @@ p {
11941197
flex-direction: column;
11951198
justify-content: space-between;
11961199
width: 30px;
1197-
height: 24px;
1200+
height: 20px;
11981201
padding: 0;
11991202
border: none;
12001203
background: transparent;
12011204
cursor: pointer;
1205+
z-index: 1001;
12021206
}
12031207

12041208
.nav-toggle span {
@@ -1207,6 +1211,19 @@ p {
12071211
background-color: var(--text-primary);
12081212
border-radius: 2px;
12091213
transition: all 0.3s ease;
1214+
transform-origin: left;
1215+
}
1216+
1217+
.nav-toggle.active span:first-child {
1218+
transform: rotate(45deg);
1219+
}
1220+
1221+
.nav-toggle.active span:nth-child(2) {
1222+
opacity: 0;
1223+
}
1224+
1225+
.nav-toggle.active span:last-child {
1226+
transform: rotate(-45deg);
12101227
}
12111228

12121229
/* Hero */

0 commit comments

Comments
 (0)