Topic: Text coloring
devtrix pro asked 6 years ago
Marta Wierzbicka staff answered 6 years ago
.#{$color_name}-text.text-#{$color_type} {
color: $color_value !important;
}
to this loop:
// Colors classes
@each $color_name, $color in $colors {
@each $color_type, $color_value in $color {
@if $color_type == "base" {
.#{$color_name} {
background-color: $color_value !important;
}
.#{$color_name}-text {
color: $color-value !important;
}
.rgba-#{$color_name}-slight {
background-color: rgba($color_value, .1);
}
.rgba-#{$color_name}-light {
background-color: rgba($color_value, .3);
}
.rgba-#{$color_name}-strong {
background-color: rgba($color_value, .7);
}
}
@else {
@if $enable_full_palette {
.#{$color_name}.#{$color_type} {
background-color: $color_value !important;
}
}
}
}
}
After change, the loop shoud look like this:
// Colors classes
@each $color_name, $color in $colors {
@each $color_type, $color_value in $color {
@if $color_type == "base" {
.#{$color_name} {
background-color: $color_value !important;
}
.#{$color_name}-text {
color: $color-value !important;
}
.rgba-#{$color_name}-slight {
background-color: rgba($color_value, .1);
}
.rgba-#{$color_name}-light {
background-color: rgba($color_value, .3);
}
.rgba-#{$color_name}-strong {
background-color: rgba($color_value, .7);
}
}
@else {
@if $enable_full_palette {
.#{$color_name}.#{$color_type} {
background-color: $color_value !important;
}
.#{$color_name}-text.text-#{$color_type} {
color: $color_value !important;
}
}
}
}
}
Best,
Marta
Jakub Strebeyko staff answered 6 years ago
Hi there,
Thanks for your input. MDB version 4.5
brought many improvements, including the way SCSS
files are compiled. Nowadays, the easiest way to adjust existent rules or add custom ones is to write them into the _custom.scss
file and then compile / minimize the whole mdb.css
pack anew.
With Best Regards,
Kuba
devtrix pro commented 6 years ago
Do you mean you guys went backwards? Did you remove those definitions?FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Pro
- Premium support: No
- Technology: MDB jQuery
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No