From 0edfa1eeefdd7a718c7e187e1a0664aa72eb2fa4 Mon Sep 17 00:00:00 2001 From: dertyp7 Date: Sat, 13 Jan 2024 18:40:29 +0100 Subject: [PATCH] Refactor ScrollToTop.scss to apply responsive styles --- src/styles/ScrollToTop.scss | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/styles/ScrollToTop.scss b/src/styles/ScrollToTop.scss index f99d9f4..4d20a39 100644 --- a/src/styles/ScrollToTop.scss +++ b/src/styles/ScrollToTop.scss @@ -17,11 +17,14 @@ &.down { transform: rotate(-180deg); - width: 50px; - height: 50px; - position: fixed; - bottom: 15px; - right: 50%; + + @media screen and (min-width: 768px) { + width: 50px; + height: 50px; + position: fixed; + bottom: 15px; + right: 50%; + } &:hover { animation: pulseDown 1s infinite;