zen-grids 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,8 @@
20
20
  // // $zen-columns is back to 1 after the zen-layout() block.
21
21
  // ```
22
22
  //
23
+ // Weight: -6
24
+ //
23
25
  // Style guide: layout
24
26
 
25
27
  @import "./grids";
@@ -27,21 +29,37 @@
27
29
  // zen-layout(...)
28
30
  //
29
31
  // Should be used to add a wrapping block where its parameters will override the
30
- // corresponding global `$zen-` variables within it.
32
+ // corresponding global `$zen-*` variables within it.
33
+ //
34
+ // Common usage:
35
+ // ```
36
+ // @include zen-layout(m) {
37
+ // // Use other Zen Grids mixins and layouts without changing global vars.
38
+ // }
39
+ // ```
40
+ // or:
41
+ // ```
42
+ // @include zen-layout($gutters: 0) {
43
+ // // The code in this block will see `$zen-gutters: 0`, but code after this
44
+ // // block will see the usual value of that global variable.
45
+ // }
46
+ // ```
31
47
  //
32
- // $layout - Optionally specify the name of the layout from `$zen-layouts` to use.
33
- // $columns - Defaults to `$zen-columns`
34
- // $gutters - Defaults to `$zen-gutters`
35
- // $gutter-method - Defaults to `$zen-gutter-method`
36
- // $grid-width - Defaults to `$zen-grid-width`
37
- // $box-sizing - Defaults to `$zen-box-sizing`
38
- // $direction - Defaults to `$zen-direction`
39
- // $switch-direction - Defaults to `$zen-switch-direction`
40
- // $rtl-selector - Defaults to `$zen-rtl-selector`
41
- // $auto-include-grid-item-base - Defaults to `$zen-auto-include-grid-item-base`
42
- // $auto-include-flow-item-base - Defaults to `$zen-auto-include-flow-item-base`
43
- // $grid-color - Defaults to `$zen-grid-color`
44
- // $grid-numbers - Defaults to `$zen-grid-numbers`
48
+ // $layout = null - Optionally specify the name of the layout from `$zen-layouts` to use. See the docs for [`$zen-layouts`](section-grids.html#kssref-layout-variables-zen-layouts).
49
+ // $columns = $zen-columns - The number of columns. See the docs for [`$zen-columns`](section-grids.html#kssref-grids-variables-zen-columns).
50
+ // $gutters = $zen-gutters - The width of the gutters. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
51
+ // $gutter-method = $zen-gutter-method - The gutter method to use. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
52
+ // $grid-width = $zen-grid-width - The width of the entire grid. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-fixed-zen-grid-width).
53
+ // $box-sizing = $zen-box-sizing - The box sizing to use. See the docs for [`$zen-box-sizing`](section-grids.html#kssref-grids-variables-zen-box-sizing).
54
+ // $direction = $zen-direction - The direction to use. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
55
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
56
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this background. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
57
+ // $auto-include-grid-item-base = $zen-auto-include-grid-item-base - Whether to auto-include the zen-grid-item-base() mixin. See the docs for [`$zen-auto-include-grid-item-base`](section-grids.html#kssref-grids-variables-zen-auto-include-grid-item-base).
58
+ // $auto-include-flow-item-base = $zen-auto-include-flow-item-base - Whether to auto-include the zen-flow-item-base() mixin. See the docs for [`$zen-auto-include-flow-item-base`](section-flow.html#kssref-flow-variables-zen-auto-include-flow-item-base).
59
+ // $grid-color = $zen-grid-color - The column color to use for the background grid image. See the docs for [`$zen-grid-color`](section-background.html#kssref-background-variables-zen-grid-color).
60
+ // $grid-numbers = $zen-grid-numbers - Specify the set of images used for the numbering of the columns in the background grid image. See the docs for [`$zen-grid-numbers`](section-background.html#kssref-background-variables-zen-grid-numbers).
61
+ //
62
+ // weight: -10
45
63
  //
46
64
  // Style guide: layout.zen-layout
47
65
  @mixin zen-layout(
@@ -173,20 +191,20 @@
173
191
  // ```
174
192
  //
175
193
  // $query - Required. This parameter is passed on to the `breakpoint()` mixin.
176
- // $no-query - This parameter is passed on to the `breakpoint()` mixin. Defaults to `false'.
177
- // $layout - Optionally specify the name of the layout from `$zen-layouts` to use.
178
- // $columns - Defaults to `$zen-columns`
179
- // $gutters - Defaults to `$zen-gutters`
180
- // $gutter-method - Defaults to `$zen-gutter-method`
181
- // $grid-width - Defaults to `$zen-grid-width`
182
- // $box-sizing - Defaults to `$zen-box-sizing`
183
- // $direction - Defaults to `$zen-direction`
184
- // $switch-direction - Defaults to `$zen-switch-direction`
185
- // $rtl-selector - Defaults to `$zen-rtl-selector`
186
- // $auto-include-grid-item-base - Defaults to `$zen-auto-include-grid-item-base`
187
- // $auto-include-flow-item-base - Defaults to `$zen-auto-include-flow-item-base`
188
- // $grid-color - Defaults to `$zen-grid-color`
189
- // $grid-numbers - Defaults to `$zen-grid-numbers`
194
+ // $no-query = false - This parameter is passed on to the `breakpoint()` mixin.
195
+ // $layout = null - Optionally specify the name of the layout from `$zen-layouts` to use. See the docs for [`$zen-layouts`](section-grids.html#kssref-layout-variables-zen-layouts).
196
+ // $columns = $zen-columns - The number of columns. See the docs for [`$zen-columns`](section-grids.html#kssref-grids-variables-zen-columns).
197
+ // $gutters = $zen-gutters - The width of the gutters. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
198
+ // $gutter-method = $zen-gutter-method - The gutter method to use. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
199
+ // $grid-width = $zen-grid-width - The width of the entire grid. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-fixed-zen-grid-width).
200
+ // $box-sizing = $zen-box-sizing - The box sizing to use. See the docs for [`$zen-box-sizing`](section-grids.html#kssref-grids-variables-zen-box-sizing).
201
+ // $direction = $zen-direction - The direction to use. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
202
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
203
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this background. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
204
+ // $auto-include-grid-item-base = $zen-auto-include-grid-item-base - Whether to auto-include the zen-grid-item-base() mixin. See the docs for [`$zen-auto-include-grid-item-base`](section-grids.html#kssref-grids-variables-zen-auto-include-grid-item-base).
205
+ // $auto-include-flow-item-base = $zen-auto-include-flow-item-base - Whether to auto-include the zen-flow-item-base() mixin. See the docs for [`$zen-auto-include-flow-item-base`](section-flow.html#kssref-flow-variables-zen-auto-include-flow-item-base).
206
+ // $grid-color = $zen-grid-color - The column color to use for the background grid image. See the docs for [`$zen-grid-color`](section-background.html#kssref-background-variables-zen-grid-color).
207
+ // $grid-numbers = $zen-grid-numbers - Specify the set of images used for the numbering of the columns in the background grid image. See the docs for [`$zen-grid-numbers`](section-background.html#kssref-background-variables-zen-grid-numbers).
190
208
  //
191
209
  // Style guide: layout.zen-breakpoint
192
210
  @mixin zen-breakpoint(
@@ -234,7 +252,7 @@
234
252
 
235
253
  // zen-mq(...)
236
254
  //
237
- // An alias for the zen-breakpoint() mixin.
255
+ // An alias for the [`zen-breakpoint()`](#kssref-layout-zen-breakpoint) mixin.
238
256
  //
239
257
  // Style guide: layout.zen-mq
240
258
  @mixin zen-mq(
@@ -311,23 +329,23 @@
311
329
  // }
312
330
  // ```
313
331
  //
314
- // $context - This parameter is passed on to the respond-to() mixin.
315
- // $no-query - This parameter is passed on to the respond-to() mixin. Defaults to `false`.
316
- // $layout - Optionally specify the name of the layout from `$zen-layouts` to use.
317
- // $columns - Defaults to `$zen-columns`
318
- // $gutters - Defaults to `$zen-gutters`
319
- // $gutter-method - Defaults to `$zen-gutter-method`
320
- // $grid-width - Defaults to `$zen-grid-width`
321
- // $box-sizing - Defaults to `$zen-box-sizing`
322
- // $direction - Defaults to `$zen-direction`
323
- // $switch-direction - Defaults to `$zen-switch-direction`
324
- // $rtl-selector - Defaults to `$zen-rtl-selector`
325
- // $auto-include-grid-item-base - Defaults to `$zen-auto-include-grid-item-base`
326
- // $auto-include-flow-item-base - Defaults to `$zen-auto-include-flow-item-base`
327
- // $grid-color - Defaults to `$zen-grid-color`
328
- // $grid-numbers - Defaults to `$zen-grid-numbers`
332
+ // $context - Required. This parameter is passed on to the respond-to() mixin.
333
+ // $no-query = false - This parameter is passed on to the respond-to() mixin.
334
+ // $layout = null - Optionally specify the name of the layout from `$zen-layouts` to use. See the docs for [`$zen-layouts`](section-grids.html#kssref-layout-variables-zen-layouts).
335
+ // $columns = $zen-columns - The number of columns. See the docs for [`$zen-columns`](section-grids.html#kssref-grids-variables-zen-columns).
336
+ // $gutters = $zen-gutters - The width of the gutters. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
337
+ // $gutter-method = $zen-gutter-method - The gutter method to use. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
338
+ // $grid-width = $zen-grid-width - The width of the entire grid. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-fixed-zen-grid-width).
339
+ // $box-sizing = $zen-box-sizing - The box sizing to use. See the docs for [`$zen-box-sizing`](section-grids.html#kssref-grids-variables-zen-box-sizing).
340
+ // $direction = $zen-direction - The direction to use. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
341
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
342
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this background. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
343
+ // $auto-include-grid-item-base = $zen-auto-include-grid-item-base - Whether to auto-include the zen-grid-item-base() mixin. See the docs for [`$zen-auto-include-grid-item-base`](section-grids.html#kssref-grids-variables-zen-auto-include-grid-item-base).
344
+ // $auto-include-flow-item-base = $zen-auto-include-flow-item-base - Whether to auto-include the zen-flow-item-base() mixin. See the docs for [`$zen-auto-include-flow-item-base`](section-flow.html#kssref-flow-variables-zen-auto-include-flow-item-base).
345
+ // $grid-color = $zen-grid-color - The column color to use for the background grid image. See the docs for [`$zen-grid-color`](section-background.html#kssref-background-variables-zen-grid-color).
346
+ // $grid-numbers = $zen-grid-numbers - Specify the set of images used for the numbering of the columns in the background grid image. See the docs for [`$zen-grid-numbers`](section-background.html#kssref-background-variables-zen-grid-numbers).
329
347
  //
330
- // Style guide: layout.zen-layout
348
+ // Style guide: layout.zen-respond-to
331
349
  @mixin zen-respond-to(
332
350
  $context,
333
351
  $no-query: false,
@@ -1,20 +1,39 @@
1
+ // Undo module
1
2
  //
2
- // Undo module for the Zen Grids system.
3
+ // The undo module for the Zen Grids system.
3
4
  //
4
-
5
+ // With responsive design, it is not uncommon to have wrapping elements that are have grid styling at some breakpoints, but not at other breakpoints. The undo module provides a set of mixins that allow you to undo the CSS of other Zen Grids mixins.
6
+ //
7
+ // Style guide: undo
5
8
 
6
9
  @import "./grids";
7
10
 
8
11
 
12
+ // undo-zen-grid-container()
13
+ //
14
+ // Apply this to undo the grid container styling applied with [`zen-grid-container()`](section-grids.html#kssref-grids-zen-grid-container).
15
+ //
16
+ // NOTE: if `$context` is `flow`, the `zen-grid-container()` set the left and right padding to `0` to prevent it from messing up the alignment of the nested grid. Since Zen Grids doesn't know what you previously used for this element's padding, there is no way to undo that automatically; you will need to manually reset the padding.
9
17
  //
10
- // Apply this to undo the grid container styling.
11
- // @see http://next.zengrids.com/reference/grids/#undo-zen-grid-container
18
+ // Common usage:
19
+ // ```
20
+ // @include undo-zen-grid-container();
21
+ // ```
22
+ // or:
23
+ // ```
24
+ // @include undo-zen-grid-container(grid-item);
25
+ // ```
12
26
  //
13
- // NOTE: if $context is flow, the zen-grid-container() set the left and right
14
- // padding to "0" to prevent it from messing up the alignment of the nested
15
- // grid. Since Zen Grids doesn't know what you previously used for this
16
- // element's padding, there is no way to undo that.
27
+ // $context = none - If this grid is nested inside another grid, the `$context` parameter can be used to align the nested grid with the parent grid. It can be set to `none`, `grid-item`, or `flow`.
28
+ // $gutters = $zen-gutters - The width of the gutters for this container. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
29
+ // $gutter-method = $zen-gutter-method - The gutter method to use for this container. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
30
+ // $direction = $zen-direction - The direction to use for this container. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
31
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction for this container. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
32
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this container. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
17
33
  //
34
+ // weight: -10
35
+ //
36
+ // Style guide: undo.undo-zen-grid-container
18
37
  @mixin undo-zen-grid-container(
19
38
  $context : none,
20
39
  $gutters : $zen-gutters,
@@ -82,9 +101,24 @@
82
101
  }
83
102
  }
84
103
 
104
+ // undo-zen-grid-item()
105
+ //
106
+ // Apply this to undo the grid item styling applied with [`zen-grid-item()`](section-grids.html#kssref-grids-zen-grid-item).
85
107
  //
86
- // Apply this to undo the grid item styling. @see http://next.zengrids.com/reference/grids/#undo-zen-grid-item
108
+ // Common usage:
109
+ // ```
110
+ // @include undo-zen-grid-item();
111
+ // ```
87
112
  //
113
+ // $direction = $zen-direction - The floating direction to use for this grid item. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
114
+ // $gutters = $zen-gutters - The width of the gutters for this grid item. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
115
+ // $gutter-method = $zen-gutter-method - The gutter method to use for this grid item. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
116
+ // $box-sizing = $zen-box-sizing - The box sizing to use for this grid item. See the docs for [`$zen-box-sizing`](section-grids.html#kssref-grids-variables-zen-box-sizing).
117
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction for this grid item. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
118
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this grid item. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
119
+ // $include-base = $zen-auto-include-grid-item-base - Whether to auto-include the undo-zen-grid-item-base() mixin. See the docs for [`$zen-auto-include-grid-item-base`](section-grids.html#kssref-grids-variables-zen-auto-include-grid-item-base).
120
+ //
121
+ // Style guide: undo.undo-zen-grid-item
88
122
  @mixin undo-zen-grid-item(
89
123
  $direction : $zen-direction,
90
124
  $gutters : $zen-gutters,
@@ -113,14 +147,26 @@
113
147
  }
114
148
  }
115
149
 
150
+ // undo-zen-grid-item-base()
151
+ //
152
+ // Undoes the standard set of properites for grid items in the layout. Apply this to undo the styling applied with [`zen-grid-item-base()`](section-grids.html#kssref-grids-zen-grid-item-base).
116
153
  //
117
- // Undoes the standard set of properites for grid items in the layout.
118
- // @see http://next.zengrids.com/reference/grids/#undo-zen-grid-item-base
154
+ // NOTE: if `$box-sizing` is `content-box`, the `zen-grid-item-base()` will add left and right borders and padding of `0 !important` since non-zero values would break the layout. There is no way to undo that automatically. You'll have to manually set the borders and padding to their original values.
119
155
  //
120
- // NOTE: if $box-sizing == content-box, the zen-grid-item-base() will add
121
- // left and right borders and padding of "0 !important" since non-zero values
122
- // would break the layout. There is no way to undo that.
156
+ // Common usage:
157
+ // ```
158
+ // @include undo-zen-grid-item-base();
159
+ // ```
123
160
  //
161
+ // $gutters = $zen-gutters - The width of the gutters for this grid item. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
162
+ // $gutter-method = $zen-gutter-method - The gutter method to use for this grid item. See the docs for [`$zen-gutter-method`](section-grids.html#kssref-grids-variables-zen-gutter-method).
163
+ // $box-sizing = $zen-box-sizing - The box sizing to use for this grid item. See the docs for [`$zen-box-sizing`](section-grids.html#kssref-grids-variables-zen-box-sizing).
164
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction for this grid item. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
165
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this grid item. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
166
+ //
167
+ // weight: 10
168
+ //
169
+ // Style guide: undo.undo-zen-grid-item-base
124
170
  @mixin undo-zen-grid-item-base(
125
171
  $gutters : $zen-gutters,
126
172
  $gutter-method : $zen-gutter-method,
@@ -154,10 +200,23 @@
154
200
  }
155
201
  }
156
202
 
203
+ // undo-zen-new-row()
204
+ //
205
+ // Apply this to prevent a grid item from starting a new row by undoing the styling applied with [`zen-new-row()`](section-grids.html#kssref-grids-zen-new-row).
206
+ //
207
+ // Common usage:
208
+ // ```
209
+ // @include undo-zen-new-row();
210
+ // ```
211
+ // or:
212
+ // ```
213
+ // @include undo-zen-new-row(right);
214
+ // ```
157
215
  //
158
- // Apply this to prevent a grid item from starting a new row.
159
- // @see http://next.zengrids.com/reference/grids/#undo-zen-new-row
216
+ // $clear = $zen-direction - The clearing direction to use for this grid item. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
217
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this grid item. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
160
218
  //
219
+ // Style guide: undo.undo-zen-new-row
161
220
  @mixin undo-zen-new-row(
162
221
  $clear : $zen-direction,
163
222
  $rtl-selector : $zen-rtl-selector
@@ -171,10 +230,23 @@
171
230
  }
172
231
  }
173
232
 
233
+ // undo-zen-apply-gutter-padding()
234
+ //
235
+ // Undoes the gutter on a grid item when using the padding gutter method. Apply this to undo the gutter padding styles applied with [`zen-apply-gutter-padding()`](section-grids.html#kssref-grids-zen-apply-gutter-padding).
236
+ //
237
+ // Common usage:
238
+ // ```
239
+ // @include undo-zen-apply-gutter-padding();
240
+ // ```
241
+ //
242
+ // $gutters = $zen-gutters - The width of the gutters for this grid item. See the docs for [`$zen-gutters`](section-grids.html#kssref-grids-variables-zen-gutters).
243
+ // $direction = $zen-direction - The direction to use for this grid item. See the docs for [`$zen-direction`](section-grids.html#kssref-grids-variables-rtl-zen-direction).
244
+ // $switch-direction = $zen-switch-direction - Whether to switch the default direction for this grid item. See the docs for [`$zen-switch-direction`](section-grids.html#kssref-grids-variables-rtl-zen-switch-direction).
245
+ // $rtl-selector = $zen-rtl-selector - The RTL selector for this grid item. See the docs for [`$zen-rtl-selector`](section-grids.html#kssref-grids-variables-rtl-zen-rtl-selector).
174
246
  //
175
- // Undoes the gutter on a grid item when using the padding gutter method.
176
- // @see http://next.zengrids.com/reference/grids/#undo-zen-apply-gutter-padding
247
+ // weight: 15
177
248
  //
249
+ // Style guide: undo.undo-zen-apply-gutter-padding
178
250
  @mixin undo-zen-apply-gutter-padding(
179
251
  $gutters : $zen-gutters,
180
252
  $direction : $zen-direction,
@@ -2,7 +2,13 @@
2
2
  // Variables module for the Zen Grids system; auto-imported by other modules.
3
3
  //
4
4
 
5
- // Grids Module: Configurable Variables
5
+
6
+
7
+ //
8
+ // Grids Module
9
+ //
10
+
11
+ // Configurable variables
6
12
  //
7
13
  // Zen Grids comes with several configuration variables that affect what CSS its mixins and functions output. The default values of these variables are all set using the “guarded assignment” flag, `!default`. So you can safely set those values before you `@import` Zen Grids and your values will be respected.
8
14
  //
@@ -10,19 +16,17 @@
10
16
  //
11
17
  // Style guide: grids.variables
12
18
 
13
- // Common variables
14
- //
15
- // Style guide: grids.variables.common
16
-
17
19
  // $zen-columns
18
20
  //
19
21
  // Specifies the number of columns in the grid. Defaults to 1 as a hat tip to mobile first designs. You should set this variable each time you want to use a different grid for a set of media queries.
20
22
  //
21
- // `$zen-columns: 1 !default;`
23
+ // ```
24
+ // $zen-columns: 1 !default;
25
+ // ```
22
26
  //
23
27
  // weight: -2
24
28
  //
25
- // Style guide: grids.variables.common.zen-columns
29
+ // Style guide: grids.variables.zen-columns
26
30
  $zen-columns: 1 !default;
27
31
 
28
32
  // $zen-gutters
@@ -33,11 +37,13 @@ $zen-columns: 1 !default;
33
37
  //
34
38
  // If the [`$zen-gutter-method`](#zen-gutter-method) is set to `margin`, the unit of measurement of the gutters should be the same as the unit of measurement of the [`$zen-grid-width`](#zen-grid-width), e.g. if `$zen-grid-width: 100%`, then `$zen-gutters` should also be measured in `%`.
35
39
  //
36
- // `$zen-gutters: 20px !default;`
40
+ // ```
41
+ // $zen-gutters: 20px !default;
42
+ // ```
37
43
  //
38
44
  // weight: -2
39
45
  //
40
- // Style guide: grids.variables.common.zen-gutters
46
+ // Style guide: grids.variables.zen-gutters
41
47
  $zen-gutters: 20px !default;
42
48
 
43
49
  // $zen-gutter-method
@@ -83,16 +89,18 @@ $zen-gutters: 20px !default;
83
89
  //
84
90
  // weight: -1
85
91
  //
86
- // Style guide: grids.variables.common.zen-gutter-method
92
+ // Style guide: grids.variables.zen-gutter-method
87
93
  $zen-gutter-method: padding !default;
88
94
 
89
95
  // $zen-auto-include-grid-item-base
90
96
  //
91
97
  // You can generate more efficient CSS if you set this to `false` and manually apply the [`zen-grid-item-base()`](#zen-grid-item-base) mixin to all grid items (and flow items) from within a single ruleset.
92
98
  //
93
- // `$zen-auto-include-grid-item-base: true !default;`
99
+ // ```
100
+ // $zen-auto-include-grid-item-base: true !default;
101
+ // ```
94
102
  //
95
- // Style guide: grids.variables.common.zen-auto-include-grid-item-base
103
+ // Style guide: grids.variables.zen-auto-include-grid-item-base
96
104
  $zen-auto-include-grid-item-base: true !default;
97
105
 
98
106
  // $zen-box-sizing
@@ -105,80 +113,55 @@ $zen-auto-include-grid-item-base: true !default;
105
113
  //
106
114
  // Note: if `$zen-box-sizing` is set to "content-box", then [`$zen-gutters`](#zen-gutters) will need to use the same unit of measurement as the [`$zen-grid-width`](#zen-grid-width).
107
115
  //
108
- // `$zen-box-sizing: border-box !default;`
116
+ // ```
117
+ // $zen-box-sizing: border-box !default;
118
+ // ```
109
119
  //
110
120
  // weight: 1
111
121
  //
112
- // Style guide: grids.variables.common.zen-box-sizing
122
+ // Style guide: grids.variables.zen-box-sizing
113
123
  $zen-box-sizing: border-box !default;
114
124
 
115
125
 
126
+ //
127
+ // Grids Module: fixed variables
128
+ //
129
+
116
130
  // Adaptive or fixed design variable
117
131
  //
132
+ // Weight: 10
133
+ //
118
134
  // Style guide: grids.variables.fixed
119
135
 
120
136
  // $zen-grid-width
121
137
  //
122
138
  // Specify the width of the entire grid. Defaults to `100%` for a fluid responsive design, but you can change this to any fixed value (using px or em, etc.) if you need a fixed grid.
123
139
  //
124
- // `$zen-grid-width: 100% !default;`
140
+ // ```
141
+ // $zen-grid-width: 100% !default;
142
+ // ```
125
143
  //
126
144
  // Style guide: grids.variables.fixed.zen-grid-width
127
145
  $zen-grid-width: 100% !default;
128
146
 
129
- // Legacy IE support variables
130
- //
131
- // IE 6 and 7 require special CSS properties in order for Zen Grids to work with
132
- // such old browsers.
133
- //
134
- // If you need IE 6/7 support, you will need to install:
135
- //
136
- // 1. [support-for]() Sass module
137
- // 2. [box-sizing polyfill](https://github.com/Schepp/box-sizing-polyfill)'s boxsizing.htc
138
- //
139
- // weight: 1
140
- //
141
- // Style guide: grids.variables.legacy
142
147
 
143
- // $box-sizing-polyfill-path
144
- //
145
- // The box-sizing polyfill for IE 6/7 requires an absolute path to the boxsizing.htc file. See https://github.com/Schepp/box-sizing-polyfill
146
148
  //
147
- // `$box-sizing-polyfill-path: '' !default;`
149
+ // Grids Module: rtl variables
148
150
  //
149
- // Style guide: grids.variables.legacy.box-sizing-polyfill-path
150
- $box-sizing-polyfill-path: '' !default;
151
-
152
- // $support-for
153
- //
154
- // Specify the minimum browser versions that must be supported. Currently, Zen Grids only uses the `ie` value to determine if additional CSS properties are needed for IE 6 and IE 7 support. For example, to add support for IE 7, set `$support-for: (ie: 7);`
155
- //
156
- // This variable is a copy of the one used by [support-for](https://github.com/JohnAlbin/support-for). Zen Grids does not require support-for, but will use it if available.
157
- //
158
- // ```
159
- // $support-for: (
160
- // chrome: -4,
161
- // edge: -4,
162
- // firefox: -4,
163
- // ie: 9,
164
- // opera: -4,
165
- // safari: -4,
166
- // '*': -4,
167
- // ) !default;
168
- // ```
169
- //
170
- // Style guide: grids.variables.legacy.support-for
171
151
 
172
152
  // RTL language variables
173
153
  //
154
+ // Weight: 15
155
+ //
174
156
  // Style guide: grids.variables.rtl
175
157
 
176
- // Specify the default floating direction for zen grids' mixins. @see http://next.zengrids.com/reference/grids/#zen-direction
177
158
  // $zen-direction
178
159
  //
179
160
  // Specify the default floating direction for zen grids’ mixins. If you are only building RTL layouts (and not LTR layouts), you should set this to `right`.
180
161
  //
181
- // `$zen-direction: left !default;`
162
+ // ```
163
+ // $zen-direction: left !default;
164
+ // ```
182
165
  //
183
166
  // Style guide: grids.variables.rtl.zen-direction
184
167
  $zen-direction: left !default;
@@ -204,16 +187,18 @@ $zen-direction: left !default;
204
187
  // }
205
188
  // ```
206
189
  //
207
- // `$zen-rtl-selector: false !default;`
190
+ // ```
191
+ // $zen-rtl-selector: false !default;
192
+ // ```
208
193
  //
209
- // Style guide: grids.variables.rtl.zen-rtl-seelctor
194
+ // Style guide: grids.variables.rtl.zen-rtl-selector
210
195
  $zen-rtl-selector: false !default;
211
196
 
212
197
  // $zen-switch-direction
213
198
  //
214
199
  // Reverse the floating direction in all of zen grids’ mixins.
215
200
  //
216
- // If you are creating both LTR and RTL layouts, this helper variable can be used to automatically create one set of layouts based on the other set of layouts. For example:
201
+ // If you are creating LTR and RTL layouts that are in separate style sheets, this helper variable can be used to automatically create one set of layouts based on the other set of layouts. For example:
217
202
  //
218
203
  // ```
219
204
  // $zen-switch-direction: true;
@@ -222,14 +207,72 @@ $zen-rtl-selector: false !default;
222
207
  //
223
208
  // In the above example, the existing LTR layout in the an-LTR-layout.scss file is used to create the corresponding RTL layout by first setting the `$zen-switch-direction` variable to `true` and then importing the LTR layout file.
224
209
  //
225
- // `$zen-switch-direction: false !default;`
210
+ // ```
211
+ // $zen-switch-direction: false !default;
212
+ // ```
226
213
  //
227
214
  // Style guide: grids.variables.rtl.zen-switch-direction
228
215
  $zen-switch-direction: false !default;
229
216
 
230
217
 
218
+ //
219
+ // Grids Module: legacy IE variables
220
+ //
231
221
 
232
- // Flow Module: Configurable Variables
222
+ // Legacy IE support variables
223
+ //
224
+ // IE 6 and 7 require special CSS properties in order for Zen Grids to work with
225
+ // such old browsers.
226
+ //
227
+ // If you need IE 6/7 support, you will need to install:
228
+ //
229
+ // 1. [support-for]() Sass module
230
+ // 2. [box-sizing polyfill](https://github.com/Schepp/box-sizing-polyfill)'s boxsizing.htc
231
+ //
232
+ // Weight: 20
233
+ //
234
+ // Style guide: grids.variables.legacy
235
+
236
+ // $box-sizing-polyfill-path
237
+ //
238
+ // The box-sizing polyfill for IE 6/7 requires an absolute path to the boxsizing.htc file. See https://github.com/Schepp/box-sizing-polyfill
239
+ //
240
+ // ```
241
+ // $box-sizing-polyfill-path: '' !default;
242
+ // ```
243
+ //
244
+ // Style guide: grids.variables.legacy.box-sizing-polyfill-path
245
+ $box-sizing-polyfill-path: '' !default;
246
+
247
+ // $support-for
248
+ //
249
+ // Specify the minimum browser versions that must be supported. Currently, Zen Grids only uses the `ie` value to determine if additional CSS properties are needed for IE 6 and IE 7 support. For example, to add support for IE 7, set `$support-for: (ie: 7);`
250
+ //
251
+ // This variable is _only_ used if the [support-for](https://github.com/JohnAlbin/support-for) module is loaded into your Sass style sheet. Otherwise, legacy IE support will not be included in your layouts. Zen Grids does not require support-for, but will use it if available.
252
+ //
253
+ // ```
254
+ // $support-for: (
255
+ // chrome: -4,
256
+ // edge: -4,
257
+ // firefox: -4,
258
+ // ie: 9,
259
+ // opera: -4,
260
+ // safari: -4,
261
+ // '*': -4,
262
+ // ) !default;
263
+ // ```
264
+ //
265
+ // Weight: -1
266
+ //
267
+ // Style guide: grids.variables.legacy.support-for
268
+
269
+
270
+
271
+ //
272
+ // Flow module
273
+ //
274
+
275
+ // Configurable variables
233
276
  //
234
277
  // Zen Grids comes with several configuration variables that affect what CSS its mixins and functions output. The default values of these variables are all set using the “guarded assignment” flag, `!default`. So you can safely set those values before you `@import` Zen Grids and your values will be respected.
235
278
  //
@@ -241,14 +284,20 @@ $zen-switch-direction: false !default;
241
284
  //
242
285
  // This variable works the same as [`$zen-auto-include-grid-item-base`](./section-grids.html#zen-auto-include-grid-item-base), except it is used for flow items instead of grid items. You can generate more efficient CSS if you set this to `false` and manually apply the `zen-grid-item-base()` mixin to all flow items from within a single ruleset.
243
286
  //
244
- // `$zen-auto-include-flow-item-base: true !default;`
287
+ // ```
288
+ // $zen-auto-include-flow-item-base: true !default;
289
+ // ```
245
290
  //
246
291
  // Style guide: flow.variables.zen-auto-include-flow-item-base
247
292
  $zen-auto-include-flow-item-base: true !default;
248
293
 
249
294
 
250
295
 
251
- // Layout Module: Configurable Variables
296
+ //
297
+ // Layout Module
298
+ //
299
+
300
+ // Configurable variables
252
301
  //
253
302
  // Zen Grids comes with several configuration variables that affect what CSS its mixins and functions output. The default values of these variables are all set using the “guarded assignment” flag, `!default`. So you can safely set those values before you `@import` Zen Grids and your values will be respected.
254
303
  //
@@ -272,14 +321,20 @@ $zen-auto-include-flow-item-base: true !default;
272
321
  //
273
322
  // When a named layout is given to the `$layout` parameter of one of the layout module's mixins that layout's properties will be used instead of any global variables for the entirety of the mixin's `@content`.
274
323
  //
275
- // `$zen-layouts: () !default;`
324
+ // ```
325
+ // $zen-layouts: () !default;
326
+ // ```
276
327
  //
277
328
  // Style guide: layout.variables.zen-layouts
278
329
  $zen-layouts: () !default;
279
330
 
280
331
 
281
332
 
282
- // Background Module: Configurable Variables
333
+ //
334
+ // Background Module
335
+ //
336
+
337
+ // Configurable variables
283
338
  //
284
339
  // Zen Grids comes with several configuration variables that affect what CSS its mixins and functions output. The default values of these variables are all set using the “guarded assignment” flag, `!default`. So you can safely set those values before you `@import` Zen Grids and your values will be respected.
285
340
  //
@@ -291,7 +346,9 @@ $zen-layouts: () !default;
291
346
  //
292
347
  // Specify the color used in the background grid image produced by the `zen-grid-background()` mixin.
293
348
  //
294
- // `$zen-grid-color: #ffdede !default;`
349
+ // ```
350
+ // $zen-grid-color: #ffdede !default;
351
+ // ```
295
352
  //
296
353
  // Style guide: background.variables.zen-grid-color
297
354
  $zen-grid-color: #ffdede !default;
@@ -300,7 +357,9 @@ $zen-grid-color: #ffdede !default;
300
357
  //
301
358
  // Specify how to place the column numbers in the background grid image. Normally, column numbers are displayed across the top of the background grid image and then displayed in reverse order along the bottom of the background grid image. Can be set to: `both`, `top`, or `none`.
302
359
  //
303
- // `$zen-grid-numbers: both !default;`
360
+ // ```
361
+ // $zen-grid-numbers: both !default;
362
+ // ```
304
363
  //
305
364
  // Style guide: background.variables.zen-grid-numbers
306
365
  $zen-grid-numbers: both !default;
@@ -311,7 +370,9 @@ $zen-grid-numbers: both !default;
311
370
  //
312
371
  // The default value of the `$zen-grid-number-images` variable is a list of the numbers 1 through 25, each rendered as an image and encoded as a data URI. Users who are crazy enough to use a 26-column grid or larger are free to extend this set.
313
372
  //
314
- // `$zen-grid-number-images: (url('data:image/png;base64, …), …) !default;`
373
+ // ```
374
+ // $zen-grid-number-images: (url('data:image/png;base64, …), …) !default;
375
+ // ```
315
376
  //
316
377
  // Style guide: background.variables.zen-grid-number-images
317
378
  $zen-grid-number-images: () !default;
@@ -322,7 +383,9 @@ $zen-grid-number-images: () !default;
322
383
  //
323
384
  // Since the background grid image is only useful during development and during debugging, we need an easy way to turn off the background grid image without removing all the calls to `zen-grid-background()` from the code base. To turn off all background grid images, set `$display-zen-grid-background` to `false`.
324
385
  //
325
- // `$display-zen-grid-background: true !default;`
386
+ // ```
387
+ // $display-zen-grid-background: true !default;
388
+ // ```
326
389
  //
327
390
  // Style guide: background.variables.display-zen-grid-background
328
391
  $display-zen-grid-background: true !default;