<commit_before>$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
  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
<commit_msg>add hover style for switches<commit_after>$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

{'fraction_non_alphanumeric': 0.2535344015080113, 'fraction_numerical': 0.015708451146716932, 'mean_word_length': 1.4342507645259939, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5997443', 'n_tokens_mistral': 938, 'n_tokens_neox': 885, 'n_words': 200}