diff options
| author | Martijn Cuppens <[email protected]> | 2020-02-15 12:01:32 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-02-15 12:01:32 +0100 |
| commit | 1d8a3a9597e7de89e5510a123b22e06b62377a4d (patch) | |
| tree | 9fec9f1aee8d71bcb47b98182ed4c89d108c566d /scss/utilities | |
| parent | 22062ed9d7f7b96e3fbb0fab7264959cf32b22d8 (diff) | |
| download | bootstrap-1d8a3a9597e7de89e5510a123b22e06b62377a4d.tar.xz bootstrap-1d8a3a9597e7de89e5510a123b22e06b62377a4d.zip | |
Add RFS to utility API (#30050)
Diffstat (limited to 'scss/utilities')
| -rw-r--r-- | scss/utilities/_api.scss | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scss/utilities/_api.scss b/scss/utilities/_api.scss index 5b9b6651c..f1545b951 100644 --- a/scss/utilities/_api.scss +++ b/scss/utilities/_api.scss @@ -16,6 +16,24 @@ } } +// RFS rescaling +@media (min-width: $rfs-mq-value) { + @each $breakpoint in map-keys($grid-breakpoints) { + $infix: breakpoint-infix($breakpoint, $grid-breakpoints); + + @if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) { + // Loop over each utility property + @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) { + @include generate-utility($utility, $infix, true); + } + } + } + } +} + // Print utilities @media print { |
