@transfermarkt/global-styles 1.7.1 → 1.7.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transfermarkt/global-styles",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
5
5
  "author": "Transfermarkt",
6
6
  "license": "MIT",
@@ -1,4 +1,5 @@
1
1
  @use 'sass:list';
2
+ @use 'sass:math';
2
3
  @use 'strip-unit' as *;
3
4
  @use 'zf-to-rem' as *;
4
5
 
@@ -24,12 +25,12 @@ $global-font-size: 16px;
24
25
 
25
26
  // If the base font size is a %, then multiply it by 16px
26
27
  // This is because 100% font size = 16px in most all browsers
27
- @if unit($base) == '%' {
28
+ @if math.unit($base) == '%' {
28
29
  $base: ($base / 100%) * 16px;
29
30
  }
30
31
 
31
32
  // Using rem as base allows correct scaling
32
- @if unit($base) == 'rem' {
33
+ @if math.unit($base) == 'rem' {
33
34
  $base: strip-unit($base) * 16px;
34
35
  }
35
36
 
@@ -9,5 +9,5 @@
9
9
  @error 'Color #{$color-name} does not exist in color map.';
10
10
  }
11
11
 
12
- @return change-color($color-value, $alpha: $opacity);
12
+ @return color.change($color-value, $alpha: $opacity);
13
13
  }
@@ -7,7 +7,7 @@
7
7
  /* stylelint-disable */
8
8
 
9
9
  @mixin breakpoint($breakpoint, $mode: min) {
10
- @if map-has-key($breakpoints, $breakpoint) {
10
+ @if map.has-key($breakpoints, $breakpoint) {
11
11
  // Get the breakpoint value.
12
12
  $breakpoint-value: map.get($breakpoints, $breakpoint);
13
13
  $breakpoint-next-value: map-get-next($breakpoints, $breakpoint);