MadLittleMods / postcss-increase-specificity

Why? Dealing with CSS you can't remove(mainly from a 3rd party). Increases specificity of selectors.
MIT License
50 stars 16 forks source link

Added regular expression to match keywords inside @keyframe #14

Closed IvanKalinin closed 6 years ago

IvanKalinin commented 6 years ago

By default the plugin adds additional selectors (stackableRoot) to @keyframe descendants, i.e. from, to, {number}% that break custom animations.

Added regular expression to match aforementioned keywords inside @keyframe block and ignore them;

Closes #7

IvanKalinin commented 6 years ago

Kind of like that? I think it is more reliable

IvanKalinin commented 6 years ago

@MadLittleMods How soon are your going to release that feature.

MadLittleMods commented 6 years ago

Sorry for the delay @IvanKalinin, I'll try to look at this soon 🔮

MadLittleMods commented 6 years ago

Thanks for the contribution @IvanKalinin! 😻

Merged via https://github.com/MadLittleMods/postcss-increase-specificity/pull/15 :tada:

Published in v0.6.0 🚀

Reeywhaar commented 5 years ago

Either I'm doing something wrong or vendor prefixes forgotten to include Screenshot 2019-03-31 at 23 27 35

"postcss-loader": "^3.0.0",
"postcss-increase-specificity": "^0.6.0",

Same with "postcss-loader": "2.1.6",

yep, I was wrong: problem solved with swapped postcss-increase-specificity and autoprefixer. autoprefixer should go after, not before in plugins chain