Skip to content
This repository has been archived by the owner on Aug 31, 2022. It is now read-only.

Add support for match-all custom selectors #1

Closed
jefflembeck opened this issue Dec 10, 2013 · 1 comment
Closed

Add support for match-all custom selectors #1

jefflembeck opened this issue Dec 10, 2013 · 1 comment

Comments

@jefflembeck
Copy link
Collaborator

Examples:

customselectors: {
  "*": [".icon-$1:before", ".icon-$1-what", ".hey-$1"]
},
prefix: ".icon-"

Should give the file bear.svg the css

.icon-bear:before,
.icon-bear-what,
.hey-bear,
.icon-bear {
 // CSS THINGS
}

And if there are files bear.svg and cat.svg, the css should be like:

.icon-bear:before,
.icon-bear-what,
.hey-bear,
.icon-bear {
 // CSS THINGS
}

.icon-cat:before,
.icon-cat-what,
.hey-cat,
.icon-cat {
 // CSS THINGS
}
@jefflembeck
Copy link
Collaborator Author

This was originally started over here - filamentgroup/grunticon#84

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

No branches or pull requests

1 participant