jce-manager/_sass/bourbon/addons/_size.scss
2014-09-11 15:49:20 +03:00

16 lines
338 B
SCSS

@mixin size($size) {
$height: nth($size, 1);
$width: $height;
@if length($size) > 1 {
$height: nth($size, 2);
}
@if $height == auto or (type-of($height) == number and not unitless($height)) {
height: $height;
}
@if $width == auto or (type-of($width) == number and not unitless($width)) {
width: $width;
}
}