98 lines
1.8 KiB
SCSS
98 lines
1.8 KiB
SCSS
/* Path: src/components/Navbar/Navbar.module.scss */
|
|
|
|
.navbar {
|
|
width: 100%;
|
|
height: 6rem;
|
|
padding: 0.75rem 2rem;
|
|
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.nav-logo {
|
|
user-select: none;
|
|
white-space: nowrap;
|
|
font-size: 1.5rem;
|
|
transition:
|
|
transform 1000ms ease,
|
|
opacity 500ms;
|
|
|
|
color: color-adjust(text, 0, 0);
|
|
|
|
position: relative;
|
|
text-decoration: none;
|
|
|
|
margin-right: auto;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
}
|
|
|
|
&::after {
|
|
content: "";
|
|
height: 2px;
|
|
width: 100%;
|
|
background-color: color-adjust(text, 0, 0);
|
|
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -4px;
|
|
transform-origin: left;
|
|
|
|
transform: scaleX(0);
|
|
transition: transform 0.25s ease;
|
|
}
|
|
|
|
&:hover::after,
|
|
&:focus::after,
|
|
&.active::after {
|
|
transform: scaleX(1);
|
|
}
|
|
}
|
|
|
|
.nav-links {
|
|
display: flex;
|
|
align-items: center;
|
|
width: auto;
|
|
margin-right: 2rem;
|
|
justify-items: end;
|
|
align-items: center;
|
|
user-select: none;
|
|
|
|
li {
|
|
list-style: none;
|
|
margin-left: 2rem;
|
|
|
|
a {
|
|
text-decoration: none;
|
|
color: color-adjust(text, 0, 0);
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
position: relative;
|
|
|
|
transition: color 300ms ease-in-out;
|
|
|
|
&.active {
|
|
color: color-adjust(secondary, 0, 0);
|
|
}
|
|
|
|
.magic-line {
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: -4px;
|
|
width: 100%;
|
|
height: 2px;
|
|
background-color: color-adjust(secondary, 0, 0);
|
|
z-index: 10;
|
|
contain: layout;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-right {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-shrink: 0;
|
|
}
|