]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
bootstrap-grid.css: Only apply `box-sizing: border-box` to the columns instead of...
authorMartijn Cuppens <martijn.cuppens@gmail.com>
Sat, 14 Dec 2019 11:45:26 +0000 (12:45 +0100)
committerMartijn Cuppens <martijn.cuppens@gmail.com>
Tue, 10 Mar 2020 19:30:29 +0000 (20:30 +0100)
scss/bootstrap-grid.scss
scss/mixins/_grid.scss

index 8a76c9956eed217dfb59f8ff264f3c06dba03f6f..4abb6822ab53e7dfb8e2852590f9039f16955cb7 100644 (file)
@@ -5,15 +5,7 @@
  * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
  */
 
-html {
-  box-sizing: border-box;
-}
-
-*,
-*::before,
-*::after {
-  box-sizing: inherit;
-}
+$include-column-box-sizing: true !default;
 
 @import "functions";
 @import "variables";
index ef97a61bfabde9c1aee4ec630732e45914d2af4a..aa71a39a260e9bcdb9ce570d156083be82feb1bf 100644 (file)
@@ -10,6 +10,8 @@
 }
 
 @mixin make-col-ready($gutter: $grid-gutter-width) {
+  // Add box sizing if only the grid is loaded
+  box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
   // Prevent columns from becoming too narrow when at smaller grid tiers by
   // always setting `width: 100%;`. This works because we set the width
   // later on to override this initial width.