zen-grids 2.0.0.beta.4 → 2.0.0
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 +4 -4
- data/{LICENSE.txt → LICENSE.md} +0 -0
- data/README.md +8 -25
- data/bower.json +27 -0
- data/lib/zen-grids.rb +14 -7
- data/package.json +45 -0
- data/sass/zen-grids/_background.scss +53 -12
- data/sass/zen-grids/_flow.scss +138 -15
- data/sass/zen-grids/_functions.scss +86 -6
- data/sass/zen-grids/_grids.scss +84 -19
- data/sass/zen-grids/_layout.scss +56 -40
- data/sass/zen-grids/_undo.scss +63 -15
- data/sass/zen-grids/_variables.scss +299 -42
- data/zen-grids.gemspec +15 -13
- metadata +9 -8
- data/sass/zen-grids/internal/_functions-compass-polyfill.scss +0 -47
@@ -1,14 +1,35 @@
|
|
1
|
+
// Helper functions module
|
1
2
|
//
|
2
|
-
// Helper functions for the Zen Grids
|
3
|
+
// Helper functions for the Zen Grids mixins.
|
3
4
|
//
|
5
|
+
// Style guide: functions
|
4
6
|
|
5
7
|
|
6
8
|
@import "./variables";
|
7
9
|
|
8
10
|
|
11
|
+
// zen-half-gutter()
|
9
12
|
//
|
10
|
-
// Returns a half gutter width.
|
13
|
+
// Returns a half gutter width.
|
11
14
|
//
|
15
|
+
// If the gutter width is in pixels and is an odd number, then `$gutter-side: left` will return half of the gutter rounded down to a whole pixel; `$gutter-side: right` will return half of the gutter rounded up to a whole pixel. The `$gutter-side` defaults to [`$zen-direction`](#zen-direction).
|
16
|
+
//
|
17
|
+
// Common usage:
|
18
|
+
// ```
|
19
|
+
// .ex {
|
20
|
+
// property: zen-half-gutter();
|
21
|
+
// // or:
|
22
|
+
// property: zen-half-gutter($gutter-side: [left or right]);
|
23
|
+
// }
|
24
|
+
// ```
|
25
|
+
//
|
26
|
+
// $gutters - Defaults to `$zen-gutters`
|
27
|
+
// $gutter-side - Defaults to `$zen-direction`
|
28
|
+
// $direction - Defaults to `$zen-direction`
|
29
|
+
//
|
30
|
+
// weight: -1
|
31
|
+
//
|
32
|
+
// Style guide: functions.zen-half-gutter
|
12
33
|
@function zen-half-gutter(
|
13
34
|
$gutters : $zen-gutters,
|
14
35
|
$gutter-side : $zen-direction,
|
@@ -27,9 +48,11 @@
|
|
27
48
|
@return $half-gutter;
|
28
49
|
}
|
29
50
|
|
51
|
+
// zen-compare-units()
|
30
52
|
//
|
31
|
-
// Warns if the gutter and grid width units are not comparable.
|
53
|
+
// Internal function. Warns if the gutter and grid width units are not comparable. It does not throw an `@error` because the line following the call to `zen-compare-units()` will cause a Sass math error with the a line number that is more useful than if it were to fail here.
|
32
54
|
//
|
55
|
+
// No style guide
|
33
56
|
@function zen-compare-units(
|
34
57
|
$feature,
|
35
58
|
$gutters : $zen-gutters,
|
@@ -44,9 +67,25 @@
|
|
44
67
|
@return true;
|
45
68
|
}
|
46
69
|
|
70
|
+
// zen-unit-width()
|
71
|
+
//
|
72
|
+
// Returns the unit width of a single column in the grid.
|
47
73
|
//
|
48
|
-
//
|
74
|
+
// Common usage:
|
75
|
+
// ```
|
76
|
+
// .ex {
|
77
|
+
// property: zen-unit-width();
|
78
|
+
// }
|
79
|
+
// ```
|
49
80
|
//
|
81
|
+
// $columns - Defaults to `$zen-columns`
|
82
|
+
// $gutters - Defaults to `$zen-gutters`
|
83
|
+
// $gutter-method - Defaults to `$zen-gutter-method`
|
84
|
+
// $grid-width - Defaults to `$zen-grid-width`
|
85
|
+
//
|
86
|
+
// weight: -1
|
87
|
+
//
|
88
|
+
// Style guide: functions.zen-unit-width
|
50
89
|
@function zen-unit-width(
|
51
90
|
$columns : $zen-columns,
|
52
91
|
$gutters : $zen-gutters,
|
@@ -73,10 +112,25 @@
|
|
73
112
|
@return $unit-width;
|
74
113
|
}
|
75
114
|
|
115
|
+
// zen-grid-item-width()
|
116
|
+
//
|
117
|
+
// Common usage:
|
118
|
+
// ```
|
119
|
+
// .ex {
|
120
|
+
// property: zen-grid-item-width([number]);
|
121
|
+
// }
|
122
|
+
// ```
|
76
123
|
//
|
77
124
|
// Calculates the width of a grid item that spans the specified number of columns.
|
78
|
-
// @see http://next.zengrids.com/reference/functions/#zen-grid-item-width
|
79
125
|
//
|
126
|
+
// $column-span - Required. The number of columns to calculate the width of.
|
127
|
+
// $columns - Defaults to `$zen-columns`
|
128
|
+
// $gutters - Defaults to `$zen-gutters`
|
129
|
+
// $gutter-method - Defaults to `$zen-gutter-method`
|
130
|
+
// $grid-width - Defaults to `$zen-grid-width`
|
131
|
+
// $box-sizing - Defaults to `$zen-box-sizing`
|
132
|
+
//
|
133
|
+
// Style guide: functions.zen-grid-item-width
|
80
134
|
@function zen-grid-item-width(
|
81
135
|
$column-span,
|
82
136
|
$columns : $zen-columns,
|
@@ -99,10 +153,22 @@
|
|
99
153
|
@return $width;
|
100
154
|
}
|
101
155
|
|
156
|
+
// zen-direction-switch()
|
157
|
+
//
|
158
|
+
// Common usage:
|
159
|
+
// ```
|
160
|
+
// .ex {
|
161
|
+
// property: zen-direction-switch([left or right]);
|
162
|
+
// }
|
163
|
+
// ```
|
164
|
+
//
|
165
|
+
// weight: 1
|
102
166
|
//
|
103
167
|
// Returns the opposite direction, given "left" or "right".
|
104
|
-
// @see http://next.zengrids.com/reference/functions/#zen-direction-switch
|
105
168
|
//
|
169
|
+
// $dir - Required. The direction you want to switch.
|
170
|
+
//
|
171
|
+
// Style guide: functions.zen-direction-switch
|
106
172
|
@function zen-direction-switch(
|
107
173
|
$dir
|
108
174
|
) {
|
@@ -117,3 +183,17 @@
|
|
117
183
|
}
|
118
184
|
@return $dir;
|
119
185
|
}
|
186
|
+
|
187
|
+
// zen-support-for-ie()
|
188
|
+
//
|
189
|
+
// Internal function. If you've installed support-for, this function will tell you if IE 6 or IE 7 should be supported. If support-for is not installed, this function always returns false.
|
190
|
+
//
|
191
|
+
// No style guide
|
192
|
+
@function zen-support-for-ie($min-version) {
|
193
|
+
@if function-exists('support-for') {
|
194
|
+
@return support-for(ie, $min-version);
|
195
|
+
}
|
196
|
+
@else {
|
197
|
+
@return false;
|
198
|
+
}
|
199
|
+
}
|
data/sass/zen-grids/_grids.scss
CHANGED
@@ -7,8 +7,31 @@
|
|
7
7
|
@import "./variables";
|
8
8
|
// Import the helper functions.
|
9
9
|
@import "./functions";
|
10
|
-
@import "./internal/functions-compass-polyfill";
|
11
10
|
|
11
|
+
// zen-rtl()
|
12
|
+
//
|
13
|
+
// Includes inline Right-To-Left language support if the `$zen-rtl-selector` variable is set to `[dir="rtl"]` or some other useful CSS selector.
|
14
|
+
//
|
15
|
+
// Since `$zen-rtl-selector` defaults to `false`, inline Right-To-Left language support is off by default.
|
16
|
+
//
|
17
|
+
// $selector - Defaults to $zen-rtl-selector.
|
18
|
+
//
|
19
|
+
// Style guide: grids.zen-rtl
|
20
|
+
|
21
|
+
@mixin zen-rtl($selector: $zen-rtl-selector) {
|
22
|
+
@if $selector {
|
23
|
+
@if & {
|
24
|
+
#{$selector} & {
|
25
|
+
@content;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
@else {
|
29
|
+
#{$selector} {
|
30
|
+
@content;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
12
35
|
|
13
36
|
//
|
14
37
|
// Apply this to create a grid container element.
|
@@ -19,7 +42,8 @@
|
|
19
42
|
$gutters : $zen-gutters,
|
20
43
|
$gutter-method : $zen-gutter-method,
|
21
44
|
$direction : $zen-direction,
|
22
|
-
$switch-direction : $zen-switch-direction
|
45
|
+
$switch-direction : $zen-switch-direction,
|
46
|
+
$rtl-selector : $zen-rtl-selector
|
23
47
|
) {
|
24
48
|
|
25
49
|
$dir: $direction;
|
@@ -37,20 +61,21 @@
|
|
37
61
|
}
|
38
62
|
|
39
63
|
// @TODO: This is a pre-IE8 line of code; don't remember why its needed.
|
40
|
-
@if zen-support-for(
|
64
|
+
@if zen-support-for-ie(7) {
|
41
65
|
*position: relative;
|
42
66
|
}
|
43
67
|
|
44
|
-
// We use the "micro clearfix",
|
45
|
-
&:before
|
46
|
-
&:after {
|
68
|
+
// We use the "micro clearfix", optimized to reduce the number of &.
|
69
|
+
&:before {
|
47
70
|
content: "";
|
48
71
|
display: table;
|
49
72
|
}
|
50
73
|
&:after {
|
74
|
+
content: "";
|
75
|
+
display: table;
|
51
76
|
clear: both;
|
52
77
|
}
|
53
|
-
@if zen-support-for(
|
78
|
+
@if zen-support-for-ie(7) {
|
54
79
|
*zoom: 1;
|
55
80
|
}
|
56
81
|
|
@@ -60,6 +85,16 @@
|
|
60
85
|
left: -(zen-half-gutter($gutters, left, $dir));
|
61
86
|
right: -(zen-half-gutter($gutters, right, $dir));
|
62
87
|
}
|
88
|
+
|
89
|
+
// If $gutters is an odd number of pixels, we need special RTL handling.
|
90
|
+
@if zen-half-gutter($gutters, left, $dir) != zen-half-gutter($gutters, right, $dir) {
|
91
|
+
@include zen-rtl($rtl-selector) {
|
92
|
+
margin: {
|
93
|
+
left: -(zen-half-gutter($gutters, right, $dir));
|
94
|
+
right: -(zen-half-gutter($gutters, left, $dir));
|
95
|
+
}
|
96
|
+
}
|
97
|
+
}
|
63
98
|
}
|
64
99
|
|
65
100
|
// Prevent any padding from messing up the alignment of the nested grid.
|
@@ -85,6 +120,7 @@
|
|
85
120
|
$grid-width : $zen-grid-width,
|
86
121
|
$box-sizing : $zen-box-sizing,
|
87
122
|
$switch-direction : $zen-switch-direction,
|
123
|
+
$rtl-selector : $zen-rtl-selector,
|
88
124
|
$include-base : $zen-auto-include-grid-item-base
|
89
125
|
) {
|
90
126
|
|
@@ -113,18 +149,29 @@
|
|
113
149
|
#{$dir}: $margin;
|
114
150
|
#{$rev}: -100%;
|
115
151
|
}
|
116
|
-
@if zen-support-for(
|
117
|
-
*margin-#{$rev}: -99.9%;
|
152
|
+
@if zen-support-for-ie(7) {
|
153
|
+
// @TODO: This interpolation fails on libsass 3.3.0: *margin-#{$rev}: -99.9%;
|
154
|
+
#{'*margin-' + $rev}: -99.9%;
|
155
|
+
}
|
156
|
+
@include zen-rtl($rtl-selector) {
|
157
|
+
margin: {
|
158
|
+
#{$rev}: $margin;
|
159
|
+
#{$dir}: -100%;
|
160
|
+
}
|
161
|
+
@if zen-support-for-ie(7) {
|
162
|
+
// @TODO: This interpolation fails on libsass 3.3.0: *margin-#{$rev}: -99.9%;
|
163
|
+
#{'*margin-' + $dir}: -99.9%;
|
164
|
+
}
|
118
165
|
}
|
119
166
|
|
120
167
|
// Include the grid item base mixin.
|
121
168
|
@if $include-base {
|
122
|
-
@include zen-grid-item-base($gutters, $gutter-method, $box-sizing, $direction, $switch-direction);
|
169
|
+
@include zen-grid-item-base($gutters, $gutter-method, $box-sizing, $direction, $switch-direction, $rtl-selector);
|
123
170
|
}
|
124
171
|
// If the $gutters parameter has been used, set the gutters even if
|
125
172
|
// $include-base is false.
|
126
173
|
@else if $gutters != $zen-gutters and $gutter-method == padding {
|
127
|
-
@include zen-apply-gutter-padding($gutters, $direction, $switch-direction);
|
174
|
+
@include zen-apply-gutter-padding($gutters, $direction, $switch-direction, $rtl-selector);
|
128
175
|
}
|
129
176
|
}
|
130
177
|
|
@@ -137,19 +184,19 @@
|
|
137
184
|
$gutter-method : $zen-gutter-method,
|
138
185
|
$box-sizing : $zen-box-sizing,
|
139
186
|
$direction : $zen-direction,
|
140
|
-
$switch-direction : $zen-switch-direction
|
187
|
+
$switch-direction : $zen-switch-direction,
|
188
|
+
$rtl-selector : $zen-rtl-selector
|
141
189
|
) {
|
142
190
|
|
143
191
|
// Specify the padding if the gutter method uses padding.
|
144
192
|
@if $gutter-method == padding {
|
145
|
-
@include zen-apply-gutter-padding($gutters, $direction, $switch-direction);
|
193
|
+
@include zen-apply-gutter-padding($gutters, $direction, $switch-direction, $rtl-selector);
|
146
194
|
}
|
147
195
|
|
148
196
|
// Specify the border-box properties.
|
149
197
|
@if $box-sizing == border-box {
|
150
198
|
-moz-box-sizing: border-box;
|
151
199
|
-webkit-box-sizing: border-box;
|
152
|
-
-ms-box-sizing: border-box;
|
153
200
|
box-sizing: border-box;
|
154
201
|
}
|
155
202
|
// Prevent left/right borders since they'll break the layout with content-box.
|
@@ -166,14 +213,14 @@
|
|
166
213
|
}
|
167
214
|
}
|
168
215
|
|
169
|
-
@if zen-support-for(
|
216
|
+
@if zen-support-for-ie(7) {
|
170
217
|
@if $box-sizing == border-box and $box-sizing-polyfill-path == "" {
|
171
|
-
@warn
|
218
|
+
@warn 'Setting $box-sizing to border-box will fail for IE 7 and earlier because the $box-sizing-polyfill-path is empty.';
|
172
219
|
}
|
173
220
|
@if $box-sizing-polyfill-path != "" {
|
174
221
|
*behavior: url($box-sizing-polyfill-path);
|
175
222
|
}
|
176
|
-
@if zen-support-for(
|
223
|
+
@if zen-support-for-ie(6) {
|
177
224
|
// Display inline or double your floated margin!
|
178
225
|
// @see http://www.positioniseverything.net/explorer/doubled-margin.html
|
179
226
|
_display: inline;
|
@@ -194,13 +241,20 @@
|
|
194
241
|
//
|
195
242
|
@mixin zen-new-row(
|
196
243
|
$clear : $zen-direction,
|
197
|
-
$switch-direction : $zen-switch-direction
|
244
|
+
$switch-direction : $zen-switch-direction,
|
245
|
+
$rtl-selector : $zen-rtl-selector
|
198
246
|
) {
|
199
247
|
// Determine the clearing direction.
|
200
248
|
@if $switch-direction {
|
201
249
|
$clear: zen-direction-switch($clear);
|
202
250
|
}
|
203
251
|
clear: $clear;
|
252
|
+
|
253
|
+
@if $clear == left or $clear == right {
|
254
|
+
@include zen-rtl($rtl-selector) {
|
255
|
+
clear: zen-direction-switch($clear);
|
256
|
+
}
|
257
|
+
}
|
204
258
|
}
|
205
259
|
|
206
260
|
//
|
@@ -210,7 +264,8 @@
|
|
210
264
|
@mixin zen-apply-gutter-padding(
|
211
265
|
$gutters : $zen-gutters,
|
212
266
|
$direction : $zen-direction,
|
213
|
-
$switch-direction : $zen-switch-direction
|
267
|
+
$switch-direction : $zen-switch-direction,
|
268
|
+
$rtl-selector : $zen-rtl-selector
|
214
269
|
) {
|
215
270
|
|
216
271
|
$dir: $direction;
|
@@ -222,4 +277,14 @@
|
|
222
277
|
left: zen-half-gutter($gutters, left, $dir);
|
223
278
|
right: zen-half-gutter($gutters, right, $dir);
|
224
279
|
}
|
280
|
+
|
281
|
+
// If $gutters is an odd number of pixels, we need special RTL handling.
|
282
|
+
@if zen-half-gutter($gutters, left, $dir) != zen-half-gutter($gutters, right, $dir) {
|
283
|
+
@include zen-rtl($rtl-selector) {
|
284
|
+
padding: {
|
285
|
+
left: zen-half-gutter($gutters, right, $dir);
|
286
|
+
right: zen-half-gutter($gutters, left, $dir);
|
287
|
+
}
|
288
|
+
}
|
289
|
+
}
|
225
290
|
}
|
data/sass/zen-grids/_layout.scss
CHANGED
@@ -29,18 +29,19 @@
|
|
29
29
|
// Should be used to add a wrapping block where its parameters will override the
|
30
30
|
// corresponding global `$zen-` variables within it.
|
31
31
|
//
|
32
|
-
// $layout
|
33
|
-
// $columns
|
34
|
-
// $gutters
|
35
|
-
// $gutter-method
|
36
|
-
// $grid-width
|
37
|
-
// $box-sizing
|
38
|
-
// $direction
|
39
|
-
// $switch-direction
|
40
|
-
// $
|
41
|
-
// $auto-include-
|
42
|
-
// $
|
43
|
-
// $grid-
|
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`
|
44
45
|
//
|
45
46
|
// Style guide: layout.zen-layout
|
46
47
|
@mixin zen-layout(
|
@@ -52,6 +53,7 @@
|
|
52
53
|
$box-sizing : null,
|
53
54
|
$direction : null,
|
54
55
|
$switch-direction : null,
|
56
|
+
$rtl-selector : null,
|
55
57
|
$auto-include-grid-item-base : null,
|
56
58
|
$auto-include-flow-item-base : null,
|
57
59
|
$grid-color : null,
|
@@ -67,6 +69,7 @@
|
|
67
69
|
'box-sizing' : $zen-box-sizing,
|
68
70
|
'direction' : $zen-direction,
|
69
71
|
'switch-direction' : $zen-switch-direction,
|
72
|
+
'rtl-selector' : $zen-rtl-selector,
|
70
73
|
'auto-include-grid-item-base' : $zen-auto-include-grid-item-base,
|
71
74
|
'auto-include-flow-item-base' : $zen-auto-include-flow-item-base,
|
72
75
|
'grid-color' : $zen-grid-color,
|
@@ -101,6 +104,9 @@
|
|
101
104
|
@if type-of($switch-direction) == 'null' {
|
102
105
|
$switch-direction: map-get($local-defaults, 'switch-direction');
|
103
106
|
}
|
107
|
+
@if type-of($rtl-selector) == 'null' {
|
108
|
+
$rtl-selector: map-get($local-defaults, 'rtl-selector');
|
109
|
+
}
|
104
110
|
@if type-of($auto-include-grid-item-base) == 'null' {
|
105
111
|
$auto-include-grid-item-base: map-get($local-defaults, 'auto-include-grid-item-base');
|
106
112
|
}
|
@@ -122,6 +128,7 @@
|
|
122
128
|
$zen-box-sizing : $box-sizing !global;
|
123
129
|
$zen-direction : $direction !global;
|
124
130
|
$zen-switch-direction : $switch-direction !global;
|
131
|
+
$zen-rtl-selector : $rtl-selector !global;
|
125
132
|
$zen-auto-include-grid-item-base : $auto-include-grid-item-base !global;
|
126
133
|
$zen-auto-include-flow-item-base : $auto-include-flow-item-base !global;
|
127
134
|
$zen-grid-color : $grid-color !global;
|
@@ -138,6 +145,7 @@
|
|
138
145
|
$zen-box-sizing : map-get($global-vars, 'box-sizing') !global;
|
139
146
|
$zen-direction : map-get($global-vars, 'direction') !global;
|
140
147
|
$zen-switch-direction : map-get($global-vars, 'switch-direction') !global;
|
148
|
+
$zen-rtl-selector : map-get($global-vars, 'rtl-selector') !global;
|
141
149
|
$zen-auto-include-grid-item-base : map-get($global-vars, 'auto-include-grid-item-base') !global;
|
142
150
|
$zen-auto-include-flow-item-base : map-get($global-vars, 'auto-include-flow-item-base') !global;
|
143
151
|
$zen-grid-color : map-get($global-vars, 'grid-color') !global;
|
@@ -164,20 +172,21 @@
|
|
164
172
|
// }
|
165
173
|
// ```
|
166
174
|
//
|
167
|
-
// $query
|
168
|
-
// $no-query
|
169
|
-
// $layout
|
170
|
-
// $columns
|
171
|
-
// $gutters
|
172
|
-
// $gutter-method
|
173
|
-
// $grid-width
|
174
|
-
// $box-sizing
|
175
|
-
// $direction
|
176
|
-
// $switch-direction
|
177
|
-
// $
|
178
|
-
// $auto-include-
|
179
|
-
// $
|
180
|
-
// $grid-
|
175
|
+
// $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`
|
181
190
|
//
|
182
191
|
// Style guide: layout.zen-breakpoint
|
183
192
|
@mixin zen-breakpoint(
|
@@ -191,6 +200,7 @@
|
|
191
200
|
$box-sizing : null,
|
192
201
|
$direction : null,
|
193
202
|
$switch-direction : null,
|
203
|
+
$rtl-selector : null,
|
194
204
|
$auto-include-grid-item-base : null,
|
195
205
|
$auto-include-flow-item-base : null,
|
196
206
|
$grid-color : null,
|
@@ -210,6 +220,7 @@
|
|
210
220
|
$box-sizing,
|
211
221
|
$direction,
|
212
222
|
$switch-direction,
|
223
|
+
$rtl-selector,
|
213
224
|
$auto-include-grid-item-base,
|
214
225
|
$auto-include-flow-item-base,
|
215
226
|
$grid-color,
|
@@ -237,6 +248,7 @@
|
|
237
248
|
$box-sizing : null,
|
238
249
|
$direction : null,
|
239
250
|
$switch-direction : null,
|
251
|
+
$rtl-selector : null,
|
240
252
|
$auto-include-grid-item-base : null,
|
241
253
|
$auto-include-flow-item-base : null,
|
242
254
|
$grid-color : null,
|
@@ -256,6 +268,7 @@
|
|
256
268
|
$box-sizing,
|
257
269
|
$direction,
|
258
270
|
$switch-direction,
|
271
|
+
$rtl-selector,
|
259
272
|
$auto-include-grid-item-base,
|
260
273
|
$auto-include-flow-item-base,
|
261
274
|
$grid-color,
|
@@ -298,20 +311,21 @@
|
|
298
311
|
// }
|
299
312
|
// ```
|
300
313
|
//
|
301
|
-
// $
|
302
|
-
// $
|
303
|
-
// $
|
304
|
-
// $columns
|
305
|
-
// $gutters
|
306
|
-
// $gutter-method
|
307
|
-
// $grid-width
|
308
|
-
// $box-sizing
|
309
|
-
// $direction
|
310
|
-
// $switch-direction
|
311
|
-
// $
|
312
|
-
// $auto-include-
|
313
|
-
// $
|
314
|
-
// $grid-
|
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`
|
315
329
|
//
|
316
330
|
// Style guide: layout.zen-layout
|
317
331
|
@mixin zen-respond-to(
|
@@ -325,6 +339,7 @@
|
|
325
339
|
$box-sizing : null,
|
326
340
|
$direction : null,
|
327
341
|
$switch-direction : null,
|
342
|
+
$rtl-selector : null,
|
328
343
|
$auto-include-grid-item-base : null,
|
329
344
|
$auto-include-flow-item-base : null,
|
330
345
|
$grid-color : null,
|
@@ -349,6 +364,7 @@
|
|
349
364
|
$box-sizing,
|
350
365
|
$direction,
|
351
366
|
$switch-direction,
|
367
|
+
$rtl-selector,
|
352
368
|
$auto-include-grid-item-base,
|
353
369
|
$auto-include-flow-item-base,
|
354
370
|
$grid-color,
|