Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <markdotto@gmail.com>2016-02-06 11:45:29 +0300
committerMark Otto <markdotto@gmail.com>2016-02-06 11:45:29 +0300
commit5a9538d4c789ab25be71db1e6f190b8ad80e6858 (patch)
tree09c5b6ae4224c24acfc30254f7ec7f745eb31e57 /scss/_grid.scss
parent18be3be3f48d7d813ccc71d4594c836e6dbddb04 (diff)
Revamp grid classes to require .col base class and improve flexbox grid classes with auto layout via flex: 1
Diffstat (limited to 'scss/_grid.scss')
-rw-r--r--scss/_grid.scss12
1 files changed, 12 insertions, 0 deletions
diff --git a/scss/_grid.scss b/scss/_grid.scss
index d846f098c4..de5b8fc4d7 100644
--- a/scss/_grid.scss
+++ b/scss/_grid.scss
@@ -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();
}