added image for posts
This commit is contained in:
@@ -18,14 +18,14 @@
|
||||
overflow: hidden; font-family: var(--font); position: relative;
|
||||
}
|
||||
|
||||
/* Overlay */
|
||||
/* ── Overlay ── */
|
||||
.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; }
|
||||
|
||||
/* Left Sidebar */
|
||||
/* ── Left Sidebar ── */
|
||||
.f-sidebar {
|
||||
width: 260px; min-width: 260px;
|
||||
background: linear-gradient(180deg, #1a2540 0%, #111827 100%);
|
||||
@@ -61,16 +61,13 @@
|
||||
.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); }
|
||||
|
||||
/* Main */
|
||||
/* ── Main ── */
|
||||
.f-main {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
min-width: 0; height: 100vh; overflow: hidden;
|
||||
}
|
||||
/* Topbar */
|
||||
|
||||
/* ── Topbar ── */
|
||||
.f-topbar {
|
||||
display: flex; align-items: center; gap: 12px;
|
||||
padding: 14px 16px;
|
||||
@@ -88,118 +85,52 @@
|
||||
.f-topbar-spacer { width: 32px; flex-shrink: 0; }
|
||||
|
||||
.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;
|
||||
|
||||
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);
|
||||
-webkit-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;
|
||||
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;
|
||||
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;
|
||||
}
|
||||
|
||||
/* glow при наведении */
|
||||
.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);
|
||||
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);
|
||||
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;
|
||||
}
|
||||
|
||||
.f-post-btn span {
|
||||
transform: translateY(-2px);
|
||||
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);
|
||||
}
|
||||
|
||||
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
|
||||
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* ── Feed wrap ── */
|
||||
.f-wrap { display: flex; flex: 1; overflow: hidden; min-height: 0; }
|
||||
|
||||
/* Feed wrap */
|
||||
.f-wrap {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
min-height: 0;
|
||||
}
|
||||
/* Feed */
|
||||
.f-feed {
|
||||
flex: 1;
|
||||
overflow-y: scroll;
|
||||
min-height: 0;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
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; }
|
||||
|
||||
/* States */
|
||||
/* ── States ── */
|
||||
.f-center {
|
||||
flex: 1; display: flex; flex-direction: column;
|
||||
align-items: center; justify-content: center;
|
||||
@@ -214,9 +145,8 @@
|
||||
border: 2px solid rgba(45,224,200,.2); border-top-color: var(--teal);
|
||||
border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0;
|
||||
}
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* Ad Card */
|
||||
/* ── Ad Card ── */
|
||||
.f-card {
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(155deg, #1d2436, #131720);
|
||||
@@ -225,28 +155,49 @@
|
||||
}
|
||||
.f-card:hover { border-color: rgba(45,224,200,.3); transform: translateY(-2px); }
|
||||
|
||||
.f-card-inner {
|
||||
display: flex; flex-direction: row; min-height: 160px;
|
||||
}
|
||||
|
||||
.f-card-img {
|
||||
width: 100%; height: 160px;
|
||||
width: 180px; min-width: 180px;
|
||||
background: linear-gradient(135deg, #1a3a4a 0%, #0f2235 100%);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
position: relative; overflow: hidden;
|
||||
position: relative; overflow: hidden; flex-shrink: 0;
|
||||
}
|
||||
.f-card-img img { width: 100%; height: 100%; object-fit: cover; }
|
||||
.f-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
|
||||
.f-card-emoji { font-size: 3rem; opacity: .22; }
|
||||
|
||||
.f-cat-badge {
|
||||
position: absolute; top: 10px; left: 10px;
|
||||
background: rgba(13,16,24,.8); backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border); border-radius: 20px;
|
||||
padding: 3px 10px; font-size: .72rem; font-weight: 700; color: var(--teal);
|
||||
background: rgba(13,16,24,.8);
|
||||
backdrop-filter: blur(8px);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 20px;
|
||||
padding: 3px 10px;
|
||||
font-size: .72rem;
|
||||
font-weight: 700;
|
||||
color: var(--teal);
|
||||
}
|
||||
.f-card-badges {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 6px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.f-type-badge {
|
||||
position: absolute; top: 10px; right: 10px;
|
||||
border-radius: 20px; padding: 3px 10px; font-size: .72rem; font-weight: 900;
|
||||
border-radius: 20px;
|
||||
padding: 3px 10px;
|
||||
font-size: .72rem;
|
||||
font-weight: 900;
|
||||
}
|
||||
.f-type-loss { background: rgba(255,107,107,.2); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
|
||||
.f-type-found { background: rgba(45,224,200,.2); color: #2de0c8; border: 1px solid rgba(45,224,200,.3); }
|
||||
.f-type-loss { background: rgba(255,107,107,.2); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
|
||||
.f-type-found { background: rgba(45,224,200,.2); color: #2de0c8; border: 1px solid rgba(45,224,200,.3); }
|
||||
|
||||
.f-card-body { padding: 14px 16px; }
|
||||
.f-card-body {
|
||||
flex: 1; padding: 14px 16px;
|
||||
display: flex; flex-direction: column; min-width: 0;
|
||||
}
|
||||
.f-card-title { color: #fff; font-weight: 900; font-size: 1rem; margin-bottom: 5px; line-height: 1.3; }
|
||||
.f-card-desc {
|
||||
color: var(--muted); font-size: .82rem; line-height: 1.5; margin-bottom: 10px;
|
||||
@@ -271,6 +222,7 @@
|
||||
.f-card-foot {
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding-top: 10px; border-top: 1px solid var(--border);
|
||||
margin-top: auto;
|
||||
}
|
||||
.f-card-phone {
|
||||
color: var(--teal); font-size: .82rem; font-weight: 700;
|
||||
@@ -288,7 +240,7 @@
|
||||
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
|
||||
}
|
||||
|
||||
/* Right Sidebar */
|
||||
/* ── Right Sidebar ── */
|
||||
.f-right {
|
||||
width: 220px; min-width: 220px; padding: 16px 12px;
|
||||
border-left: 1px solid var(--border);
|
||||
@@ -318,7 +270,7 @@
|
||||
}
|
||||
.f-add-promo-btn:hover { background: rgba(45,224,200,.15); transform: translateY(-1px); }
|
||||
|
||||
/* Modal */
|
||||
/* ── Modal ── */
|
||||
.f-modal-bg {
|
||||
position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
@@ -372,8 +324,8 @@
|
||||
color: var(--muted); font-family: var(--font); font-size: .85rem;
|
||||
font-weight: 800; cursor: pointer; text-align: center; transition: all .2s;
|
||||
}
|
||||
.f-type-opt.loss { border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.12); color: #ff6b6b; }
|
||||
.f-type-opt.found { border-color: rgba(45,224,200,.5); background: rgba(45,224,200,.1); color: #2de0c8; }
|
||||
.f-type-opt.loss { border-color: rgba(255,107,107,.5); background: rgba(255,107,107,.12); color: #ff6b6b; }
|
||||
.f-type-opt.found { border-color: rgba(45,224,200,.5); background: rgba(45,224,200,.1); color: #2de0c8; }
|
||||
|
||||
.f-map-pick {
|
||||
height: 80px; background: linear-gradient(135deg, #0f2235, #0a1a2e);
|
||||
@@ -402,4 +354,37 @@
|
||||
width: 16px; height: 16px;
|
||||
border: 2px solid rgba(8,35,32,.3); border-top-color: #082320;
|
||||
border-radius: 50%; animation: spin .7s linear infinite;
|
||||
}
|
||||
}
|
||||
|
||||
/* ── Загрузка фото ── */
|
||||
.f-img-upload-label {
|
||||
display: flex; align-items: center; justify-content: center; gap: 8px;
|
||||
border: 2px dashed rgba(255,255,255,.15); border-radius: 12px; padding: 20px;
|
||||
cursor: pointer; color: var(--muted); font-size: .85rem; font-family: var(--font);
|
||||
transition: border-color .2s, background .2s;
|
||||
}
|
||||
.f-img-upload-label:hover { border-color: var(--teal); background: rgba(45,224,200,.05); color: var(--teal); }
|
||||
.f-img-input { display: none; }
|
||||
|
||||
/* ── Превью фото ── */
|
||||
.f-img-preview-wrap { position: relative; display: inline-block; width: 100%; }
|
||||
.f-img-preview { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; display: block; }
|
||||
.f-img-remove {
|
||||
position: absolute; top: 8px; right: 8px;
|
||||
background: rgba(0,0,0,0.55); border: none; border-radius: 50%;
|
||||
width: 28px; height: 28px;
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
cursor: pointer; color: #fff; padding: 0; transition: background .2s;
|
||||
}
|
||||
.f-img-remove:hover { background: rgba(0,0,0,0.8); }
|
||||
|
||||
.f-card-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--border);
|
||||
margin-top: auto;
|
||||
}
|
||||
.f-card-foot-left { display: flex; align-items: center; }
|
||||
.f-card-foot-right { display: flex; align-items: center; gap: 6px; }
|
||||
Reference in New Issue
Block a user