mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
fixes #22111
- add .col-*-auto to the extend in our grid framework mixins so it gets padding - this means we can avoid the col-12 classes in our docs for the responsive variants
This commit is contained in:
parent
1d48151975
commit
7ca078da81
2 changed files with 4 additions and 3 deletions
|
@ -224,7 +224,7 @@ Use `col-{breakpoint}-auto` classes to size columns based on the natural width o
|
|||
<div class="col col-lg-2">
|
||||
1 of 3
|
||||
</div>
|
||||
<div class="col-12 col-md-auto">
|
||||
<div class="col-md-auto">
|
||||
Variable width content
|
||||
</div>
|
||||
<div class="col col-lg-2">
|
||||
|
@ -235,7 +235,7 @@ Use `col-{breakpoint}-auto` classes to size columns based on the natural width o
|
|||
<div class="col">
|
||||
1 of 3
|
||||
</div>
|
||||
<div class="col-12 col-md-auto">
|
||||
<div class="col-md-auto">
|
||||
Variable width content
|
||||
</div>
|
||||
<div class="col col-lg-2">
|
||||
|
|
|
@ -22,7 +22,8 @@
|
|||
@extend %grid-column;
|
||||
}
|
||||
}
|
||||
.col#{$infix} {
|
||||
.col#{$infix},
|
||||
.col#{$infix}-auto {
|
||||
@extend %grid-column;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue