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