mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(text): use the new way to generate colors
This commit is contained in:
@@ -6,13 +6,14 @@
|
||||
// Generate iOS Text Colors
|
||||
// --------------------------------------------------
|
||||
|
||||
@each $color-name, $color-base, $color-contrast in get-colors($colors-ios) {
|
||||
@each $color-name, $color-value in $colors-ios {
|
||||
$base-color: ion-color($colors-ios, $color-name, base, ios);
|
||||
|
||||
.text-ios-#{$color-name},
|
||||
.text-ios-#{$color-name} a,
|
||||
.text-ios-#{$color-name} p {
|
||||
// scss-lint:disable ImportantRule
|
||||
color: $color-base !important;
|
||||
color: $base-color !important;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -6,13 +6,14 @@
|
||||
// Generate Material Design Text Colors
|
||||
// --------------------------------------------------
|
||||
|
||||
@each $color-name, $color-base, $color-contrast in get-colors($colors-md) {
|
||||
@each $color-name, $color-value in $colors-md {
|
||||
$base-color: ion-color($colors-md, $color-name, base, md);
|
||||
|
||||
.text-md-#{$color-name},
|
||||
.text-md-#{$color-name} a,
|
||||
.text-md-#{$color-name} p {
|
||||
// scss-lint:disable ImportantRule
|
||||
color: $color-base !important;
|
||||
color: $base-color !important;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user