Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $custom-breakpoints: (
- "small" : 640px,
- "medium" : 990px,
- "large" : 1200px,
- "xlarge" : 1600px,
- );
- // mixins
- @mixin breakpoint( $size ) {
- @each $name,$width in $custom-breakpoints {
- @if $name == $size {
- @media screen and (max-width: $width) {
- @content;
- }
- }
- }
- }
- // use like this:
- //
- // @include breakpoint( 'small' ) {
- // header {
- // position: fixed;
- // }
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement