Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork79.2k
Bootstrap 5 grid#28517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Bootstrap 5 grid#28517
Changes fromall commits
72c0731
16918bf
b96d906
86ef781
3c997c4
34706f1
8f9999b
d475019
ca75476
7cbd5ce
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -150,30 +150,6 @@ | ||
} | ||
// | ||
// Card groups | ||
// | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -5,18 +5,44 @@ | ||
@if $enable-grid-classes { | ||
.row { | ||
@include make-row(); | ||
> * { | ||
@include make-col-ready(); | ||
} | ||
} | ||
} | ||
// Gutters | ||
// | ||
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns. | ||
@if $enable-grid-classes { | ||
@each $breakpoint in map-keys($grid-breakpoints) { | ||
$infix: breakpoint-infix($breakpoint, $grid-breakpoints); | ||
@include media-breakpoint-up($breakpoint, $grid-breakpoints) { | ||
@each $key, $value in $gutters { | ||
.g#{$infix}-#{$key}, | ||
.gx#{$infix}-#{$key} { | ||
margin-right: -$value / 2; | ||
margin-left: -$value / 2; | ||
> * { | ||
padding-right: $value / 2; | ||
padding-left: $value / 2; | ||
} | ||
} | ||
.g#{$infix}-#{$key}, | ||
.gy#{$infix}-#{$key} { | ||
mdo marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
margin-top: -$value; | ||
> * { | ||
margin-top: $value; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -301,13 +301,14 @@ $container-max-widths: ( | ||
// Set the number of columns and specify the width of the gutters. | ||
$grid-columns: 12 !default; | ||
$grid-gutter-width:1.5rem !default; | ||
MartijnCuppens marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
$grid-row-columns: 6 !default; | ||
$gutters: $spacers !default; | ||
// Container padding | ||
$container-padding-x:1rem !default; | ||
// Components | ||
@@ -659,10 +660,6 @@ $form-text-margin-top: .25rem !default; | ||
$form-check-inline-margin-right: 1rem !default; | ||
$input-group-addon-color: $input-color !default; | ||
$input-group-addon-bg: $gray-200 !default; | ||
$input-group-addon-border-color: $input-border-color !default; | ||
@@ -932,7 +929,6 @@ $card-bg: $white !default; | ||
$card-img-overlay-padding: 1.25rem !default; | ||
$card-group-margin: $grid-gutter-width / 2 !default; | ||
// Tooltips | ||
This file was deleted.
Uh oh!
There was an error while loading.Please reload this page.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -10,27 +10,26 @@ | ||
} | ||
@mixinmake-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 weset the width | ||
// later on to override this initial width. | ||
flex-shrink:0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Hi all: while I understand the rational for dropping | ||
width:100%; | ||
max-width:100%;// Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid | ||
padding-right:$gutter/2; | ||
padding-left:$gutter/2; | ||
} | ||
@mixinmake-col($size,$columns:$grid-columns) { | ||
flex:00auto; | ||
width:percentage($size/$columns); | ||
} | ||
@mixinmake-col-auto() { | ||
flex:00auto; | ||
width:auto; | ||
} | ||
@mixinmake-col-offset($size,$columns:$grid-columns) { | ||
@@ -45,8 +44,8 @@ | ||
// style grid. | ||
@mixinrow-cols($count) { | ||
& >* { | ||
flex:00auto; | ||
width:100%/$count; | ||
} | ||
} | ||
@@ -56,35 +55,18 @@ | ||
// any value of `$grid-columns`. | ||
@mixinmake-grid-columns($columns:$grid-columns,$gutter:$grid-gutter-width,$breakpoints:$grid-breakpoints) { | ||
@each$breakpointinmap-keys($breakpoints) { | ||
$infix:breakpoint-infix($breakpoint,$breakpoints); | ||
@includemedia-breakpoint-up($breakpoint,$breakpoints) { | ||
// Provide basic `.col-{bp}` classes for equal-width flexbox columns | ||
.col#{$infix} { | ||
flex:100%;// Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4 | ||
min-width:0;// See https://github.com/twbs/bootstrap/issues/25410 | ||
} | ||
.row-cols#{$infix}-auto >* { | ||
@includemake-col-auto(); | ||
} | ||
@for$ifrom1through$grid-row-columns { | ||
Uh oh!
There was an error while loading.Please reload this page.