Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

String error? #14

Open
blackfalcon opened this Issue · 4 comments

3 participants

@blackfalcon

This may be a bit wonkey, but this works in a ruby development environment.

Sass 3.1.7 (Brainy Betty)
Haml 3.1.2 (Separated Sally)

The code:
@mixin linear_gradient_w3c ($default_color, $color_values, $prefixes: $prefix_defaults) {
// default fallback //
background: $default_color;
@each $prefix in $prefixes {
background: #{$prefix}linear-gradient(top, $color_values);
}
}

The error:
Syntax error: Not a valid color stop: Sass::Script::String: white 0%, white 40%, #f8f9f9 41%, #f8f9f9 55%, #f2f3f4 56%, #f2f3f4 100%
on line 12 of /Desktop/test/sass/imports/gradients/_area_51.scss, in `linear_gradient_w3c'

@zdennis
Owner

@blackfalcon did you ever find out more information about this issue?

@blackfalcon

Actually I started using the Sass and Compass gem locally and had the same issue. Still haven't figured out why that is happening.

@zdennis
Owner

I'm going to mark this as closed then unless you have any other questions relating to this issue for us.

@Kamilius

I have the same issue, as i try to do a mixin for a linear-gradient (SVG + all of the other browsers/formats). I need to pass a color by string("FFFFFF") instead of hex(#FFFFFF), so i need to connect that "#" later on. And i can't, because of this weird error...
Hope there will be a solution, as it is extreemly needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.