Add Boostrap files
[cascardo/ipsilon.git] / less / bootstrap / grid.less
1 //
2 // Grid system
3 // --------------------------------------------------
4
5
6 // Container widths
7 //
8 // Set the container width, and override it for fixed navbars in media queries.
9
10 .container {
11   .container-fixed();
12
13   @media (min-width: @screen-sm-min) {
14     width: @container-sm;
15   }
16   @media (min-width: @screen-md-min) {
17     width: @container-md;
18   }
19   @media (min-width: @screen-lg-min) {
20     width: @container-lg;
21   }
22 }
23
24
25 // Fluid container
26 //
27 // Utilizes the mixin meant for fixed width containers, but without any defined
28 // width for fluid, full width layouts.
29
30 .container-fluid {
31   .container-fixed();
32 }
33
34
35 // Row
36 //
37 // Rows contain and clear the floats of your columns.
38
39 .row {
40   .make-row();
41 }
42
43
44 // Columns
45 //
46 // Common styles for small and large grid columns
47
48 .make-grid-columns();
49
50
51 // Extra small grid
52 //
53 // Columns, offsets, pushes, and pulls for extra small devices like
54 // smartphones.
55
56 .make-grid-columns-float(xs);
57 .make-grid(@grid-columns, xs, width);
58 .make-grid(@grid-columns, xs, pull);
59 .make-grid(@grid-columns, xs, push);
60 .make-grid(@grid-columns, xs, offset);
61
62
63 // Small grid
64 //
65 // Columns, offsets, pushes, and pulls for the small device range, from phones
66 // to tablets.
67
68 @media (min-width: @screen-sm-min) {
69   .make-grid-columns-float(sm);
70   .make-grid(@grid-columns, sm, width);
71   .make-grid(@grid-columns, sm, pull);
72   .make-grid(@grid-columns, sm, push);
73   .make-grid(@grid-columns, sm, offset);
74 }
75
76
77 // Medium grid
78 //
79 // Columns, offsets, pushes, and pulls for the desktop device range.
80
81 @media (min-width: @screen-md-min) {
82   .make-grid-columns-float(md);
83   .make-grid(@grid-columns, md, width);
84   .make-grid(@grid-columns, md, pull);
85   .make-grid(@grid-columns, md, push);
86   .make-grid(@grid-columns, md, offset);
87 }
88
89
90 // Large grid
91 //
92 // Columns, offsets, pushes, and pulls for the large desktop device range.
93
94 @media (min-width: @screen-lg-min) {
95   .make-grid-columns-float(lg);
96   .make-grid(@grid-columns, lg, width);
97   .make-grid(@grid-columns, lg, pull);
98   .make-grid(@grid-columns, lg, push);
99   .make-grid(@grid-columns, lg, offset);
100 }