From: Robert Gaul Date: Fri, 8 Sep 2017 18:55:11 +0000 (-0400) Subject: issue-10628: Define variables before use in _breakpoint.scss X-Git-Tag: v6.4.4-rc1~16^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10629%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git issue-10628: Define variables before use in _breakpoint.scss --- 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)}'); }