mirror of
https://github.com/twbs/bootstrap.git
synced 2025-01-30 22:52:24 +01:00
Correct the horizontal padding on grid containers (#35825)
* Correct the horizontal padding on grid containers * Don't halve the container-padding-x variable
This commit is contained in:
parent
a163ed76d4
commit
918a86b425
@ -467,7 +467,7 @@ $grid-row-columns: 6 !default;
|
|||||||
|
|
||||||
// Container padding
|
// Container padding
|
||||||
|
|
||||||
$container-padding-x: $grid-gutter-width * .5 !default;
|
$container-padding-x: $grid-gutter-width !default;
|
||||||
|
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
--#{$variable-prefix}gutter-x: #{$gutter};
|
--#{$variable-prefix}gutter-x: #{$gutter};
|
||||||
--#{$variable-prefix}gutter-y: 0;
|
--#{$variable-prefix}gutter-y: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding-right: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
padding-right: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
||||||
padding-left: var(--#{$variable-prefix}gutter-x, #{$gutter});
|
padding-left: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user