Nest `.open` navicon classes and comment out unused

This commit is contained in:
Michael Rose 2017-03-16 15:20:49 -04:00
parent 89aebb82ec
commit 51de468dbb
1 changed files with 61 additions and 63 deletions

View File

@ -74,21 +74,19 @@
top: 0 !important;
}
.open .navicon::before,
.open .navicon::after {
transition-duration: $navicon-duration;
}
/* Minus */
.open {
-ms-transform: scale($navicon-toggled-size);
transform: scale($navicon-toggled-size);
}
/* Arrows */
.open.larr .navicon,
.open.rarr .navicon,
.open.uarr .navicon {
.navicon::before,
.navicon::after {
transition-duration: $navicon-duration;
}
/* Arrows */
&.larr .navicon,
&.rarr .navicon,
&.uarr .navicon {
&::before,
&::after {
@ -108,15 +106,14 @@
-ms-transform-origin: left bottom;
transform-origin: left bottom;
}
}
}
.open.uarr {
&.uarr {
-ms-transform: scale($navicon-toggled-size) rotate(90deg);
transform: scale($navicon-toggled-size) rotate(90deg);
}
}
/* Arrows */
.open.rarr .navicon {
&.rarr .navicon {
&::before {
transform: translate3d(1em, 0, 0) rotate(-35deg);
@ -129,27 +126,28 @@
-ms-transform-origin: right bottom;
transform-origin: right bottom;
}
}
/* × and + */
.open.plus,
.open.x {
.navicon {
background: transparent;
&::before {
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
&::after {
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
}
}
/* × and + */
// &.plus,
// &.x {
// .navicon {
// background: transparent;
.open.plus {
-ms-transform: scale($navicon-toggled-size) rotate(45deg);
transform: scale($navicon-toggled-size) rotate(45deg);
// &::before {
// -ms-transform: rotate(-45deg);
// transform: rotate(-45deg);
// }
// &::after {
// -ms-transform: rotate(45deg);
// transform: rotate(45deg);
// }
// }
// }
// &.plus {
// -ms-transform: scale($navicon-toggled-size) rotate(45deg);
// transform: scale($navicon-toggled-size) rotate(45deg);
// }
}