is it posible use variable css in lightness() function?

前端 未结 0 1680
闹比i
闹比i 2021-01-01 20:07

i tried to create mixin/function on sass like this

@function background-set-text-color($color)
  @if (lightness( $color ) > 40)
    @return black
  @else
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题