global refactoring
This commit is contained in:
50
src/styles/ui.css
Normal file
50
src/styles/ui.css
Normal file
@@ -0,0 +1,50 @@
|
||||
/* ── Post Button (topbar CTA) ── */
|
||||
.f-post-btn {
|
||||
display: flex; align-items: center; gap: 10px;
|
||||
padding: 12px 28px; border-radius: 16px;
|
||||
font-family: var(--font); font-weight: 900; font-size: 0.95rem; letter-spacing: 0.3px;
|
||||
color: #eafffb;
|
||||
background: rgba(45,224,200,0.12); backdrop-filter: blur(14px);
|
||||
border: 1px solid rgba(45,224,200,0.25);
|
||||
box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 0 12px rgba(45,224,200,0.15), 0 0 18px rgba(45,224,200,0.15);
|
||||
cursor: pointer; transition: all 0.25s ease;
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
.f-post-btn::before {
|
||||
content: ""; position: absolute; inset: 0;
|
||||
background: linear-gradient(120deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05) 40%, transparent 60%);
|
||||
opacity: 0.4; pointer-events: none;
|
||||
}
|
||||
.f-post-btn:hover {
|
||||
transform: translateY(-2px) scale(1.02);
|
||||
border-color: rgba(45,224,200,0.5);
|
||||
box-shadow: 0 12px 32px rgba(0,0,0,0.45), inset 0 0 18px rgba(45,224,200,0.25), 0 0 26px rgba(45,224,200,0.35);
|
||||
}
|
||||
.f-post-btn:active {
|
||||
transform: translateY(0) scale(0.98);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.4), inset 0 0 10px rgba(45,224,200,0.2);
|
||||
}
|
||||
.f-post-btn span {
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
width: 22px; height: 22px; border-radius: 50%;
|
||||
background: rgba(45,224,200,0.2); box-shadow: 0 0 10px rgba(45,224,200,0.4);
|
||||
font-size: 1.2rem; transform: translateY(-2px);
|
||||
}
|
||||
|
||||
/* ── Feed Empty / Error States ── */
|
||||
.f-center {
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
gap: 12px; color: var(--muted); text-align: center; padding: 40px;
|
||||
}
|
||||
.f-center-icon { font-size: 2.8rem; opacity: .3; }
|
||||
.f-center-title { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,.5); }
|
||||
.f-center-sub { font-size: .82rem; line-height: 1.6; }
|
||||
|
||||
/* ── Loading Spinner ── */
|
||||
.f-spinner-wrap { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
|
||||
.f-spinner {
|
||||
width: 20px; height: 20px;
|
||||
border: 2px solid rgba(45,224,200,.2); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user