Files
nahodka-front/src/styles/ui.css
2026-08-17 23:17:30 +03:00

92 lines
2.7 KiB
CSS

/* ── Post Button (topbar CTA, Instagram blue) ── */
.f-post-btn {
display: flex; align-items: center; gap: 6px;
padding: 8px 16px; border-radius: 999px;
font-family: var(--font); font-weight: 700; font-size: 0.82rem;
color: #fff;
background: var(--teal);
border: 1px solid transparent;
box-shadow: 0 2px 8px rgba(var(--teal-rgb), .3);
cursor: pointer; transition: all 0.2s ease;
white-space: nowrap;
}
.f-post-btn:hover {
background: var(--teal2);
transform: translateY(-1px);
}
.f-post-btn:active { transform: translateY(0) scale(.98); }
.f-post-btn span {
display: flex; align-items: center; justify-content: center;
width: 16px; height: 16px; border-radius: 50%;
background: rgba(255,255,255,.25);
font-size: 0.9rem; transform: translateY(-1px);
}
/* ── Login Button (topbar) ── */
.f-login-btn {
display: flex; align-items: center; gap: 6px;
padding: 8px 18px; border-radius: 999px;
font-family: var(--font); font-weight: 700; font-size: 0.85rem;
color: var(--teal);
background: var(--bg-input);
border: 1px solid var(--border);
cursor: pointer; transition: all 0.2s ease;
white-space: nowrap;
}
.f-login-btn:hover {
background: rgba(var(--teal-rgb), .1);
border-color: rgba(var(--teal-rgb), .4);
}
.f-login-btn:active { transform: translateY(0) scale(.98); }
/* ── 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: var(--muted); }
.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(var(--teal-rgb), .2); border-top-color: var(--teal);
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
}
/* ── Toast ── */
.f-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
display: flex;
align-items: center;
gap: 10px;
padding: 12px 16px;
border-radius: 12px;
font-size: .9rem;
color: #fff;
box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
z-index: 1000;
animation: f-toast-in .2s ease-out;
}
.f-toast-error { background: #ed4956; }
.f-toast-success { background: #0095f6; }
.f-toast-close {
background: none;
border: none;
color: inherit;
cursor: pointer;
font-size: 1.1rem;
line-height: 1;
padding: 0;
}
@keyframes f-toast-in {
from { opacity: 0; transform: translate(-50%, 8px); }
to { opacity: 1; transform: translate(-50%, 0); }
}