File tree Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Expand file tree Collapse file tree 2 files changed +7
-21
lines changed Original file line number Diff line number Diff line change 2929 /// Text Colors
3030 ///
3131 @include setHelperList ($text-colors , " color" , " !important" );
32- @include setColorScale ($text-colors , false );
32+ @include setColorScale ($text-colors , " color " );
3333
3434 ///
3535 /// Background Colors
Original file line number Diff line number Diff line change 116116/// @param {Array} $colors
117117/// @param {Boolean} $bgcolor
118118///
119- @mixin setColorScale ($colors , $bgcolor : true ) {
119+ @mixin setColorScale ($colors , $property : ' background-color ' ) {
120120 @for $i from 5 through 35 {
121121 @each $class , $color in $colors {
122122 @if $i % 5 == 0 {
123123 $percentage : $i * 1% ;
124-
125- @if $bgcolor {
126- // darken
127- .#{$class } -darken-#{$i } {
128- background-color : darken ($color , $percentage );
129- }
130- // lighten
131- .#{$class } -lighten-#{$i } {
132- background-color : lighten ($color , $percentage );
133- }
134- } @else {
135- // darken
136- .#{$class } -darken-#{$i } {
137- color : darken ($color , $percentage );
138- }
139- // lighten
140- .#{$class } -lighten-#{$i } {
141- color : lighten ($color , $percentage );
142- }
124+ .#{$class } -darken-#{$i } {
125+ #{$property } : mix (black , $color , $percentage );
126+ }
127+ .#{$class } -lighten-#{$i } {
128+ #{$property } : mix (white , $color , $percentage );
143129 }
144130 }
145131 }
You can’t perform that action at this time.
0 commit comments