Skip to content

Instantly share code, notes, and snippets.

@astrotim
Created August 23, 2017 06:27
Show Gist options
  • Save astrotim/07982505f5a12d91d084996ebe2f58af to your computer and use it in GitHub Desktop.
Save astrotim/07982505f5a12d91d084996ebe2f58af to your computer and use it in GitHub Desktop.
CSS Grid Mixin
@mixin display-grid {
// single column by default at XS size
@include screen-from($bp-sm-min) {
display: grid;
@include grid-not-supported {
display: flex;
flex-wrap: wrap;
};
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment