60 lines
1.1 KiB
SCSS
60 lines
1.1 KiB
SCSS
|
@import './variables';
|
||
|
|
||
|
.link {
|
||
|
cursor: pointer;
|
||
|
margin: 0 10px;
|
||
|
color: $primary-dark;
|
||
|
text-decoration: none;
|
||
|
position: relative;
|
||
|
font-weight: 600;
|
||
|
transition: color .3s;
|
||
|
font-size: 16px;
|
||
|
|
||
|
&::before {
|
||
|
content: "";
|
||
|
position: absolute;
|
||
|
width: 100%;
|
||
|
height: 2px;
|
||
|
background: currentColor;
|
||
|
top: 100%;
|
||
|
left: 0;
|
||
|
pointer-events: none;
|
||
|
|
||
|
transform-origin: 100% 50%;
|
||
|
transform: scale3d(0, 1, 1);
|
||
|
transition: transform 0.3s;
|
||
|
}
|
||
|
|
||
|
&:hover {
|
||
|
color: $primary;
|
||
|
transform: scale(1.05);
|
||
|
&::before {
|
||
|
transform-origin: 0% 50%;
|
||
|
transform: scale3d(1, 1, 1);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
.selected {
|
||
|
font-weight: bolder;
|
||
|
color: $primary;
|
||
|
transform: scale(1.05);
|
||
|
&::before{
|
||
|
content: none;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
.navbar {
|
||
|
display: flex;
|
||
|
justify-content: flex-start;
|
||
|
align-items: center;
|
||
|
margin-bottom: 10px;
|
||
|
padding: 0 10px;
|
||
|
margin-left: 30px;
|
||
|
height: 60px;
|
||
|
border-bottom: 1px $border solid;
|
||
|
width: max-content;
|
||
|
}
|