Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions component-library/src/components/custom/BccBadge/BccBadge.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
@layer components {
.bcc-badge {
@apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none! font-medium! whitespace-nowrap;

@apply inline-flex shrink-0 items-center justify-center gap-1 rounded-full leading-none whitespace-nowrap;
@apply bg-ctx text-ctx;

font-weight: var(--p-badge-font-weight);
}
.bcc-badge span:empty {
display: none;
Expand All @@ -11,16 +12,24 @@
@apply ctx-gradient;
}
.bcc-badge.sm {
@apply heading-xs size-4;
@apply size-4;

font-size: var(--p-badge-sm-font-size);
}
.bcc-badge.md {
@apply heading-sm size-5;
@apply size-5;

font-size: var(--p-badge-font-size);
}
.bcc-badge.lg {
@apply heading-md size-6;
@apply size-6;

font-size: var(--p-badge-lg-font-size);
}
.bcc-badge.xl {
@apply heading-md size-8;
@apply size-8;

font-size: var(--p-badge-xl-font-size);
}

.bcc-badge .bcc-badge-icon {
Expand All @@ -34,7 +43,7 @@
}

.bcc-badge.bcc-badge-text {
@apply w-auto px-2;
@apply w-auto px-2 font-medium;
}
.bcc-badge-text.lg,
.bcc-badge-text.xl {
Expand Down Expand Up @@ -62,4 +71,8 @@
.bcc-badge.squared {
@apply rounded-sm;
}

.bcc-badge.ctx-danger-bolder {
@apply text-inverse;
}
}