mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-05 21:27:31 +02:00
update grid col mixin to use latest css from grid cols
This commit is contained in:
@@ -443,9 +443,6 @@
|
|||||||
// Generate the columns
|
// Generate the columns
|
||||||
.make-column(@columns) {
|
.make-column(@columns) {
|
||||||
position: relative;
|
position: relative;
|
||||||
// Float and set width: 100%; for easy stacking on mobile devices
|
|
||||||
float: left;
|
|
||||||
width: 100%;
|
|
||||||
// Prevent columns from collapsing when empty
|
// Prevent columns from collapsing when empty
|
||||||
min-height: 1px;
|
min-height: 1px;
|
||||||
// Inner gutter via padding
|
// Inner gutter via padding
|
||||||
@@ -454,6 +451,7 @@
|
|||||||
|
|
||||||
// Calculate width based on number of columns available
|
// Calculate width based on number of columns available
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
|
float: left;
|
||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user