Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
4b3a43e3
Commit
4b3a43e3
authored
11 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
Fixes
#7591
: add .make-small-column() mixin
parent
2d5ab9a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
less/mixins.less
+10
-0
less/mixins.less
with
10 additions
and
0 deletions
+10
-0
less/mixins.less
+
10
-
0
View file @
4b3a43e3
...
@@ -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);
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment