.alert{
    .border;
    padding: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.make-alert-color-classes(@a: length(@colors)) when (@a > 0) {
    .make-alert-color-classes(@a - 1);
    @color: extract(@colors, @a);
    .alert-@{color} {
        border-color: @@color;
        color: @@color;
        background-color: ~"@{@{color}-light}";
    }
}

.make-alert-color-classes();