This repository has been archived on 2023-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
schulzestudio/src/css/layout/_nav.scss

44 lines
848 B
SCSS
Raw Normal View History

2020-01-15 15:51:42 +01:00
/* Nav */
#nav {
> div > span {
&.bar {
height: 10px;
display: block;
border-radius: 5px;
@include vendor('transition', (
'transform #{_duration(transition)} ease',
));
}
&.bar1 {
width: 60px;
background: _palette(accent1);
margin: 15px 30px;
2020-01-15 16:16:31 +01:00
@include vendor('transform-origin', '55px 5px');
2020-01-15 15:51:42 +01:00
&.active {
@include vendor('transform', 'rotate(45deg)');
}
}
2020-01-15 16:16:31 +01:00
&.bar1:first-child {
2020-01-15 15:51:42 +01:00
@include vendor('transform-origin', '5px 5px');
}
&.bar2 {
width: 80px;
background: _palette(accent2);
margin: 7px 20px;
z-index: 99;
&.active {
@include vendor('transform', 'rotate(-45deg)');
transform: rotate(-45deg);
}
}
}
}