Created
November 22, 2016 19:03
-
-
Save sidedwards/a818bb31cae3acaeccd92ef9f5f8dfd8 to your computer and use it in GitHub Desktop.
Scopeless Media query sass placeholder
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; | |
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