.x-slider {
    height: 40px;

    overflow: hidden;
    @include border-radius(5px);

    &:before {
        top: 16px;
        @include background(linear-gradient(color-stops(#fff, #e1e1e1)));
        border: 1px solid #ccc;
        margin: 0;
        box-shadow: none;
    }

    &.x-item-disabled:before {
        @include background(linear-gradient(color-stops(#fff, #e1e1e1)));
        border-color: #ddd;
        box-shadow: none;
    }

    .x-thumb {
        margin-top: .25em;
    }
}

.x-slider.x-item-disabled {
    .x-thumb:before {
        @include background(linear-gradient(color-stops(#e1e1e1, #d1d1d1)));
        border-color: #ddd;
        box-shadow: none;
    }
}

.x-toggle,
.x-slider-multiple {
    .x-thumb:before {
        border: 0;
        background: transparent;
        background-image: none;
        @include box-shadow(none);
    }
}

.x-thumb {
    width: 2em;
    height: 2em;
    background: transparent none;
    border: 0;

    // The actual thumb
    &:after {
        top: 0 !important;
        left: 0 !important;
        height: 2em !important;
        width: 2em !important;
        border: 1px solid #bbb;
        @include insertion(1.85em, 1.85em, .1em, .1em);
        @include background(linear-gradient(color-stops(#fff, #E4E2E4)));
        @include box-shadow(inset 0 0 0 1px #fff);
        @include border-radius(1em);
    }

    &:before {
        content: '';
        position: absolute;
        top: 12px;
        width: 5000px;
        right: 1em;
        height: 8px;
        border: 1px solid #3177A4;
        @include background(linear-gradient(color-stops(#3595CC, #0678C4)));
        @include box-shadow(0 0 0 1px #CECFCE);
    }
}

.x-thumb.x-item-disabled {
    &:after {
        border-color: #ccc;
        @include background(linear-gradient(color-stops(#fff, #eee)));

    }
}

.x-toggle {
    height: 2.15em;
    @include border-radius(1.05em);
    border: 1px solid #9D9D9D;
    width: 90px;
    @include background(linear-gradient(color-stops(#DBDBDB, #E2E2E2)));
    @include box-shadow(inset 0 2px 2px #C0C0C0);

}

.x-toggle-on {
    @include background(linear-gradient(color-stops(#4B9CCC, #0076B9)));
    @include box-shadow(inset 0 1px 1px #6BADD5);
    border-color: #7D7D7D;
}
