From 5b6b86cdb148a2844152698147318aa093a1c559 Mon Sep 17 00:00:00 2001 From: FireSpirit171 Date: Thu, 19 Dec 2024 14:53:12 +0300 Subject: [PATCH] fix: boosted border --- src/components/AdCard/AdCard.hbs | 6 ++--- src/components/AdCard/AdCard.scss | 37 ++++++++++++++++++------------- 2 files changed, 24 insertions(+), 19 deletions(-) diff --git a/src/components/AdCard/AdCard.hbs b/src/components/AdCard/AdCard.hbs index bd46e577..cd30e581 100644 --- a/src/components/AdCard/AdCard.hbs +++ b/src/components/AdCard/AdCard.hbs @@ -1,4 +1,4 @@ -
+
{{/each}} - +
@@ -94,7 +94,7 @@
-

+

{{roomsNumber}}-комн. кв. · {{squareMeters}} м² · {{floor}} этаж

{{address}}, {{cityName}}

diff --git a/src/components/AdCard/AdCard.scss b/src/components/AdCard/AdCard.scss index d5d412e3..4cdf8909 100644 --- a/src/components/AdCard/AdCard.scss +++ b/src/components/AdCard/AdCard.scss @@ -9,7 +9,6 @@ overflow: hidden; position: relative; cursor: pointer; - transition: box-shadow 0.3s; &:hover { @@ -227,25 +226,31 @@ } .boosted { - background-color: yellow; position: relative; + border-radius: 12px; + padding: 5px; + background: linear-gradient(90deg, #ff9966, #f59218, #ff9966, #f59218); + background-size: 200% 200%; + animation: border-spin 3s linear infinite; + box-sizing: border-box; +} + +.boosted > * { + background: white; + border-radius: 12px; + overflow: hidden; +} - // &:hover::after { - // content: 'Рекомендуем!'; - // position: absolute; - // top: -30px; - // left: 50%; - // transform: translateX(-50%); - // background-color: green; - // color: white; - // padding: 5px 10px; - // border-radius: 4px; - // white-space: nowrap; - // font-size: 12px; - // z-index: 10; - // } +@keyframes border-spin { + 0% { + background-position: 0% 50%; + } + 100% { + background-position: 200% 50%; + } } + @media screen and (max-width: 900px) { .housing-card { &__city {