spotnotes.app/static/assets/css/navbar.css
2026-05-12 18:58:18 -05:00

94 lines
No EOL
1.7 KiB
CSS

/* Top Navigation Bar */
.navbar {
position: relative;
top: 0;
left: 0;
width: 100%;
height: 50px;
background-color: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(5px);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 15px;
z-index: 1000;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
flex-shrink: 0
}
.brand {
font-weight: bold;
font-size: 1.2rem;
color: #333;
text-decoration: none;
flex: 1;
display: flex;
justify-content: flex-start;
}
.nav-links {
flex: 1;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 15px;
}
.nav-links a {
text-decoration: none;
color: #555;
font-size: 0.9rem;
transition: color 0.2s;
white-space: nowrap;
}
.nav-links a:hover { color: #000; }
/* Search Bar in Navbar */
.nav-search {
flex: 0 1 400px;
margin: 0 15px;
display: flex;
justify-content: center;
}
.nav-search input {
width: 100%;
padding: 8px 10px;
border: 1px solid #ccc;
border-radius: 4px 0 0 4px;
outline: none;
font-size: 16px; /* Prevents zoom on iOS */
}
.nav-search button {
padding: 5px 12px;
border: 1px solid #ccc;
border-left: none;
background: #f8f9fa;
border-radius: 0 4px 4px 0;
cursor: pointer;
}
.nav-search button:hover { background: #e2e6ea; }
/* Mobile Navbar */
@media (max-width: 600px) {
.navbar {
flex-wrap: wrap;
height: auto;
padding: 10px;
gap: 10px;
}
.brand {
flex: 1;
order: 1;
}
.nav-links {
flex: initial;
order: 2;
}
.nav-search {
flex: 1 1 100%;
order: 3;
margin: 0;
max-width: none;
}
}