mirror of
https://github.com/Hopiu/bootstrap.git
synced 2026-04-04 05:20:24 +00:00
Fixes #7591: add .make-small-column() mixin
This commit is contained in:
parent
2d5ab9a2de
commit
4b3a43e381
1 changed files with 10 additions and 0 deletions
|
|
@ -438,6 +438,16 @@
|
|||
right: percentage((@columns / @grid-columns));
|
||||
}
|
||||
}
|
||||
// Small, mobile-first columns
|
||||
.make-small-column(@columns) {
|
||||
position: relative;
|
||||
float: left;
|
||||
// Prevent columns from collapsing when empty
|
||||
min-height: 1px;
|
||||
// Set inner padding as gutters instead of margin
|
||||
padding-left: (@grid-gutter-width / 2);
|
||||
padding-right: (@grid-gutter-width / 2);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue