Sha256: c7bb02f66170882691baf314a9d11d8cad71dd475c58e75f15f71d155fd5d555
Contents?: true
Size: 1.54 KB
Versions: 2
Compression:
Stored size: 1.54 KB
Contents
$switch-width: rem(54) $switch-height: rem(30) $switch-inner-space: rem(4) $switch-radius: $switch-height $switch-knob-size: $switch-height - ($switch-inner-space * 2) .switch display: inline-block position: relative margin-bottom: rem(18) cursor: pointer height: $switch-height width: $switch-width +user-select(none) -webkit-tap-highlight-color: rgba(0,0,0,0) input display: none + label display: block position: relative height: $switch-height width: 100% cursor: pointer background: $grey border-radius: $switch-radius +transition(all .15s ease-out) +transform( translate3d(0, 0, 0) ) +hide-text &:after content: "" display: block background: $white position: absolute top: $switch-inner-space left: $switch-inner-space width: $switch-knob-size height: $switch-knob-size border-radius: $switch-radius +transition(all .15s ease-out) // ---------------------------------------------------------- // STATES // ---------------------------------------------------------- .switch:hover label background: $grey-dark .switch input:checked + label background: $primary-color &:after left: $switch-width - $switch-knob-size - ($switch-inner-space) // ---------------------------------------------------------- // IE8 Fallback // ---------------------------------------------------------- .lt-ie9 .switch input display: block + label display: none
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
partystreusel-2.0.0 | styleguide/source/stylesheets/partystreusel/small/modules/_switch.sass |
partystreusel-1.2.0 | styleguide/source/stylesheets/partystreusel/small/modules/_switch.sass |