Skip to content

Instantly share code, notes, and snippets.

@paceaux
Created February 5, 2015 04:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paceaux/d3136b207edf59e88c8f to your computer and use it in GitHub Desktop.
Save paceaux/d3136b207edf59e88c8f to your computer and use it in GitHub Desktop.
Stylus Flexbox Foundation
[class*="flex"]
display:flex
&[class*="col"]
flex-direction: column;
&[class*="row"]
flex-direction: row;
for prop in space-between space-around center flex-start flex-end
&[class*=\"justify--{prop}\"]
justify-content: prop;
for prop in baseline center flex-start flex-end stretch
&[class*=\"items--{prop}\"]
align-items: prop
for prop in row column row-reverse column-reverse
&[class*=\"direction--{prop}\"]
flex-direction: prop
for prop in nowrap wrap wrap-reverse
&[class*=\"wrap--{prop}\"]
flex-wrap: prop
for num in -1..10
&[class*=\"grow-n{num}\"]
flex-grow: num
&[class*=\"shrink-n{num}\"]
flex-shrink: num
&[class*=\"order-n{num}\"]
order: num
&[class*="basis--full"]
flex-basis: 100%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment