1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-25 12:59:05 +02:00
Files
bootstrap/scss/_functions.scss
Mark Otto ef50b7839c linting
2016-02-06 20:36:21 -08:00

18 lines
380 B
SCSS

//
// Functions
//
// Remove the unit of a length
// Source: https://css-tricks.com/snippets/sass/strip-unit-function/
//
// @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;
}