2024-04-19 08:30:23 -04:00
|
|
|
.badge {
|
|
|
|
display: inline-flex;
|
|
|
|
align-items: center;
|
|
|
|
overflow: hidden;
|
|
|
|
line-height: var(--line-height-01);
|
|
|
|
}
|
|
|
|
|
|
|
|
.badge-prepend {
|
|
|
|
margin-left: calc($spacing-01 / -2);
|
|
|
|
margin-right: $spacing-01;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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;
|
|
|
|
|
|
|
|
// a random number that would cause the close button to expand enough
|
|
|
|
// so that it won't be affected by badge's padding
|
|
|
|
$expand: 100px;
|
2024-04-30 04:12:42 -04:00
|
|
|
|
2024-04-19 08:30:23 -04:00
|
|
|
padding: $expand $spacing-01;
|
|
|
|
margin: (-$expand) (-$spacing-02) (-$expand) $spacing-02;
|
|
|
|
user-select: none;
|
|
|
|
color: inherit;
|
|
|
|
|
|
|
|
.badge-close-icon {
|
|
|
|
font-size: $font-size-base;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: var(--neutral-40);
|
|
|
|
}
|
|
|
|
}
|