.demo{
    height: 30px;
}

.demo > div > *{
    display: inline-block;
    line-height: 30px;
    vertical-align: middle;
}
.minitoggle{
  position: relative;
  width: 41px;
  height: 18px;
  background-color: #EBEBEB;
  border: 1px solid #E6E6E6;
  border-radius: 56px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .1);
}

.minitoggle .toggle-handle {
  position: absolute;
  top: -4px;
  left: -1px;
  z-index: 2;
  width: 22px;
  height: 22px;
  background-color: #fff;
  background-image: -webkit-linear-gradient(top, #fff 0, #f2f2f2 100%);
  background-image: linear-gradient(to bottom, #fff 0, #f2f2f2 100%);
  border-radius: 100px;
  -webkit-transition: -webkit-transform 0.1s ease-in-out, border 0.1s ease-in-out;
  transition: transform 0.1s ease-in-out, border 0.1s ease-in-out;
  box-shadow: 0px 2px 3px 0 rgba(0,0,0,0.20);
  
}

.minitoggle.active {
  background-color: #4CD964;
  border: 1px solid #4CD964;
  box-shadow: inset 0 0 15px rgba(255, 255, 255, .25);
}
.minitoggle.active .toggle-handle{
  background-color: #4CD964;
  background-image: -webkit-linear-gradient(top,#4CD964 0, #4CD964 100%);
  background-image: linear-gradient(to bottom, #4CD964 0, #4CD964 100%);
}
.minitoggle.active .toggle-handle {
  transform: translate3d(28px,0,0);
}