From: Joe Workman Date: Thu, 5 Dec 2019 21:57:47 +0000 (-0800) Subject: Simplified breakpoint print if logic as agree to X-Git-Tag: v6.6.0~1^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F10979%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Simplified breakpoint print if logic as agree to generate print if the breakpoint affects the print-breakpoint (or smaller). This means the current condition only needs to be extended so 'down' always generates print. --- diff --git a/scss/util/_breakpoint.scss b/scss/util/_breakpoint.scss index 3264741c8..a0cebeee0 100644 --- a/scss/util/_breakpoint.scss +++ b/scss/util/_breakpoint.scss @@ -168,7 +168,9 @@ $breakpoint-classes: (small medium large) !default; // Otherwise, wrap the content in a media query @else { // For named breakpoints less than or equal to $print-breakpoint, add print to the media types - @if ($bp != null and $bp == $pbp and ($dir == '' or $dir == 'up' or $dir == 'only')) or ($bp != null and $bp < $pbp and ($dir == '' or $dir == 'up')) or ($bp != null and $bp >= $pbp and ($dir == 'down')) { + // generate print if the breakpoint affects the print-breakpoint (or smaller). + // This means the current condition only needs to be extended so 'down' always generates print. + @if $bp != null and ($bp <= $pbp or $dir == down) { @media print, screen and #{$str} { @content; }