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%;
|
2020-01-16 00:57:20 +01:00
|
|
|
background: _palette(bg);
|
2020-01-15 18:27:44 +01:00
|
|
|
|
|
|
|
&.scrolled {
|
2020-01-16 00:29:31 +01:00
|
|
|
background: _palette(white);
|
|
|
|
}
|
|
|
|
|
|
|
|
> #menu {
|
|
|
|
|
|
|
|
> ul {
|
|
|
|
@include vendor('transition', (
|
|
|
|
'opacity #{_duration(transition2)} ease',
|
|
|
|
));
|
2020-01-16 00:57:20 +01:00
|
|
|
text-align: center;
|
2020-01-16 00:29:31 +01:00
|
|
|
opacity: 0;
|
|
|
|
position: fixed;
|
|
|
|
color: _palette(white);
|
2020-01-16 02:33:56 +01:00
|
|
|
right: 0;
|
|
|
|
left: 0;
|
2020-02-17 21:15:28 +01:00
|
|
|
top: 50%;
|
|
|
|
transform: translate(0, -50%);
|
2020-01-16 02:33:56 +01:00
|
|
|
|
2020-02-17 21:30:03 +01:00
|
|
|
> li {
|
2020-01-16 02:33:56 +01:00
|
|
|
transform: translate3d(0,0,0);
|
2020-02-17 22:35:28 +01:00
|
|
|
margin: 0 40%;
|
2020-02-17 21:15:28 +01:00
|
|
|
|
|
|
|
> a {
|
|
|
|
line-height: 3em;
|
|
|
|
margin: 1em 0;
|
|
|
|
display: block;
|
|
|
|
border-bottom: none;
|
2020-02-17 21:30:03 +01:00
|
|
|
position: relative;
|
|
|
|
@include vendor('transition', (
|
|
|
|
'color #{_duration(transition2)} ease',
|
|
|
|
));
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
color: _palette(menu);
|
|
|
|
}
|
2020-02-17 21:15:28 +01:00
|
|
|
}
|
|
|
|
|
2020-01-16 02:33:56 +01:00
|
|
|
&:before {
|
|
|
|
@include vendor('transition', (
|
2020-02-17 16:07:46 +01:00
|
|
|
'width #{_duration(transition2)} ease',
|
2020-01-16 02:33:56 +01:00
|
|
|
));
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: auto;
|
|
|
|
background-color: _palette(white);
|
|
|
|
width: 0;
|
2020-02-17 21:15:28 +01:00
|
|
|
pointer-events: none;
|
2020-01-16 02:33:56 +01:00
|
|
|
}
|
|
|
|
&:hover {
|
|
|
|
&:before {
|
|
|
|
left: 0;
|
|
|
|
right: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-16 00:29:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> span {
|
|
|
|
@include vendor('transition', (
|
|
|
|
'box-shadow #{_duration(transition2)} ease',
|
|
|
|
));
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
|
|
|
border-radius: 50%;
|
|
|
|
box-shadow: 0 0 0 0 _palette(menu), 0 0 0 0 _palette(menu);
|
|
|
|
top: 40px;
|
|
|
|
left: 40px;
|
|
|
|
}
|
2020-02-17 23:16:53 +01:00
|
|
|
|
|
|
|
> #blocker {
|
|
|
|
top: 80px;
|
|
|
|
width: 100vw;
|
|
|
|
height: 100vh;
|
|
|
|
position: absolute;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2020-01-16 00:29:31 +01:00
|
|
|
&.show {
|
|
|
|
> ul {
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
2020-02-17 23:16:53 +01:00
|
|
|
> #blocker {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2020-01-16 00:29:31 +01:00
|
|
|
> span {
|
|
|
|
box-shadow: 0 0 0 142vw _palette(menu), 0 0 0 142vh _palette(menu);
|
|
|
|
}
|
|
|
|
}
|
2020-01-15 18:27:44 +01:00
|
|
|
}
|
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-16 00:29:31 +01:00
|
|
|
'filter #{_duration(transition)} ease',
|
2020-01-15 18:08:42 +01:00
|
|
|
));
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('filter', 'grayscale(1)');
|
2020-01-15 20:07:39 +01:00
|
|
|
position: absolute;
|
|
|
|
cursor: pointer;
|
|
|
|
height: 80px;
|
|
|
|
padding: 10px 23.1px;
|
2020-01-16 02:33:56 +01:00
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
margin: auto;
|
2020-01-16 00:29:31 +01:00
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@include vendor('filter', 'grayscale(0)');
|
|
|
|
}
|
2020-01-15 20:07:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
> #menuToggle {
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('transition', (
|
|
|
|
'filter #{_duration(transition)} ease',
|
|
|
|
));
|
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-16 00:29:31 +01:00
|
|
|
user-select: none;
|
|
|
|
-webkit-tap-highlight-color: transparent;
|
|
|
|
|
|
|
|
&:hover > span.bar {
|
|
|
|
@include vendor('filter', 'grayscale(0)');
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
|
|
|
|
> span {
|
|
|
|
&.bar {
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('transition', (
|
|
|
|
'transform #{_duration(transition2)} ease',
|
|
|
|
'width #{_duration(transition)} ease',
|
|
|
|
'filter #{_duration(transition)} ease',
|
|
|
|
));
|
|
|
|
@include vendor('filter', 'grayscale(1)');
|
2020-01-15 18:08:42 +01:00
|
|
|
height: 3px;
|
|
|
|
display: block;
|
|
|
|
border-radius: 1.5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.bar1 {
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('transform-origin', '30px 1.5px');
|
2020-01-15 18:08:42 +01:00
|
|
|
width: 30px;
|
|
|
|
background: _palette(accent1);
|
|
|
|
margin: auto;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
@include vendor('transform', 'rotate(45deg)');
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('filter', 'grayscale(0)');
|
2020-01-15 18:08:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.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)');
|
2020-01-16 00:29:31 +01:00
|
|
|
@include vendor('filter', 'grayscale(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
|
|
|
}
|
2020-01-16 02:35:59 +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-16 02:35:59 +01:00
|
|
|
*/
|
2020-01-15 18:08:42 +01:00
|
|
|
@include breakpoint('<=medium') {
|
|
|
|
height: 60px;
|
|
|
|
|
2020-02-17 23:16:53 +01:00
|
|
|
> #menu {
|
|
|
|
> span {
|
|
|
|
top: 30px;
|
|
|
|
left: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
> #blocker {
|
|
|
|
top: 60px;
|
|
|
|
}
|
2020-01-16 00:29:31 +01:00
|
|
|
}
|
|
|
|
|
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;
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
|
2020-01-15 20:07:39 +01:00
|
|
|
> #menuToggle {
|
|
|
|
padding: 17.5px 14px;
|
|
|
|
|
|
|
|
> span {
|
|
|
|
&.bar1 {
|
|
|
|
@include vendor('transform-origin', '22px 1.5px');
|
2020-01-16 00:29:31 +01:00
|
|
|
width: 22px;
|
2020-01-15 20:07:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.bar2 {
|
|
|
|
width: 32px;
|
|
|
|
margin: 8px 0;
|
|
|
|
}
|
2020-01-15 18:08:42 +01:00
|
|
|
}
|
2020-01-15 15:51:42 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-16 02:35:59 +01:00
|
|
|
/*
|
2020-01-15 18:08:42 +01:00
|
|
|
@include breakpoint('<=small') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint('<=xsmall') {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@include breakpoint('<=xxsmall') {
|
|
|
|
|
|
|
|
}
|
2020-01-16 02:35:59 +01:00
|
|
|
*/
|
2020-01-15 15:51:42 +01:00
|
|
|
}
|