diff options
| author | Martijn Cuppens <[email protected]> | 2020-12-09 22:49:21 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-09 23:49:21 +0200 |
| commit | 8fed098ef9a60994df2389efa194b9af2b6cf520 (patch) | |
| tree | daf826a188ac3cbbd8932116335c597846b3555e /scss | |
| parent | aa2df26b55324f2b0d3e06e064d78fa952271cbf (diff) | |
| download | bootstrap-8fed098ef9a60994df2389efa194b9af2b6cf520.tar.xz bootstrap-8fed098ef9a60994df2389efa194b9af2b6cf520.zip | |
Utility API, RFS option: Only generate responsive classes when needed (#32397)
Co-authored-by: XhmikosR <[email protected]>
Diffstat (limited to 'scss')
| -rw-r--r-- | scss/utilities/_api.scss | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/utilities/_api.scss b/scss/utilities/_api.scss index f1545b951..62e1d398e 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); } } |
