Add Docker build and deploy pipeline
Some checks failed
deploy-frontend / deploy (push) Failing after 11s
Some checks failed
deploy-frontend / deploy (push) Failing after 11s
This commit is contained in:
@@ -232,16 +232,6 @@ button.f-card-reward-btn:focus-visible {
|
||||
.f-type-loss { background: rgba(237,73,86,.1); color: #ed4956; border: 1px solid rgba(237,73,86,.25); }
|
||||
.f-type-found { background: rgba(48,168,94,.1); color: #30a85e; border: 1px solid rgba(48,168,94,.25); }
|
||||
|
||||
/* Status badge for closed/found posts */
|
||||
.f-status-badge {
|
||||
border-radius: 999px; padding: 2px 8px;
|
||||
font-size: .7rem; font-weight: 800;
|
||||
display: inline-block; vertical-align: middle;
|
||||
}
|
||||
.f-status-closed {
|
||||
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;
|
||||
@@ -264,6 +254,26 @@ button.f-card-reward-btn:focus-visible {
|
||||
font-size: 9px; font-weight: 900; line-height: 1;
|
||||
}
|
||||
|
||||
/* ── Плашка «Найдено» поверх фото ──
|
||||
Живёт на самом изображении, а не в шапке карточки: при быстром скролле
|
||||
шапка проезжает мимо, фото с плашкой остаётся в кадре. */
|
||||
.f-img-found-badge {
|
||||
position: absolute; top: 12px; left: 12px; z-index: 3;
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
padding: 5px 12px 5px 10px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #35c46f, #1f9d55);
|
||||
border: 1px solid rgba(255,255,255,.35);
|
||||
color: #fff;
|
||||
font-size: .76rem; font-weight: 800; line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 2px 10px rgba(0,0,0,.3);
|
||||
/* Не перехватываем клик по фото (открытие карусели). */
|
||||
pointer-events: none;
|
||||
}
|
||||
.f-img-found-badge svg { flex-shrink: 0; }
|
||||
.f-img-found-badge-pet { background: linear-gradient(135deg, #ffb03a, #ff7a45); }
|
||||
|
||||
/* ── Footer (phone + owner actions) ── */
|
||||
.f-card-foot {
|
||||
display: flex; flex-direction: row; align-items: center; justify-content: space-between;
|
||||
@@ -291,14 +301,29 @@ button.f-card-reward-btn:focus-visible {
|
||||
border-color: rgba(var(--teal-rgb), .5);
|
||||
}
|
||||
|
||||
/* Closed/Found card styling */
|
||||
/* Closed/Found card styling.
|
||||
Приглушение намеренно лёгкое: объявление найдено — это хорошая новость,
|
||||
поэтому НЕ гасим карточку целиком (иначе она читается как удалённая).
|
||||
Работают только фото (grayscale/brightness), текст остаётся читаемым. */
|
||||
.f-card-closed {
|
||||
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; }
|
||||
/* Зелёное кольцо вместо красного/зелёного типа: статус «найдено» здесь
|
||||
важнее того, потеря это была или находка (иначе кольцо спорит с плашкой). */
|
||||
.f-card-closed.f-card-loss,
|
||||
.f-card-closed.f-card-found {
|
||||
box-shadow: 0 0 0 2px rgba(48,168,94,.45);
|
||||
}
|
||||
.f-card-closed:hover,
|
||||
.f-card-closed:hover.f-card-loss,
|
||||
.f-card-closed:hover.f-card-found {
|
||||
border-color: rgba(48,168,94,.5);
|
||||
box-shadow: 0 0 0 2px rgba(48,168,94,.65);
|
||||
}
|
||||
.f-card-closed .f-card-img img,
|
||||
.f-card-closed .f-card-emoji {
|
||||
filter: grayscale(.6) brightness(.85);
|
||||
}
|
||||
|
||||
/* Edit & Delete buttons */
|
||||
.f-card-edit-btn,
|
||||
@@ -332,13 +357,28 @@ button.f-card-reward-btn:focus-visible {
|
||||
.f-card-found-btn:hover {
|
||||
background: rgba(48,168,94,.18); border-color: rgba(48,168,94,.5);
|
||||
}
|
||||
/* Возврат закрытого объявления в ленту (только в админ-панели). */
|
||||
.f-card-reopen-btn {
|
||||
background: rgba(var(--teal-rgb),.1); border-color: rgba(var(--teal-rgb),.3);
|
||||
color: var(--teal);
|
||||
/* «Найдено ✓ <дата>» — подтверждение уже применённого действия: неактивное,
|
||||
но всё ещё читаемое, без серости «заблокированной» кнопки. */
|
||||
.f-card-found-btn-done {
|
||||
background: rgba(48,168,94,.14); border-color: rgba(48,168,94,.35);
|
||||
color: #30a85e; opacity: 1; cursor: default;
|
||||
}
|
||||
.f-card-reopen-btn:hover {
|
||||
background: rgba(var(--teal-rgb),.18); border-color: rgba(var(--teal-rgb),.5);
|
||||
.f-card-found-btn-done:hover {
|
||||
background: rgba(48,168,94,.14); border-color: rgba(48,168,94,.35);
|
||||
}
|
||||
/* Отмена случайного нажатия «Вернулось к владельцу» — только автору. */
|
||||
.f-card-found-undo {
|
||||
margin-left: 10px;
|
||||
background: none; border: none; padding: 2px;
|
||||
color: var(--muted); font-family: var(--font);
|
||||
font-size: .78rem; text-decoration: underline;
|
||||
text-underline-offset: 2px;
|
||||
cursor: pointer; transition: color .2s;
|
||||
}
|
||||
.f-card-found-undo:hover { color: var(--teal); }
|
||||
.f-card-found-undo:focus-visible {
|
||||
outline: 2px solid rgba(var(--teal-rgb), .6); outline-offset: 2px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
/* ── Calendar Popup ── */
|
||||
|
||||
@@ -282,7 +282,7 @@
|
||||
.f-topbar-dropdown-menu {
|
||||
position: absolute; top: 100%; left: 0; right: 0;
|
||||
z-index: 50;
|
||||
display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
|
||||
display: flex; flex-flow: row wrap; align-items: center; justify-content: center; gap: 6px;
|
||||
padding: 8px 12px;
|
||||
margin-top: 6px;
|
||||
background: rgba(0, 0, 0, .72);
|
||||
@@ -292,6 +292,14 @@
|
||||
box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
|
||||
}
|
||||
|
||||
/* Разделитель между группами фильтров (тип / состояние). */
|
||||
.f-topbar-dropdown-sep {
|
||||
width: 1px; align-self: stretch; margin: 2px 3px;
|
||||
background: rgba(255, 255, 255, .16);
|
||||
border-radius: 1px;
|
||||
}
|
||||
:root:not([data-theme="dark"]) .f-topbar-dropdown-sep { background: rgba(0, 0, 0, .12); }
|
||||
|
||||
:root:not([data-theme="dark"]) .f-topbar-dropdown-menu {
|
||||
background: rgba(255, 255, 255, .92);
|
||||
border-color: rgba(0, 0, 0, .08);
|
||||
|
||||
@@ -214,6 +214,25 @@ select.f-m-field::selection { background: transparent; }
|
||||
box-shadow: 0 8px 40px rgba(0,0,0,.5);
|
||||
touch-action: pan-y;
|
||||
}
|
||||
/* Та же лёгкая приглушка, что и в карточке: объявление найдено, но всё равно
|
||||
хорошо видно, что это за вещь/питомец. */
|
||||
.f-viewer-img-closed { filter: grayscale(.6) brightness(.85); }
|
||||
|
||||
/* Плашка «Найдено» поверх фото в просмотрщике: остаётся на каждом слайде
|
||||
карусели, поэтому статус не теряется при листании. */
|
||||
.f-viewer-found-badge {
|
||||
position: absolute; top: 10px; left: 10px; z-index: 2;
|
||||
display: inline-flex; align-items: center; gap: 6px;
|
||||
padding: 7px 14px 7px 11px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(135deg, #35c46f, #1f9d55);
|
||||
border: 1px solid rgba(255,255,255,.35);
|
||||
color: #fff;
|
||||
font-size: .85rem; font-weight: 800; line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
box-shadow: 0 2px 12px rgba(0,0,0,.35);
|
||||
pointer-events: none;
|
||||
}
|
||||
.f-viewer-contact {
|
||||
margin-top: 16px;
|
||||
padding: 10px 28px;
|
||||
|
||||
Reference in New Issue
Block a user