mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
918a86b425
* Correct the horizontal padding on grid containers * Don't halve the container-padding-x variable
12 lines
446 B
SCSS
12 lines
446 B
SCSS
// Container mixins
|
|
|
|
@mixin make-container($gutter: $container-padding-x) {
|
|
--#{$variable-prefix}gutter-x: #{$gutter};
|
|
--#{$variable-prefix}gutter-y: 0;
|
|
width: 100%;
|
|
padding-right: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
padding-left: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|