change design

This commit is contained in:
SlimusMinus
2026-08-17 23:17:30 +03:00
parent ed92e45f84
commit f02b25e8f3
24 changed files with 1199 additions and 799 deletions

View File

@@ -1,70 +1,192 @@
/* ── Ad Card ── */
/* ── Post Card (Instagram-style vertical post) ── */
.f-card {
flex-shrink: 0;
background: var(--bg-card);
border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
transition: border-color .2s, transform .2s, background .2s; cursor: pointer;
border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
transition: border-color .2s;
cursor: pointer;
}
.f-card:hover { border-color: rgba(var(--teal-rgb), .3); transform: translateY(-2px); }
.f-card:hover { border-color: var(--muted2); }
.f-card-inner {
display: flex; flex-direction: row; min-height: 180px;
/* ── Post header ── */
.f-card-head {
display: flex; align-items: center; gap: 12px;
padding: 12px 14px;
}
/* Image Panel */
.f-card-avatar-ring {
width: 42px; height: 42px; border-radius: 50%;
background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.f-card-avatar {
width: 36px; height: 36px; border-radius: 50%;
background: var(--bg-card);
display: flex; align-items: center; justify-content: center;
font-size: 1.05rem; overflow: hidden;
}
.f-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.f-card-author { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.f-card-author-name {
color: var(--text-primary); font-weight: 800; font-size: 1.1rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}
.f-card-author-name.f-truncatable { cursor: pointer; }
.f-card-author-name.f-expanded {
white-space: normal;
overflow: visible;
text-overflow: clip;
}
.f-card-author-loc {
color: var(--muted); font-size: .78rem;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-card-head-side { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
/* ── Image panel ── */
.f-card-img {
width: 180px; min-width: 180px;
align-self: stretch;
position: relative;
width: 100%;
aspect-ratio: 1 / 1;
background: var(--bg-card-img);
display: flex; align-items: center; justify-content: center;
position: relative; overflow: hidden; flex-shrink: 0;
overflow: hidden;
}
.f-card-img img {
width: 100%; height: 100%;
object-fit: cover; object-position: center;
display: block;
}
.f-card-emoji { font-size: 4rem; opacity: .85; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.f-card-reward {
position: absolute; top: 12px; right: 12px; z-index: 2;
background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
border-radius: 999px; padding: 5px 12px;
font-size: .75rem; font-weight: 800;
color: #f5d76e;
}
.f-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; position: absolute; inset: 0; }
.f-card-emoji { font-size: 3rem; opacity: .22; }
/* Badges */
.f-card-badges {
display: flex; align-items: center;
gap: 6px; margin-bottom: 8px;
position: relative;
/* ── Action row ── */
.f-card-actions {
display: flex; align-items: center; justify-content: space-between;
padding: 10px 12px 4px;
}
.f-cat-badge {
background: var(--bg-surface); 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-actions-left, .f-card-actions-right {
display: flex; align-items: center; gap: 6px;
}
.f-type-badge {
border-radius: 20px; padding: 3px 10px;
font-size: .72rem; font-weight: 900;
.f-card-icon-btn {
background: none; border: none; cursor: pointer;
color: var(--text-primary);
width: 38px; height: 38px;
display: flex; align-items: center; justify-content: center;
border-radius: 50%;
transition: background .15s, transform .15s, color .15s;
padding: 0;
}
.f-card-icon-btn:hover { background: var(--hover-bg); transform: scale(1.08); }
.f-card-icon-btn:active { transform: scale(.92); }
.f-card-icon-btn.liked { color: #ed4956; }
.f-card-icon-btn.liked svg { fill: #ed4956; stroke: #ed4956; }
.f-card-icon-btn svg { transition: transform .15s; width: 24px; height: 24px; }
.f-card-like-count {
color: var(--text-primary); font-weight: 800; font-size: .9rem;
line-height: 1;
}
.f-card-reward-text {
display: inline-block;
font-size: .74rem; font-weight: 600; letter-spacing: .02em;
white-space: nowrap;
background: linear-gradient(110deg, #e6b800 30%, #ffec99 50%, #e6b800 70%);
background-size: 200% 100%;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: f-reward-shimmer 5s ease-in-out infinite;
}
@keyframes f-reward-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
/* ── Likes ── */
.f-card-likes {
padding: 2px 16px;
color: var(--text-primary); font-weight: 800; font-size: .9rem;
}
/* ── Caption ── */
.f-card-caption {
padding: 6px 16px;
color: var(--text-primary); font-size: .87rem; line-height: 1.5;
}
.f-card-caption-name { font-weight: 800; margin-right: 6px; }
.f-card-caption-text {
color: var(--text-primary);
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.f-card-caption-text.f-truncatable { cursor: pointer; }
.f-card-caption-text.f-expanded {
-webkit-line-clamp: unset;
line-clamp: unset;
overflow: visible;
}
/* ── Meta pills ── */
.f-card-meta {
display: flex; flex-wrap: wrap; align-items: center;
gap: 6px; padding: 8px 16px 4px;
}
.f-card-meta .f-date-pill {
margin-left: auto;
}
.f-type-loss { background: rgba(255,107,107,.2); color: #ff6b6b; border: 1px solid rgba(255,107,107,.3); }
.f-type-found { background: rgba(var(--teal-rgb), .2); color: var(--teal); border: 1px solid rgba(var(--teal-rgb), .3); }
.f-meta-pill {
display: inline-flex; align-items: center; gap: 4px;
background: var(--hover-bg);
border-radius: 999px; padding: 3px 10px;
font-size: .74rem; color: var(--muted);
border: 1px solid transparent;
}
.f-cat-badge {
display: inline-flex; align-items: center;
background: rgba(var(--teal-rgb), .08);
border: 1px solid rgba(var(--teal-rgb), .25);
border-radius: 999px; padding: 3px 10px;
font-size: .74rem; font-weight: 700; color: var(--teal);
}
.f-type-badge {
border-radius: 999px; padding: 3px 10px;
font-size: .74rem; font-weight: 800;
}
.f-type-loss { background: rgba(237,73,86,.1); color: #ed4956; border: 1px solid rgba(237,73,86,.25); }
.f-type-found { background: rgba(var(--teal-rgb), .1); color: var(--teal); border: 1px solid rgba(var(--teal-rgb), .25); }
/* Status badge for closed/found posts */
.f-status-badge {
border-radius: 20px; padding: 2px 8px;
font-size: .7rem; font-weight: 900;
border-radius: 999px; padding: 2px 8px;
font-size: .7rem; font-weight: 800;
display: inline-block; vertical-align: middle;
margin-left: 8px;
}
.f-status-closed {
background: rgba(72,187,120,.2); color: #48bb78; border: 1px solid rgba(72,187,120,.3);
background: rgba(48,168,94,.12); color: #30a85e; border: 1px solid rgba(48,168,94,.3);
}
/* ── Role badges (LOST_AND_FOUND / METRO) ── */
.f-role-badge {
display: inline-flex; align-items: center; gap: 4px;
border-radius: 20px; padding: 3px 8px;
border-radius: 999px; padding: 3px 8px;
font-size: .68rem; font-weight: 800;
white-space: nowrap;
}
.f-role-lost-found {
background: rgba(255,200,50,.18); color: #f5c842;
border: 1px solid rgba(255,200,50,.3);
background: rgba(255,200,50,.15); color: #b8890f;
border: 1px solid rgba(255,200,50,.35);
}
.f-role-metro {
background: rgba(227,6,19,.15); color: #e30613;
background: rgba(227,6,19,.1); color: #e30613;
border: 1px solid rgba(227,6,19,.25);
}
.f-role-metro-letter {
@@ -74,121 +196,49 @@
font-size: 9px; font-weight: 900; line-height: 1;
}
/* Role-based card border */
.f-card-role-lost-found {
border-color: rgba(255,200,50,.3);
box-shadow: 0 0 20px rgba(255,200,50,.08), inset 0 0 20px rgba(255,200,50,.04);
}
.f-card-role-lost-found:hover {
border-color: rgba(255,200,50,.5);
box-shadow: 0 0 30px rgba(255,200,50,.15), inset 0 0 25px rgba(255,200,50,.06);
}
.f-card-role-metro {
border-color: rgba(227,6,19,.25);
box-shadow: 0 0 20px rgba(227,6,19,.08), inset 0 0 20px rgba(227,6,19,.04);
}
.f-card-role-metro:hover {
border-color: rgba(227,6,19,.45);
box-shadow: 0 0 30px rgba(227,6,19,.15), inset 0 0 25px rgba(227,6,19,.06);
}
/* Body */
.f-card-body {
flex: 1; padding: 14px 16px;
display: flex; flex-direction: column; min-width: 0;
}
.f-card-title { color: var(--text-primary); 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;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Meta pills */
.f-card-meta {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-bottom: 10px;
}
.f-meta-pill {
display: flex;
align-items: center;
gap: 4px;
background: var(--hover-bg);
border: 1px solid var(--border);
border-radius: 20px;
padding: 3px 9px;
font-size: .73rem;
color: var(--muted);
}
.f-date-pill {
cursor: pointer;
position: relative;
margin-left: auto;
}
.f-date-pill:hover {
background: rgba(128,128,128,.12);
}
/* Map stub */
.f-card-map {
width: 100%; height: 76px;
background: var(--bg-input); margin-bottom: 14px; border-radius: 12px;
border: 1px solid var(--border);
display: flex; align-items: center; justify-content: center;
gap: 8px; color: var(--muted); font-size: .78rem;
cursor: pointer; transition: border-color .2s;
font-family: var(--font); font-weight: 600;
}
.f-card-map:hover { border-color: rgba(var(--teal-rgb), .3); color: var(--teal); }
/* Footer */
/* ── Footer (phone + owner actions) ── */
.f-card-foot {
display: flex; align-items: center; justify-content: space-between;
padding-top: 10px; border-top: 1px solid var(--border); margin-top: auto;
gap: 8px; padding: 10px 16px 12px;
flex-wrap: wrap;
}
.f-card-foot-left { display: flex; align-items: center; }
.f-card-foot-right { display: flex; align-items: center; gap: 6px; }
.f-card-foot-left { display: flex; align-items: center; min-width: 0; }
.f-card-foot-right { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.f-card-phone {
color: var(--teal); font-size: .82rem; font-weight: 700;
text-decoration: none; display: flex; align-items: center; gap: 5px;
color: var(--teal); font-size: .85rem; font-weight: 700;
text-decoration: none; display: flex; align-items: center; gap: 6px;
}
.f-card-date { color: var(--muted2); font-size: .75rem; }
.f-like-btn {
.f-card-contact {
display: flex; align-items: center; gap: 5px;
background: none; border: 1px solid var(--border);
border-radius: 20px; padding: 5px 11px; cursor: pointer;
font-family: var(--font); font-size: .8rem; font-weight: 700;
color: var(--muted); transition: all .2s; line-height: 1;
background: rgba(var(--teal-rgb), .1);
border: 1px solid rgba(var(--teal-rgb), .3);
border-radius: 999px; padding: 12px 32px;
cursor: pointer; font-family: var(--font);
font-size: 1.05rem; font-weight: 700;
color: var(--teal); transition: all .2s;
}
.f-like-btn:hover, .f-like-btn.liked {
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
.f-card-contact:hover {
background: rgba(var(--teal-rgb), .18);
border-color: rgba(var(--teal-rgb), .5);
}
/* Closed/Found card styling */
.f-card-closed {
opacity: 0.7;
border-color: rgba(72,187,120,.3);
}
.f-card-closed:hover {
border-color: rgba(72,187,120,.5);
transform: none;
}
.f-card-closed .f-card-img {
filter: grayscale(0.5);
}
.f-card-closed .f-card-title {
text-decoration: line-through;
opacity: 0.7;
opacity: .8;
border-color: rgba(48,168,94,.3);
}
.f-card-closed:hover { border-color: rgba(48,168,94,.5); }
.f-card-closed .f-card-img { filter: grayscale(.5); }
.f-card-closed .f-card-caption-name { text-decoration: line-through; opacity: .7; }
/* Edit & Delete buttons */
.f-card-edit-btn,
.f-card-delete-btn {
display: flex; align-items: center; justify-content: center;
background: none; border: 1px solid var(--border);
border-radius: 8px; width: 32px; height: 32px;
border-radius: 50%; width: 34px; height: 34px;
cursor: pointer; transition: all .2s;
color: var(--muted); padding: 0;
}
@@ -196,51 +246,20 @@
border-color: rgba(var(--teal-rgb), .5); color: var(--teal); background: rgba(var(--teal-rgb), .08);
}
.f-card-delete-btn:hover {
border-color: rgba(255,107,107,.5); color: #ff6b6b; background: rgba(255,107,107,.08);
border-color: rgba(237,73,86,.5); color: #ed4956; background: rgba(237,73,86,.08);
}
/* Mark as Found button */
.f-card-found-btn {
display: flex; align-items: center; gap: 5px;
background: rgba(72,187,120,.1); border: 1px solid rgba(72,187,120,.3);
border-radius: 20px; padding: 5px 11px;
background: rgba(48,168,94,.1); border: 1px solid rgba(48,168,94,.3);
border-radius: 999px; padding: 5px 11px;
cursor: pointer; transition: all .2s;
font-family: var(--font); font-size: .75rem; font-weight: 700;
color: #48bb78;
color: #30a85e;
}
.f-card-found-btn:hover {
background: rgba(72,187,120,.2); border-color: rgba(72,187,120,.5);
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(72,187,120,.2);
}
@media (max-width: 600px) {
/* Карточка становится вертикальной */
.f-card-inner {
flex-direction: column;
min-height: unset;
}
/* Картинка — горизонтальная полоса сверху */
.f-card-img {
width: 100%;
min-width: unset;
height: 180px;
}
/* Убираем кнопку карты на мобилке — занимает много места */
.f-card-map {
display: none;
}
/* Чуть меньше паддинг в теле карточки */
.f-card-body {
padding: 12px;
}
.f-card-phone {
font-size: 0.72rem;
}
background: rgba(48,168,94,.18); border-color: rgba(48,168,94,.5);
}
/* ── Calendar Popup ── */
@@ -250,7 +269,7 @@
border-radius: 12px;
padding: 10px;
width: 220px;
box-shadow: 0 8px 32px rgba(0,0,0,.25);
box-shadow: 0 8px 32px rgba(0,0,0,.2);
}
.f-date-calendar-overlay {
position: fixed;
@@ -265,6 +284,7 @@
margin-bottom: 8px;
font-size: .82rem;
font-weight: 700;
color: var(--text-primary);
}
.f-cal-header button {
background: none;
@@ -277,7 +297,7 @@
line-height: 1;
}
.f-cal-header button:hover {
background: rgba(128,128,128,.15);
background: var(--hover-bg);
}
.f-cal-grid {
display: grid;
@@ -311,11 +331,7 @@
color: #d4af37;
user-select: none;
}
.f-reward-checkbox input {
display: none;
}
.f-reward-checkbox input { display: none; }
.f-reward-checkmark {
width: 20px;
height: 20px;
@@ -325,12 +341,10 @@
transition: .2s;
position: relative;
}
.f-reward-checkbox input:checked + .f-reward-checkmark {
background: #d4af37;
box-shadow: 0 0 10px rgba(212, 175, 55, .35);
}
.f-reward-checkbox input:checked + .f-reward-checkmark::after {
content: "";
position: absolute;
@@ -342,23 +356,13 @@
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.f-reward-text {
font-size: .9rem;
font-weight: 700;
}
.f-card-img {
.f-date-pill {
cursor: pointer;
position: relative;
}
.f-card-reward {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
font-size: .72rem;
font-weight: 800;
color: #f5d76e;
}
.f-date-pill:hover { background: var(--hover-bg); }