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-10-14 04:00:41 -04:00
|
|
|
|
|
|
|
.material-symbols {
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
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%;
|
|
|
|
}
|
2024-09-24 07:53:17 -04:00
|
|
|
|
|
|
|
.badge-premium {
|
|
|
|
background-color: var(--neutral-20);
|
|
|
|
color: var(--neutral-90);
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-weight: var(--badge-font-weight);
|
|
|
|
}
|
2024-10-23 06:31:20 -04:00
|
|
|
|
2024-10-25 10:37:10 -04:00
|
|
|
.badge-link {
|
|
|
|
display: inline-block;
|
|
|
|
|
|
|
|
&.badge-link-light:hover .badge {
|
|
|
|
background-color: var(--neutral-30) !important;
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge {
|
|
|
|
@include body-sm;
|
|
|
|
|
|
|
|
padding: 0 var(--bs-badge-padding-x);
|
|
|
|
transition: background-color 0.15s ease-in-out;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
transition: background-color 0.15s ease-in-out;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-10-25 10:58:47 -04:00
|
|
|
.badge-link-list {
|
|
|
|
display: flex;
|
|
|
|
gap: var(--spacing-05);
|
|
|
|
flex-wrap: wrap;
|
|
|
|
list-style: none;
|
2024-10-25 10:59:13 -04:00
|
|
|
margin: 0;
|
2024-10-25 10:58:47 -04:00
|
|
|
padding: 0;
|
2024-11-07 10:27:34 -05:00
|
|
|
align-content: flex-start;
|
2024-10-23 06:31:20 -04:00
|
|
|
}
|