Blame view
app/bower_components/bootstrap/less/grid.less
1.35 KB
f986e111b
|
1 2 3 |
// // Grid system // -------------------------------------------------- |
87c93a029
|
4 5 6 7 |
// Container widths // // Set the container width, and override it for fixed navbars in media queries. |
f986e111b
|
8 9 |
.container { .container-fixed(); |
87c93a029
|
10 |
@media (min-width: @screen-sm-min) { |
f986e111b
|
11 12 |
width: @container-sm; } |
87c93a029
|
13 |
@media (min-width: @screen-md-min) { |
f986e111b
|
14 15 16 17 18 19 |
width: @container-md; } @media (min-width: @screen-lg-min) { width: @container-lg; } } |
87c93a029
|
20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
// 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. |
f986e111b
|
34 35 36 |
.row { .make-row(); } |
87c93a029
|
37 38 39 |
// Columns // |
f986e111b
|
40 |
// Common styles for small and large grid columns |
87c93a029
|
41 |
|
f986e111b
|
42 43 44 45 46 47 48 |
.make-grid-columns(); // Extra small grid // // Columns, offsets, pushes, and pulls for extra small devices like // smartphones. |
87c93a029
|
49 |
.make-grid(xs); |
f986e111b
|
50 51 52 53 54 55 56 57 |
// Small grid // // Columns, offsets, pushes, and pulls for the small device range, from phones // to tablets. @media (min-width: @screen-sm-min) { |
87c93a029
|
58 |
.make-grid(sm); |
f986e111b
|
59 60 61 62 63 64 65 66 |
} // Medium grid // // Columns, offsets, pushes, and pulls for the desktop device range. @media (min-width: @screen-md-min) { |
87c93a029
|
67 |
.make-grid(md); |
f986e111b
|
68 69 70 71 72 73 74 75 |
} // Large grid // // Columns, offsets, pushes, and pulls for the large desktop device range. @media (min-width: @screen-lg-min) { |
87c93a029
|
76 |
.make-grid(lg); |
f986e111b
|
77 |
} |