change design

This commit is contained in:
SlimusMinus
2026-08-17 23:17:30 +03:00
parent ed92e45f84
commit f02b25e8f3
24 changed files with 1199 additions and 799 deletions

View File

@@ -1,91 +1,217 @@
/* ── Left Navigation (Instagram-style) ── */
.f-sb-head {
padding: 22px 20px 16px;
padding: 16px 20px 20px;
display: flex; align-items: center; gap: 11px;
border-bottom: 1px solid var(--border);
}
.f-sb-logo {
width: 36px; height: 36px;
background: linear-gradient(135deg, var(--teal2), var(--teal));
border-radius: 10px;
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-name { color: var(--text-primary); font-weight: 900; font-size: 1.1rem; letter-spacing: -.3px; }
.f-sb-nav { padding: 12px 0; flex: 1; }
.f-sb-bottom { padding: 12px 0; border-top: 1px solid var(--border); }
.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: 13px;
gap: 14px;
width: 100%;
padding: 11px 20px;
padding: 10px 12px;
cursor: pointer;
transition: background .15s, color .15s;
color: var(--muted);
color: var(--text-primary);
font: inherit;
font-size: .9rem;
font-weight: 700;
font-size: .92rem;
font-weight: 500;
text-align: left;
border: none;
border-left: 3px solid transparent;
background: none;
border-radius: 10px;
}
.f-sb-item:hover { background: var(--hover-bg); color: var(--text-primary); }
.f-sb-item.active { background: rgba(var(--teal-rgb), .1); color: var(--teal); border-left-color: var(--teal); }
.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;
}
.f-right::-webkit-scrollbar { width: 3px; }
.f-right::-webkit-scrollbar-thumb { background: var(--muted2); border-radius: 2px; }
.f-right-label {
font-size: .65rem; font-weight: 900;
text-transform: uppercase; letter-spacing: .8px; color: var(--muted2);
}
.f-right-empty {
flex: 1; display: flex; flex-direction: column;
align-items: center; justify-content: center;
gap: 12px; text-align: center;
border: 1.5px dashed var(--border);
border-radius: 16px; padding: 20px; min-height: 200px;
}
.f-right-empty-icon { font-size: 2rem; opacity: .2; }
.f-right-empty-text { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.f-add-promo-btn {
background: rgba(var(--teal-rgb), .08); border: 1px solid rgba(var(--teal-rgb), .25);
border-radius: 10px; padding: 9px 14px;
color: var(--teal); font-family: var(--font);
font-size: .8rem; font-weight: 800; cursor: pointer;
transition: background .2s, transform .15s;
}
.f-add-promo-btn:hover { background: rgba(var(--teal-rgb), .15); transform: translateY(-1px); }
/* 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);
}
.f-sb-profile .f-profile-avatar-placeholder {
width: 32px; height: 32px; font-size: 1rem;
}
.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);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px);
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);
position: fixed; left: 0; top: 0; height: 100%; z-index: 50;
}
.f-sidebar.open { transform: translateX(0); }
.f-right {
width: 220px; min-width: 220px; padding: 16px 12px;
border-left: 1px solid var(--border);
background: var(--bg-surface);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
@media (min-width: 900px) {
.f-sidebar {
position: relative;
transform: none;
width: 244px; min-width: 244px;
height: 100vh;
}
.f-overlay { display: none; }
}
/* ── Profile Component ── */
/* ── 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;
@@ -93,20 +219,20 @@
border: 1px solid transparent;
}
.f-profile:hover {
background: rgba(45, 224, 200, .08);
border-color: rgba(45, 224, 200, .25);
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(--teal);
flex-shrink: 0; border: 2px solid var(--border);
}
.f-profile-avatar-placeholder {
width: 40px; height: 40px;
border-radius: 50%; flex-shrink: 0;
background: rgba(45, 224, 200, .15);
border: 2px solid rgba(45, 224, 200, .3);
background: var(--bg-input);
border: 2px solid var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 1.3rem;
}
@@ -120,9 +246,3 @@
color: var(--muted); font-size: .7rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 900px) {
.f-right {
display: none;
}
}