@carbon/styles 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,11 +23,7 @@ $base-font-size: 16px !default;
23
23
  @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
24
24
  }
25
25
 
26
- @if meta.function-exists('div', 'math') {
27
- @return math.div($px, $base-font-size) * 1rem;
28
- } @else {
29
- @return ($px / $base-font-size) * 1rem;
30
- }
26
+ @return math.div($px, $base-font-size) * 1rem;
31
27
  }
32
28
 
33
29
  /// Convert a given px unit to a em unit
@@ -40,9 +36,5 @@ $base-font-size: 16px !default;
40
36
  @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
41
37
  }
42
38
 
43
- @if meta.function-exists('div', 'math') {
44
- @return math.div($px, $base-font-size) * 1em;
45
- } @else {
46
- @return ($px / $base-font-size) * 1em;
47
- }
39
+ @return math.div($px, $base-font-size) * 1em;
48
40
  }