danix
's git repository
home
/
my projects
/
theme-danix.xyz.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
added bourbon to the source files and included in the main scss
[theme-danix.xyz.git]
/
assets
/
sass
/
bourbon
/
bourbon
/
library
/
_strip-unit.scss
1
@charset "UTF-8";
2
3
/// Strips the unit from a number.
4
///
5
/// @argument {number} $value
6
///
7
/// @return {number (unitless)}
8
///
9
/// @example scss
10
/// $dimension: strip-unit(10em);
11
///
12
/// // Output
13
/// $dimension: 10;
14
15
@function strip-unit($value) {
16
@return ($value / ($value * 0 + 1));
17
}