mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
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
This commit is contained in:
parent
9f60659d1d
commit
54ac2c7b05
@ -336,7 +336,7 @@ $gutters: $spacers !default;
|
||||
|
||||
// Container padding
|
||||
|
||||
$container-padding-x: 1rem !default;
|
||||
$container-padding-x: $grid-gutter-width !default;
|
||||
|
||||
|
||||
// Components
|
||||
|
@ -1,9 +1,11 @@
|
||||
// Container mixins
|
||||
|
||||
@mixin make-container($padding-x: $container-padding-x) {
|
||||
@mixin make-container($gutter: $container-padding-x) {
|
||||
--bs-gutter-x: #{$gutter};
|
||||
|
||||
width: 100%;
|
||||
padding-right: $padding-x;
|
||||
padding-left: $padding-x;
|
||||
padding-right: var(--bs-gutter-x);
|
||||
padding-left: var(--bs-gutter-x);
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user