@transfermarkt/global-styles 1.7.0 → 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.
|
|
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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
13
|
},
|
|
14
14
|
"volta": {
|
|
15
|
-
"node": "20.18.
|
|
15
|
+
"node": "20.18.1"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|
|
18
18
|
"registry": "https://registry.npmjs.org/",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"postcss": "8.4.
|
|
23
|
+
"postcss": "8.4.49",
|
|
24
24
|
"postcss-html": "1.7.0",
|
|
25
25
|
"postcss-scss": "4.0.9",
|
|
26
26
|
"stylelint": "16.10.0",
|
|
@@ -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
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* stylelint-disable */
|
|
8
8
|
|
|
9
9
|
@mixin breakpoint($breakpoint, $mode: min) {
|
|
10
|
-
@if map
|
|
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);
|