Created
July 6, 2016 19:21
-
-
Save techwraith/710acbd65d0452e6e776258ba98a5cc9 to your computer and use it in GitHub Desktop.
Using css modules compose inside media queries.
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
.container { | |
compose: row from './flex.css'; | |
} | |
@media (min-width: 768px) { | |
.container { | |
compose: column from './flex.css' | |
} | |
} |
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
.row { | |
display: flex; | |
flex-direction: row; | |
} | |
.column { | |
display: flex; | |
flex-direction: column; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment