mirror of
https://github.com/twbs/bootstrap.git
synced 2022-11-09 12:25:43 -05:00
don't scope width on .make-xs-column mixin
This commit is contained in:
parent
e04590babb
commit
2fa0975956
1 changed files with 1 additions and 6 deletions
|
@ -550,17 +550,12 @@
|
||||||
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
|
.make-xs-column(@columns; @gutter: @grid-gutter-width) {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: left;
|
float: left;
|
||||||
|
width: percentage((@columns / @grid-columns));
|
||||||
// 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
|
||||||
padding-left: (@gutter / 2);
|
padding-left: (@gutter / 2);
|
||||||
padding-right: (@gutter / 2);
|
padding-right: (@gutter / 2);
|
||||||
@max-width: (@screen-small - 1);
|
|
||||||
|
|
||||||
// Calculate width based on number of columns available
|
|
||||||
@media (max-width: @max-width) {
|
|
||||||
width: percentage((@columns / @grid-columns));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate the small columns
|
// Generate the small columns
|
||||||
|
|
Loading…
Add table
Reference in a new issue