MadLittleMods / postcss-css-variables

PostCSS plugin to transform CSS Custom Properties(CSS variables) syntax into a static representation
https://madlittlemods.github.io/postcss-css-variables/playground/
Other
536 stars 62 forks source link

Add support of chained selectors #117

Closed btamas closed 4 years ago

btamas commented 4 years ago

Add support for chained selectors.

From now the following css should work:

button {
    --width-small: 50px;
}

button.custom {
    --width-small: 100px;
}

button.rounded.small {
    width: var(--width-small);
}

button.custom.small {
    width: var(--width-small);
}

button.smallaswell.custom {
    width: var(--width-small);
}

Test: npm run test