From: Martijn Cuppens Date: Wed, 9 Dec 2020 21:49:21 +0000 (+0100) Subject: Utility API, RFS option: Only generate responsive classes when needed (#32397) X-Git-Tag: v5.0.0-beta2~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fed098ef9a60994df2389efa194b9af2b6cf520;p=thirdparty%2Fbootstrap.git Utility API, RFS option: Only generate responsive classes when needed (#32397) Co-authored-by: XhmikosR --- diff --git a/scss/utilities/_api.scss b/scss/utilities/_api.scss index f1545b9514..62e1d398e3 100644 --- a/scss/utilities/_api.scss +++ b/scss/utilities/_api.scss @@ -26,7 +26,7 @@ @each $key, $utility in $utilities { // The utility can be disabled with `false`, thus check if the utility is a map first // Only proceed if responsive media queries are enabled or if it's the base media query - @if type-of($utility) == "map" and map-get($utility, rfs) { + @if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") { @include generate-utility($utility, $infix, true); } }