@import "~@/asset/style/variables.scss";

.tags-view-container {
    z-index: 8;
    height: $tags-view-height;
    background-color: #f0f2f5;
    box-shadow: inset 0 0 3px 2px hsla(0, 0%, 39.2%, .1);

    .tags-view-wrapper {
        height: 100%;
        white-space: nowrap;
        position: relative;
        overflow-x: auto;

        &::-webkit-scrollbar {
            display: none;
        }

        .tags-view-item {
            $margin: 4px;
            display: inline-block;
            position: relative;
            cursor: pointer;
            height: #{$tags-view-height - $margin * 2};
            line-height: #{$tags-view-height - $margin * 2};
            color: #909399;
            background-color: #ffffff;
            border-radius: 3px;
            border: 1px solid #e8eaec;
            padding: 0 12px;
            font-size: 12px;
            margin: $margin;
            user-select: none;

            &:first-of-type {
                margin-left: 15px;
            }

            &:last-of-type {
                margin-right: 15px;
            }

            &::before {
                content: '';
                background: #e8eaec;
                display: inline-block;
                width: 12px;
                height: 12px;
                border-radius: 50%;
                position: relative;
                top: 1px;
                margin-right: 5px;
            }

            &.active {
                color: $--color-primary;

                &::before {
                    background: $--color-primary;
                }
            }

            .el-icon-close {
                vertical-align: 2px;
                border-radius: 50%;
                font-size: 14px;
                margin-left: 10px;

                &:before {
                    vertical-align: -3px;
                }

                &:hover {
                    color: #3A71A8;
                }
            }
        }
    }
}
