From 8b4ec99870825bdf9c34be956e4df3985544d4b8 Mon Sep 17 00:00:00 2001 From: Andrew Wei Date: Thu, 26 May 2016 22:57:01 +0900 Subject: [PATCH] Fix space-between --- package.json | 2 +- src/sass/mixins/alignments.scss | 4 ++-- src/stylus/mixins/alignments.styl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 16ebfbd..caa48e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "minuet", - "version": "0.8.0", + "version": "0.8.1", "description": "An experimental stylesheet library.", "homepage": "http://VARIANTE.github.io/minuet", "license": "MIT", diff --git a/src/sass/mixins/alignments.scss b/src/sass/mixins/alignments.scss index a359d63..74d627c 100644 --- a/src/sass/mixins/alignments.scss +++ b/src/sass/mixins/alignments.scss @@ -621,12 +621,12 @@ @if ($_direction == '>') or ($_direction == 'horizontal') or ($_direction == 'row') { &:not(:last-child) { - margin: 0 $value 0 0; + margin-right: $value; } } @else if ($_direction == 'v') or ($_direction == 'vertical') or ($_direction == 'column') { &:not(:last-child) { - margin: 0 0 $value 0; + margin-bottom: $value; } } } diff --git a/src/stylus/mixins/alignments.styl b/src/stylus/mixins/alignments.styl index e1298c6..50782d2 100644 --- a/src/stylus/mixins/alignments.styl +++ b/src/stylus/mixins/alignments.styl @@ -655,7 +655,7 @@ space-between($value, $direction='>') if $_direction == '>' or $_direction == 'horizontal' or $_direction == 'row' &:not(:last-child) - margin: 0 $value 0 0 + margin-right: $value else if $_direction == 'v' or $_direction == 'vertical' or $_direction == 'column' &:not(:last-child) - margin: 0 0 $value 0 + margin-bottom: $value