less2scss icon indicating copy to clipboard operation
less2scss copied to clipboard

filter coverte failed

Open marvin-min opened this issue 1 year ago • 0 comments

I have one suggestion: 1. Please format the source less file before to convert to sass file.

And I also found a bug to convert the following code:

.gradient(@color: #F5F5F5, @start: #EEE, @stop: #FFF) {
  background: @color;
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, @start),
    color-stop(1, @stop)
  );
  background: -ms-linear-gradient(bottom, @start, @stop);
  background: -moz-linear-gradient(center bottom, @start 0%, @stop 100%);
  background: -o-linear-gradient(@stop, @start);
  filter: e(
    %(
      "progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",
      @stop,
      @start
    )
  );
}
@mixin gradient($color: #F5F5F5, $start: #EEE, $stop: #FFF){
  background: $color;
  background: -webkit-gradient(
    linear,
    left bottom,
    left top,
    color-stop(0, $start),
    color-stop(1, $stop)
  );
  background: -ms-linear-gradient(bottom, $start, $stop);
  background: -moz-linear-gradient(center bottom, $start 0%, $stop 100%);
  background: -o-linear-gradient($stop, $start);
  filter: unquote(
    %(
      "progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",
      $stop,
      $start
    )
  );
}

the filter section did not correctly converted.

marvin-min avatar Nov 28 '22 08:11 marvin-min