cycat-project-website/_sass/components/_main-menu-mobile.scss

80 lines
1.4 KiB
SCSS
Raw Normal View History

2018-12-09 08:21:01 +01:00
.main-menu-mobile {
position: fixed;
2020-08-23 12:01:06 +02:00
background: $primary;
2018-12-09 08:21:01 +01:00
top: 0;
left: 0;
width: 100%;
height: 100vh;
opacity: 0;
visibility: hidden;
transition: opacity 0.35s, visibility 0.35s, height 0.35s;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
&.open {
opacity: 0.9;
visibility: visible;
height: 100%;
2020-08-23 12:01:06 +02:00
z-index: 20;
2018-12-09 08:21:01 +01:00
li {
animation: fadeInRight 0.5s ease forwards;
animation-delay: 0.35s;
&:nth-of-type(2) {
animation-delay: 0.4s;
}
&:nth-of-type(3) {
animation-delay: 0.45s;
}
&:nth-of-type(4) {
animation-delay: 0.5s;
}
&:nth-of-type(5) {
animation-delay: 0.55s;
}
&:nth-of-type(6) {
animation-delay: 0.6s;
}
}
}
ul {
2020-08-23 12:01:06 +02:00
font-size: 30px;
2018-12-09 08:21:01 +01:00
font-family: $font-family-heading;
text-align: center;
list-style: none;
padding: 0;
margin: 0;
flex: 0;
li {
display: block;
position: relative;
opacity: 0;
2020-08-23 12:01:06 +02:00
padding: 10px;
2018-12-09 08:21:01 +01:00
a {
display: block;
position: relative;
2020-08-23 12:01:06 +02:00
color: #ffffff;
2018-12-09 08:21:01 +01:00
text-decoration: none;
overflow: hidden;
2020-08-23 12:01:06 +02:00
&:hover {
opacity: 0.8;
2018-12-09 08:21:01 +01:00
}
}
}
}
}
@keyframes fadeInRight {
0% {
opacity: 0;
left: 20%;
}
100% {
opacity: 1;
left: 0;
}
}
.lock-scroll {
overflow: hidden;
}