mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-21 04:53:58 +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-border-radius: 10px !default;
|
||||||
|
$badge-ios-background-color: map-get($colors-ios, primary) !default;
|
||||||
|
|
||||||
|
|
||||||
ion-badge {
|
ion-badge {
|
||||||
border-radius: $badge-ios-border-radius;
|
border-radius: $badge-ios-border-radius;
|
||||||
|
background-color: $badge-ios-background-color;
|
||||||
|
color: inverse($badge-ios-background-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -4,10 +4,13 @@
|
|||||||
// --------------------------------------------------
|
// --------------------------------------------------
|
||||||
|
|
||||||
$badge-md-border-radius: 4px !default;
|
$badge-md-border-radius: 4px !default;
|
||||||
|
$badge-md-background-color: map-get($colors-md, primary) !default;
|
||||||
|
|
||||||
|
|
||||||
ion-badge {
|
ion-badge {
|
||||||
border-radius: $badge-md-border-radius;
|
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-size: 1.3rem !default;
|
||||||
$badge-font-weight: bold !default;
|
$badge-font-weight: bold !default;
|
||||||
$badge-background-color: map-get($colors, primary);
|
|
||||||
|
|
||||||
|
|
||||||
ion-badge {
|
ion-badge {
|
||||||
@ -22,9 +21,6 @@ ion-badge {
|
|||||||
font-weight: $badge-font-weight;
|
font-weight: $badge-font-weight;
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
|
|
||||||
background-color: $badge-background-color;
|
|
||||||
color: inverse($badge-background-color);
|
|
||||||
|
|
||||||
&:empty {
|
&:empty {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user