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