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);
.navicon::before,
.navicon::after {
transition-duration: $navicon-duration;
}
/* Arrows */
.open.larr .navicon,
.open.rarr .navicon,
.open.uarr .navicon {
&.larr .navicon,
&.rarr .navicon,
&.uarr .navicon {
&::before,
&::after {
@ -110,13 +108,12 @@
}
}
.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);
@ -132,24 +129,25 @@
}
/* × and + */
.open.plus,
.open.x {
.navicon {
background: transparent;
// &.plus,
// &.x {
// .navicon {
// background: transparent;
&::before {
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
}
// &::before {
// -ms-transform: rotate(-45deg);
// transform: rotate(-45deg);
// }
&::after {
-ms-transform: rotate(45deg);
transform: rotate(45deg);
}
}
}
// &::after {
// -ms-transform: rotate(45deg);
// transform: rotate(45deg);
// }
// }
// }
.open.plus {
-ms-transform: scale($navicon-toggled-size) rotate(45deg);
transform: scale($navicon-toggled-size) rotate(45deg);
// &.plus {
// -ms-transform: scale($navicon-toggled-size) rotate(45deg);
// transform: scale($navicon-toggled-size) rotate(45deg);
// }
}