From 928c0620912fa4d45a200f77ab5d1bf273dbf9e7 Mon Sep 17 00:00:00 2001 From: ifraimka1 Date: Tue, 20 Feb 2024 11:16:15 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D1=81=D1=8B=D0=BB=D0=BA=D0=B8=20=D1=84?= =?UTF-8?q?=D1=83=D1=82=D0=B5=D1=80=D0=B0,=20=D0=B4=D0=BE=D0=B1=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=8D=D1=84=D1=84=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=B0=20=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B=D0=BB?= =?UTF-8?q?=D0=BA=D0=B8=20=D0=B2=20=D0=B7=D0=B0=D0=B3=D0=BE=D0=BB=D0=BE?= =?UTF-8?q?=D0=B2=D0=BA=D0=B0=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Footer/FooterLink.jsx | 2 +- src/components/Navbar/Navbar.styles.scss | 16 -------------- src/pages/Root/Root.styles.scss | 28 ++++++++++++++++++++++++ 3 files changed, 29 insertions(+), 17 deletions(-) diff --git a/src/components/Footer/FooterLink.jsx b/src/components/Footer/FooterLink.jsx index cc25252..5ce5dfa 100755 --- a/src/components/Footer/FooterLink.jsx +++ b/src/components/Footer/FooterLink.jsx @@ -2,7 +2,7 @@ import { Link } from "react-router-dom"; function FooterLink({ link }) { return ( - + icon ); diff --git a/src/components/Navbar/Navbar.styles.scss b/src/components/Navbar/Navbar.styles.scss index bb95a2d..8d42128 100755 --- a/src/components/Navbar/Navbar.styles.scss +++ b/src/components/Navbar/Navbar.styles.scss @@ -29,8 +29,6 @@ $primary-text-color: white; align-items: center; .nav-link { - position: relative; - font-size: 16px; font-weight: 500; line-height: 20px; @@ -43,21 +41,7 @@ $primary-text-color: white; } .nav-link::after { - position: absolute; - content: ''; - left: 50%; - transform: translateX(-50%); - bottom: 0; - display: block; - width: 0; - height: 1px; background: white; - transition: 0.3s; - } - - .nav-link:hover:after, - .nav-link.active:after { - width: 100%; } } } \ No newline at end of file diff --git a/src/pages/Root/Root.styles.scss b/src/pages/Root/Root.styles.scss index 15953f3..41e60c5 100755 --- a/src/pages/Root/Root.styles.scss +++ b/src/pages/Root/Root.styles.scss @@ -80,4 +80,32 @@ $btn-dark: #585858; color: white; background-color: $btn-dark; +} + +.block .heading a, +.navbar .nav-link { + position: relative; +} + +.block .heading a::after, +.navbar .nav-link::after { + position: absolute; + content: ''; + left: 50%; + transform: translateX(-50%); + bottom: 0; + display: block; + width: 0; + height: 1px; + transition: 0.3s; +} + +.block .heading a::after { + background: black; +} + +.block .heading a:hover:after, +.navbar .nav-link:hover:after, +.navbar .nav-link.active:after { + width: 100%; } \ No newline at end of file