p0c-website

Proof of concepts for fun and profit
git clone https://git.in0rdr.ch/p0c-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

_is-size.scss (294B)


      1 @charset "UTF-8";
      2 
      3 /// Checks for a valid CSS size.
      4 ///
      5 /// @param {String} $value
      6 ///
      7 /// @require {function} contains
      8 /// @require {function} is-length
      9 
     10 @function is-size($value) {
     11   @return is-length($value)
     12           or contains("fill" "fit-content" "min-content" "max-content", $value);
     13 }