0
0
mirror of https://github.com/twbs/bootstrap.git synced 2024-12-01 13:24:25 +01:00
Bootstrap/scss/mixins/_container.scss

12 lines
446 B
SCSS
Raw Normal View History

2020-02-03 21:02:53 +01:00
// Container mixins
@mixin make-container($gutter: $container-padding-x) {
--#{$variable-prefix}gutter-x: #{$gutter};
--#{$variable-prefix}gutter-y: 0;
2020-02-03 21:02:53 +01:00
width: 100%;
padding-right: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
padding-left: calc(var(--#{$variable-prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
2020-02-03 21:02:53 +01:00
margin-right: auto;
margin-left: auto;
}