Skip to content

Instantly share code, notes, and snippets.

@techwraith
Created July 6, 2016 19:21
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 techwraith/710acbd65d0452e6e776258ba98a5cc9 to your computer and use it in GitHub Desktop.
Save techwraith/710acbd65d0452e6e776258ba98a5cc9 to your computer and use it in GitHub Desktop.
Using css modules compose inside media queries.
.container {
compose: row from './flex.css';
}
@media (min-width: 768px) {
.container {
compose: column from './flex.css'
}
}
.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