1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-30 00:29:52 +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

@@ -49,3 +49,14 @@
$num: $size / $columns;
margin-left: if($num == 0, 0, percentage($num));
}
// Row columns
//
// Specify on a parent element(e.g., .row) to force immediate children into NN
// numberof columns. Supports wrapping to new lines, but does not do a Masonry
// style grid.
@mixin row-cols($count) {
& > [class^="col"] {
flex: 0 0 calc(100% / #{$count});
}
}