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:
authorJulien Déramond <julien.deramond@orange.com>2022-06-09 19:01:20 +0300
committerMark Otto <otto@github.com>2022-07-11 10:59:42 +0300
commit5235f8eb0497ceaf319191eaf4a46f3a42e3e5a0 (patch)
tree323ee4bc12d3c6661755d57fdc8f59ab3383b45c
parent270344a0d55e9cd6b0af7eb524b6657eb8e2fdf0 (diff)
Fix 'Remove from map' Sass description
-rw-r--r--site/content/docs/5.2/customize/sass.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/site/content/docs/5.2/customize/sass.md b/site/content/docs/5.2/customize/sass.md
index 6215d1032d..0fd90bc370 100644
--- a/site/content/docs/5.2/customize/sass.md
+++ b/site/content/docs/5.2/customize/sass.md
@@ -160,18 +160,19 @@ $theme-colors: map-merge($theme-colors, $custom-colors);
### Remove from map
-To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert it between our requirements and options:
+To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert `$theme-colors` between our requirements just after its definition in `variables` and before its usage in `maps`:
```scss
// Required
@import "../node_modules/bootstrap/scss/functions";
@import "../node_modules/bootstrap/scss/variables";
+
+$theme-colors: map-remove($theme-colors, "info", "light", "dark");
+
@import "../node_modules/bootstrap/scss/maps";
@import "../node_modules/bootstrap/scss/mixins";
@import "../node_modules/bootstrap/scss/root";
-$theme-colors: map-remove($theme-colors, "info", "light", "dark");
-
// Optional
@import "../node_modules/bootstrap/scss/reboot";
@import "../node_modules/bootstrap/scss/type";