.lea-input-slide-toggle {
    .input-toggle-container {
        height: 1.2rem;
        overflow: hidden;
        width: 100%;
        position: relative;
        float: left;
        margin: 1.1rem 0;
    }
    .switch {
        position: relative;
        display: inline-block;
        width: 1.5rem;
        height: 1rem;
        margin-bottom: 1rem;
        input {
            opacity: 0;
            width: 0;
            height: 0;
            &:checked+.slider {
                background-color: $accent;
                &:before {
                    -webkit-transform: translateX(0.65rem);
                    -ms-transform: translateX(0.65rem);
                    transform: translateX(0.65rem);
                    width: 0.3rem;
                }
            }
            &:disabled+.slider {
                cursor: not-allowed;
                background-color: $grey;
                &:before {
                    background-color: $light-grey;
                }
            }
        }
    }
    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: $light-grey;
        -webkit-transition: 0.4s;
        transition: 0.4s;
        &:before {
            position: absolute;
            content: "";
            height: 0.6rem;
            width: 0.6rem;
            left: 0.2rem;
            bottom: 0.2rem;
            background-color: $white;
            -webkit-transition: 0.4s;
            transition: 0.4s;
        }
        &.round {
            border-radius: 1rem;
            &:before {
                border-radius: 4rem;
            }
        }
    }
    .slide-toggle-text {
        position: absolute;
        left: 2rem;
        &.active {
            animation: toggle-text-active 0.2s forwards ease;
        }
        &.not-active {
            top: -2rem;
            animation: toggle-text-notactive 0.2s forwards ease;
        }
        @keyframes toggle-text-active {
            from {
                top: -2rem;
            }
            to {
                top: -0.05rem;
            }
        }
        @keyframes toggle-text-notactive {
            from {
                top: -0.05rem;
            }
            to {
                top: 2rem;
            }
        }
    }
}

.dark-mode {
    .lea-input-slide-toggle {
        .slider {
            &:before {
                background-color: $dark-grey;
            }
        }
    }
}