mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-23 09:41:11 +00: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;
|
$grid-gutter-width: 30px !default;
|
||||||
|
|
||||||
|
|
||||||
|
// Container padding
|
||||||
|
|
||||||
|
$container-padding-x: $grid-gutter-width / 2 !default;
|
||||||
|
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
//
|
//
|
||||||
// Define common padding and border radius sizes and more.
|
// Define common padding and border radius sizes and more.
|
||||||
|
@ -2,10 +2,10 @@
|
|||||||
//
|
//
|
||||||
// Generate semantic grid columns with these mixins.
|
// Generate semantic grid columns with these mixins.
|
||||||
|
|
||||||
@mixin make-container($gutter: $grid-gutter-width) {
|
@mixin make-container($padding-x: $container-padding-x) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: $gutter / 2;
|
padding-right: $padding-x;
|
||||||
padding-left: $gutter / 2;
|
padding-left: $padding-x;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user