]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Document the possibility of extending the $spacers map
authorTobias <t@tobiasjordans.de>
Sun, 27 Dec 2015 18:20:39 +0000 (19:20 +0100)
committerChris Rebert <code@chrisrebert.com>
Fri, 19 Feb 2016 02:18:47 +0000 (18:18 -0800)
commitbf734252770879d7207d5dc7df7aa82109d8880b
tree146ecec07a587a38f28c02d65bd52e33c6536145
parente0dfe0d24ddca73eb37e500a4231e9fc97de683b
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]
docs/components/utilities.md
scss/_variables.scss