1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-09 05:00:45 +02:00

Revamp grid classes to require .col base class and improve flexbox grid classes with auto layout via flex: 1

This commit is contained in:
Mark Otto
2016-02-06 00:45:29 -08:00
parent 18be3be3f4
commit 5a9538d4c7
3 changed files with 17 additions and 17 deletions

View File

@@ -36,6 +36,18 @@
// Common styles for small and large grid columns
@if $enable-grid-classes {
.col {
position: relative;
min-height: 1px;
padding-right: ($grid-gutter-width / 2);
padding-left: ($grid-gutter-width / 2);
// Allow `.col` to use an automatic, even width when flex mode is enabled
@if $enable-flex {
flex: 1;
}
}
@include make-grid-columns();
}