1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-26 11:16:12 +04:00
Files
tabler/scss/ui/_badges.scss

66 lines
1.2 KiB
SCSS

.badge {
@include subheader(false);
display: inline-flex;
justify-content: center;
padding: 0 .5em;
line-height: 1.75em;
background: $gray-500;
overflow: hidden;
vertical-align: text-bottom;
@at-root a#{&} {
color: $white;
}
&:empty {
display: inline-block;
width: $badge-empty-size;
height: $badge-empty-size;
min-width: 0;
min-height: auto;
padding: 0;
border-radius: 50%;
}
}
.badge-up {
position: absolute;
top: 25%;
right: 0;
min-width: 1.75em;
min-height: 1.75em;
padding: 0 .25rem;
line-height: 1rem;
background-clip: padding-box;
transform: translate(0%, -50%);
}
//bordered
.badge-outline {
background-color: transparent;
border: 1px solid currentColor;
}
.badge-pill {
border-radius: 100px;
min-width: 1.75em;
}
.badge-avatar {
box-sizing: content-box;
width: 1.75em;
margin: 0 .5em 0 -.5em;
color: $light-white;
background: $light-black no-repeat center/cover;
vertical-align: text-bottom;
}
.badge-addon {
padding: 0 .5rem;
margin: 0 -.5em 0 .5em;
min-width: 1.75em;
background: $light-black;
text-align: center;
color: $white;
text-decoration: none;
}