Skip to content

Commit 223dee5

Browse files
committed
Merge pull request #67 from damiencaselli/master
Fix undefined `fraction` variable in masonry-column mixin
2 parents 3f1e07d + 058c6b6 commit 223dee5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

less/lost.less

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,12 +625,12 @@
625625
* }
626626
*/
627627

628-
.masonry-column(@gut: @gutter, @flex: @flexbox) {
628+
.masonry-column(@fraction: 1 of 1, @gut: @gutter, @flex: @flexbox) {
629629
& when (@gut = 0) {
630-
width: e(%('calc(99.999999% * %s)', @_fraction));
630+
width: e(%('calc(99.999999% * %s)', @fraction));
631631
}
632632
& when not (@gut = 0) {
633-
width: e(%('calc(99.99% * %s - %s)', @_fraction, @gut));
633+
width: e(%('calc(99.99% * %s - %s)', @fraction, @gut));
634634
}
635635
& when (@flex = true) {
636636
flex: 0 0 auto;

scss/lost.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ $flexbox: false !default;
628628
/// @include masonry-column('1/3');
629629
/// }
630630

631-
@mixin masonry-column($gut: $gutter, $flex: $flexbox) {
631+
@mixin masonry-column($fraction: '1/1', $gut: $gutter, $flex: $flexbox) {
632632
@if ($flex == true) {
633633
flex: 0 0 auto;
634634
}

stylus/lost.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ masonry-wrap($gut = $gutter, $flex = $flexbox)
479479
* masonry-column('1/3')
480480
*/
481481

482-
masonry-column($gut = $gutter, $flex = $flexbox)
482+
masonry-column($fraction = '1/1', $gut = $gutter, $flex = $flexbox)
483483
_get-size()
484484
if $gut is 0
485485
return s('calc(99.999999% * %s)', unquote($fraction))

0 commit comments

Comments
 (0)