]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Move `gap` utility API from "Flex" to "Spacing"
authorTy Mick <ty@tymick.me>
Sun, 12 Dec 2021 17:19:19 +0000 (09:19 -0800)
committerMark Otto <otto@github.com>
Sun, 6 Feb 2022 23:45:22 +0000 (15:45 -0800)
The `gap` utility is described on the [Spacing page][1] but is not
actually mentioned on the [Flex page][2] (apart from the [API
section][3]).

[1]: https://getbootstrap.com/docs/5.1/utilities/spacing/
[2]: https://getbootstrap.com/docs/5.1/utilities/flex/
[3]: https://getbootstrap.com/docs/5.1/utilities/flex/#utilities-api

scss/_utilities.scss

index 6498349b2014520f0babf9240de649598eccb254..4d65bb88b52298debfe209be16b3b77356dbef1f 100644 (file)
@@ -236,12 +236,6 @@ $utilities: map-merge(
       class: flex,
       values: wrap nowrap wrap-reverse
     ),
-    "gap": (
-      responsive: true,
-      property: gap,
-      class: gap,
-      values: $spacers
-    ),
     "justify-content": (
       responsive: true,
       property: justify-content,
@@ -434,6 +428,13 @@ $utilities: map-merge(
       class: ps,
       values: $spacers
     ),
+    // Gap utility
+    "gap": (
+      responsive: true,
+      property: gap,
+      class: gap,
+      values: $spacers
+    ),
     // scss-docs-end utils-spacing
     // Text
     // scss-docs-start utils-text