Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anthonycoffey/c608fd2db1a9e9559768807b8c4a24d5 to your computer and use it in GitHub Desktop.
Save anthonycoffey/c608fd2db1a9e9559768807b8c4a24d5 to your computer and use it in GitHub Desktop.
Example of using the useful sass mixin for responsive design
.selector {
// small screens (xsmall - small)
@include breakpoint(small){
// add styling here
}
// medium screens (small - medium)
@include breakpoint(medium){
// add styling here
}
// xlarge and up
@include breakpoint(xlarge){
// add styling here
}
// medium and down
@include breakpoint(medium-and-down){
// add styling here
}
// small and down
@include breakpoint(small-and-down){
// add styling here
}
// and so on....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment