Skip to content

Commit

Permalink
box-bounds mixins fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Apr 17, 2018
1 parent e04d140 commit ba0b732
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions scss/mixins/_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ $bound-box-sizes: array-concat((none), $css-default-modes);
$settings: map-merge($settings, (min-width: $min-width));
}

$max-width: if(length($options) > 1, nth($options, 2), null);
$min-height: if(length($options) > 1, nth($options, 2), null);

@if is-defined($max-width) {
$settings: map-merge($settings, (max-width: $max-width));
@if is-defined($min-height) {
$settings: map-merge($settings, (min-height: $min-height));
}

$min-height: if(length($options) > 2, nth($options, 3), null);
$max-width: if(length($options) > 2, nth($options, 3), null);

@if is-defined($min-height) {
$settings: map-merge($settings, (min-height: $min-height));
@if is-defined($max-width) {
$settings: map-merge($settings, (max-width: $max-width));
}

$max-height: if(length($options) > 3, nth($options, 4), null);
Expand Down Expand Up @@ -144,16 +144,16 @@ $bound-box-sizes: array-concat((none), $css-default-modes);
$settings: map-merge($settings, (min-width: $min-width));
}

$max-width: if(length($options) > 3, nth($options, 4), null);
$min-height: if(length($options) > 3, nth($options, 4), null);

@if is-defined($max-width) {
$settings: map-merge($settings, (max-width: $max-width));
@if is-defined($min-height) {
$settings: map-merge($settings, (min-height: $min-height));
}

$min-height: if(length($options) > 4, nth($options, 5), null);
$max-width: if(length($options) > 4, nth($options, 5), null);

@if is-defined($min-height) {
$settings: map-merge($settings, (min-height: $min-height));
@if is-defined($max-width) {
$settings: map-merge($settings, (max-width: $max-width));
}

$max-height: if(length($options) > 5, nth($options, 6), null);
Expand Down

0 comments on commit ba0b732

Please sign in to comment.