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

font-family quotes being stripped #250

Closed
paynecodes opened this issue Feb 28, 2014 · 2 comments
Closed

font-family quotes being stripped #250

paynecodes opened this issue Feb 28, 2014 · 2 comments

Comments

@paynecodes
Copy link

Issue originally discussed in #94 (comment)

I'm using the font-family for named media queries as proposed in the CSS-Tricks article, Making Sass talk to JavaScript with JSON. The thing is, when put a JSON string in a CSS font-family declaration, clean-css, strips my quotes.

For example,

font-family: '{ "current" : "large", "all" : ["small", "medium", "large"], "position" : 2 }'

Minifies to

font-family: {current:large,all:[small,medium,large],position:2}

I understand that this is a bit awkward, but seems to be the best way to define breakpoints in only one place.

GoalSmashers pushed a commit that referenced this issue Mar 1, 2014
It's a quick fix. Proper one comes soon to master.
@GoalSmashers
Copy link
Contributor

@jpdesigndev there's a quick fix for 2.1.4 with a more flexible solution coming in 2.2.

@paynecodes
Copy link
Author

@GoalSmashers Thanks!

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