From 28e0e4e33a0881ec955472e5b4762c4173544972 Mon Sep 17 00:00:00 2001 From: ilya-bkv Date: Tue, 9 May 2023 08:09:09 +0300 Subject: [PATCH] styles minifix --- src/components/Views/Edit.module.scss | 35 +++++++++++++-------------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/src/components/Views/Edit.module.scss b/src/components/Views/Edit.module.scss index ca4e150e..0d31ff56 100644 --- a/src/components/Views/Edit.module.scss +++ b/src/components/Views/Edit.module.scss @@ -14,26 +14,25 @@ .shoutCardCoverContainer { position: relative; width: 100%; - } + .shoutCardCover { + height: 0; + overflow: hidden; + position: relative; + margin: 1.6rem 0; + padding-bottom: 56.2%; - .shoutCardCover { - height: 0; - margin-bottom: 1.6rem; - overflow: hidden; - padding-bottom: 56.2%; - position: relative; + img { + height: 100%; + object-fit: cover; + position: absolute; + transform-origin: 50% 50%; + transition: transform 1s ease-in-out; + width: 100%; + } - img { - height: 100%; - object-fit: cover; - position: absolute; - transform-origin: 50% 50%; - transition: transform 1s ease-in-out; - width: 100%; - } - - &:hover img { - transform: scale(1.1); + &:hover img { + transform: scale(1.1); + } } }