File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 " strapless"
1010 ],
1111 "homepage" : " https://www.github.com/deviscoding/colors" ,
12- "version" : " 1.0.9 " ,
12+ "version" : " 1.0.10 " ,
1313 "replace" : {
1414 "strapless/colors" : " ^1.0"
1515 },
Original file line number Diff line number Diff line change 2626 @return $color-name ;
2727 }
2828
29+ @if type-of ($color-name ) == number {
30+ $color-name : inspect ($color-name );
31+ }
32+
2933 // Force Quotes to Match Map
3034 $color-name : quote ($color-name );
3135
126130// region ////////////////////////////////////////////// Other Color Functions
127131
128132@function isLight ($color , $threshold : 150 ) {
129- @if quote ($color ) == " transparent" {
133+ @if type-of ($color ) == " string" {
134+ @if quote ($color ) == " transparent" {
135+ @return true;
136+ }
137+ }
138+ @if $color == " transparent" {
130139 @return true;
131140 } @else {
132141 $red : red ($color );
You can’t perform that action at this time.
0 commit comments