Sha256: f395ae7f29057dc44a0947cfec77b4543d9a4b7d50f750043c7e30fe0e7ed33c
Contents?: true
Size: 1.34 KB
Versions: 9
Compression:
Stored size: 1.34 KB
Contents
/** Lesli Copyright (c) 2022, Lesli Technologies, S. A. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. LesliCSS - SCSS Utilities for websites, apps and web applications Powered by https://www.lesli.tech Building a better future, one line of code at a time. @contact <hello@lesli.tech> @website <https://lesli.tech> @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ // · */ // · Remove the unit of a length // · @param {Number} $number - Number to remove unit from // · @return {Number} - Unitless number @function strip-unit($number) { @if type-of($number) == 'number' and not unitless($number) { @return $number / ($number * 0 + 1); } @return $number; }
Version data entries
9 entries across 9 versions & 1 rubygems