0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-11-29 11:24:18 +01:00
Bootstrap/scss/mixins/_container.scss
Mark Otto 54ac2c7b05 Match container gutters with row gutters
- Replaces make-container mixin's padding-x param with gutter to match naming
- Changes value of container padding variable to match grid gutter width variable
- Uses local CSS variable for container padding

Fixes #31642
2020-09-23 13:30:54 -07:00

12 lines
239 B
SCSS

// Container mixins
@mixin make-container($gutter: $container-padding-x) {
--bs-gutter-x: #{$gutter};
width: 100%;
padding-right: var(--bs-gutter-x);
padding-left: var(--bs-gutter-x);
margin-right: auto;
margin-left: auto;
}