From 0a62641478a91e22bcff519b4082ccd7192cd0e1 Mon Sep 17 00:00:00 2001 From: Robert Gaul Date: Fri, 8 Sep 2017 14:55:11 -0400 Subject: [PATCH] issue-10628: Define variables before use in _breakpoint.scss --- scss/util/_breakpoint.scss | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index dbfae8c4b..8948c7bac 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -323,26 +323,40 @@ $breakpoint-classes: (small medium large) !default; } } +$small-up: ''; +$small-only: ''; + @if map-has-key($breakpoints, small) { $small-up: screen; $small-only: unquote('screen and #{breakpoint(small only)}'); } +$medium-up: ''; +$medium-only: ''; + @if map-has-key($breakpoints, medium) { $medium-up: unquote('screen and #{breakpoint(medium)}'); $medium-only: unquote('screen and #{breakpoint(medium only)}'); } +$large-up: ''; +$large-only: ''; + @if map-has-key($breakpoints, large) { $large-up: unquote('screen and #{breakpoint(large)}'); $large-only: unquote('screen and #{breakpoint(large only)}'); } +$xlarge-up: ''; +$xlarge-only: ''; + @if map-has-key($breakpoints, xlarge) { $xlarge-up: unquote('screen and #{breakpoint(xlarge)}'); $xlarge-only: unquote('screen and #{breakpoint(xlarge only)}'); } +$xxlarge-up: ''; + @if map-has-key($breakpoints, xxlarge) { $xxlarge-up: unquote('screen and #{breakpoint(xxlarge)}'); } -- 2.47.2