grav-theme-libretic/scss/vendor/bourbon/addons/_size.scss
2015-01-15 19:15:54 +01:00

16 lines
339 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($height) == number and not unitless($width)) {
width: $width;
}
}