Created
February 9, 2017 21:59
-
-
Save MFFunmaker/b44ac56b2e1c7d3795e58159c573c3cf to your computer and use it in GitHub Desktop.
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
$breakpoints: (sm:576px, md:768px, lg:992px, xl:1200px); | |
%button-reset { | |
$media: sm; // declare which screen size this is for | |
appearance: none; | |
border: none; | |
outline: none; | |
@each $screen-size, $breakpoint-value in $breakpoints { | |
@if ( index($media,$screen-size) ) { | |
@media (min-width: $breakpoint-value) { | |
font-size: 0.8em; | |
border: 1px solid #333; | |
} | |
} | |
} | |
} | |
.basic-button { | |
@extend %button-reset; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
An example of how to get around the scope issue created when using Sass placeholders