generator-aristos
Version:
create aristos cms fast with yeoman generator.
138 lines (125 loc) • 2.63 kB
CSS
.header {
&__brand {
left: 20px;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
}
&__main {
display: flex;
height: 50px;
background-color: #fff;
margin: 0;
padding: 0;
transition: all 0.5s ease-out;
}
&__menu-content {
position: absolute;
display: flex;
align-items: center;
height: 200px;
list-style-type: none;
margin: 0;
padding: 0;
opacity: 0;
z-index: -10;
transform: scale(1.2);
transition: all 0.3s ease-out;
@mixin atMedium {
height: 50px;
overflow: hidden;
}
&--right {
right: 20px;
}
&--link {
display: flex;
padding: 5px;
color: #fff;
transition: all 0.5s linear;
@mixin atMedium {
font-weight: 600;
margin: 2px;
padding: 20px;
transition: all 0.5s linear;
color: #000;
}
&:hover {
color: #fff;
background: #eee;
transition: all 0.5s linear;
}
}
@mixin atMedium {
opacity: 1;
z-index: 1;
padding-top: 0;
transform: scale(1);
}
&--is-visible {
margin: 0;
overflow: hidden;
width: 100%;
opacity: 1;
z-index: 2;
flex-direction: column;
transition: all 0.5s linear;
}
}
&__menu-icon {
width: 20px;
height: 19px;
position: absolute;
top: 40px;
right: 70px;
z-index: 10;
&::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 20px;
height: 3px;
background-color: #000;
transform-origin: 0 0;
transition: transform 0.3s ease-out;
}
&__middle {
position: absolute;
top: 8px;
left: 0;
width: 20px;
height: 3px;
background-color: #000;
transform-origin: 0 50%;
transition: all 0.3s ease-out;
}
&::after {
content: "";
position: absolute;
bottom: 0px;
left: 0;
width: 20px;
height: 3px;
background-color: #000;
transform-origin: 0 100%;
transition: transform 0.3s ease-out;
}
@mixin atMedium {
display: none;
}
}
&__menu-icon--close-x {
&::before {
transform: rotate(45deg) scaleX(1.25);
}
.header__menu-icon__middle {
opacity: 0;
transform: scaleX(0);
}
&::after {
transform: rotate(-45deg) scaleX(1.25) translateY(1px);
}
}
}