cardinal-rails 3.1.0.00
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/License.txt +21 -0
- data/README.md +39 -0
- data/lib/cardinal/rails.rb +8 -0
- data/lib/cardinal/rails/version.rb +5 -0
- data/vendor/assets/stylesheets/cardinal.less +83 -0
- data/vendor/assets/stylesheets/core/base/anchors.less +18 -0
- data/vendor/assets/stylesheets/core/base/blockquotes.less +45 -0
- data/vendor/assets/stylesheets/core/base/code.less +68 -0
- data/vendor/assets/stylesheets/core/base/embedded-content.less +89 -0
- data/vendor/assets/stylesheets/core/base/form-elements.less +130 -0
- data/vendor/assets/stylesheets/core/base/headings.less +50 -0
- data/vendor/assets/stylesheets/core/base/horizontal-rules.less +10 -0
- data/vendor/assets/stylesheets/core/base/lists.less +57 -0
- data/vendor/assets/stylesheets/core/base/print.less +69 -0
- data/vendor/assets/stylesheets/core/base/root.less +90 -0
- data/vendor/assets/stylesheets/core/base/selections.less +30 -0
- data/vendor/assets/stylesheets/core/base/tables.less +18 -0
- data/vendor/assets/stylesheets/core/base/text-elements.less +83 -0
- data/vendor/assets/stylesheets/core/debug.less +154 -0
- data/vendor/assets/stylesheets/core/mixins/antialiasing.less +8 -0
- data/vendor/assets/stylesheets/core/mixins/clearing.less +27 -0
- data/vendor/assets/stylesheets/core/mixins/font-face.less +33 -0
- data/vendor/assets/stylesheets/core/mixins/media-queries.less +154 -0
- data/vendor/assets/stylesheets/core/mixins/momentum-scrolling.less +8 -0
- data/vendor/assets/stylesheets/core/mixins/text-truncate.less +9 -0
- data/vendor/assets/stylesheets/core/mixins/to-rem.less +76 -0
- data/vendor/assets/stylesheets/core/mixins/vertically-centered.less +9 -0
- data/vendor/assets/stylesheets/core/normalize.less +427 -0
- data/vendor/assets/stylesheets/core/reset.less +140 -0
- data/vendor/assets/stylesheets/core/variables.less +436 -0
- data/vendor/assets/stylesheets/layout/boxes.less +53 -0
- data/vendor/assets/stylesheets/layout/grids.less +614 -0
- data/vendor/assets/stylesheets/layout/wrappers.less +30 -0
- data/vendor/assets/stylesheets/objects/buttons.less +132 -0
- data/vendor/assets/stylesheets/objects/forms.less +61 -0
- data/vendor/assets/stylesheets/objects/lists.less +45 -0
- data/vendor/assets/stylesheets/objects/tables.less +116 -0
- data/vendor/assets/stylesheets/utilities/display.less +355 -0
- data/vendor/assets/stylesheets/utilities/floats.less +137 -0
- data/vendor/assets/stylesheets/utilities/font-sizes.less +269 -0
- data/vendor/assets/stylesheets/utilities/margins.less +1322 -0
- data/vendor/assets/stylesheets/utilities/paddings.less +1322 -0
- data/vendor/assets/stylesheets/utilities/positions.less +125 -0
- data/vendor/assets/stylesheets/utilities/text-alignment.less +127 -0
- data/vendor/assets/stylesheets/utilities/vertical-alignment.less +98 -0
- data/vendor/assets/stylesheets/utilities/visually-hidden.less +43 -0
- data/vendor/assets/stylesheets/utilities/widths.less +1455 -0
- data/vendor/assets/stylesheets/utilities/z-index.less +292 -0
- metadata +141 -0
@@ -0,0 +1,53 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Layout -> Boxes ($layout-boxes)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
.box {
|
6
|
+
display: block;
|
7
|
+
.to-rem(padding, @box-padding);
|
8
|
+
background-color: @box-bg-color;
|
9
|
+
|
10
|
+
> *:last-child {
|
11
|
+
margin-bottom: 0;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
/**
|
16
|
+
* Give `.box` a border style.
|
17
|
+
*/
|
18
|
+
|
19
|
+
.box-border {
|
20
|
+
.to-rem(border, @box-border-width, @box-border-style @box-border-color);
|
21
|
+
}
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Give `.box` rounded edges.
|
25
|
+
*/
|
26
|
+
|
27
|
+
.box-round {
|
28
|
+
.to-rem(border-radius, @box-border-radius);
|
29
|
+
}
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Remove padding from default `.box`.
|
33
|
+
*/
|
34
|
+
|
35
|
+
.box-flush {
|
36
|
+
padding: 0;
|
37
|
+
}
|
38
|
+
|
39
|
+
/**
|
40
|
+
* Give `.box` the appearance of being raised above its surrounding area.
|
41
|
+
*/
|
42
|
+
|
43
|
+
.box-raise {
|
44
|
+
.to-rem(box-shadow, 0 0 @box-sink-box-shadow-blur, hsla(0, 0%, 0%, 0.15));
|
45
|
+
}
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Give `.box` the appearance of being sunken beneath its surrounding area.
|
49
|
+
*/
|
50
|
+
|
51
|
+
.box-sink {
|
52
|
+
.to-rem(box-shadow, 0 0 @box-sink-box-shadow-blur, hsla(0, 0%, 0%, 0.15) inset);
|
53
|
+
}
|
@@ -0,0 +1,614 @@
|
|
1
|
+
/* ========================================================================== *\
|
2
|
+
Layout -> Grids ($layout-grids)
|
3
|
+
\* ========================================================================== */
|
4
|
+
|
5
|
+
/**
|
6
|
+
* Grid containers
|
7
|
+
* 1. Remove default styles in case `.grid` is on a <ul> or <ol> element.
|
8
|
+
* 2. Default gutter width.
|
9
|
+
* 3. Hack to remove `inline-block` whitespace. This causes some issues on pre-
|
10
|
+
* Jellybean and Jellybean versions of Android (http://cbrac.co/1xh3hs0).
|
11
|
+
@link http://cbrac.co/16xcjcl
|
12
|
+
*/
|
13
|
+
|
14
|
+
.grid {
|
15
|
+
margin: 0; /* 1 */
|
16
|
+
.to-rem(margin-left, -@grid-gutter-base); /* 2 */
|
17
|
+
padding: 0; /* 1 */
|
18
|
+
list-style: none; /* 1 */
|
19
|
+
font-size: @font-size-0; /* 3 */
|
20
|
+
}
|
21
|
+
|
22
|
+
/**
|
23
|
+
* Grid items
|
24
|
+
* 1. Remove default styles in case `.grid` is on a <ul> or <ol> element.
|
25
|
+
* 2. `.grid-item` elements are 100% width by default.
|
26
|
+
* 3. Default gutter width = @grid-gutter-base.
|
27
|
+
* 4. Ensure `.grid-item` is aligned to the top of its container.
|
28
|
+
* 5. Reset font size to the global default.
|
29
|
+
*/
|
30
|
+
|
31
|
+
.grid-item {
|
32
|
+
display: inline-block;
|
33
|
+
margin: 0; /* 1 */
|
34
|
+
width: 100%; /* 2 */
|
35
|
+
.to-rem(padding-left, @grid-gutter-base); /* 3 */
|
36
|
+
vertical-align: top; /* 4 */
|
37
|
+
.to-rem(font-size, @font-size); /* 5 */
|
38
|
+
}
|
39
|
+
|
40
|
+
/**
|
41
|
+
* Grid items rendering order
|
42
|
+
* .grid-ltr = left-to-right (default)
|
43
|
+
* .grid-rtl = right-to-left
|
44
|
+
*/
|
45
|
+
|
46
|
+
.grid-ltr {
|
47
|
+
direction: ltr;
|
48
|
+
text-align: left;
|
49
|
+
|
50
|
+
> .grid-item {
|
51
|
+
direction: rtl;
|
52
|
+
text-align: left;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
.grid-rtl {
|
57
|
+
direction: rtl;
|
58
|
+
text-align: left;
|
59
|
+
|
60
|
+
> .grid-item {
|
61
|
+
direction: ltr;
|
62
|
+
text-align: left;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
.screens({
|
67
|
+
.xs-grid-ltr {
|
68
|
+
direction: ltr;
|
69
|
+
text-align: left;
|
70
|
+
|
71
|
+
> .grid-item {
|
72
|
+
direction: rtl;
|
73
|
+
text-align: left;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
.xs-grid-rtl {
|
78
|
+
direction: rtl;
|
79
|
+
text-align: left;
|
80
|
+
|
81
|
+
> .grid-item {
|
82
|
+
direction: ltr;
|
83
|
+
text-align: left;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
},{
|
87
|
+
.sm-grid-ltr {
|
88
|
+
direction: ltr;
|
89
|
+
text-align: left;
|
90
|
+
|
91
|
+
> .grid-item {
|
92
|
+
direction: rtl;
|
93
|
+
text-align: left;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
.sm-grid-rtl {
|
98
|
+
direction: rtl;
|
99
|
+
text-align: left;
|
100
|
+
|
101
|
+
> .grid-item {
|
102
|
+
direction: ltr;
|
103
|
+
text-align: left;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
},{
|
107
|
+
.md-grid-ltr {
|
108
|
+
direction: ltr;
|
109
|
+
text-align: left;
|
110
|
+
|
111
|
+
> .grid-item {
|
112
|
+
direction: rtl;
|
113
|
+
text-align: left;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.md-grid-rtl {
|
118
|
+
direction: rtl;
|
119
|
+
text-align: left;
|
120
|
+
|
121
|
+
> .grid-item {
|
122
|
+
direction: ltr;
|
123
|
+
text-align: left;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
},{
|
127
|
+
.lg-grid-ltr {
|
128
|
+
direction: ltr;
|
129
|
+
text-align: left;
|
130
|
+
|
131
|
+
> .grid-item {
|
132
|
+
direction: rtl;
|
133
|
+
text-align: left;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
.lg-grid-rtl {
|
138
|
+
direction: rtl;
|
139
|
+
text-align: left;
|
140
|
+
|
141
|
+
> .grid-item {
|
142
|
+
direction: ltr;
|
143
|
+
text-align: left;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
},{
|
147
|
+
.xl-grid-ltr {
|
148
|
+
direction: ltr;
|
149
|
+
text-align: left;
|
150
|
+
|
151
|
+
> .grid-item {
|
152
|
+
direction: rtl;
|
153
|
+
text-align: left;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
|
157
|
+
.xl-grid-rtl {
|
158
|
+
direction: rtl;
|
159
|
+
text-align: left;
|
160
|
+
|
161
|
+
> .grid-item {
|
162
|
+
direction: ltr;
|
163
|
+
text-align: left;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
},{
|
167
|
+
.xxl-grid-ltr {
|
168
|
+
direction: ltr;
|
169
|
+
text-align: left;
|
170
|
+
|
171
|
+
> .grid-item {
|
172
|
+
direction: rtl;
|
173
|
+
text-align: left;
|
174
|
+
}
|
175
|
+
}
|
176
|
+
|
177
|
+
.xxl-grid-rtl {
|
178
|
+
direction: rtl;
|
179
|
+
text-align: left;
|
180
|
+
|
181
|
+
> .grid-item {
|
182
|
+
direction: ltr;
|
183
|
+
text-align: left;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
});
|
187
|
+
|
188
|
+
/**
|
189
|
+
* Grid gutters
|
190
|
+
*/
|
191
|
+
|
192
|
+
// No gutters
|
193
|
+
.gutter-0,
|
194
|
+
.gutter-none {
|
195
|
+
margin-left: 0;
|
196
|
+
}
|
197
|
+
|
198
|
+
.gutter-0 > .grid-item,
|
199
|
+
.gutter-none > .grid-item {
|
200
|
+
padding-left: 0;
|
201
|
+
}
|
202
|
+
|
203
|
+
// 1px gutters
|
204
|
+
.gutter-1px {
|
205
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
206
|
+
}
|
207
|
+
|
208
|
+
.gutter-1px > .grid-item {
|
209
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
210
|
+
}
|
211
|
+
|
212
|
+
// Half gutters
|
213
|
+
[class~="gutter-1/2"],
|
214
|
+
.gutter-half {
|
215
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
216
|
+
}
|
217
|
+
|
218
|
+
[class~="gutter-1/2"] > .grid-item,
|
219
|
+
.gutter-half > .grid-item {
|
220
|
+
.to-rem(padding-left, @grid-gutter-half);
|
221
|
+
}
|
222
|
+
|
223
|
+
// Whole gutters
|
224
|
+
.gutter-1,
|
225
|
+
.gutter-whole {
|
226
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
227
|
+
}
|
228
|
+
|
229
|
+
.gutter-1 > .grid-item,
|
230
|
+
.gutter-whole > .grid-item {
|
231
|
+
.to-rem(padding-left, @grid-gutter-half);
|
232
|
+
}
|
233
|
+
|
234
|
+
// Double gutters
|
235
|
+
.gutter-2,
|
236
|
+
.gutter-double {
|
237
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
238
|
+
}
|
239
|
+
|
240
|
+
.gutter-2 > .grid-item,
|
241
|
+
.gutter-double > .grid-item {
|
242
|
+
.to-rem(padding-left, @grid-gutter-double);
|
243
|
+
}
|
244
|
+
|
245
|
+
.screens({
|
246
|
+
// No gutters
|
247
|
+
.xs-gutter-0,
|
248
|
+
.xs-gutter-none {
|
249
|
+
margin-left: 0;
|
250
|
+
}
|
251
|
+
|
252
|
+
.xs-gutter-0 > .grid-item,
|
253
|
+
.xs-gutter-none > .grid-item {
|
254
|
+
padding-left: 0;
|
255
|
+
}
|
256
|
+
|
257
|
+
// 1px gutters
|
258
|
+
.xs-gutter-1px {
|
259
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
260
|
+
}
|
261
|
+
|
262
|
+
.xs-gutter-1px > .grid-item {
|
263
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
264
|
+
}
|
265
|
+
|
266
|
+
// Half gutters
|
267
|
+
[class~="xs-gutter-1/2"],
|
268
|
+
.xs-gutter-half {
|
269
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
270
|
+
}
|
271
|
+
|
272
|
+
[class~="xs-gutter-1/2"] > .grid-item,
|
273
|
+
.xs-gutter-half > .grid-item {
|
274
|
+
.to-rem(padding-left, @grid-gutter-half);
|
275
|
+
}
|
276
|
+
|
277
|
+
// Whole gutters
|
278
|
+
.xs-gutter-1,
|
279
|
+
.xs-gutter-whole {
|
280
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
281
|
+
}
|
282
|
+
|
283
|
+
.xs-gutter-1 > .grid-item,
|
284
|
+
.xs-gutter-whole > .grid-item {
|
285
|
+
.to-rem(padding-left, @grid-gutter-base);
|
286
|
+
}
|
287
|
+
|
288
|
+
// Double gutters
|
289
|
+
.xs-gutter-2,
|
290
|
+
.xs-gutter-double {
|
291
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
292
|
+
}
|
293
|
+
|
294
|
+
.xs-gutter-2 > .grid-item,
|
295
|
+
.xs-gutter-double > .grid-item {
|
296
|
+
.to-rem(padding-left, @grid-gutter-double);
|
297
|
+
}
|
298
|
+
},{
|
299
|
+
// No gutters
|
300
|
+
.sm-gutter-0,
|
301
|
+
.sm-gutter-none {
|
302
|
+
margin-left: 0;
|
303
|
+
}
|
304
|
+
|
305
|
+
.sm-gutter-0 > .grid-item,
|
306
|
+
.sm-gutter-none > .grid-item {
|
307
|
+
padding-left: 0;
|
308
|
+
}
|
309
|
+
|
310
|
+
// 1px gutters
|
311
|
+
.sm-gutter-1px {
|
312
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
313
|
+
}
|
314
|
+
|
315
|
+
.sm-gutter-1px > .grid-item {
|
316
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
317
|
+
}
|
318
|
+
|
319
|
+
// Half gutters
|
320
|
+
[class~="sm-gutter-1/2"],
|
321
|
+
.sm-gutter-half {
|
322
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
323
|
+
}
|
324
|
+
|
325
|
+
[class~="sm-gutter-1/2"] > .grid-item,
|
326
|
+
.sm-gutter-half > .grid-item {
|
327
|
+
.to-rem(padding-left, @grid-gutter-half);
|
328
|
+
}
|
329
|
+
|
330
|
+
// Whole gutters
|
331
|
+
.sm-gutter-1,
|
332
|
+
.sm-gutter-whole {
|
333
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
334
|
+
}
|
335
|
+
|
336
|
+
.sm-gutter-1 > .grid-item,
|
337
|
+
.sm-gutter-whole > .grid-item {
|
338
|
+
.to-rem(padding-left, @grid-gutter-base);
|
339
|
+
}
|
340
|
+
|
341
|
+
// Double gutters
|
342
|
+
.sm-gutter-2,
|
343
|
+
.sm-gutter-double {
|
344
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
345
|
+
}
|
346
|
+
|
347
|
+
.sm-gutter-2 > .grid-item,
|
348
|
+
.sm-gutter-double > .grid-item {
|
349
|
+
.to-rem(padding-left, @grid-gutter-double);
|
350
|
+
}
|
351
|
+
},{
|
352
|
+
// No gutters
|
353
|
+
.md-gutter-0,
|
354
|
+
.md-gutter-none {
|
355
|
+
margin-left: 0;
|
356
|
+
}
|
357
|
+
|
358
|
+
.md-gutter-0 > .grid-item,
|
359
|
+
.md-gutter-none > .grid-item {
|
360
|
+
padding-left: 0;
|
361
|
+
}
|
362
|
+
|
363
|
+
// 1px gutters
|
364
|
+
.md-gutter-1px {
|
365
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
366
|
+
}
|
367
|
+
|
368
|
+
.md-gutter-1px > .grid-item {
|
369
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
370
|
+
}
|
371
|
+
|
372
|
+
// Half gutters
|
373
|
+
[class~="md-gutter-1/2"],
|
374
|
+
.md-gutter-half {
|
375
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
376
|
+
}
|
377
|
+
|
378
|
+
[class~="md-gutter-1/2"] > .grid-item,
|
379
|
+
.md-gutter-half > .grid-item {
|
380
|
+
.to-rem(padding-left, @grid-gutter-half);
|
381
|
+
}
|
382
|
+
|
383
|
+
// Whole gutters
|
384
|
+
.md-gutter-1,
|
385
|
+
.md-gutter-whole {
|
386
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
387
|
+
}
|
388
|
+
|
389
|
+
.md-gutter-1 > .grid-item,
|
390
|
+
.md-gutter-whole > .grid-item {
|
391
|
+
.to-rem(padding-left, @grid-gutter-base);
|
392
|
+
}
|
393
|
+
|
394
|
+
// Double gutters
|
395
|
+
.md-gutter-2,
|
396
|
+
.md-gutter-double {
|
397
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
398
|
+
}
|
399
|
+
|
400
|
+
.md-gutter-2 > .grid-item,
|
401
|
+
.md-gutter-double > .grid-item {
|
402
|
+
.to-rem(padding-left, @grid-gutter-double);
|
403
|
+
}
|
404
|
+
},{
|
405
|
+
// No gutters
|
406
|
+
.lg-gutter-0,
|
407
|
+
.lg-gutter-none {
|
408
|
+
margin-left: 0;
|
409
|
+
}
|
410
|
+
|
411
|
+
.lg-gutter-0 > .grid-item,
|
412
|
+
.lg-gutter-none > .grid-item {
|
413
|
+
padding-left: 0;
|
414
|
+
}
|
415
|
+
|
416
|
+
// 1px gutters
|
417
|
+
.lg-gutter-1px {
|
418
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
419
|
+
}
|
420
|
+
|
421
|
+
.lg-gutter-1px > .grid-item {
|
422
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
423
|
+
}
|
424
|
+
|
425
|
+
// Half gutters
|
426
|
+
[class~="lg-gutter-1/2"],
|
427
|
+
.lg-gutter-half {
|
428
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
429
|
+
}
|
430
|
+
|
431
|
+
[class~="lg-gutter-1/2"] > .grid-item,
|
432
|
+
.lg-gutter-half > .grid-item {
|
433
|
+
.to-rem(padding-left, @grid-gutter-half);
|
434
|
+
}
|
435
|
+
|
436
|
+
// Whole gutters
|
437
|
+
.lg-gutter-1,
|
438
|
+
.lg-gutter-whole {
|
439
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
440
|
+
}
|
441
|
+
|
442
|
+
.lg-gutter-1 > .grid-item,
|
443
|
+
.lg-gutter-whole > .grid-item {
|
444
|
+
.to-rem(padding-left, @grid-gutter-base);
|
445
|
+
}
|
446
|
+
|
447
|
+
// Double gutters
|
448
|
+
.lg-gutter-2,
|
449
|
+
.lg-gutter-double {
|
450
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
451
|
+
}
|
452
|
+
|
453
|
+
.lg-gutter-2 > .grid-item,
|
454
|
+
.lg-gutter-double > .grid-item {
|
455
|
+
.to-rem(padding-left, @grid-gutter-double);
|
456
|
+
}
|
457
|
+
},{
|
458
|
+
// No gutters
|
459
|
+
.xl-gutter-0,
|
460
|
+
.xl-gutter-none {
|
461
|
+
margin-left: 0;
|
462
|
+
}
|
463
|
+
|
464
|
+
.xl-gutter-0 > .grid-item,
|
465
|
+
.xl-gutter-none > .grid-item {
|
466
|
+
padding-left: 0;
|
467
|
+
}
|
468
|
+
|
469
|
+
// 1px gutters
|
470
|
+
.xl-gutter-1px {
|
471
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
472
|
+
}
|
473
|
+
|
474
|
+
.xl-gutter-1px > .grid-item {
|
475
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
476
|
+
}
|
477
|
+
|
478
|
+
// Half gutters
|
479
|
+
[class~="xl-gutter-1/2"],
|
480
|
+
.xl-gutter-half {
|
481
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
482
|
+
}
|
483
|
+
|
484
|
+
[class~="xl-gutter-1/2"] > .grid-item,
|
485
|
+
.xl-gutter-half > .grid-item {
|
486
|
+
.to-rem(padding-left, @grid-gutter-half);
|
487
|
+
}
|
488
|
+
|
489
|
+
// Whole gutters
|
490
|
+
.xl-gutter-1,
|
491
|
+
.xl-gutter-whole {
|
492
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
493
|
+
}
|
494
|
+
|
495
|
+
.xl-gutter-1 > .grid-item,
|
496
|
+
.xl-gutter-whole > .grid-item {
|
497
|
+
.to-rem(padding-left, @grid-gutter-base);
|
498
|
+
}
|
499
|
+
|
500
|
+
// Double gutters
|
501
|
+
.xl-gutter-2,
|
502
|
+
.xl-gutter-double {
|
503
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
504
|
+
}
|
505
|
+
|
506
|
+
.xl-gutter-2 > .grid-item,
|
507
|
+
.xl-gutter-double > .grid-item {
|
508
|
+
.to-rem(padding-left, @grid-gutter-double);
|
509
|
+
}
|
510
|
+
},{
|
511
|
+
// No gutters
|
512
|
+
.xxl-gutter-0,
|
513
|
+
.xxl-gutter-none {
|
514
|
+
margin-left: 0;
|
515
|
+
}
|
516
|
+
|
517
|
+
.xxl-gutter-0 > .grid-item,
|
518
|
+
.xxl-gutter-none > .grid-item {
|
519
|
+
padding-left: 0;
|
520
|
+
}
|
521
|
+
|
522
|
+
// 1px gutters
|
523
|
+
.xxl-gutter-1px {
|
524
|
+
.to-rem(margin-left, -@grid-gutter-1px);
|
525
|
+
}
|
526
|
+
|
527
|
+
.xxl-gutter-1px > .grid-item {
|
528
|
+
.to-rem(padding-left, @grid-gutter-1px);
|
529
|
+
}
|
530
|
+
|
531
|
+
// Half gutters
|
532
|
+
[class~="xxl-gutter-1/2"],
|
533
|
+
.xxl-gutter-half {
|
534
|
+
.to-rem(margin-left, -@grid-gutter-half);
|
535
|
+
}
|
536
|
+
|
537
|
+
[class~="xxl-gutter-1/2"] > .grid-item,
|
538
|
+
.xxl-gutter-half > .grid-item {
|
539
|
+
.to-rem(padding-left, @grid-gutter-half);
|
540
|
+
}
|
541
|
+
|
542
|
+
// Whole gutters
|
543
|
+
.xxl-gutter-1,
|
544
|
+
.xxl-gutter-whole {
|
545
|
+
.to-rem(margin-left, -@grid-gutter-base);
|
546
|
+
}
|
547
|
+
|
548
|
+
.xxl-gutter-1 > .grid-item,
|
549
|
+
.xxl-gutter-whole > .grid-item {
|
550
|
+
.to-rem(padding-left, @grid-gutter-base);
|
551
|
+
}
|
552
|
+
|
553
|
+
// Double gutters
|
554
|
+
.xxl-gutter-2,
|
555
|
+
.xxl-gutter-double {
|
556
|
+
.to-rem(margin-left, -@grid-gutter-double);
|
557
|
+
}
|
558
|
+
|
559
|
+
.xxl-gutter-2 > .grid-item,
|
560
|
+
.xxl-gutter-double > .grid-item {
|
561
|
+
.to-rem(padding-left, @grid-gutter-double);
|
562
|
+
}
|
563
|
+
});
|
564
|
+
|
565
|
+
|
566
|
+
/**
|
567
|
+
* Grid item alignment
|
568
|
+
*/
|
569
|
+
|
570
|
+
.grid-align-top > .grid-item {
|
571
|
+
vertical-align: top;
|
572
|
+
}
|
573
|
+
|
574
|
+
.grid-align-middle > .grid-item {
|
575
|
+
vertical-align: middle;
|
576
|
+
}
|
577
|
+
|
578
|
+
.grid-align-bottom > .grid-item {
|
579
|
+
vertical-align: bottom;
|
580
|
+
}
|
581
|
+
|
582
|
+
.grid-align-left {
|
583
|
+
text-align: left;
|
584
|
+
|
585
|
+
> .grid-item {
|
586
|
+
text-align: left;
|
587
|
+
}
|
588
|
+
}
|
589
|
+
|
590
|
+
.grid-align-center {
|
591
|
+
text-align: center;
|
592
|
+
|
593
|
+
> .grid-item {
|
594
|
+
text-align: left;
|
595
|
+
}
|
596
|
+
}
|
597
|
+
|
598
|
+
.grid-align-right {
|
599
|
+
text-align: right;
|
600
|
+
|
601
|
+
> .grid-item {
|
602
|
+
text-align: left;
|
603
|
+
}
|
604
|
+
}
|
605
|
+
|
606
|
+
/**
|
607
|
+
* Grid item "shrink wrap"
|
608
|
+
*
|
609
|
+
* Force `.grid-item` to be the width of its content.
|
610
|
+
*/
|
611
|
+
|
612
|
+
.grid-shrink-wrap > .grid-item {
|
613
|
+
width: auto;
|
614
|
+
}
|