92 lines
1.7 KiB
CSS
92 lines
1.7 KiB
CSS
/*
|
|
Topbar styles for OnlyPrompt
|
|
- clean, modern, full-width
|
|
- search bar centered (expands on full screen), profile avatar always on the right
|
|
- ONLY search bar and avatar have rounded corners
|
|
*/
|
|
|
|
.topbar-shell {
|
|
width: 100%;
|
|
background: #ffffff;
|
|
border-bottom: 1px solid #eef2f7;
|
|
padding: 16px 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 18px;
|
|
}
|
|
|
|
.topbar-search {
|
|
flex: 1; /* Takes all available space */
|
|
max-width: none; /* No upper limit, expands freely */
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
padding: 10px 20px;
|
|
border-radius: 14px; /* Rounded like login inputs */
|
|
}
|
|
|
|
.topbar-search i {
|
|
color: #94a3b8;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.topbar-search input {
|
|
width: 100%;
|
|
border: none;
|
|
outline: none;
|
|
background: transparent;
|
|
font-size: 0.95rem;
|
|
color: #334155;
|
|
}
|
|
|
|
.topbar-search input::placeholder {
|
|
color: #94a3b8;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.topbar-avatar-btn {
|
|
border: none;
|
|
background: transparent;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.topbar-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
object-fit: cover;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 50%; /* Avatar round */
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
@media (max-width: 768px) {
|
|
.topbar-shell {
|
|
padding: 12px 20px;
|
|
}
|
|
.topbar-search {
|
|
padding: 8px 16px;
|
|
}
|
|
.topbar-search i {
|
|
font-size: 1.1rem;
|
|
}
|
|
.topbar-avatar {
|
|
width: 40px;
|
|
height: 40px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.topbar-shell {
|
|
padding: 10px 16px;
|
|
}
|
|
.topbar-search {
|
|
padding: 6px 12px;
|
|
}
|
|
} |