Hacker News new | ask | show | jobs
by francoisdevlin 5171 days ago
Looks cool. My one thought is replace @when with @if, to make life easier for every programmer ever.
1 comments

Depends on if the OP means this should be event-driven/dynamic or not. The "when" seems to imply that it should be. When .widget becomes larger than 300px (screen resize/flip, for instance), then the font-size should become larger.

If that is OP's intention, then I feel @when is more appropriate than @if