code optimization
This commit is contained in:
parent
04b48b95ec
commit
2134e09e9a
1 changed files with 13 additions and 13 deletions
|
@ -3,25 +3,25 @@
|
||||||
// Nav menu
|
// Nav menu
|
||||||
|
|
||||||
@mixin icon-position($position) {
|
@mixin icon-position($position) {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 35px;
|
top: 35px;
|
||||||
#{$position}: 25px;
|
#{$position}: 25px;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
height: 36px;
|
height: 36px;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
background-color: rgba(240,240,240,.6);
|
background-color: rgba(240, 240, 240, 0.6);
|
||||||
@media (max-width: 480px) {
|
@media (max-width: 480px) {
|
||||||
top: 15px;
|
top: 15px;
|
||||||
right: 10px;
|
right: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin open($x) {
|
@mixin open($x) {
|
||||||
-webkit-transform: translateX($x);
|
-webkit-transform: translateX($x);
|
||||||
-moz-transform: translateX($x);
|
-moz-transform: translateX($x);
|
||||||
-ms-transform: translateX($x);
|
-ms-transform: translateX($x);
|
||||||
transform: translateX($x);
|
transform: translateX($x);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@media (min-width: 940px) {
|
@media (min-width: 940px) {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@mixin nav-position($position) {
|
@mixin nav-position($position) {
|
||||||
width: 14rem;
|
width: 14rem;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
background-color: $main-color;
|
background-color: $main-color;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
@ -38,10 +38,10 @@
|
||||||
color: $background-color;
|
color: $background-color;
|
||||||
opacity: 0.95;
|
opacity: 0.95;
|
||||||
-webkit-transition: all 0.3s ease-in;
|
-webkit-transition: all 0.3s ease-in;
|
||||||
-moz-transition: all 0.3s ease-in;
|
-moz-transition: all 0.3s ease-in;
|
||||||
-ms-transition: all 0.3s ease-in;
|
-ms-transition: all 0.3s ease-in;
|
||||||
transition: all 0.3s ease-in;
|
transition: all 0.3s ease-in;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
padding: 72px 0;
|
padding: 72px 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue