aboutsummaryrefslogtreecommitdiff
path: root/less/grid.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-30 00:55:00 -0800
committerMark Otto <[email protected]>2013-11-30 00:55:00 -0800
commit080aa7f5c8557b232005cb947df51968d4629656 (patch)
treee546cc3ec229d201751e426da36a1b2a586ee428 /less/grid.less
parent441f9d67179f766377eed4b0cedc5dc6eec290e4 (diff)
parent819e920d1646f7e9fec8d3dd6ba10dcbd2fa1599 (diff)
downloadbootstrap-080aa7f5c8557b232005cb947df51968d4629656.tar.xz
bootstrap-080aa7f5c8557b232005cb947df51968d4629656.zip
Merge branch 'master' into pr/11299
Conflicts: dist/css/bootstrap.min.css docs-assets/js/raw-files.js
Diffstat (limited to 'less/grid.less')
-rw-r--r--less/grid.less26
1 files changed, 12 insertions, 14 deletions
diff --git a/less/grid.less b/less/grid.less
index 67e78f760..f5256be54 100644
--- a/less/grid.less
+++ b/less/grid.less
@@ -5,6 +5,16 @@
// Set the container width, and override it for fixed navbars in media queries
.container {
.container-fixed();
+
+ @media (min-width: @screen-sm) {
+ width: @container-sm;
+ }
+ @media (min-width: @screen-md) {
+ width: @container-md;
+ }
+ @media (min-width: @screen-lg-min) {
+ width: @container-lg;
+ }
}
// mobile first defaults
@@ -18,8 +28,8 @@
// Extra small grid
//
-// Grid classes for extra small devices like smartphones. No offset, push, or
-// pull classes are present here due to the size of the target.
+// Columns, offsets, pushes, and pulls for extra small devices like
+// smartphones.
//
// Note that `.col-xs-12` doesn't get floated on purpose--there's no need since
// it's full-width.
@@ -40,10 +50,6 @@
// it's full-width.
@media (min-width: @screen-sm-min) {
- .container {
- width: @container-sm;
- }
-
.make-grid-columns-float(sm);
.make-grid(@grid-columns, sm, width);
.make-grid(@grid-columns, sm, pull);
@@ -60,10 +66,6 @@
// it's full-width.
@media (min-width: @screen-md-min) {
- .container {
- width: @container-md;
- }
-
.make-grid-columns-float(md);
.make-grid(@grid-columns, md, width);
.make-grid(@grid-columns, md, pull);
@@ -80,10 +82,6 @@
// it's full-width.
@media (min-width: @screen-lg-min) {
- .container {
- width: @container-lg;
- }
-
.make-grid-columns-float(lg);
.make-grid(@grid-columns, lg, width);
.make-grid(@grid-columns, lg, pull);