overleaf/services/web/frontend/stylesheets/bootstrap-5/components/badge.scss
ilkin-overleaf fe7de51827 Merge pull request #18338 from overleaf/ii-bs5-split-badges-and-tags
[web] Split badges and tags

GitOrigin-RevId: fce5a93672f431ff74c2b63a67e249f5f7e7fecd
2024-05-28 08:04:05 +00:00

52 lines
920 B
SCSS

.badge {
display: inline-flex;
align-items: stretch;
max-width: 100%;
line-height: var(--line-height-01);
padding: 0 var(--bs-badge-padding-x);
}
.badge-prepend {
margin-left: calc($spacing-01 / -2);
margin-right: $spacing-01;
display: flex;
align-items: center;
}
.badge-close {
@include reset-button;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
padding: 0 $spacing-02;
margin: 0 (-$spacing-02) 0 $spacing-02;
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
color: inherit;
user-select: none;
.badge-close-icon {
font-size: $font-size-base;
}
&:hover {
background-color: var(--neutral-40);
}
}
.badge-content {
@include text-truncate;
padding: var(--bs-badge-padding-y) 0;
}
.badge-tag {
@include body-sm;
color: $dark;
&:hover {
background-color: var(--neutral-30) !important;
}
}