mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(badge): split badge color into separate modes
make it so they can use a different badge by default per mode references #5222
This commit is contained in:
@ -4,10 +4,13 @@
|
||||
// --------------------------------------------------
|
||||
|
||||
$badge-ios-border-radius: 10px !default;
|
||||
$badge-ios-background-color: map-get($colors-ios, primary) !default;
|
||||
|
||||
|
||||
ion-badge {
|
||||
border-radius: $badge-ios-border-radius;
|
||||
background-color: $badge-ios-background-color;
|
||||
color: inverse($badge-ios-background-color);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3,11 +3,14 @@
|
||||
// Material Design Badge
|
||||
// --------------------------------------------------
|
||||
|
||||
$badge-md-border-radius: 4px !default;
|
||||
$badge-md-border-radius: 4px !default;
|
||||
$badge-md-background-color: map-get($colors-md, primary) !default;
|
||||
|
||||
|
||||
ion-badge {
|
||||
border-radius: $badge-md-border-radius;
|
||||
background-color: $badge-md-background-color;
|
||||
color: inverse($badge-md-background-color);
|
||||
}
|
||||
|
||||
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
$badge-font-size: 1.3rem !default;
|
||||
$badge-font-weight: bold !default;
|
||||
$badge-background-color: map-get($colors, primary);
|
||||
|
||||
|
||||
ion-badge {
|
||||
@ -22,9 +21,6 @@ ion-badge {
|
||||
font-weight: $badge-font-weight;
|
||||
line-height: 1;
|
||||
|
||||
background-color: $badge-background-color;
|
||||
color: inverse($badge-background-color);
|
||||
|
||||
&:empty {
|
||||
display: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user