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

[off-topic] sass interpolation in css comments #6

Closed
m5o opened this issue Feb 14, 2014 · 2 comments
Closed

[off-topic] sass interpolation in css comments #6

m5o opened this issue Feb 14, 2014 · 2 comments

Comments

@m5o
Copy link

m5o commented Feb 14, 2014

Sorry guys for posting this question here. Maybe some sass pro had a solution for this.

Is it possible to pares css comments with sass and interpolate variables?

$background-color: #FFF;

// comment dummy #{$background-color} interpolation
- or - 
/* comment dummy #{$background-color} interpolation */

result:
// comment dummy #FFF interpolation
@Snugug
Copy link
Member

Snugug commented Feb 14, 2014

Yes, you can interpolate strings in comments, but they will only print out to a string when compiling to CSS and using the CSS comments /* */.

The correct place to ask these kinds of questions is the #sass or #compass rooms in irc.freenode.net

@Snugug Snugug closed this as completed Feb 14, 2014
@m5o
Copy link
Author

m5o commented Feb 14, 2014

thx @Snugug! didn't know there is a difference for // or /* */. Tried only //..

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