2025-03-05 20:28:54 -06:00

54 lines
1.1 KiB
SCSS

// Badges
// ? Bootstrap use bg-label-variant and bg color for solid and label style, hence we have not created mixin for that.
// *******************************************************************************
@each $color, $value in $theme-colors {
@if $color != primary and $color != light {
@include bg-glow-variant('.bg-#{$color}', $value);
}
}
// Badge Center Style
.badge-center {
padding: 3px;
line-height: 1.375;
@include badge-size($badge-height, $badge-width, $badge-center-font-size);
i {
font-size: 0.875rem;
}
}
// Dots Style
.badge.badge-dot {
display: inline-block;
margin: 0;
padding: 0;
width: 0.5rem;
height: 0.5rem;
border-radius: 50%;
vertical-align: middle;
}
// Notifications
.badge.badge-notifications {
position: absolute;
top: auto;
display: inline-block;
margin: 0;
transform: translate(-50%, -45%);
@include rtl-style {
transform: translate(50%, -45%);
}
&:not(.badge-dot) {
padding: 0.063rem 0.112rem;
font-size: 0.75rem;
line-height: 0.875rem;
@include border-radius(50rem);
}
}