Commit 4b3a43e3 authored by Mark Otto's avatar Mark Otto
Browse files

Fixes #7591: add .make-small-column() mixin

parent 2d5ab9a2
Showing with 10 additions and 0 deletions
+10 -0
...@@ -438,6 +438,16 @@ ...@@ -438,6 +438,16 @@
right: percentage((@columns / @grid-columns)); 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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment