Files
Brandy Carney 0fdbe7b89b fix(badge): changed back to ion-badge with a color attribute
also changed segment test to reflect actual color references #289
2015-12-08 13:10:53 -05:00

44 lines
822 B
SCSS

@import "../../globals.core";
// Badge
// --------------------------------------------------
$badge-font-size: 1.3rem !default;
$badge-font-weight: bold !default;
$badge-border-radius: 10px !default;
ion-badge {
display: inline-block;
padding: 3px 8px;
min-width: 10px;
border-radius: $badge-border-radius;
vertical-align: baseline;
text-align: center;
white-space: nowrap;
font-size: $badge-font-size;
font-weight: $badge-font-weight;
line-height: 1;
background: #ccc;
&:empty {
display: none;
}
}
// Generate Default Badge Colors
// --------------------------------------------------
@each $color-name, $color-value in $colors {
ion-badge[#{$color-name}] {
background-color: $color-value;
color: inverse($color-value);
}
}