mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 15:07:13 +08:00
68 lines
1.1 KiB
SCSS
68 lines
1.1 KiB
SCSS
|
|
/**
|
|
* Badges
|
|
* --------------------------------------------------
|
|
*/
|
|
|
|
.badge {
|
|
display: inline-block;
|
|
min-width: 10px;
|
|
padding: 3px 8px;
|
|
font-size: $badge-font-size;
|
|
font-weight: $badge-font-weight;
|
|
color: $badge-color;
|
|
line-height: $badge-line-height;
|
|
vertical-align: baseline;
|
|
white-space: nowrap;
|
|
text-align: center;
|
|
background-color: $badge-bg;
|
|
border-radius: $badge-border-radius;
|
|
|
|
&:empty {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
// Quick fix for labels/badges in buttons
|
|
.button .badge {
|
|
position: relative;
|
|
top: -1px;
|
|
}
|
|
|
|
.badge-primary {
|
|
background-color: $primary;
|
|
}
|
|
.badge-secondary {
|
|
background-color: $secondary;
|
|
}
|
|
.badge-tertiary {
|
|
background-color: $tertiary;
|
|
}
|
|
.badge-positive {
|
|
background-color: $positive;
|
|
}
|
|
.badge-calm {
|
|
background-color: $calm;
|
|
}
|
|
.badge-assertive {
|
|
background-color: $assertive;
|
|
}
|
|
.badge-balanced {
|
|
background-color: $balanced;
|
|
}
|
|
.badge-energized {
|
|
background-color: $energized;
|
|
}
|
|
.badge-royal {
|
|
background-color: $royal;
|
|
}
|
|
.badge-light {
|
|
background-color: $light;
|
|
}
|
|
.badge-stable {
|
|
background-color: $stable;
|
|
}
|
|
.badge-dark {
|
|
background-color: $dark;
|
|
}
|