diff options
| author | ysds <[email protected]> | 2018-02-12 07:24:47 +0900 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2018-02-11 14:24:47 -0800 |
| commit | 3ffe4f82b794e174fafe58d80980aa37bc02e5e4 (patch) | |
| tree | 00414a900c21f88506afbe74306e56cca84d0e8a /docs/4.0 | |
| parent | 37ed1d0829240aa9fccd17b29d3897d4b55ab5ab (diff) | |
| download | bootstrap-3ffe4f82b794e174fafe58d80980aa37bc02e5e4.tar.xz bootstrap-3ffe4f82b794e174fafe58d80980aa37bc02e5e4.zip | |
Update themeing docs for more clearly how to remove from map (#25589)
* Add note about insert position of "map-remove"
* Use optional keys instead of required keys
Diffstat (limited to 'docs/4.0')
| -rw-r--r-- | docs/4.0/getting-started/theming.md | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/docs/4.0/getting-started/theming.md b/docs/4.0/getting-started/theming.md index 9e6c88eae..48d1b058f 100644 --- a/docs/4.0/getting-started/theming.md +++ b/docs/4.0/getting-started/theming.md @@ -120,10 +120,21 @@ $theme-colors: ( #### Remove from map -To remove colors from `$theme-colors`, or any other map, use `map-remove`: +To remove colors from `$theme-colors`, or any other map, use `map-remove`. Be aware you must insert it between our requirements and options: {% highlight scss %} -$theme-colors: map-remove($theme-colors, "success", "info", "danger"); +// Required +@import "node_modules/bootstrap/scss/functions"; +@import "node_modules/bootstrap/scss/variables"; +@import "node_modules/bootstrap/scss/mixins"; + +$theme-colors: map-remove($theme-colors, "info", "light", "dark"); + +// Optional +@import "node_modules/bootstrap/scss/root"; +@import "node_modules/bootstrap/scss/reboot"; +@import "node_modules/bootstrap/scss/type"; +... {% endhighlight %} #### Required keys |
