]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commitdiff
Add warning if you try to use a down or only range with the last breakpoint in the...
authorGeoff Kimball <geoff@zurb.com>
Tue, 5 Jan 2016 00:31:46 +0000 (16:31 -0800)
committerGeoff Kimball <geoff@zurb.com>
Tue, 5 Jan 2016 00:32:10 +0000 (16:32 -0800)
scss/util/_breakpoint.scss

index e012cab32d8629f78cd1b5213a5b2fc30e013fcf..39d6f6082e6acfcd7bb73ec12a0ec6b73042ddc7 100644 (file)
@@ -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)};
 }