2019-03-29 04:32:42 +00:00
|
|
|
// -- Mixins -- //
|
|
|
|
|
|
|
|
// Nav menu
|
|
|
|
|
|
|
|
@mixin icon-position($position) {
|
2024-01-21 21:19:22 +00:00
|
|
|
display: block;
|
2019-03-29 04:32:42 +00:00
|
|
|
position: absolute;
|
|
|
|
top: 35px;
|
|
|
|
#{$position}: 25px;
|
|
|
|
z-index: 10;
|
|
|
|
height: 36px;
|
|
|
|
padding: 8px;
|
2024-01-21 21:19:22 +00:00
|
|
|
background-color: rgba(240, 240, 240, .6);
|
|
|
|
|
2019-03-29 04:32:42 +00:00
|
|
|
@media (max-width: 480px) {
|
2024-01-21 21:19:22 +00:00
|
|
|
top: 15px;
|
|
|
|
right: 10px;
|
2019-03-29 04:32:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin open($x) {
|
2024-01-21 21:19:22 +00:00
|
|
|
-webkit-transform: translateX($x);
|
|
|
|
-moz-transform: translateX($x);
|
|
|
|
-ms-transform: translateX($x);
|
|
|
|
transform: translateX($x);
|
2019-03-29 04:32:42 +00:00
|
|
|
width: 100%;
|
2024-01-21 21:19:22 +00:00
|
|
|
|
2019-03-29 04:32:42 +00:00
|
|
|
@media (min-width: 940px) {
|
|
|
|
width: 30%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@mixin nav-position($position) {
|
2024-01-21 21:19:22 +00:00
|
|
|
width: 14rem;
|
2019-03-29 04:32:42 +00:00
|
|
|
position: fixed;
|
|
|
|
background-color: $main-color;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
#{$position}: -14rem;
|
|
|
|
color: $background-color;
|
|
|
|
opacity: 0.95;
|
|
|
|
-webkit-transition: all 0.3s ease-in;
|
2024-01-21 21:19:22 +00:00
|
|
|
-moz-transition: all 0.3s ease-in;
|
|
|
|
-ms-transition: all 0.3s ease-in;
|
|
|
|
transition: all 0.3s ease-in;
|
2019-03-29 04:32:42 +00:00
|
|
|
z-index: 1;
|
|
|
|
padding: 72px 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|