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

.rd-commandbar-select{
    float:left;
    position: relative;
    margin-right:2px;
    color:#444444;
    font-size:12px;
    height:40px;
    line-height:40px;
    cursor:pointer;

    .list-wrapper{
        display:inline-block;
        box-sizing: border-box;
        position:relative;
        margin-left:10px;
        padding-left:6px;
        width:100px;
        height:20px;
        line-height:20px;
        background: #ffffff;
        border:1px solid #cccccc;
    }

    .arrow{
        position:absolute;
        top:0;
        right:0;
        width:14px;
        height:16px;
        line-height:16px;
        color: #999999;
        .iconfont();
    }

    .arrow-up:before{
        content: "\e64d";
    }

    .arrow-down:before{
        content: "\e64c";
    }

    .options-list{
        display:none;
        position:absolute;
        left:-1px;
        top:20px;
        width: 100%;
        background: #ffffff;
        border:1px solid #999999;
        box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
        z-index: 9999;
    }

    .option-item{
        padding:0 5px;
        height:26px;
        line-height:26px;
        &:hover{
            background:#E3F2FD;
        }
    }

    .option-item-selected{
        color: #ffffff;
        background: dodgerblue;
        &:hover{
            background: dodgerblue;
        }
    }
}

.rd-commandbar-select-disable{
    color:#bbbbbb;
    &:hover span{
        color:#bbbbbb;
    }
    .list-wrapper{
        background: #efefef;
        border:1px solid #cccccc;
    }
    .arrow{
        color: #cccccc;
    }
}