canarymason/breakpoint — pull request #10 by Snugug (2012-07-27 00:48:48+00:00)
Title: Context

Added ability to find the context of the media query you're currently in! This will open up all sorts of awesome things you can do with mixins, especially grid mixins! Use as follows:

```scss
$bkpt1: 200px;
$bkpt2: 500px;

#foo {
background: green;

@include breakpoint($bkpt1) {
@include my-background;
}

@include breakpoint($bkpt2) {
@include my-background;
}
}

@mixin my-background {
$min-width-context: breakpoint-get-context('min-width');

@if $min-width-context < 500px {
background: purple;
}
@else {
background: red;
}
}
```

Which will magically become!

```css
#foo {
background: green;
}

@media (min-width: 200px) {
#foo {
background: purple;
}
}

@media (min-width: 500px) {
#foo {
background: red;
}
}
```