2020-01-15 15:51:42 +01:00
|
|
|
|
|
|
|
/* Nav */
|
|
|
|
|
|
|
|
#nav {
|
2020-01-15 18:08:42 +01:00
|
|
|
@include vendor('transition', (
|
|
|
|
'height #{_duration(transition)} ease',
|
2020-01-15 18:27:44 +01:00
|
|
|
'background #{_duration(transition)} ease',
|
2020-01-15 18:08:42 +01:00
|
|
|
));
|
|
|
|
height: 80px;
|
2020-01-15 18:27:44 +01:00
|
|
|
position: fixed;
|
|
|
|
width: 100%;
|
|
|
|
background: #f2f2f2;
|
|
|
|
|
|
|
|
&.scrolled {
|
|
|
|
background: #ffffff;
|
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
> #wrapper {
|
|
|
|
margin: auto;
|
|
|
|
line-height: 11px;
|
|
|
|
|
2020-01-15 20:07:39 +01:00
|
|
|
> a > #logo > img {
|
2020-01-15 18:08:42 +01:00
|
|
|
@include vendor('transition', (
|
2020-01-15 20:07:39 +01:00
|
|
|
'height #{_duration(transition)} ease',
|
|
|
|
'left #{_duration(transition)} ease',
|
2020-01-15 18:08:42 +01:00
|
|
|
));
|
2020-01-15 20:07:39 +01:00
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 80px;
|
|
|
|
padding: 10px 23.1px;
|
|
|
|
left: calc(50% - 40px);
|
|
|
|
}
|
|
|
|
|
|
|
|
> #menuToggle {
|
2020-01-15 18:08:42 +01:00
|
|
|
display: inline-block;
|
|
|
|
cursor: pointer;
|
2020-01-15 20:07:39 +01:00
|
|
|
padding: 23.5px 18.5px;
|
2020-01-15 18:08:42 +01:00
|
|
|
|
|
|
|
> span {
|
|
|
|
&.bar {
|
|
|
|
height: 3px;
|
|
|
|
display: block;
|
|
|
|
border-radius: 1.5px;
|
|
|
|
@include vendor('transition', (
|
|
|
|
'transform #{_duration(transition)} ease',
|
|
|
|
'transform-origin #{_duration(transition)} ease',
|
|
|
|
'width #{_duration(transition)} ease',
|
|
|
|
));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bar1 {
|
|
|
|
width: 30px;
|
|
|
|
background: _palette(accent1);
|
|
|
|
margin: auto;
|
|
|
|
@include vendor('transform-origin', '30px 1.5px');
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
@include vendor('transform', 'rotate(45deg)');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bar1:first-child {
|
|
|
|
@include vendor('transform-origin', '0 1.5px');
|
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
&.bar2 {
|
|
|
|
width: 43px;
|
|
|
|
background: _palette(accent2);
|
|
|
|
margin: 12px 0;
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
&.active {
|
|
|
|
@include vendor('transform', 'rotate(-45deg)');
|
|
|
|
transform: rotate(-45deg);
|
|
|
|
}
|
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
}
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
@include breakpoint('<=xlarge') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint('<=large') {
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
|
2020-01-15 18:08:42 +01:00
|
|
|
@include breakpoint('<=medium') {
|
|
|
|
height: 60px;
|
|
|
|
|
2020-01-15 20:07:39 +01:00
|
|
|
> #wrapper {
|
2020-01-15 18:08:42 +01:00
|
|
|
|
2020-01-15 20:07:39 +01:00
|
|
|
> a > #logo > img {
|
|
|
|
height: 60px;
|
|
|
|
padding: 7.5px 17.3px;
|
|
|
|
left: calc(50% - 30px);
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
|
2020-01-15 20:07:39 +01:00
|
|
|
> #menuToggle {
|
|
|
|
padding: 17.5px 14px;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
&.bar1 {
|
|
|
|
width: 22px;
|
|
|
|
@include vendor('transform-origin', '22px 1.5px');
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bar2 {
|
|
|
|
width: 32px;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
|
|
|
|
@include breakpoint('<=small') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint('<=xsmall') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint('<=xxsmall') {
|
|
|
|
|
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
}
|