1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-20 12:21:35 +02:00
- Rename and move the variable to variables file
- Move code to the grid file
- Use the mixin to generate our own classes
- Wrap in a grid classes enabled conditional
- Document the mixin
This commit is contained in:
Mark Otto
2019-07-23 23:00:29 -07:00
committed by Mark Otto
parent db692d02d5
commit cc248791b0
5 changed files with 36 additions and 12 deletions

View File

@@ -369,6 +369,20 @@ Use these row columns classes to quickly create basic grid layouts or to control
{{< /example >}}
</div>
You can also use the accompanying Sass mixin, `row-cols()`:
{{< highlight scss >}}
.element {
// Three columns to start
@include row-cols(3);
// Five columns from medium breakpoint up
@include media-breakpoint-up(md) {
@include row-cols(5);
}
}
{{< /highlight >}}
## Alignment
Use flexbox alignment utilities to vertically and horizontally align columns. **Internet Explorer 10-11 do not support vertical alignment of flex items when the flex container has a `min-height` as shown below.** [See Flexbugs #3 for more details.](https://github.com/philipwalton/flexbugs#flexbug-3)