diary-website

Website for diary
git clone https://git.in0rdr.ch/diary-website.git
Log | Files | Refs | Pull requests |Archive | README | LICENSE

_strip-units.scss (330B)


      1 @charset "UTF-8";
      2 
      3 /// Strips the unit from a number.
      4 ///
      5 /// @param {Number (With Unit)} $value
      6 ///
      7 /// @example scss - Usage
      8 ///   $dimension: strip-units(10em);
      9 ///
     10 /// @example css - CSS Output
     11 ///   $dimension: 10;
     12 ///
     13 /// @return {Number (Unitless)}
     14 
     15 @function strip-units($value) {
     16   @return ($value / ($value * 0 + 1));
     17 }