Skip to content

Instantly share code, notes, and snippets.

@xtrasmal
Created June 20, 2013 14:30
Show Gist options
  • Select an option

  • Save xtrasmal/5823218 to your computer and use it in GitHub Desktop.

Select an option

Save xtrasmal/5823218 to your computer and use it in GitHub Desktop.
SCSS named mediaquery
@import "mediaquery"
.fart {
width: 25%;
@include breakpoint(tablet-size) {
width: 100%;
}
}
@mixin breakpoint($point) {
@if $point == large-size {
@media (max-width: 1600px) { @content; }
}
@else if $point == normal-size {
@media (max-width: 1250px) { @content; }
}
@else if $point == tablet-size {
@media (max-width: 650px) { @content; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment