Skip to content

Commit fe2580a

Browse files
committed
Add grid breakpoint for 480px
This is the col-ms purposal in twbs#10203 for v3.3.1
1 parent 9a7e365 commit fe2580a

11 files changed

+289
-17
lines changed

dist/css/bootstrap-theme.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap-theme.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.css

Lines changed: 205 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/bootstrap.min.css

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* Bootstrap v3.3.1 (http://getbootstrap.com)
3-
* Copyright 2011-2014 Twitter, Inc.
3+
* Copyright 2011-2015 Twitter, Inc.
44
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
55
*/
66

dist/js/bootstrap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

less/grid.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@
5555

5656
.make-grid(xs);
5757

58+
// Mid small grid
59+
//
60+
// Columns, offsets, pushes, and pulls for extra small devices like
61+
// smartphones.
62+
63+
@media (min-width: @screen-ms-min) {
64+
.make-grid(ms);
65+
}
66+
5867

5968
// Small grid
6069
//

less/mixins/grid.less

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,34 @@
3737
right: percentage((@columns / @grid-columns));
3838
}
3939

40+
// Generate the mid small columns
41+
.make-ms-column(@columns; @gutter: @grid-gutter-width) {
42+
position: relative;
43+
min-height: 1px;
44+
padding-left: (@gutter / 2);
45+
padding-right: (@gutter / 2);
46+
47+
@media (min-width: @screen-ms-min) {
48+
float: left;
49+
width: percentage((@columns / @grid-columns));
50+
}
51+
}
52+
.make-ms-column-offset(@columns) {
53+
@media (min-width: @screen-ms-min) {
54+
margin-left: percentage((@columns / @grid-columns));
55+
}
56+
}
57+
.make-ms-column-push(@columns) {
58+
@media (min-width: @screen-ms-min) {
59+
left: percentage((@columns / @grid-columns));
60+
}
61+
}
62+
.make-ms-column-pull(@columns) {
63+
@media (min-width: @screen-ms-min) {
64+
right: percentage((@columns / @grid-columns));
65+
}
66+
}
67+
4068
// Generate the small columns
4169
.make-sm-column(@columns; @gutter: @grid-gutter-width) {
4270
position: relative;

0 commit comments

Comments
 (0)