Elevate navigation bar to prevent interaction issues

Increase z-index of the nav element to 10000 and set pointer-events to 'auto' for nav, nav.scrolled, and nav-container a elements to ensure it is clickable.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 5e584ab0-c340-4432-97ef-1972582b60e9
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 3a8d47ec-508c-4a87-bc80-10b4d08358df
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d0a1d46d-d203-4308-bc6a-312ac7c0243b/5e584ab0-c340-4432-97ef-1972582b60e9/yLPclh6
This commit is contained in:
abhiramtx
2025-11-08 23:55:40 +00:00
parent 99d3a3a9a2
commit 3b7319745b

View File

@@ -57,10 +57,11 @@ nav {
top: 20px; top: 20px;
left: 50%; left: 50%;
transform: translateX(-50%); transform: translateX(-50%);
z-index: 1000; z-index: 10000;
width: calc(100% - 40px); width: calc(100% - 40px);
max-width: 1200px; max-width: 1200px;
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
pointer-events: auto;
} }
nav.scrolled { nav.scrolled {
@@ -80,12 +81,18 @@ nav.scrolled {
border: 1px solid rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 16px; border-radius: 16px;
box-shadow: none; box-shadow: none;
pointer-events: auto;
} }
.nav-container li { .nav-container li {
list-style: none; list-style: none;
} }
.nav-container a {
pointer-events: auto;
cursor: pointer;
}
.nav-container li a { .nav-container li a {
color: var(--gray-300); color: var(--gray-300);
text-decoration: none; text-decoration: none;