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

Autoprefixer support #187

Open
Jedidiah opened this issue Nov 12, 2015 · 3 comments
Open

Autoprefixer support #187

Jedidiah opened this issue Nov 12, 2015 · 3 comments

Comments

@Jedidiah
Copy link

Hello, I have the autoprefixer gem installed and it works perfectly when building the assets for the project, but in the styleguide the styles do not have the vendor prefixes added.

Is there a way that I've missed to enable it?

@hagenburger
Copy link
Member

I’m planning to provide the option to output the CSS in a separate file instead of inline in the HTML. This should make it easy to use tools like Autoprefixer.

I’m not sure if you are using the command line or Rails integration. In case you use Middleman, this should work:

activate :autoprefixer, inline: true

In other cases, there is a workaround (which also makes compiling faster): Instead of importing your whole Sass project, just link to the generated CSS and import selected Sass files only (usually the files where you define variables etc.). I’m working like this in my projects which are all based on the upcoming version 2.

@Jedidiah
Copy link
Author

Thank you for the speedy reply.

It's a Rails project, I'll have a go at importing the compiled css instead.

I'm using a Sass function for the colours not variables which wasn't working with the colour block so I'm doing that bit manually. So I don't think I'm using the variables anywhere and I might get away with just the static css.

Thank you :)


The palette function works like:

element {
  color: palette(blue, light);
}

@fredrivett
Copy link

+1 encountered this issue too

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

No branches or pull requests

3 participants