1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-24 14:13:06 +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 XhmikosR
parent acb2b7061c
commit d08567797f
5 changed files with 36 additions and 12 deletions

View File

@@ -381,6 +381,20 @@ Use these row columns classes to quickly create basic grid layouts or to control
{% include example.html content=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);
}
}
{% endhighlight %}
## 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)