@import "~@/asset/style/var";

.tags-view-container {
    height: $tags-view-height;
    box-shadow: inset 0 0 3px 2px hsla(0, 0%, 39.2%, .1);

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

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

        .tags-view-item {
            $margin: 4px;
            $border-width: 1px;

            display: inline-block;
            cursor: pointer;
            height: #{$tags-view-height - $margin * 2};
            line-height: #{$tags-view-height - $margin * 2 - $border-width * 2};
            color: $--color-text-secondary;
            background-color: #ffffff;
            border-radius: 3px;
            border: $border-width solid $--border-color-base;
            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: '';
                position: relative;
                background-color: #e8eaec;
                display: inline-block;
                width: 12px;
                height: 12px;
                border-radius: 50%;
                top: 1px;
                margin-right: 5px;
            }

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

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

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