2024-07-24 09:41:40 -04:00
|
|
|
$max-width: 160px;
|
|
|
|
|
2024-04-19 08:30:23 -04:00
|
|
|
.badge {
|
|
|
|
display: inline-flex;
|
2024-05-27 08:46:48 -04:00
|
|
|
align-items: stretch;
|
|
|
|
max-width: 100%;
|
2024-04-19 08:30:23 -04:00
|
|
|
line-height: var(--line-height-01);
|
2024-05-27 08:46:48 -04:00
|
|
|
padding: 0 var(--bs-badge-padding-x);
|
2024-07-24 09:41:40 -04:00
|
|
|
|
|
|
|
&:not(.badge-tag) {
|
|
|
|
max-width: $max-width;
|
|
|
|
}
|
2024-04-19 08:30:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-prepend {
|
2024-07-24 09:41:40 -04:00
|
|
|
margin-right: var(--spacing-02);
|
2024-05-27 08:46:48 -04:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-04-19 08:30:23 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
.badge-close {
|
2024-04-30 04:12:42 -04:00
|
|
|
@include reset-button;
|
2024-04-19 08:30:23 -04:00
|
|
|
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
2024-05-27 08:46:48 -04:00
|
|
|
flex-shrink: 0;
|
2024-07-24 09:41:40 -04:00
|
|
|
padding: 0 var(--spacing-02);
|
2024-05-27 08:46:48 -04:00
|
|
|
border-top-right-radius: inherit;
|
|
|
|
border-bottom-right-radius: inherit;
|
2024-04-19 08:30:23 -04:00
|
|
|
color: inherit;
|
2024-05-27 08:46:48 -04:00
|
|
|
user-select: none;
|
2024-04-19 08:30:23 -04:00
|
|
|
|
|
|
|
.badge-close-icon {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
}
|
2024-07-24 09:41:40 -04:00
|
|
|
}
|
2024-04-19 08:30:23 -04:00
|
|
|
|
2024-07-24 09:41:40 -04:00
|
|
|
.badge-close,
|
|
|
|
.badge-tag-content-btn {
|
2024-04-19 08:30:23 -04:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--neutral-40);
|
|
|
|
}
|
|
|
|
}
|
2024-05-27 08:46:48 -04:00
|
|
|
|
|
|
|
.badge-content {
|
|
|
|
@include text-truncate;
|
2024-07-22 04:10:54 -04:00
|
|
|
|
2024-05-27 08:46:48 -04:00
|
|
|
padding: var(--bs-badge-padding-y) 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-tag {
|
|
|
|
@include body-sm;
|
2024-07-22 04:10:54 -04:00
|
|
|
|
2024-07-24 09:41:40 -04:00
|
|
|
padding: 0;
|
2024-05-27 08:46:48 -04:00
|
|
|
color: $dark;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--neutral-30) !important;
|
|
|
|
}
|
|
|
|
}
|
2024-07-24 09:41:40 -04:00
|
|
|
|
|
|
|
.badge-tag-content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
max-width: $max-width;
|
|
|
|
padding-left: var(--bs-badge-padding-x);
|
|
|
|
padding-right: var(--bs-badge-padding-x);
|
|
|
|
border-top-left-radius: inherit;
|
|
|
|
border-bottom-left-radius: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-tag-content-btn {
|
|
|
|
@include reset-button;
|
|
|
|
|
|
|
|
padding-left: var(--bs-badge-padding-x);
|
|
|
|
padding-right: var(--bs-badge-padding-x);
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-tag-circle {
|
|
|
|
display: block;
|
|
|
|
margin: var(--spacing-02);
|
|
|
|
width: var(--spacing-04);
|
|
|
|
height: var(--spacing-04);
|
|
|
|
border-radius: 50%;
|
|
|
|
}
|