sass/ezy/_media.scss in ezy-0.2.6.alpha vs sass/ezy/_media.scss in ezy-0.2.7.alpha
- old
+ new
@@ -31,17 +31,25 @@
@mixin at-breakpoint(
$breakpoint,
$legacy-support: false
) {
+
+ // Setting variable for reference
+ // in the content of the mixin call
+ $at-breakpoint: true;
+
@media #{ nth( $breakpoint, 1 ) } {
@content;
}
@if $legacy-support or nth( $breakpoint, 2 ) {
#{ $legacy-selector } & {
/* Fallback for browsers not supporting media queries */
@content;
}
}
+
+ // Reset reference
+ $at-breakpoint: false;
}