Skip to content

Instantly share code, notes, and snippets.

@eyy
Created May 8, 2021 12:12
Show Gist options
  • Save eyy/bea14032a9d30e84220739f5737c9b7f to your computer and use it in GitHub Desktop.
Save eyy/bea14032a9d30e84220739f5737c9b7f to your computer and use it in GitHub Desktop.
stylus utilities classes
// `.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