251 lines
7.1 KiB
CSS
251 lines
7.1 KiB
CSS
/* ── Left Navigation (Instagram-style) ── */
|
|
|
|
.f-sb-head {
|
|
padding: 0;
|
|
display: flex; align-items: center; gap: 11px;
|
|
}
|
|
.f-sb-logo {
|
|
width: 40px; height: 40px;
|
|
background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
|
|
border-radius: 50%;
|
|
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
|
}
|
|
.f-sb-logo img { filter: brightness(0) invert(1); width: 20px; height: 20px; }
|
|
.f-sb-name {
|
|
color: var(--text-primary); font-weight: 900; font-size: 1.15rem;
|
|
letter-spacing: -.4px;
|
|
}
|
|
|
|
.f-sb-nav { padding: 8px 8px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
|
|
.f-sb-bottom { padding: 8px 8px 16px; border-top: 1px solid var(--border); }
|
|
|
|
.f-sb-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 14px;
|
|
|
|
width: 100%;
|
|
padding: 10px 12px;
|
|
|
|
cursor: pointer;
|
|
transition: background .15s, color .15s;
|
|
|
|
color: var(--text-primary);
|
|
font: inherit;
|
|
font-size: .92rem;
|
|
font-weight: 500;
|
|
text-align: left;
|
|
|
|
border: none;
|
|
background: none;
|
|
border-radius: 10px;
|
|
}
|
|
.f-sb-item:hover { background: var(--hover-bg); }
|
|
.f-sb-item.active { font-weight: 800; }
|
|
.f-sb-item svg { flex-shrink: 0; }
|
|
|
|
.f-sb-item.f-sb-create {
|
|
color: var(--teal);
|
|
}
|
|
.f-sb-item.f-sb-create svg { color: var(--teal); }
|
|
|
|
.f-sb-divider {
|
|
height: 1px; background: var(--border);
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* Unread badge (Instagram red) */
|
|
.f-sb-unread-badge {
|
|
background: #ff3040;
|
|
color: #fff;
|
|
font-size: .65rem;
|
|
font-weight: 800;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
border-radius: 9px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0 5px;
|
|
margin-left: auto;
|
|
}
|
|
|
|
/* ── Profile row at nav bottom ── */
|
|
.f-sb-profile {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 10px 12px; border-radius: 10px;
|
|
cursor: pointer; transition: background .15s;
|
|
width: 100%; border: none; background: none;
|
|
text-align: left; font-family: var(--font);
|
|
}
|
|
.f-sb-profile:hover { background: var(--hover-bg); }
|
|
.f-sb-profile .f-profile-avatar {
|
|
width: 32px; height: 32px;
|
|
border: 2px solid var(--border);
|
|
border-radius: 9px;
|
|
}
|
|
.f-sb-profile .f-profile-avatar-placeholder {
|
|
width: 32px; height: 32px; font-size: 1rem;
|
|
border-radius: 9px;
|
|
}
|
|
.f-sb-profile-info { flex: 1; min-width: 0; }
|
|
.f-sb-profile-name {
|
|
color: var(--text-primary); font-weight: 700; font-size: .85rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.f-sb-profile-login {
|
|
color: var(--muted); font-size: .72rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
|
|
/* ── The drawer (mobile) ── */
|
|
.f-sidebar {
|
|
width: 260px; min-width: 260px;
|
|
background: var(--bg-surface-solid);
|
|
border-right: 1px solid var(--border);
|
|
display: flex; flex-direction: column;
|
|
position: fixed; left: 0; top: 0; height: 100%; z-index: 50;
|
|
transform: translateX(-100%);
|
|
transition: transform .32s cubic-bezier(.4,0,.2,1);
|
|
}
|
|
.f-sidebar.open { transform: translateX(0); }
|
|
|
|
@media (min-width: 900px) {
|
|
.f-sidebar {
|
|
position: relative;
|
|
transform: none;
|
|
width: 244px; min-width: 244px;
|
|
height: 100vh;
|
|
}
|
|
.f-overlay { display: none; }
|
|
}
|
|
|
|
/* ── Right panel (suggestions, Instagram-style) ── */
|
|
.f-right {
|
|
width: 320px; min-width: 320px; padding: 24px 16px 24px 32px;
|
|
border-left: 1px solid transparent;
|
|
background: var(--bg-app);
|
|
display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
|
|
}
|
|
.f-right::-webkit-scrollbar { width: 3px; }
|
|
.f-right::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
|
|
|
|
.f-right-header {
|
|
display: flex; align-items: center; justify-content: space-between;
|
|
margin-bottom: 2px;
|
|
}
|
|
.f-right-label {
|
|
font-size: .8rem; font-weight: 700;
|
|
color: var(--muted);
|
|
}
|
|
.f-right-link {
|
|
font-size: .75rem; font-weight: 700; color: var(--text-primary);
|
|
background: none; border: none; cursor: pointer; font-family: var(--font);
|
|
transition: color .15s;
|
|
}
|
|
.f-right-link:hover { color: var(--muted); }
|
|
|
|
.f-right-profile {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 8px 0; cursor: pointer;
|
|
}
|
|
.f-right-profile-info { flex: 1; min-width: 0; }
|
|
.f-right-profile-name {
|
|
color: var(--text-primary); font-weight: 700; font-size: .86rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.f-right-profile-sub {
|
|
color: var(--muted); font-size: .74rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.f-right-action-btn {
|
|
background: none; border: none; cursor: pointer;
|
|
color: var(--teal); font-family: var(--font);
|
|
font-size: .78rem; font-weight: 700; padding: 6px 10px;
|
|
border-radius: 8px; transition: background .15s, color .15s;
|
|
white-space: nowrap;
|
|
}
|
|
.f-right-action-btn:hover { background: rgba(var(--teal-rgb), .1); }
|
|
|
|
/* Suggestion rows */
|
|
.f-ig-ring {
|
|
width: 40px; height: 40px; border-radius: 50%;
|
|
background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
|
|
display: flex; align-items: center; justify-content: center;
|
|
flex-shrink: 0;
|
|
}
|
|
.f-ig-ring-sm { width: 34px; height: 34px; }
|
|
.f-ig-avatar {
|
|
width: 34px; height: 34px; border-radius: 50%;
|
|
background: var(--bg-app);
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 1rem; overflow: hidden;
|
|
}
|
|
.f-ig-ring-sm .f-ig-avatar { width: 28px; height: 28px; font-size: .85rem; }
|
|
.f-ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
|
|
|
|
.f-right-suggest {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 6px 0;
|
|
}
|
|
.f-right-suggest-info { flex: 1; min-width: 0; }
|
|
.f-right-suggest-name {
|
|
color: var(--text-primary); font-weight: 700; font-size: .86rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.f-right-suggest-sub {
|
|
color: var(--muted); font-size: .74rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
|
|
/* Footer small links */
|
|
.f-right-foot {
|
|
display: flex; flex-wrap: wrap; gap: 4px 12px;
|
|
margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--border);
|
|
}
|
|
.f-right-foot span {
|
|
color: var(--muted2); font-size: .68rem;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.f-right {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
/* ── Profile Component (reused in modal header) ── */
|
|
.f-profile {
|
|
display: flex; align-items: center; gap: 12px;
|
|
padding: 10px 14px; border-radius: 12px;
|
|
cursor: pointer; transition: background .15s;
|
|
border: 1px solid transparent;
|
|
}
|
|
.f-profile:hover {
|
|
background: rgba(var(--teal-rgb), .08);
|
|
border-color: rgba(var(--teal-rgb), .25);
|
|
}
|
|
|
|
.f-profile-avatar {
|
|
width: 40px; height: 40px;
|
|
border-radius: 50%; object-fit: cover;
|
|
flex-shrink: 0; border: 2px solid var(--border);
|
|
}
|
|
.f-profile-avatar-placeholder {
|
|
width: 40px; height: 40px;
|
|
border-radius: 50%; flex-shrink: 0;
|
|
background: var(--bg-input);
|
|
border: 2px solid var(--border);
|
|
display: flex; align-items: center; justify-content: center;
|
|
font-size: 1.3rem;
|
|
}
|
|
|
|
.f-profile-info { flex: 1; min-width: 0; }
|
|
.f-profile-name {
|
|
color: var(--text-primary); font-weight: 700; font-size: .85rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|
|
.f-profile-email {
|
|
color: var(--muted); font-size: .7rem;
|
|
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
|
}
|