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

Add ability to black list selectors #5

Closed
spacedawwwg opened this issue Jun 18, 2015 · 5 comments
Closed

Add ability to black list selectors #5

spacedawwwg opened this issue Jun 18, 2015 · 5 comments

Comments

@spacedawwwg
Copy link
Contributor

Would be nice to add the ability to black list selectors. A use case would be :before and :after in IE9, IE10 do not like using rem's in line-height

Being able to black list psuedo elements would allow a work around.

@mars-abd
Copy link

It will be good to have ability to ignore some properties locally (not all properties by name), may be by comments, I don't know how

@cuth
Copy link
Owner

cuth commented Jun 23, 2015

Right now a good trick is to use an uppercase letter in the "px" since the match is case sensitive.

a {
  font-size: 12Px;
}

This would be ignored by pxtorem and still work in all browsers.

@mars-abd
Copy link

It's a little bit unobviously, but it is good!
I think it should be added to readme docs.

@cuth
Copy link
Owner

cuth commented Jun 23, 2015

You are correct. That needs to happen.

@cuth
Copy link
Owner

cuth commented Jul 31, 2015

I've added a paragraph to the README about ignoring declarations with uppercase px.

@cuth cuth closed this as completed Jul 31, 2015
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