mirror of https://github.com/twbs/bootstrap.git
Extend spacers and sizes (#25101)
This commit is contained in:
parent
d16eb10e49
commit
814e5b7f57
|
@ -114,23 +114,27 @@ $enable-print-styles: true !default;
|
||||||
// variables. Mostly focused on spacing.
|
// variables. Mostly focused on spacing.
|
||||||
// You can add more entries to the $spacers map, should you need more variation.
|
// You can add more entries to the $spacers map, should you need more variation.
|
||||||
|
|
||||||
|
// stylelint-disable
|
||||||
$spacer: 1rem !default;
|
$spacer: 1rem !default;
|
||||||
$spacers: (
|
$spacers: () !default;
|
||||||
|
$spacers: map-merge((
|
||||||
0: 0,
|
0: 0,
|
||||||
1: ($spacer * .25),
|
1: ($spacer * .25),
|
||||||
2: ($spacer * .5),
|
2: ($spacer * .5),
|
||||||
3: $spacer,
|
3: $spacer,
|
||||||
4: ($spacer * 1.5),
|
4: ($spacer * 1.5),
|
||||||
5: ($spacer * 3)
|
5: ($spacer * 3)
|
||||||
) !default;
|
), $spacers);
|
||||||
|
|
||||||
// This variable affects the `.h-*` and `.w-*` classes.
|
// This variable affects the `.h-*` and `.w-*` classes.
|
||||||
$sizes: (
|
$sizes: () !default;
|
||||||
|
$sizes: map-merge((
|
||||||
25: 25%,
|
25: 25%,
|
||||||
50: 50%,
|
50: 50%,
|
||||||
75: 75%,
|
75: 75%,
|
||||||
100: 100%
|
100: 100%
|
||||||
) !default;
|
), $sizes);
|
||||||
|
// stylelint-enable
|
||||||
|
|
||||||
// Body
|
// Body
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue