spotnotes.app/static/assets/css/navbar.css

127 lines
2.4 KiB
CSS
Raw Normal View History

2026-05-12 23:58:18 +00:00
/* 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 */
2026-06-02 04:02:39 +00:00
min-height: 44px;
2026-05-12 23:58:18 +00:00
}
.nav-search button {
padding: 5px 12px;
border: 1px solid #ccc;
border-left: none;
background: #f8f9fa;
border-radius: 0 4px 4px 0;
cursor: pointer;
2026-06-02 04:02:39 +00:00
min-height: 44px;
2026-05-12 23:58:18 +00:00
}
.nav-search button:hover { background: #e2e6ea; }
2026-06-02 04:02:39 +00:00
.nav-toggle {
display: none;
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: #333;
padding: 5px;
}
2026-05-12 23:58:18 +00:00
/* Mobile Navbar */
@media (max-width: 600px) {
.navbar {
flex-wrap: wrap;
height: auto;
padding: 10px;
gap: 10px;
}
.brand {
flex: 1;
order: 1;
}
2026-06-02 04:02:39 +00:00
.nav-toggle {
display: block;
2026-05-12 23:58:18 +00:00
order: 2;
}
2026-06-02 04:02:39 +00:00
.nav-links {
display: none;
flex-basis: 100%;
order: 4;
flex-direction: column;
align-items: stretch;
background: #fff;
padding: 10px 0;
}
.nav-links.active {
display: flex;
}
.nav-links a {
padding: 10px 15px;
width: 100%;
text-align: left;
border-bottom: 1px solid #eee;
}
.nav-links a:last-child {
border-bottom: none;
}
2026-05-12 23:58:18 +00:00
.nav-search {
flex: 1 1 100%;
order: 3;
margin: 0;
max-width: none;
}
}