Created
May 8, 2021 12:12
-
-
Save eyy/bea14032a9d30e84220739f5737c9b7f to your computer and use it in GitHub Desktop.
stylus utilities classes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// `.mt-10` for `margin-top: 10`, etc. | |
// like in bootstrap | |
a = { m: margin, p: padding } | |
b = { '': '', t: '-top', r: '-right', b: '-bottom', l: '-left' } | |
for x, xx in a | |
for y, yy in b | |
for n in 0 5 10 15 20 | |
.{x}{y}-{n} | |
{xx}{yy}: n px |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment