Skip to content

filter coverte failed #23

Description

@marvin-min

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions