Skip to content

Commit 87d7e81

Browse files
author
Cory Simmons
committed
Fix waffle and row at breakpoints
1 parent f0bda4b commit 87d7e81

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

less/lost.less

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Lost Grid v5.1.1 - https://github.com/corysimmons/lost
1+
// Lost Grid v5.1.2 - https://github.com/corysimmons/lost
22

33
@gutter: 30px;
44
@rtl: false;
@@ -374,6 +374,7 @@
374374
@numerator: extract(@fraction, 1);
375375
@denominator: extract(@fraction, 3);
376376
@_fraction: e('@{numerator}/@{denominator}');
377+
width: 100%;
377378
& when (@gut = 0) {
378379
height: e(%('calc(99.999999% * %s)', @_fraction));
379380
}
@@ -462,7 +463,9 @@
462463
}
463464
}
464465
}
465-
margin-bottom: @gut;
466+
&:nth-child(n) {
467+
margin-bottom: @gut;
468+
}
466469
&:last-child {
467470
margin-bottom: 0;
468471
}

scss/lost.scss

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Lost Grid v5.1.1 - https://github.com/corysimmons/lost
1+
// Lost Grid v5.1.2 - https://github.com/corysimmons/lost
22

33
$gutter: 30px !default;
44
$rtl: false !default;
@@ -355,6 +355,7 @@ $flexbox: false !default;
355355
/// }
356356

357357
@mixin row($fraction: '1/1', $gut: $gutter, $flex: $flexbox) {
358+
width: 100%;
358359
@if ($gut == 0) {
359360
height: calc(99.999999% * #{$fraction});
360361
} @else {
@@ -434,7 +435,9 @@ $flexbox: false !default;
434435
}
435436
}
436437
}
437-
margin-bottom: $gut;
438+
&:nth-child(n) {
439+
margin-bottom: $gut;
440+
}
438441
&:last-child {
439442
margin-bottom: 0;
440443
}

stylus/lost.styl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Lost Grid v5.1.1 - https://github.com/corysimmons/lost
1+
// Lost Grid v5.1.2 - https://github.com/corysimmons/lost
22

33
$gutter = 30px
44
$rtl = false
@@ -291,6 +291,7 @@ row($fraction = '1/1', $gut = $gutter, $flex = $flexbox)
291291
return s('calc(99.999999% * %s)', unquote($fraction))
292292
else
293293
return s('calc(99.99% * %s - (%s - %s * %s))', unquote($fraction), $gut, $gut, unquote($fraction))
294+
width: 100%
294295
height: _get-size()
295296
margin-bottom: $gut
296297
if $flex is true
@@ -351,7 +352,8 @@ waffle($fraction = '1/1', $cycle = convert(unquote(split('/', $fraction)[1])), $
351352
margin-right: $gut
352353
&:nth-child({$cycle}n), &:last-child
353354
margin-right: 0
354-
margin-bottom: $gut
355+
&:nth-child(n)
356+
margin-bottom: $gut
355357
&:last-child
356358
margin-bottom: 0
357359
&:nth-last-child(-n + {$cycle})

0 commit comments

Comments
 (0)