@transfermarkt/global-styles 1.42.1 → 1.44.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.
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
/* stylelint-disable */
|
|
8
8
|
|
|
9
|
-
@mixin breakpoint($breakpoint, $mode: min) {
|
|
9
|
+
@mixin breakpoint($breakpoint, $mode: min, $applyForPrint: true) {
|
|
10
10
|
@if map.has-key($breakpoints, $breakpoint) {
|
|
11
11
|
// Get the breakpoint value.
|
|
12
12
|
$breakpoint-value: map.get($breakpoints, $breakpoint);
|
|
@@ -19,12 +19,24 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@if $mode == max {
|
|
22
|
-
@
|
|
23
|
-
@
|
|
22
|
+
@if $applyForPrint {
|
|
23
|
+
@media print, (max-width: ($breakpoint-value - 1)) {
|
|
24
|
+
@content;
|
|
25
|
+
}
|
|
26
|
+
} @else {
|
|
27
|
+
@media (max-width: ($breakpoint-value - 1)) {
|
|
28
|
+
@content;
|
|
29
|
+
}
|
|
24
30
|
}
|
|
25
31
|
} @else if $mode == min {
|
|
26
|
-
@
|
|
27
|
-
@
|
|
32
|
+
@if $applyForPrint {
|
|
33
|
+
@media print, (min-width: $breakpoint-value) {
|
|
34
|
+
@content;
|
|
35
|
+
}
|
|
36
|
+
} @else {
|
|
37
|
+
@media (min-width: $breakpoint-value) {
|
|
38
|
+
@content;
|
|
39
|
+
}
|
|
28
40
|
}
|
|
29
41
|
} @else {
|
|
30
42
|
@media ($mode: $breakpoint-value) {
|
|
@@ -35,12 +47,24 @@
|
|
|
35
47
|
// If the breakpoint doesn't exist in the map.
|
|
36
48
|
} @else {
|
|
37
49
|
@if $mode == max {
|
|
38
|
-
@
|
|
39
|
-
@
|
|
50
|
+
@if $applyForPrint {
|
|
51
|
+
@media print, (max-width: $breakpoint) {
|
|
52
|
+
@content;
|
|
53
|
+
}
|
|
54
|
+
} @else {
|
|
55
|
+
@media (max-width: $breakpoint) {
|
|
56
|
+
@content;
|
|
57
|
+
}
|
|
40
58
|
}
|
|
41
59
|
} @else if $mode == min {
|
|
42
|
-
@
|
|
43
|
-
@
|
|
60
|
+
@if $applyForPrint {
|
|
61
|
+
@media print, (min-width: $breakpoint) {
|
|
62
|
+
@content;
|
|
63
|
+
}
|
|
64
|
+
} @else {
|
|
65
|
+
@media (min-width: $breakpoint) {
|
|
66
|
+
@content;
|
|
67
|
+
}
|
|
44
68
|
}
|
|
45
69
|
} @else {
|
|
46
70
|
@media ($mode: $breakpoint) {
|