Skip to content

Instantly share code, notes, and snippets.

@sidedwards
Created November 22, 2016 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sidedwards/a818bb31cae3acaeccd92ef9f5f8dfd8 to your computer and use it in GitHub Desktop.
Save sidedwards/a818bb31cae3acaeccd92ef9f5f8dfd8 to your computer and use it in GitHub Desktop.
Scopeless Media query sass placeholder
$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