mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-17 09:52:29 +01:00
Configurable container padding (#28554)
This commit is contained in:
parent
a776cc473d
commit
f5599d0a04
@ -222,6 +222,11 @@ $grid-columns: 12 !default;
|
||||
$grid-gutter-width: 30px !default;
|
||||
|
||||
|
||||
// Container padding
|
||||
|
||||
$container-padding-x: $grid-gutter-width / 2 !default;
|
||||
|
||||
|
||||
// Components
|
||||
//
|
||||
// Define common padding and border radius sizes and more.
|
||||
|
@ -2,10 +2,10 @@
|
||||
//
|
||||
// Generate semantic grid columns with these mixins.
|
||||
|
||||
@mixin make-container($gutter: $grid-gutter-width) {
|
||||
@mixin make-container($padding-x: $container-padding-x) {
|
||||
width: 100%;
|
||||
padding-right: $gutter / 2;
|
||||
padding-left: $gutter / 2;
|
||||
padding-right: $padding-x;
|
||||
padding-left: $padding-x;
|
||||
margin-right: auto;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user