1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-01 03:10:14 +02:00

Utility API, RFS option: Only generate responsive classes when needed (#32397)

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
Martijn Cuppens
2020-12-09 22:49:21 +01:00
committed by GitHub
parent aa2df26b55
commit 8fed098ef9

View File

@@ -26,7 +26,7 @@
@each $key, $utility in $utilities { @each $key, $utility in $utilities {
// The utility can be disabled with `false`, thus check if the utility is a map first // 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 // 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); @include generate-utility($utility, $infix, true);
} }
} }