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

Needed update in css mode #55

Closed
berserkmustdie opened this issue Feb 11, 2015 · 5 comments
Closed

Needed update in css mode #55

berserkmustdie opened this issue Feb 11, 2015 · 5 comments
Assignees

Comments

@berserkmustdie
Copy link

It would be useful to render css file with prefix which can change dot to another symbol.
Example for scss
instead
.icon-1 {...}
.icon-2 {...}
.icon-3 {...}
do
%icon-1 {...}
%icon-2 {...}
%icon-3 {...}
in this case I can use @extend command for :after & :before pseudo-classes, or just another class or even a tag. And I dont need to paste sprite icon class to html file.
Such functionality would be very useful.

@jkphl
Copy link
Collaborator

jkphl commented Feb 11, 2015

Hi @berserkmustdie,

I didn't test this. but have you tried setting mode.css.prefix to something like "%icon-%s"? I could imagine this just does what you want to achieve. Please let me know if this works for you.

Cheers,
Joschi

@jkphl jkphl self-assigned this Feb 11, 2015
@jkphl jkphl added the question label Feb 11, 2015
@berserkmustdie
Copy link
Author

I tried. dot still on its place.
Only space can remove dot, but in such case I get %icon %svg-image-1 {...}
((

@jkphl
Copy link
Collaborator

jkphl commented Feb 11, 2015

Should be fixed with release v1.0.15. Please see documentation for additional notes.

@jkphl jkphl closed this as completed Feb 11, 2015
@berserkmustdie
Copy link
Author

Thank You. You a BIG man))
All works

@jkphl
Copy link
Collaborator

jkphl commented Feb 11, 2015

You're welcome. :)

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

2 participants