nuitdelinfo_2021/static/scss/layouts/nav.scss

110 lines
1.9 KiB
SCSS
Raw Normal View History

2021-12-02 22:30:17 +01:00
nav{
background-color: $background2;
padding: 5px 20px;
display: flex;
flex-wrap: nowrap;
justify-content: space-between;
2021-12-03 00:06:04 +01:00
position: fixed;
top: 0;
2021-12-03 01:24:17 +01:00
z-index: 9990;
2021-12-03 00:06:04 +01:00
left: 0;
width: -webkit-fill-available;
2021-12-02 22:30:17 +01:00
.logo{
margin: 0;
cursor: pointer;
font-size: 50px;
@include font-courgette;
2021-12-03 04:53:31 +01:00
color: $accent;
2021-12-02 22:30:17 +01:00
margin-right: 30px;
}
.left{
display: flex;
align-items: center;
.submenu{
display: flex;
align-items: center;
a{
font-size: 20px;
color: $light;
padding: 0 20px;
}
}
}
.right{
display: flex;
justify-content: right;
align-items: center;
2021-12-03 05:57:06 +01:00
.opennavmobile{
display: none;
cursor: pointer;
font-size: 60px;
color: $light;
}
2021-12-02 22:30:17 +01:00
img{
width: 50px;
cursor: pointer;
border: 2px solid $light;
transition-duration: 0.3s;
&:hover{
border-color: $accent;
}
}
.search{
color: $light;
font-size: 50px;
margin-right: 20px;
cursor: pointer;
transition-duration: 0.3s;
&:hover{
color: $accent;
}
}
}
2021-12-03 05:57:06 +01:00
}
.navbar-mobile{
&.open{
transform: translateX(0) !important;
}
display: none;
transform: translateX(100%);
.closenavmobile{
position: fixed;
top: 20px;
right: 20px;
color: $light;
font-size: 70px;
cursor: pointer;
}
position: fixed;
width: 100%;
transition: all ease-in-out 0.3s;
align-items: center;
height: 100vh;
background: $background2;
top: 0;
left: 0;
justify-content: center;
flex-direction: column;
z-index: 9998;
a{
font-size: 35px;
padding: 30px 0;
}
i{
font-size: 50px;
}
}
@media all and (max-width: 800px){
.navbar-mobile{
display: flex !important;
}
nav .left .submenu, nav .right a{
display: none;
}
nav .opennavmobile{
display: block !important;
}
2021-12-02 22:30:17 +01:00
}