@iris.interactive/handcook 2.9.0 → 2.9.3

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.
@@ -2,7 +2,6 @@
2
2
  * Created by IRIS Interactive
3
3
  * User : IRIS Interactive
4
4
  */
5
- @use "sass:math";
6
5
 
7
6
  /* Root values
8
7
  / ================================================== */
@@ -68,8 +67,8 @@ $viewport-borders: (
68
67
  /* Breakpoint
69
68
  / ================================================== */
70
69
  $breakpoint-desktop: 1000.1px; // min-width
71
- $breakpoint-xlarge: math.div($container, 1 - math.div($margin-xlarge, 100%) * 2)+1; // min-width
72
- $breakpoint-large: math.div($container, 1 - math.div($margin-xlarge, 100%) * 2); // max-width
70
+ $breakpoint-xlarge: $container / (1-(($margin-xlarge/100%) * 2)) + 1; // min-width
71
+ $breakpoint-large: $container / (1-(($margin-xlarge/100%) * 2)); // max-width
73
72
  $breakpoint-medium: 1000px; // max-width
74
73
  $breakpoint-small: 650px; // max-width
75
74
  $breakpoint-xsmall: 370px; // max-width
@@ -28,12 +28,12 @@
28
28
  /* Font size
29
29
  /* ============================================= */
30
30
  @function rem-size( $size ) {
31
- $remSize: math.div($size, 16);
31
+ $remSize: $size / 16;
32
32
  @return #{$remSize}rem;
33
33
  }
34
34
 
35
35
  @function vw-size( $size ) {
36
- $ceil-size: math.div(math.div($container, 1px), 1 - math.div($margin-xlarge, 100%) * 2);
36
+ $ceil-size: ($container / 1px) / (1 - ($margin-xlarge / 100%) * 2);
37
37
  @return calc(#{$size} * 100 / #{$ceil-size} * 1vw);
38
38
  }
39
39