created navigation section and styled navigation links

This commit is contained in:
Yusuf Ipek
2021-05-04 14:01:42 +03:00
parent 1da98261e5
commit 6aed4851f0
10 changed files with 156 additions and 72 deletions
+84
View File
@@ -0,0 +1,84 @@
.navigation {
&__checkbox {
display: none;
}
&__button {
background-color: $color-white;
height: 7rem;
width: 7rem;
position: fixed;
top: 6rem;
right: 6rem;
border-radius: 50%;
z-index: 2000;
}
&__background {
height: 6rem;
width: 6rem;
border-radius: 50%;
position: fixed;
top: 6.5rem;
right: 6.5rem;
background-image: radial-gradient(
$color-primary-light,
$color-primary-dark
);
z-index: 1000;
transform: scale(100);
}
&__nav {
height: 100vh;
width: 100%;
position: fixed;
top: 0;
right: 0;
z-index: 1500;
}
&__list {
@include center-horizontal-vertical;
list-style: none;
text-align: center;
}
&__item {
margin: 1rem;
}
&__link {
&:link,
&:visited {
display: inline-block;
font-size: $medium-font-size;
font-weight: 300;
color: $color-white;
text-decoration: none;
text-transform: uppercase;
padding: 1rem 2rem;
background-image: linear-gradient(
120deg,
transparent 0%,
transparent 50%,
$color-white 50%
);
background-size: 230%;
transition: all 0.4s;
span {
margin-right: 1.5rem;
display: inline-block;
}
}
&:hover,
&:active {
background-position: 100%;
color: $color-primary;
transform: translateX(1rem);
}
}
}