From e5ca4fd1388ae316e7736250e577b4916b4573a6 Mon Sep 17 00:00:00 2001 From: Geoff Kimball Date: Mon, 4 Jan 2016 16:31:46 -0800 Subject: [PATCH] Add warning if you try to use a down or only range with the last breakpoint in the map, closes #7724 #7711 --- scss/util/_breakpoint.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index e012cab32..39d6f6082 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -53,6 +53,7 @@ $breakpoint-classes: (small medium large) !default; @if $next-bp == null { $bp-max: null; + @warn 'breakpoint(): the media query "#{$val}" cannot be used because #{$bp} is the largest breakpoint.'; } @else { $bp-max: $next-bp; @@ -262,5 +263,4 @@ $xxlarge-only: null; @if map-has-key($breakpoints, xxlarge) { $xxlarge-up: screen and #{breakpoint(xxlarge)}; - $xxlarge-only: screen and #{breakpoint(xxlarge only)}; } -- 2.47.2