mirror of
https://github.com/papercss/papercss
synced 2024-06-01 13:32:42 +02:00
22 lines
466 B
SCSS
22 lines
466 B
SCSS
.badge {
|
|
@include border-style();
|
|
@include color('color', 'primary-text');
|
|
@include color('background-color', 'muted');
|
|
border: 2px solid $primary;
|
|
border-color: transparent;
|
|
display: inline-block;
|
|
font-size: 75%;
|
|
font-weight: 700;
|
|
line-height: 1;
|
|
padding: 0.25em 0.4em;
|
|
text-align: center;
|
|
vertical-align: baseline;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@each $colorName, $color in $colors {
|
|
.badge.#{$colorName} {
|
|
background-color: $color;
|
|
}
|
|
}
|