Closed riccardoerra closed 7 years ago
How about using postcss-color-function transformations after variables and postcss-for transformations?
@Semigradsky Not sure I follow. Feel free to fork this and make your changes: https://codepen.io/riccardoerra/pen/KWRgOG
@riccardoerra See: https://codepen.io/semigradsky/pen/MoYNbj
I have moved postcss-for
to start.
Great stuff! Thanks for the help @Semigradsky
Finding an issue having the plugin working with dollar variable in a loop. Combining it with postcss-for, I'm trying to achieve this:
Input:
Expected output:
Instead I get this:
As you can see from
width: calc( $i% * 10 )
, the dollar variable is looping fine so I reckon it's probably an issue with this plugin.I also tried
h( calc( $(i) * 10 ) )
,h( calc( $(i)deg * 10 ) )
andh( calc( $ideg * 10 ) )
instead of justh( calc( $i * 10 ) )
but still not working.