diff --git a/src/widgets/Navbar/Navbar.styles.scss b/src/widgets/Navbar/Navbar.styles.scss index 6b86f24..5b917de 100644 --- a/src/widgets/Navbar/Navbar.styles.scss +++ b/src/widgets/Navbar/Navbar.styles.scss @@ -1,131 +1,140 @@ #navbar { - position: fixed; - top: 0; - width: 100%; - height: 108px; - padding: $navbar-padding-tb 10%; - background-color: rgb(255, 255, 255); - z-index: 100; + position: fixed; + top: 0; + width: 100%; + height: 108px; + padding: $navbar-padding-tb 10%; + background-color: rgb(255, 255, 255); + z-index: 100; - display: flex; - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + align-items: center; - transition: transform 0.3s ease-out, height 0.3s ease-out, background-color 0.8s ease-out; + transition: transform 0.3s ease-out, height 0.3s ease-out, background-color 0.8s ease-out; - &.hidden { - transform: translateY(-110%); // Убираем navbar вверх - } + &.hidden { + transform: translateY(-110%); // Убираем navbar вверх + } - &:not(.hidden) { - transform: translateY(0); // Показываем navbar - } + &:not(.hidden) { + transform: translateY(0); // Показываем navbar + } - &.transparent { - background-color: transparent !important; - transition: none; + &.transparent { + background-color: transparent !important; + transition: none; - .bar .nav-link { - color: $text-secondary; + .bar .nav-link { + color: $text-secondary; - @media (max-width: 1200px) { - color: black; - } + @media (max-width: 1200px) { + color: black; + } - } + } - @media (max-width: 1200px) { - .burger .line { - background-color: #ffffff; - &.open { - background-color: #072ac8; // Синий цвет, когда меню открыто - } - } - } + @media (max-width: 1200px) { + .burger .line { + background-color: #ffffff; - .logo { - filter: brightness(0) invert(1); - } - } + &.open { + background-color: #072ac8; // Синий цвет, когда меню открыто + } + } + } - .nav-link:has(> .logo) { - display: flex; - height: 100%; - align-items: center; + .logo { + filter: brightness(0) invert(1); + } + } - .logo { - width: $navbar-logo-height; - height: auto; - } - } + .nav-link:has(> .logo) { + display: flex; + height: 100%; + align-items: center; - .bar { - display: flex; - align-items: center; + .logo { + width: $navbar-logo-height; + height: auto; + } + } - .nav-link { - font-size: 16px; - font-weight: 500; - line-height: 20px; - letter-spacing: 0em; - padding: .25em; - margin-left: 40px; - color: black; - text-decoration: none; - text-wrap: nowrap; - } + .bar { + display: flex; + align-items: center; - .nav-link::after { - background: $text-secondary; - } - } + .nav-link { + font-size: 16px; + font-weight: 500; + line-height: 20px; + letter-spacing: 0em; + padding: .25em; + margin-left: 40px; + color: black; + text-decoration: none; + text-wrap: nowrap; + } - @media (max-width: 1200px) { - height: $navbar-height; - padding: $navbar-padding-tb 5%; + .nav-link::after { + background: black; + } + } - .nav-link:has(> .logo) .logo { - width: $navbar-logo-mini-height; - } + @media (max-width: 1200px) { + height: $navbar-height; + padding: $navbar-padding-tb 5%; - .bar { - display: none; - flex-direction: column; - position: fixed; - top: 0; - right: 0; - background-color: white; - width: 50%; - height: 200vh; - z-index: 9; - padding: 60px 0px; + .nav-link:has(> .logo) .logo { + width: $navbar-logo-mini-height; + } - &.open { - display: flex; - } + .bar { + display: none; + flex-direction: column; + position: fixed; + top: 0; + right: 0; + background-color: white; + width: 50%; + height: 200vh; + z-index: 9; + padding: 60px 0px; - .nav-link { - padding: 10px 5px; - width: 100%; - text-align: left; - } - } + &.open { + display: flex; + } - .burger { - position: relative; - display: flex; - flex-direction: column; - z-index: 10; + .nav-link { + padding: 10px 5px; + width: 100%; + text-align: left; + } - .line { - width: 25px; - height: 3px; - background-color: #072ac8; - margin: 4px 0; - transition: all 0.3s ease; - } - } + .nav-link::after { + background: none; + } + } - } + .burger { + position: relative; + display: flex; + flex-direction: column; + z-index: 10; + .line { + width: 25px; + height: 3px; + background-color: #072ac8; + margin: 4px 0; + transition: all 0.3s ease; + } + } + + } } + +#navbar.transparent .bar .nav-link::after { + background-color: $text-secondary; + +} \ No newline at end of file