Skip to content

Instantly share code, notes, and snippets.

@antiden
Created April 14, 2018 06:47
Show Gist options
  • Save antiden/b94febbf636db659e7b700f2e75924c7 to your computer and use it in GitHub Desktop.
Save antiden/b94febbf636db659e7b700f2e75924c7 to your computer and use it in GitHub Desktop.
Stylus grid system
/************Grid****************/
grid()
display flex
flex-flow row wrap
margin -15px
grid_item(arguments)
flex-basis "calc(%s - (15px * 2))" % arguments
margin 15px
/************Project tags*********/
.row
grid()
.row__element
grid_item(25%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment