// // Toggle styles (to be used with toggles.js) // -------------------------------------------------- .toggle { position: relative; width: 47px; height: 30px; background-color: #fff; border: 2px solid #e6e6e6; border-radius: 20px; @include box-shadow(inset 0 0 0 0 #e1e1e1); @include transition-property(box-shadow, border); @include transition-duration(.2s); // Sliding handle .toggle-handle { position: absolute; top: -1px; left: -1px; z-index: 2; width: 28px; height: 28px; background-color: #fff; border: 1px solid rgba(0, 0, 0, .1); border-radius: 100px; @include box-shadow(0 3px 3px rgba(0,0,0,.08)); @include transition-property(-webkit-transform, border, width); @include transition-duration(.2s); @include transition-timing-function(ease-in-out); } // Active state for toggle &.active { //background-color: $positive-color; border: 2px solid $positive-color; @include box-shadow(inset 0 0 0 30px $positive-color); } // Active state for toggle handle &.active .toggle-handle { border-color: $positive-color; @include transform(translate3d(17px,0,0)); } }