Skip to content

Commit 60b123b

Browse files
committed
fix: hamburger menu still clickable when collapsed
1 parent 285c6c6 commit 60b123b

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

css/style.css

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,30 @@ pre {
10121012
flex-direction: column;
10131013
}
10141014

1015+
.nav-bar.active ul {
1016+
display: flex;
1017+
flex-flow: column nowrap;
1018+
width: fit-content;
1019+
transition: 0.5s;
1020+
opacity: 0;
1021+
gap: 0.75rem;
1022+
opacity: 1;
1023+
}
1024+
1025+
.nav-bar ul {
1026+
display: none;
1027+
}
1028+
1029+
.nav-bar ul li a {
1030+
font-size: 1rem;
1031+
display: none;
1032+
}
1033+
1034+
.nav-bar.active ul li a {
1035+
font-size: 1rem;
1036+
display: contents;
1037+
}
1038+
10151039
.about-text {
10161040
width: 100%;
10171041
margin-bottom: var(--MAIN-GAP);
@@ -1174,23 +1198,6 @@ pre {
11741198
height: fit-content;
11751199
}
11761200

1177-
.nav-bar ul {
1178-
display: flex;
1179-
flex-flow: column nowrap;
1180-
width: fit-content;
1181-
transition: 0.5s;
1182-
opacity: 0;
1183-
gap: 0.75rem;
1184-
}
1185-
1186-
.nav-bar.active ul {
1187-
opacity: 1;
1188-
}
1189-
1190-
.nav-bar ul li a {
1191-
font-size: 1rem;
1192-
}
1193-
11941201
.nav-bar-active .intro-fig,
11951202
.nav-bar-active .cv,
11961203
.nav-bar-active .conferences-journals-communications,

0 commit comments

Comments
 (0)