]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Utility API, RFS option: Only generate responsive classes when needed (#32397)
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Wed, 9 Dec 2020 21:49:21 +0000 (22:49 +0100)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 21:49:21 +0000 (23:49 +0200)
Co-authored-by: XhmikosR <xhmikosr@gmail.com>
scss/utilities/_api.scss

index f1545b95149c23cd69347ac6025fa2e0f145eff8..62e1d398e3529d998c6ac989973a534477014f31 100644 (file)
@@ -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);
         }
       }