aboutsummaryrefslogtreecommitdiff
path: root/less/grid.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-15 14:10:48 -0800
committerMark Otto <[email protected]>2013-12-15 14:10:48 -0800
commit122245fe87bbd293a82ffa6b9c37d8b174b3dc0f (patch)
tree35679d94b5787a2ffaf712caa0fab3bf47dd8fa3 /less/grid.less
parent0fcaca86b57bf3a4fa2c8f709e90499c92e0db73 (diff)
parent55f6beb4278979155549e17da6e87a2548ec0b88 (diff)
downloadbootstrap-122245fe87bbd293a82ffa6b9c37d8b174b3dc0f.tar.xz
bootstrap-122245fe87bbd293a82ffa6b9c37d8b174b3dc0f.zip
Merge branch 'master' into pr/11676
Conflicts: less/modals.less
Diffstat (limited to 'less/grid.less')
-rw-r--r--less/grid.less31
1 files changed, 26 insertions, 5 deletions
diff --git a/less/grid.less b/less/grid.less
index 279d80368..88957f42a 100644
--- a/less/grid.less
+++ b/less/grid.less
@@ -2,14 +2,18 @@
// Grid system
// --------------------------------------------------
-// Set the container width, and override it for fixed navbars in media queries
+
+// Container widths
+//
+// Set the container width, and override it for fixed navbars in media queries.
+
.container {
.container-fixed();
- @media (min-width: @screen-sm) {
+ @media (min-width: @screen-sm-min) {
width: @container-sm;
}
- @media (min-width: @screen-md) {
+ @media (min-width: @screen-md-min) {
width: @container-md;
}
@media (min-width: @screen-lg-min) {
@@ -17,12 +21,30 @@
}
}
-// mobile first defaults
+
+// Fluid container
+//
+// Utilizes the mixin meant for fixed width containers, but without any defined
+// width for fluid, full width layouts.
+
+.container-fluid {
+ .container-fixed();
+}
+
+
+// Row
+//
+// Rows contain and clear the floats of your columns.
+
.row {
.make-row();
}
+
+// Columns
+//
// Common styles for small and large grid columns
+
.make-grid-columns();
@@ -76,4 +98,3 @@
.make-grid(@grid-columns, lg, push);
.make-grid(@grid-columns, lg, offset);
}
-