diff options
| author | Mark Otto <[email protected]> | 2013-07-18 00:55:36 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-07-18 00:55:36 -0700 |
| commit | 0c45458fcc305d3fbb606a65c945ccf7af81acee (patch) | |
| tree | 0d641a1ec90b0a08ca371b42a77d72fd70d593cd | |
| parent | f757cf4cf312a55d44b6484692efe080107b7342 (diff) | |
| parent | 321190535f09b41683589c7e255a087b4671d36a (diff) | |
| download | bootstrap-0c45458fcc305d3fbb606a65c945ccf7af81acee.tar.xz bootstrap-0c45458fcc305d3fbb606a65c945ccf7af81acee.zip | |
Merge branch 'patch-1' of https://github.com/bassjobsen/bootstrap into bassjobsen-patch-1
| -rw-r--r-- | less/mixins.less | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/less/mixins.less b/less/mixins.less index aea83a49d..18e9a5c8f 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -492,7 +492,21 @@ } } - +// Generate the small columns +.make-small-column(@columns) { + position: relative; + float: left; + // Prevent columns from collapsing when empty + min-height: 1px; + // Inner gutter via padding + padding-left: (@grid-gutter-width / 2); + padding-right: (@grid-gutter-width / 2); + @max : (@grid-float-breakpoint - 1 ); + // Calculate width based on number of columns available + @media (max-width: @max) { + width: percentage((@columns / @grid-columns)); + } +} // Framework mixins // -------------------------------------------------- |
