Last active
April 30, 2019 00:18
-
-
Save anthonycoffey/c608fd2db1a9e9559768807b8c4a24d5 to your computer and use it in GitHub Desktop.
Example of using the useful sass mixin for responsive design
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
.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