diff options
| author | Mark Otto <[email protected]> | 2013-04-20 15:54:44 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-04-20 15:54:44 -0700 |
| commit | 4b3a43e381c7c07b5a6f1ccaeb2c910ef2a93e0a (patch) | |
| tree | d16f0709cb7098d6257c9c8f316f347c21326c9e | |
| parent | 2d5ab9a2de88a5cb9c0e13d2c9024e8cc0719b4e (diff) | |
| download | bootstrap-4b3a43e381c7c07b5a6f1ccaeb2c910ef2a93e0a.tar.xz bootstrap-4b3a43e381c7c07b5a6f1ccaeb2c910ef2a93e0a.zip | |
Fixes #7591: add .make-small-column() mixin
| -rw-r--r-- | less/mixins.less | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/less/mixins.less b/less/mixins.less index 3099e9bef..de054784d 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -438,6 +438,16 @@ right: percentage((@columns / @grid-columns)); } } +// Small, mobile-first columns +.make-small-column(@columns) { + position: relative; + float: left; + // Prevent columns from collapsing when empty + min-height: 1px; + // Set inner padding as gutters instead of margin + padding-left: (@grid-gutter-width / 2); + padding-right: (@grid-gutter-width / 2); +} |
