From e182245d3205d929881f51da9b48d6c4ed97a682 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 8 Feb 2024 16:36:31 -0600 Subject: Commit inicial --- _sass/bourbon/functions/_is-length.scss | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 _sass/bourbon/functions/_is-length.scss (limited to '_sass/bourbon/functions/_is-length.scss') diff --git a/_sass/bourbon/functions/_is-length.scss b/_sass/bourbon/functions/_is-length.scss new file mode 100644 index 0000000..5826e78 --- /dev/null +++ b/_sass/bourbon/functions/_is-length.scss @@ -0,0 +1,11 @@ +@charset "UTF-8"; + +/// Checks for a valid CSS length. +/// +/// @param {String} $value + +@function is-length($value) { + @return type-of($value) != "null" and (str-slice($value + "", 1, 4) == "calc" + or index(auto inherit initial 0, $value) + or (type-of($value) == "number" and not(unitless($value)))); +} -- cgit v1.2.3