Skip to content

Commit

Permalink
box-size hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Black Mirror committed Feb 15, 2018
1 parent 1c3df06 commit aa34870
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Black Mirror

## Version
v0.1.1
v0.1.2

## Badges

Expand Down
22 changes: 11 additions & 11 deletions scss/mixins/_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ $display-modes: array-append((none, inline, block, inline-block, flex, inline-fl
display: $dm;
}
@else {
@warn '`display: #{$dm}` is not a valid display mode';
@warn '`display: #{$dm}` is not a valid display mode';
}
}

$box-sizes: array-append((auto), $css-default-modes);
@function is-box-size($s) {
@return is-size($s) or contains($box-sizes, $s);
@return is-size($s) or contains($box-sizes, $s);
}

$bound-box-sizes: array-append((none), $css-default-modes);
@function is-bound-box-size($s) {
@return is-size($s) or contains($bound-box-sizes, $s);
@return is-size($s) or contains($bound-box-sizes, $s);
}
@mixin box-shadow($shadows...) {
-webkit-box-shadow: $shadows;
Expand Down Expand Up @@ -77,7 +77,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
width: $width;
}
@else {
@warn '`width: #{$width}` is not a valid size';
@warn '`width: #{$width}` is not a valid size';
}
}

Expand All @@ -92,7 +92,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
height: $height;
}
@else {
@warn '`height: #{$height}` is not a valid size';
@warn '`height: #{$height}` is not a valid size';
}
}

Expand All @@ -102,7 +102,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
min-width: $min-width;
}
@else {
@warn '`min-width: #{$min-width}` is not a valid size';
@warn '`min-width: #{$min-width}` is not a valid size';
}
}

Expand All @@ -112,7 +112,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
min-height: $min-height;
}
@else {
@warn '`min-height: #{$min-height}` is not a valid size';
@warn '`min-height: #{$min-height}` is not a valid size';
}
}

Expand All @@ -122,7 +122,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
max-width: $max-width;
}
@else {
@warn '`max-width: #{$max-width}` is not a valid size';
@warn '`max-width: #{$max-width}` is not a valid size';
}
}

Expand All @@ -132,7 +132,7 @@ $bound-box-sizes: array-append((none), $css-default-modes);
max-height: $max-height;
}
@else {
@warn '`max-height: #{$max-height}` is not a valid size';
@warn '`max-height: #{$max-height}` is not a valid size';
}
}
}
Expand All @@ -158,14 +158,14 @@ $bound-box-sizes: array-append((none), $css-default-modes);
color: $color;
}
@else {
@warn '`color: #{$color}` is not a valid css color';
@warn '`color: #{$color}` is not a valid css color';
}

$bgcolor: map-get($settings, bgcolor);
@if is-css-color($bgcolor) {
background-color: $bgcolor;
}
@else {
@warn '`background-color: #{$bgcolor}` is not a valid css color';
@warn '`background-color: #{$bgcolor}` is not a valid css color';
}
}

0 comments on commit aa34870

Please sign in to comment.