2012-06-29 00:46:45 -04:00
|
|
|
//
|
|
|
|
// Grid system
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
|
|
|
|
// Container widths
|
|
|
|
//
|
|
|
|
// Set the container width, and override it for fixed navbars in media queries.
|
|
|
|
|
2012-11-30 15:42:37 -05:00
|
|
|
.container {
|
2012-11-30 19:18:40 -05:00
|
|
|
.container-fixed();
|
2013-11-28 17:22:31 -05:00
|
|
|
|
2013-12-15 13:38:54 -05:00
|
|
|
@media (min-width: @screen-sm-min) {
|
2013-11-28 17:22:31 -05:00
|
|
|
width: @container-sm;
|
|
|
|
}
|
2013-12-15 13:38:54 -05:00
|
|
|
@media (min-width: @screen-md-min) {
|
2013-11-28 17:22:31 -05:00
|
|
|
width: @container-md;
|
|
|
|
}
|
|
|
|
@media (min-width: @screen-lg-min) {
|
|
|
|
width: @container-lg;
|
|
|
|
}
|
2012-11-30 15:42:37 -05:00
|
|
|
}
|
2012-01-29 16:06:57 -05:00
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2013-01-15 20:55:14 -05:00
|
|
|
.row {
|
2013-03-16 02:21:10 -04:00
|
|
|
.make-row();
|
2013-01-15 20:55:14 -05:00
|
|
|
}
|
2013-04-27 02:59:51 -04:00
|
|
|
|
2013-12-07 23:52:51 -05:00
|
|
|
|
|
|
|
// Columns
|
|
|
|
//
|
2013-04-27 02:59:51 -04:00
|
|
|
// Common styles for small and large grid columns
|
2013-12-07 23:52:51 -05:00
|
|
|
|
2013-10-12 01:00:37 -04:00
|
|
|
.make-grid-columns();
|
2013-01-15 20:55:14 -05:00
|
|
|
|
2013-06-02 16:38:45 -04:00
|
|
|
|
Media query (grid and responsive utilities) overhaul
Grid classes have been changed to account for a fourth set of classes,
meaning we now have XS, S, M, and L options. Specifically, we made the
following changes:
* Renames `.col-` to `.col-xs-`
* Adds `.col-md-` for devices 992px wide and up
* Remaps `.col-lg-` for devices 1200px wide and up
Alongside that, we've updated our media queries to better handle
advanced grid layouts:
* All column classes now kick in when they hit a `min-width`, undoing
the #9128 fix in
https://github.com/twbs/bootstrap/commit/db45a60cc86190a060f0baf0b3961cb
c690f3a65
* All column offsets, pushes, and pulls are scoped to an appropriate
range, meaning a `min-width` and `max-width` (thanks for the idea,
@eratzlaff)
We've also modified the widths of our grid containers for the small
device grid (now a max 720px instead of 728px) and large device grid
(now a max 1140px instead of 1170px) to avoid horizontal scrollbar
problems in Firefox (likely due to box-sizing, which is why we didn't
see it in 2.x).
Similarly, we've updated the responsive ultility classes to match the
new four media query approach of the grid system. That means we've:
* Added new `.visible-xs` and `.hidden-xs` classes
* Reassigns visible and hidden classes for small, medium, and large to
matching grid system media queries
* Updates docs examples to match grid system and account for fourth
utility range
-----
Fixes the following:
* #9135: fourth grid tier
* #9302: undoes previous range change for small grid system, so no need
to update any docs here
* #8755: consistent grid and responsive utilities schemas)
* #9195, #9216, and #9227: no more horizontal scrollbars
2013-08-12 03:28:50 -04:00
|
|
|
// Extra small grid
|
2013-06-08 17:04:16 -04:00
|
|
|
//
|
2013-11-17 15:15:25 -05:00
|
|
|
// Columns, offsets, pushes, and pulls for extra small devices like
|
|
|
|
// smartphones.
|
2013-06-08 17:04:16 -04:00
|
|
|
|
2013-10-12 01:00:37 -04:00
|
|
|
.make-grid-columns-float(xs);
|
|
|
|
.make-grid(@grid-columns, xs, width);
|
|
|
|
.make-grid(@grid-columns, xs, pull);
|
|
|
|
.make-grid(@grid-columns, xs, push);
|
|
|
|
.make-grid(@grid-columns, xs, offset);
|
Media query (grid and responsive utilities) overhaul
Grid classes have been changed to account for a fourth set of classes,
meaning we now have XS, S, M, and L options. Specifically, we made the
following changes:
* Renames `.col-` to `.col-xs-`
* Adds `.col-md-` for devices 992px wide and up
* Remaps `.col-lg-` for devices 1200px wide and up
Alongside that, we've updated our media queries to better handle
advanced grid layouts:
* All column classes now kick in when they hit a `min-width`, undoing
the #9128 fix in
https://github.com/twbs/bootstrap/commit/db45a60cc86190a060f0baf0b3961cb
c690f3a65
* All column offsets, pushes, and pulls are scoped to an appropriate
range, meaning a `min-width` and `max-width` (thanks for the idea,
@eratzlaff)
We've also modified the widths of our grid containers for the small
device grid (now a max 720px instead of 728px) and large device grid
(now a max 1140px instead of 1170px) to avoid horizontal scrollbar
problems in Firefox (likely due to box-sizing, which is why we didn't
see it in 2.x).
Similarly, we've updated the responsive ultility classes to match the
new four media query approach of the grid system. That means we've:
* Added new `.visible-xs` and `.hidden-xs` classes
* Reassigns visible and hidden classes for small, medium, and large to
matching grid system media queries
* Updates docs examples to match grid system and account for fourth
utility range
-----
Fixes the following:
* #9135: fourth grid tier
* #9302: undoes previous range change for small grid system, so no need
to update any docs here
* #8755: consistent grid and responsive utilities schemas)
* #9195, #9216, and #9227: no more horizontal scrollbars
2013-08-12 03:28:50 -04:00
|
|
|
|
|
|
|
|
|
|
|
// Small grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the small device range, from phones
|
|
|
|
// to tablets.
|
|
|
|
|
2013-09-11 04:32:08 -04:00
|
|
|
@media (min-width: @screen-sm-min) {
|
2013-10-12 01:00:37 -04:00
|
|
|
.make-grid-columns-float(sm);
|
|
|
|
.make-grid(@grid-columns, sm, width);
|
|
|
|
.make-grid(@grid-columns, sm, pull);
|
|
|
|
.make-grid(@grid-columns, sm, push);
|
|
|
|
.make-grid(@grid-columns, sm, offset);
|
2013-06-02 16:38:45 -04:00
|
|
|
}
|
2013-04-02 22:40:43 -04:00
|
|
|
|
Media query (grid and responsive utilities) overhaul
Grid classes have been changed to account for a fourth set of classes,
meaning we now have XS, S, M, and L options. Specifically, we made the
following changes:
* Renames `.col-` to `.col-xs-`
* Adds `.col-md-` for devices 992px wide and up
* Remaps `.col-lg-` for devices 1200px wide and up
Alongside that, we've updated our media queries to better handle
advanced grid layouts:
* All column classes now kick in when they hit a `min-width`, undoing
the #9128 fix in
https://github.com/twbs/bootstrap/commit/db45a60cc86190a060f0baf0b3961cb
c690f3a65
* All column offsets, pushes, and pulls are scoped to an appropriate
range, meaning a `min-width` and `max-width` (thanks for the idea,
@eratzlaff)
We've also modified the widths of our grid containers for the small
device grid (now a max 720px instead of 728px) and large device grid
(now a max 1140px instead of 1170px) to avoid horizontal scrollbar
problems in Firefox (likely due to box-sizing, which is why we didn't
see it in 2.x).
Similarly, we've updated the responsive ultility classes to match the
new four media query approach of the grid system. That means we've:
* Added new `.visible-xs` and `.hidden-xs` classes
* Reassigns visible and hidden classes for small, medium, and large to
matching grid system media queries
* Updates docs examples to match grid system and account for fourth
utility range
-----
Fixes the following:
* #9135: fourth grid tier
* #9302: undoes previous range change for small grid system, so no need
to update any docs here
* #8755: consistent grid and responsive utilities schemas)
* #9195, #9216, and #9227: no more horizontal scrollbars
2013-08-12 03:28:50 -04:00
|
|
|
|
|
|
|
// Medium grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the desktop device range.
|
|
|
|
|
2013-09-11 04:32:08 -04:00
|
|
|
@media (min-width: @screen-md-min) {
|
2013-10-12 01:00:37 -04:00
|
|
|
.make-grid-columns-float(md);
|
|
|
|
.make-grid(@grid-columns, md, width);
|
|
|
|
.make-grid(@grid-columns, md, pull);
|
|
|
|
.make-grid(@grid-columns, md, push);
|
|
|
|
.make-grid(@grid-columns, md, offset);
|
Media query (grid and responsive utilities) overhaul
Grid classes have been changed to account for a fourth set of classes,
meaning we now have XS, S, M, and L options. Specifically, we made the
following changes:
* Renames `.col-` to `.col-xs-`
* Adds `.col-md-` for devices 992px wide and up
* Remaps `.col-lg-` for devices 1200px wide and up
Alongside that, we've updated our media queries to better handle
advanced grid layouts:
* All column classes now kick in when they hit a `min-width`, undoing
the #9128 fix in
https://github.com/twbs/bootstrap/commit/db45a60cc86190a060f0baf0b3961cb
c690f3a65
* All column offsets, pushes, and pulls are scoped to an appropriate
range, meaning a `min-width` and `max-width` (thanks for the idea,
@eratzlaff)
We've also modified the widths of our grid containers for the small
device grid (now a max 720px instead of 728px) and large device grid
(now a max 1140px instead of 1170px) to avoid horizontal scrollbar
problems in Firefox (likely due to box-sizing, which is why we didn't
see it in 2.x).
Similarly, we've updated the responsive ultility classes to match the
new four media query approach of the grid system. That means we've:
* Added new `.visible-xs` and `.hidden-xs` classes
* Reassigns visible and hidden classes for small, medium, and large to
matching grid system media queries
* Updates docs examples to match grid system and account for fourth
utility range
-----
Fixes the following:
* #9135: fourth grid tier
* #9302: undoes previous range change for small grid system, so no need
to update any docs here
* #8755: consistent grid and responsive utilities schemas)
* #9195, #9216, and #9227: no more horizontal scrollbars
2013-08-12 03:28:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Large grid
|
|
|
|
//
|
|
|
|
// Columns, offsets, pushes, and pulls for the large desktop device range.
|
|
|
|
|
2013-08-24 17:00:52 -04:00
|
|
|
@media (min-width: @screen-lg-min) {
|
2013-10-12 01:00:37 -04:00
|
|
|
.make-grid-columns-float(lg);
|
|
|
|
.make-grid(@grid-columns, lg, width);
|
|
|
|
.make-grid(@grid-columns, lg, pull);
|
|
|
|
.make-grid(@grid-columns, lg, push);
|
|
|
|
.make-grid(@grid-columns, lg, offset);
|
2013-06-02 18:33:42 -04:00
|
|
|
}
|