.bg-color-wrap {
    display: inline-block;
    width: 30px;
    height: 22px;
    margin: 3px 3px 0 0;
    border: 1px #efefef solid;
    vertical-align: middle;
    font-size: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    &[disabled] {
        opacity: 0.5;
    }

    .quick-bg-color {
        display: inline-block;
        width: 20px;
        height: 16px;
        font-size: 14px;
        line-height: 16px;
        vertical-align: top;
        text-align: center;
        cursor: default;
        color: #000;
        background: url(images/icons.png) no-repeat center -1260px;

        &:hover {
            background-color: @tool-hover;
        }

        &:active {
            background-color: @tool-active;
        }

        &[disabled] {
            opacity: 0.5;
        }
    }

    .bg-color-preview {
        display: inline-block;
        width: 12px;
        height: 2px;
        margin: 0 4px 0;
        background-color: #fff;

        &[disabled] {
            opacity: 0.5;
        }
    }
}

.bg-color {
    display: inline-block;
    width: 8px;
    height: 16px;

    &:hover {
        background-color: @tool-hover;
    }

    &:active {
        background-color: @tool-active;
    }

    &[disabled] {
        opacity: 0.5;
    }

    .caret {
        margin-left: -2px;
        margin-top: 7px;
    }
}