3 ms·
Looks cool. My one thought is replace @when with @if, to make life easier for every programmer ever.
by francoisdevlin 14y ago
Looks cool. My one thought is replace @when with @if, to make life easier for every programmer ever.
- zorbo 14y agoDepends 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