mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(badge): badge colors by mode
This commit is contained in:
@@ -9,3 +9,16 @@ $badge-ios-border-radius: 10px !default;
|
||||
ion-badge {
|
||||
border-radius: $badge-ios-border-radius;
|
||||
}
|
||||
|
||||
|
||||
// Generate iOS Badge Colors
|
||||
// --------------------------------------------------
|
||||
|
||||
@each $color-name, $color-value in $colors-ios {
|
||||
|
||||
ion-badge[#{$color-name}] {
|
||||
background-color: $color-value;
|
||||
color: inverse($color-value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -9,3 +9,16 @@ $badge-md-border-radius: 4px !default;
|
||||
ion-badge {
|
||||
border-radius: $badge-md-border-radius;
|
||||
}
|
||||
|
||||
|
||||
// Generate Material Design Badge Colors
|
||||
// --------------------------------------------------
|
||||
|
||||
@each $color-name, $color-value in $colors-md {
|
||||
|
||||
ion-badge[#{$color-name}] {
|
||||
background-color: $color-value;
|
||||
color: inverse($color-value);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -27,15 +27,3 @@ ion-badge {
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user