Skip to content

Commit

Permalink
feat 👍 enable to use linear_gradient mixin easily at bg mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
synchrovision committed Mar 7, 2022
1 parent 5807144 commit 03871ca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/_bg.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@
@if $mxn == v or $mxn == h or $mxn == r{
@include gradient(cp_get_color(nth($val,2)),cp_get_color(nth($val,3)),$mxn);
}
@if $mxn == l{
$colors:();
@each $color in slice($val,3){
$colors:append($colors,cp_get_color($color),comma);
}
@include linear_gradient(nth($val,2),$colors);
}
@else{
$clr:false;
@if length($val) == 2{$clr:cp_get_color(nth($val,2));}
Expand Down

0 comments on commit 03871ca

Please sign in to comment.