Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartijn Cuppens <martijn.cuppens@gmail.com>2020-02-15 14:01:32 +0300
committerGitHub <noreply@github.com>2020-02-15 14:01:32 +0300
commit1d8a3a9597e7de89e5510a123b22e06b62377a4d (patch)
tree9fec9f1aee8d71bcb47b98182ed4c89d108c566d /scss/utilities
parent22062ed9d7f7b96e3fbb0fab7264959cf32b22d8 (diff)
Add RFS to utility API (#30050)
Diffstat (limited to 'scss/utilities')
-rw-r--r--scss/utilities/_api.scss18
1 files changed, 18 insertions, 0 deletions
diff --git a/scss/utilities/_api.scss b/scss/utilities/_api.scss
index 5b9b6651cb..f1545b9514 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 {