Commit 911aafa
TechStack Global
fix: mobile toggle broken by competing CSS media query and missing pointer-events
Root cause 1: @media (max-width: 768px) block at ~line 1094 set
.glass-header nav { flex-direction: column } and .nav-links { display: flex }
unconditionally, overriding the correct mobile nav overlay block and causing
the nav menu to remain always-visible (ignoring toggle state).
Root cause 2: Hidden .nav-links had no pointer-events: none, so the invisible
off-screen nav could intercept taps, blocking click events on the toggle button.
Fix: Remove conflicting nav rules from early media query block. Add
pointer-events: none to closed state and pointer-events: auto to .active state.
Only style.css modified. JS unchanged. HTML unchanged.1 parent fdbba9c commit 911aafa
1 file changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1091 | 1091 | | |
1092 | 1092 | | |
1093 | 1093 | | |
| 1094 | + | |
| 1095 | + | |
1094 | 1096 | | |
1095 | | - | |
1096 | | - | |
1097 | | - | |
1098 | | - | |
1099 | | - | |
1100 | | - | |
1101 | | - | |
1102 | | - | |
1103 | | - | |
1104 | | - | |
1105 | | - | |
1106 | | - | |
1107 | 1097 | | |
1108 | 1098 | | |
1109 | 1099 | | |
| |||
1274 | 1264 | | |
1275 | 1265 | | |
1276 | 1266 | | |
| 1267 | + | |
| 1268 | + | |
1277 | 1269 | | |
1278 | 1270 | | |
1279 | 1271 | | |
| |||
1284 | 1276 | | |
1285 | 1277 | | |
1286 | 1278 | | |
| 1279 | + | |
| 1280 | + | |
1287 | 1281 | | |
1288 | 1282 | | |
1289 | 1283 | | |
| |||
0 commit comments