.tag {
    .has-ellipsis {
        max-width: 10em;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .delete, &.is-delete, &.has-delete-icon {
        @each $name, $pair in $tag-colors {
            $color: nth($pair, 1);
            &.is-#{$name} {
                background: $color;
                &:hover {
                    background-color: darken($color, 10%);
                    text-decoration: none;
                }
            }
        }
    }
    &.has-delete-icon {
        padding: 0px;
        .icon:first-child:not(:last-child) {
            margin-right: 0px;
            margin-left: 0px;
        }
    }
}

.tags {
    &.inline-tags {
        margin-bottom: 0px;
        &:not(:last-child) {
            @include ltr-property("margin", 0.5rem);
        }
    }
}
