global refactoring

This commit is contained in:
SlimusMinus
2026-06-02 01:10:56 +03:00
parent b53207166b
commit fbdcada3d2
26 changed files with 738 additions and 559 deletions

65
src/styles/sidebar.css Normal file
View File

@@ -0,0 +1,65 @@
/* ── Left Sidebar ── */
.f-sidebar {
width: 260px; min-width: 260px;
background: linear-gradient(180deg, #1a2540 0%, #111827 100%);
border-right: 1px solid var(--border);
display: flex; flex-direction: column;
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-sb-head {
padding: 22px 20px 16px;
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;
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.f-sb-name { color: #fff; 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-item {
display: flex; align-items: center; gap: 13px;
padding: 11px 20px; cursor: pointer;
transition: background .15s, color .15s;
color: var(--muted); font-size: .9rem; font-weight: 700;
border-left: 3px solid transparent;
}
.f-sb-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.f-sb-item.active { background: rgba(45,224,200,.1); color: var(--teal); border-left-color: var(--teal); }
/* ── Right Sidebar ── */
.f-right {
width: 220px; min-width: 220px; padding: 16px 12px;
border-left: 1px solid var(--border);
display: flex; flex-direction: column; gap: 14px; overflow-y: auto;
}
.f-right::-webkit-scrollbar { width: 3px; }
.f-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08); 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 rgba(255,255,255,.08);
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(45,224,200,.08); border: 1px solid rgba(45,224,200,.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(45,224,200,.15); transform: translateY(-1px); }