mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-10 22:24:19 +01:00
acf6ea74a7
* Add additional root variables, rename $variable-prefix to $prefix - Adds new root CSS variables for border-radius, border-width, border-color, and border-style - Adds new root CSS variables for heading-color, link-colors, code color, and highlight color - Replaces most instances of Sass variables (for border-radius, border-color, border-style, and border-width) for CSS variables inside _variables.scss - Updates $mark-padding to be an even pixel number - Renames $variable-prefix to $prefix throughout * Bundlewatch
12 lines
410 B
SCSS
12 lines
410 B
SCSS
// Container mixins
|
|
|
|
@mixin make-container($gutter: $container-padding-x) {
|
|
--#{$prefix}gutter-x: #{$gutter};
|
|
--#{$prefix}gutter-y: 0;
|
|
width: 100%;
|
|
padding-right: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
padding-left: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
margin-right: auto;
|
|
margin-left: auto;
|
|
}
|