1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-31 17:11:48 +02:00

Allow override default col width

This commit is contained in:
ysds
2019-08-28 23:37:39 +09:00
committed by Mark Otto
parent cc248791b0
commit ebfeaa4ad1
4 changed files with 23 additions and 12 deletions

View File

@@ -56,7 +56,8 @@
// 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});
& > * {
flex: 0 0 100% / $count;
max-width: 100% / $count;
}
}