mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
Update mixins.less
Add a the function .make-small-column. See also http://stackoverflow.com/a/17308128/1596547
This commit is contained in:
parent
ac90fbf4d8
commit
321190535f
1 changed files with 15 additions and 1 deletions
|
@ -474,7 +474,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
|
||||
// --------------------------------------------------
|
||||
|
|
Loading…
Reference in a new issue