Introducing gray badge variant. Use it as categories' color.

This commit is contained in:
nemunaire 2020-05-10 12:26:12 +02:00
parent ef0c289123
commit e6edb443c7
2 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,11 @@ footer {
border-top: 3px solid #9332bb;
}
.badge-gray {
color: #fff;
background-color: $gray-600;
}
@font-face {
font-family: 'Montserrat';
font-style: normal;

View File

@ -55,7 +55,7 @@
<b-list-group-item @click="toogleRR(index, idx)" button>
<strong>{{ services[svc._svctype].name }}</strong> <span v-if="svc._comment" class="text-muted">{{ svc._comment }}</span>
<span class="text-muted" v-if="services[svc._svctype].comment">{{ services[svc._svctype].comment }}</span>
<b-badge v-for="(categorie, idcat) in services[svc._svctype].categories" :key="idcat" class="float-right ml-1">{{ categorie }}</b-badge>
<b-badge v-for="(categorie, idcat) in services[svc._svctype].categories" :key="idcat" variant="gray" class="float-right ml-1">{{ categorie }}</b-badge>
<b-badge v-if="svc._tmp_hint_nb && svc._tmp_hint_nb > 1" variant="danger" class="float-right ml-1">{{ svc._tmp_hint_nb }}</b-badge>
</b-list-group-item>
<b-list-group-item v-if="expandrrs['' + index + '.' + idx]">