global refactoring
This commit is contained in:
47
src/styles/layout.css
Normal file
47
src/styles/layout.css
Normal file
@@ -0,0 +1,47 @@
|
||||
/* ── App Shell ── */
|
||||
.f-app {
|
||||
display: flex; height: 100vh;
|
||||
background: linear-gradient(135deg, #1a2340 0%, #0d1018 100%);
|
||||
overflow: hidden; font-family: var(--font); position: relative;
|
||||
}
|
||||
|
||||
/* ── Overlay (mobile sidebar backdrop) ── */
|
||||
.f-overlay {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,0.5);
|
||||
z-index: 40; opacity: 0; pointer-events: none; transition: opacity .32s;
|
||||
}
|
||||
.f-overlay.show { opacity: 1; pointer-events: all; }
|
||||
|
||||
/* ── Main Column ── */
|
||||
.f-main {
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
min-width: 0; height: 100vh; overflow: hidden;
|
||||
}
|
||||
|
||||
/* ── Topbar ── */
|
||||
.f-topbar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
background: rgba(13,16,24,.7); backdrop-filter: blur(12px);
|
||||
position: sticky; top: 0; z-index: 10;
|
||||
}
|
||||
.f-menu-btn {
|
||||
background: none; border: none; cursor: pointer;
|
||||
padding: 6px; border-radius: 8px; transition: background .15s;
|
||||
flex-shrink: 0; line-height: 0; width: 32px;
|
||||
}
|
||||
.f-menu-btn:hover { background: rgba(255,255,255,.08); }
|
||||
.f-topbar-center { flex: 1; display: flex; justify-content: center; }
|
||||
.f-topbar-spacer { width: 32px; flex-shrink: 0; }
|
||||
|
||||
/* ── Feed Wrap + Scroll ── */
|
||||
.f-wrap { display: flex; flex: 1; overflow: hidden; min-height: 0; }
|
||||
|
||||
.f-feed {
|
||||
flex: 1; overflow-y: scroll; min-height: 0;
|
||||
padding: 16px; display: flex; flex-direction: column; gap: 14px;
|
||||
}
|
||||
.f-feed::-webkit-scrollbar { width: 4px; }
|
||||
.f-feed::-webkit-scrollbar-track { background: transparent; }
|
||||
.f-feed::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }
|
||||
Reference in New Issue
Block a user