Created
February 5, 2015 04:19
-
-
Save paceaux/d3136b207edf59e88c8f to your computer and use it in GitHub Desktop.
Stylus Flexbox Foundation
This file contains hidden or 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
[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