- commit
- abb40dc53561235ffe3868f5eb1c7865c75db19a
- parent
- 84658ae78be9c3f448faceb62646f898934a61e5
- Author
- Tobias Bengfort <tobias.bengfort@liqd.de>
- Date
- 2017-01-31 14:49
use native unit conversion for rad (fixes #1)
Diffstat
| M | sass/math.scss | 12 | +----------- |
1 files changed, 1 insertions, 11 deletions
diff --git a/sass/math.scss b/sass/math.scss
@@ -29,17 +29,7 @@ $planifolia-math-steps-default: 32 !default; 29 29 } 30 30 31 31 @function _pf-angle-to-rad($x) {32 -1 @if unit($x) == 'deg' {33 -1 @return $x / 180deg * pi();34 -1 } @else if unit($x) == 'grad' {35 -1 @return $x / 200grad * pi();36 -1 } @else if unit($x) == 'rad' {37 -1 @return $x / 1rad;38 -1 } @else if unit($x) == 'turn' {39 -1 @return $x / .5turn * pi();40 -1 } @else {41 -1 @return $x;42 -1 }-1 32 @return (0rad + $x) / 1rad; 43 33 } 44 34 45 35 @function _pf-exp-taylor-0($x, $steps) {