Add small badge
This commit is contained in:
parent
e36f2d995e
commit
9ca73eb162
2 changed files with 5 additions and 1 deletions
|
|
@ -9,7 +9,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="badge w-fit min-w-0"
|
class="badge badge-sm w-fit min-w-0"
|
||||||
style="background-color: {roleColorSoft(role.color)}; border-color: {roleColor(
|
style="background-color: {roleColorSoft(role.color)}; border-color: {roleColor(
|
||||||
role.color,
|
role.color,
|
||||||
)}; color: {roleColor(role.color)};">
|
)}; color: {roleColor(role.color)};">
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,10 @@
|
||||||
.badge {
|
.badge {
|
||||||
@apply inline-flex items-center gap-1 rounded-full border-2 border-solid border-transparent px-2 py-1 text-sm font-semibold whitespace-nowrap;
|
@apply inline-flex items-center gap-1 rounded-full border-2 border-solid border-transparent px-2 py-1 text-sm font-semibold whitespace-nowrap;
|
||||||
|
|
||||||
|
&.badge-sm {
|
||||||
|
@apply h-6 text-xs;
|
||||||
|
}
|
||||||
|
|
||||||
&.badge-neutral {
|
&.badge-neutral {
|
||||||
@apply bg-surface-less text-content-muted border-line;
|
@apply bg-surface-less text-content-muted border-line;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue