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:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user