Skip to content

Instantly share code, notes, and snippets.

@scottkellum
Created February 5, 2013 17:06
Show Gist options
  • Save scottkellum/4715887 to your computer and use it in GitHub Desktop.
Save scottkellum/4715887 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com, the Sass playground.
// Sass v3.2.7
// Breakpoint v1.3
@import "breakpoint";
@function color() {
$context: breakpoint-get-context(min-width);
@if $context == 550px {
@return blue;
}
@if $context == 850px {
@return green;
}
@else {
@return false;
}
}
foo {
@include breakpoint(550px) {
color: color();
}
}
@media (min-width: 550px) {
foo {
color: blue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment