.switch {
    -moz-user-select: none;
    border: 1px solid #c4c4c4;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    line-height: 8px;
    margin-right: 5px;
    min-width: 100px;
    overflow: hidden;
    padding: 0;
    position: relative;
    text-align: left;
    vertical-align: middle;
}
.switch span.switch-success {
    background-color: #3cc051;
    color: #ffffff;
}
.switch > div {
    display: inline-block;
    position: relative;
    top: 0;
    width: 150%;
}
.switch > div.switch-off {
    left: -50%;
    margin-left: 1px !important;
}
.switch span, .switch label {
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    font-size: 14px;
    height: 100%;
    line-height: 16px;
    padding-bottom: 4px;
    padding-top: 4px;
    position: relative;
}
.switch span {
    text-align: center;
    width: 33%;
    z-index: 1;
}
.switch span.switch-danger {
    background-color: #d14641;
    border-color: #ee5f5b #ee5f5b #e51d18;
    color: #ffffff;
}
.switch label {
    color: #ffffff;
    margin-bottom: -1px;
    margin-top: -1px;
    text-align: center;
    width: 30%;
    z-index: 100;
}
.switch > div.switch-on {
    left: -4px;
}
.switch > div.switch-animate {
    transition: left 0.5s ease 0s;
}          