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
Copy file name to clipboardExpand all lines: README.md
-27Lines changed: 0 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -246,33 +246,6 @@ section
246
246
edit(green)
247
247
```
248
248
249
-
Lost even lets you create your own custom CSS grids in just a few lines of code with the `$output` parameter which accepts `normal` (compiles all `column` styles), `init` (only initial styles), and `bare` (just the `width` or `height`).
250
-
251
-
<h6align="right">SCSS</h6>
252
-
```scss
253
-
[class*="col-"] {
254
-
@includeblock($output: init);
255
-
}
256
-
257
-
@for$ifrom1through12 {
258
-
.col-#{$i} {
259
-
@includeblock(#{$i}/12, $output: bare);
260
-
}
261
-
}
262
-
```
263
-
264
-
<h6align="right">Stylus</h6>
265
-
```stylus
266
-
[class*="col-"]
267
-
block($output: init)
268
-
269
-
for $i in 1..12
270
-
.col-{$i}
271
-
block(s('%s/12', $i), $output: bare)
272
-
```
273
-
274
-
> **Note** We're aware these don't produce the cleanest CSS classes or work very well with media queries and are currently working on a solution. Please [help](https://github.com/corysimmons/lost/issues/46) if you can.
275
-
276
249
Once you've mastered the basic horizontal grid system (it shouldn't take long), you can start to make vertical grids that have the same vertical gutters as your horizontal grids. Just pass `$dir: column` to your `block()` mixin. The blocks will stretch to fill their container's height, so if you'd like to see them take up the full height of the page, set `height: 100%` on your container.
277
250
278
251
No other grid system in the world supports vertical grids.
// Lost Grid v4.0.2 - https://github.com/corysimmons/lost
1
+
// Lost Grid v4.1.0 - https://github.com/corysimmons/lost
2
2
3
3
$gutter: 30px!default;
4
4
$rtl: false !default;
@@ -46,24 +46,19 @@ $rtl: false !default;
46
46
///
47
47
///@param{unit}$max-size [980px] - A max-width to assign. Can be any unit.
48
48
///@param{unit}$pad [0] - Padding on the left and right of the element. Can be any unit.
49
-
///@param{string}$output [normal] - Determines what type of code to output. Accepts normal (outputs all code), init (only the code to initialize), and bare (just the max-width and padding). Useful for making classes like .center-large, .center-medium, .center-small.
///@param{string}$dir [row] - The direction of the grid. Can be row (horizontal grid), column (vertical grid), or both (waffle grid).
246
241
///@param{number}$cycle [1] - Lost works by assigning a margin-right to all elements except the last in the row. It does this by default by using the denominator of the fraction you pick. To override this default use this param. e.g. block('2/4', $cycle: 2)
247
242
///@param{number}$gut [$gutter] - The margin on the side of the element used to create a gutter. Typically this is left alone and the global $gutter will be used, but you can override it here if you want certain elements to have a particularly large or small gutter (pass 0 for no gutter at all).
248
-
///@param{string}$output [normal] - Determines what type of code to output. Accepts normal (all styles for a block), init (the initial styles of any block), or bare (just the essentials of the block). Useful for creating CSS grid classes like .col-x with Lost.
249
243
///@param{boolean}$masonry-friendly [false] - Dictates whether this particular group of elements will work well with JS masonry plugins. This will assign a margin on each side of the element and you will need to wrap this group of elements in a masonry-row().
///@param{string}$fraction ['1/1'] - Fraction of the container to be shifted. Must be a string.
544
496
///@param{string}$dir [row] - Direction the grid is going. Should match the block() it's being used on.
545
497
///@param{number}$gut [$gutter] - Adjust the size of the gutter for this movement. Should match the block's $gut.
546
-
///@param{string}$output [normal] - Determines the type of output to produce. Accepts 3 options, normal (all the code), init (just the initialization code), and bare (just the offset).
0 commit comments