
@import "../../font";

.rd-commandbar-switch{
    float:left;
    position: relative;
    margin-right:2px;
    color:#444444;
    font-size:12px;
    padding-top: 4px;
    height:36px;
    line-height:36px;
    cursor:pointer;

    .switch-title{
        float:left;
        height:32px;
        line-height:32px;
    }

    .switch-warpper{
        float:left;
        position:relative;
        margin-left:10px;
        width:30px;
        height:32px;
    }

    .switch-flute{
        position:absolute;
        box-sizing: border-box;
        left:0;
        top:12px;
        width:100%;
        height:10px;
        border: 1px solid #999999;
        border-radius: 5px;
    }

    .switch-block{
        position:absolute;
        top:9px;
        width:14px;
        height:14px;
        background: #ffffff;
        border: 1px solid #999999;
        border-radius: 7px;
    }

    .switch-warpper-open{
        .switch-flute{
            background: #08BEC5;
        }
        .switch-block{
            right:0;
        }
    }

    .switch-warpper-close{
        .switch-flute{
            background: #efefef;
        }
        .switch-block{
            left:0;
        }
    }
}

.rd-commandbar-switch-disable {
    color:#bbbbbb;
    &:hover{
        color:#bbbbbb;
    }
    .switch-flute{
        border-color: #cccccc;
    }
    .switch-block{
        background: #efefef;
        border: 1px solid #cccccc;
    }
    .switch-warpper-open .switch-flute{
        background: #efefef;
    }
    .switch-warpper-close .switch-flute{
        background: #efefef;
    }
}