@import "@core/scss/sprite-sheets/icons.scss";

.cd-module-list-wrapper {
    position: relative;
    .cd-module-list,
    .cd-tab-module-selected {
        font-size: 0;
    }
    .cd-tab-module-selected {
        padding-top: 10px;
        a {
            margin: 0 10px 0 0;
            cursor: move;
            .cd-tab-module-close {
                display: block;
            }
            &.cd-draging {
                border: 1px dashed #29f;
                cursor: move;
            }
        }
    }
    a {
        position: relative;
        display: inline-block;
        text-align: center;
        width: 78px;
        margin: 10px 10px 0 0;
        background: #FFFFFF;
        border-radius: 2px;
        border: 1px solid #FFFFFF;
        .cd-tab-module-close {
            display: none;
            position: absolute;
            top: -4px;
            right: -4px;
            cursor: pointer;
        }
        &:hover {
            span {
                font-size: 12px;
                color: #2299FF;
            }
        }
        span {
            display: inline-block;
            line-height: 30px;
            font-size: 12px;
            color: #666666;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
    }

    .cd-tab-no-data {
        font-size: 12px;
        color: #999999;
        text-align: center;
    }
    .cd-module-list {
        margin-top: 10px;
        border-top: 1px solid #D8D8D8;
    }

    .add-module-tips {
        position: absolute;
        display: none;
        left: 50%;
        top: 50%;
        margin: -25px -104px;
        font-size: 14px;
        color: #FFFFFF;
        max-width: 208px;
        min-width: 147px;
        height: 50px;
        padding: 0 10px;
        text-align: center;
        line-height: 50px;
        background: rgba(0, 0, 0, 0.70);
        border-radius: 4px;
    }

}

.cd-mode-sort {
    background: transparent;
    .cd-selected-module {
        position: relative;
        display: inline-block;
        text-align: center;
        width: 78px;
        line-height: 30px;
        margin: 0 10px 0 0;
        background: #FFFFFF;
        border-radius: 2px;
        border: 1px solid #FFFFFF;
        cursor: move;
        .cd-tab-module-close {
            position: absolute;
            top: -4px;
            right: -4px;
            cursor: pointer;
        }
    }
}
