Skip to content

Instantly share code, notes, and snippets.

@tlattimore
Created December 4, 2014 20:23
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 tlattimore/f87b9158e44be9a4febe to your computer and use it in GitHub Desktop.
Save tlattimore/f87b9158e44be9a4febe to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// Breakpoint (v2.5.0)
// ----
@import "breakpoint";
$breakpoints: (
'small': 420px,
'medium': 600px,
'large': 960px,
'x-large': 1200px
);
@each $name, $size in $breakpoints {
body {
@include breakpoint($size) {
content: #{$name};
}
}
}
@media (min-width: 420px) {
body {
content: small;
}
}
@media (min-width: 600px) {
body {
content: medium;
}
}
@media (min-width: 960px) {
body {
content: large;
}
}
@media (min-width: 1200px) {
body {
content: x-large;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment