You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 29, 2024. It is now read-only.
A string similar to Grid notation that specifies the left and right offsets and width of the grid, separated by pipes (which represent the edges of the grid).
208
219
209
-
Optional unit object that specifies the width of the grid area to be used for the calculation. Must be a positive value. The width option can be left blank.
220
+
Width is defined by enclosing a unit object in pipes. The tilde `~` can be used similarly to the way wildcards are used.
210
221
211
222
#### Examples:
212
223
213
-
-`| ~ | ~ | ~ | ( v, 100px)`
214
-
A three column grid that is one hundred pixels wide.
224
+
-`(v, |100px|)`
225
+
A one hundred pixel wide grid.
215
226
216
-
### Grid offset
227
+
-`(v, |~|)`
228
+
A full width grid (default)
217
229
218
-
Optional unit object that specifies how far from the origin the grid will be offset.
230
+
Position works similarly to how CSS works. Think of the `~` as "auto". To define the left or right offset, place a `~` or unit object on either side of the pipes.
219
231
220
-
#### Examples
232
+
#### Examples:
233
+
234
+
-`(v, 20px|100px|)`
235
+
A one hundred pixel wide grid, twenty pixels from the left side.
221
236
222
-
- A ten pixel column that sits 50px from the left side of the document/selection
237
+
-`(v, |100px|20px)`
238
+
A one hundred pixel wide grid, twenty pixels from the right side.
223
239
224
-
`| 10px | ( vF, , 50px )`
240
+
-`(v, 20px|100px|20px)`
241
+
A one hundred pixel wide grid, twenty pixels from the left side (the right offset is ignored if a left and right offset is specified with a defined width).
225
242
243
+
-`(v, 20px|~|20px)`
244
+
A grid with a width that is 40px less than the width of the document, with 20px space on either side.
226
245
227
-
- A ten pixel column that sits 50px from the right site of the doucment/selection
246
+
-`(v, ~|100px|)`
247
+
A right aligned, one hundred pixel wide grid.
228
248
229
-
`| 10px | ( vL, , 50px )`
249
+
-`(v, ~|100px|~)`
250
+
A centered, one hundred pixel wide grid.
230
251
231
-
- A ten pixel wide column that sits 30px from the right side of a 100px selection.
252
+
For width to be specified, it **must** have a pipe on either side. If only one pipe between two values is specified, the values will be treated as left and right offsets. If a third pipe exists, it and anything after it is ignored.
0 commit comments