mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
42 lines
734 B
SCSS
42 lines
734 B
SCSS
@import "../../globals.core";
|
|
|
|
// Badge
|
|
// --------------------------------------------------
|
|
|
|
$badge-font-size: 1.3rem !default;
|
|
$badge-font-weight: bold !default;
|
|
|
|
|
|
ion-badge {
|
|
display: inline-block;
|
|
|
|
padding: 3px 8px;
|
|
min-width: 10px;
|
|
|
|
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);
|
|
}
|
|
|
|
}
|