mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 03:39:45 +00:00
Хук useElementOnScreen, переключение стилей навбара
This commit is contained in:
1 parent
0492530220
commit
8496cae1aa
4 files changed
+57
-5
No files matched your search
@@ -1,5 +1,4 @@
|
||||
import { scb as logo } from '../../assets/images';
|
||||
import { NavLink } from "react-router-dom";
|
||||
import NavbarLink from './NavbarLink';
|
||||
import './Navbar.styles.scss';
|
||||
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
@import "../../assets/styles/theme.scss";
|
||||
|
||||
.navbar {
|
||||
position: absolute;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
width: 80%;
|
||||
height: 60px;
|
||||
max-height: 80px;
|
||||
padding: 1em 10%;
|
||||
background: transparent;
|
||||
background: $bg-secondary;
|
||||
z-index: 1;
|
||||
|
||||
display: flex;
|
||||
@@ -43,4 +43,9 @@
|
||||
background: $text-secondary;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.navbar.absolute {
|
||||
position: absolute;
|
||||
background: transparent;
|
||||
}
|
||||
Reference in new issue
Block a user