mirror of
https://github.com/papercss/papercss
synced 2024-06-08 00:42:20 +02:00
30 lines
567 B
SCSS
30 lines
567 B
SCSS
@import './colors.less';
|
|
@import './borders.less';
|
|
|
|
.badge {
|
|
.border;
|
|
|
|
display: inline-block;
|
|
padding: .25em .4em;
|
|
font-size: 75%;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
vertical-align: baseline;
|
|
background-color: $muted;
|
|
color: white;
|
|
border-color: transparent;
|
|
}
|
|
|
|
@mixin make-badge-color-classes($i: length($colors)) when ($i > 0)
|
|
{
|
|
@include make-badge-color-classes($i - 1);
|
|
$color: extract($colors, $i);
|
|
.badge.${color} {
|
|
background-color: $$color;
|
|
}
|
|
}
|
|
|
|
@include make-badge-color-classes();
|