Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@background-image mixin not accepting value #94

Open
alexcracea opened this issue Jun 15, 2016 · 1 comment
Open

@background-image mixin not accepting value #94

alexcracea opened this issue Jun 15, 2016 · 1 comment

Comments

@alexcracea
Copy link

After installing compass-mixins I tried to include a gradient that was generated here http://www.colorzilla.com/gradient-editor/

The code included was something like this

// Needs latest Compass, add '@import "compass"' to your scss
// Permalink - use to edit and share this gradient:
// http://colorzilla.com/gradient-editor/#1e5799+0,2989d8+50,207cca+51,7db9e8+100;Blue+Gloss+Default
background-color: #1e5799; // Old browsers
@include filter-gradient(#1e5799, #7db9e8, vertical); // IE6-9
@include background-image(linear-gradient(top,  #1e5799 0%,#2989d8 50%,#207cca 51%,#7db9e8 100%));

Thing is that when I was using ruby-sass - it used to compile this function by replacing things like "top" to "to bottom". Seems like this package doesn't replace it and I have to do it manually every time.

Is it possible to integrate this string replacement into this package?

@PensionProSoftware
Copy link

PensionProSoftware commented Aug 16, 2016

I'm having this issue in a similar manner. I just want a gradient output but I can't use the gradient method because the current syntax is "to right" but the old syntax is "left", which means it either works with no prefix and all the prefix versions are broken, or vice versa.

I can give some examples if needed.

Edit: I think this could be pretty easily fixed with something like "opposite-position".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants