X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8a078a30db08afb680c48ce94d6e576236febeed..16c39b15d9a1516d9cbfa99288747260493cbb15:/src/wolnelektury/static/2021/css/utils/bourbon/library/_size.scss diff --git a/src/wolnelektury/static/2021/css/utils/bourbon/library/_size.scss b/src/wolnelektury/static/2021/css/utils/bourbon/library/_size.scss deleted file mode 100644 index cc52b237c..000000000 --- a/src/wolnelektury/static/2021/css/utils/bourbon/library/_size.scss +++ /dev/null @@ -1,50 +0,0 @@ -@charset "UTF-8"; - -/// Sets the `width` and `height` of the element in one statement. -/// -/// @argument {number (with unit) | string} $width -/// -/// @argument {number (with unit) | string} $height [$width] -/// -/// @example scss -/// .first-element { -/// @include size(2em); -/// } -/// -/// // CSS Output -/// .first-element { -/// width: 2em; -/// height: 2em; -/// } -/// -/// @example scss -/// .second-element { -/// @include size(auto, 10em); -/// } -/// -/// // CSS Output -/// .second-element { -/// width: auto; -/// height: 10em; -/// } -/// -/// @require {function} _is-size - -@mixin size( - $width, - $height: $width -) { - @if _is-size($height) { - height: $height; - } @else { - @error "`#{$height}` is not a valid length for the `$height` argument " + - "in the `size` mixin."; - } - - @if _is-size($width) { - width: $width; - } @else { - @error "`#{$width}` is not a valid length for the `$width` argument " + - "in the `size` mixin."; - } -}