Last active
April 6, 2017 22:17
-
-
Save Xanir/4cb1e4b9cc7723da39dc7acdc157c6b3 to your computer and use it in GitHub Desktop.
Flex Layout
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
[flexy], | |
[flexy=h] { | |
flex-wrap: nowrap; | |
display: flex; | |
> * { | |
flex: 1 1 auto; | |
display: block; | |
&[flexy] { | |
display: flex; | |
} | |
} | |
.flexy-static { | |
flex: 0 0 auto; | |
} | |
} | |
[flexy=v] { | |
flex-direction: column; | |
min-height: 100%; | |
width: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment