149 lines
2.2 KiB
CSS
149 lines
2.2 KiB
CSS
/*
|
|
Topbar styles for OnlyPrompt
|
|
- sticky on all app pages
|
|
- search bar fills the available width
|
|
- logout, messages and profile avatar stay on the right
|
|
*/
|
|
|
|
.topbar-shell {
|
|
align-items: center;
|
|
background: #ffffff;
|
|
border-bottom: 1px solid #eef2f7;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
gap: 18px;
|
|
justify-content: space-between;
|
|
padding: 16px 32px;
|
|
position: sticky;
|
|
top: 0;
|
|
width: 100%;
|
|
z-index: 90;
|
|
}
|
|
|
|
.topbar-search {
|
|
align-items: center;
|
|
background: #f8fafc;
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
flex: 1;
|
|
gap: 12px;
|
|
max-width: none;
|
|
padding: 10px 20px;
|
|
}
|
|
|
|
.topbar-search i {
|
|
color: #94a3b8;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.topbar-search input {
|
|
background: transparent;
|
|
border: none;
|
|
color: #334155;
|
|
font-size: 0.95rem;
|
|
outline: none;
|
|
width: 100%;
|
|
}
|
|
|
|
.topbar-search:focus-within {
|
|
border-color: #2563eb;
|
|
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
|
|
}
|
|
|
|
.topbar-search input::placeholder {
|
|
color: #94a3b8;
|
|
font-weight: 400;
|
|
}
|
|
|
|
.topbar-actions {
|
|
align-items: center;
|
|
display: flex;
|
|
gap: 16px;
|
|
}
|
|
|
|
.topbar-logout-form {
|
|
display: flex;
|
|
margin: 0;
|
|
}
|
|
|
|
.topbar-icon-btn {
|
|
align-items: center;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 50%;
|
|
color: #475569;
|
|
cursor: pointer;
|
|
display: flex;
|
|
font-size: 1.4rem;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
transition: background 0.2s, color 0.2s;
|
|
}
|
|
|
|
.topbar-icon-btn:hover {
|
|
background: #f1f5f9;
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.topbar-avatar-btn {
|
|
align-items: center;
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 0;
|
|
}
|
|
|
|
.topbar-avatar {
|
|
border: 1px solid #e2e8f0;
|
|
border-radius: 50%;
|
|
height: 48px;
|
|
object-fit: cover;
|
|
width: 48px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.topbar-shell {
|
|
gap: 12px;
|
|
padding: 12px 20px;
|
|
}
|
|
|
|
.topbar-search {
|
|
padding: 8px 16px;
|
|
}
|
|
|
|
.topbar-search i {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.topbar-avatar {
|
|
height: 40px;
|
|
width: 40px;
|
|
}
|
|
|
|
.topbar-icon-btn {
|
|
font-size: 1.2rem;
|
|
padding: 6px;
|
|
}
|
|
|
|
.topbar-actions {
|
|
gap: 8px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.topbar-shell {
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.topbar-search {
|
|
padding: 6px 10px;
|
|
}
|
|
|
|
.topbar-actions {
|
|
gap: 4px;
|
|
}
|
|
}
|