Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
2 changed files
with
6 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} |