mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
spacing and local var rename
This commit is contained in:
parent
0c45458fcc
commit
d87431a29e
@ -442,8 +442,6 @@
|
|||||||
.clearfix();
|
.clearfix();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make a grid
|
|
||||||
|
|
||||||
// Creates a wrapper for a series of columns
|
// Creates a wrapper for a series of columns
|
||||||
.make-row() {
|
.make-row() {
|
||||||
// Then clear the floated columns
|
// Then clear the floated columns
|
||||||
@ -460,6 +458,7 @@
|
|||||||
margin-right: (@grid-gutter-width / -2);
|
margin-right: (@grid-gutter-width / -2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the columns
|
// Generate the columns
|
||||||
.make-column(@columns) {
|
.make-column(@columns) {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -475,6 +474,7 @@
|
|||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the column offsets
|
// Generate the column offsets
|
||||||
.make-column-offset(@columns) {
|
.make-column-offset(@columns) {
|
||||||
@media (min-width: @grid-float-breakpoint) {
|
@media (min-width: @grid-float-breakpoint) {
|
||||||
@ -501,9 +501,10 @@
|
|||||||
// Inner gutter via padding
|
// Inner gutter via padding
|
||||||
padding-left: (@grid-gutter-width / 2);
|
padding-left: (@grid-gutter-width / 2);
|
||||||
padding-right: (@grid-gutter-width / 2);
|
padding-right: (@grid-gutter-width / 2);
|
||||||
@max : (@grid-float-breakpoint - 1 );
|
@max-width: (@grid-float-breakpoint - 1);
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
// Calculate width based on number of columns available
|
||||||
@media (max-width: @max) {
|
@media (max-width: @max-width) {
|
||||||
width: percentage((@columns / @grid-columns));
|
width: percentage((@columns / @grid-columns));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user