aboutsummaryrefslogtreecommitdiff
path: root/docs/components
diff options
context:
space:
mode:
authorTobias <[email protected]>2015-12-27 19:20:39 +0100
committerChris Rebert <[email protected]>2016-02-18 18:18:47 -0800
commitbf734252770879d7207d5dc7df7aa82109d8880b (patch)
tree146ecec07a587a38f28c02d65bd52e33c6536145 /docs/components
parente0dfe0d24ddca73eb37e500a4231e9fc97de683b (diff)
downloadbootstrap-bf734252770879d7207d5dc7df7aa82109d8880b.tar.xz
bootstrap-bf734252770879d7207d5dc7df7aa82109d8880b.zip
Document the possibility of extending the $spacers map
It's very handy to add another spacer size (e.g. `4`) which can easily be done by extending the map. Example: ``` $spacers: ( 0: ( x: 0, y: 0 ), 1: ( x: $spacer-x, y: $spacer-y ), 2: ( x: ($spacer-x * 1.5), y: ($spacer-y * 1.5) ), 3: ( x: ($spacer-x * 3), y: ($spacer-y * 3) ), 4: ( x: ($spacer-x * 5), y: ($spacer-y * 5) ) ); ``` Closes #18706 [skip sauce]
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/utilities.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/components/utilities.md b/docs/components/utilities.md
index 7add31309..96c84b961 100644
--- a/docs/components/utilities.md
+++ b/docs/components/utilities.md
@@ -39,6 +39,8 @@ Where *size* is one of:
* `2` - (by default) for classes that set the `margin` or `padding` to `$spacer-x * 1.5` or `$spacer-y * 1.5`
* `3` - (by default) for classes that set the `margin` or `padding` to `$spacer-x * 3` or `$spacer-y * 3`
+(You can add more sizes by adding entries to the `$spacers` Sass map variable.)
+
Here are some representative examples of these classes:
{% highlight scss %}