Skip to content

Instantly share code, notes, and snippets.

@jitendravyas
Created July 30, 2014 12:36
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 jitendravyas/3135ba98b87c8fe91d1c to your computer and use it in GitHub Desktop.
Save jitendravyas/3135ba98b87c8fe91d1c to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.12)
// Compass (v1.0.0.alpha.21)
// ----
@mixin breakpoint($class) {
@if $class == xs {
@media (max-width: 767px) { @content; }
}
@else if $class == sm {
@media (min-width: 768px) { @content; }
}
@else if $class == md {
@media (min-width: 992px) { @content; }
}
@else if $class == lg {
@media (min-width: 1200px) { @content; }
}
@else {
@warn "Breakpoint mixin supports: xs, sm, md, lg";
}
}
html, body {height:100%;
@include breakpoint(xs) {
height:auto
}
}
html, body {
height: 100%;
}
@media (max-width: 767px) {
html, body {
height: auto;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment