@transfermarkt/global-styles 1.43.0 → 1.45.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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transfermarkt/global-styles",
3
- "version": "1.43.0",
3
+ "version": "1.45.0",
4
4
  "description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
5
5
  "author": "Transfermarkt",
6
6
  "license": "MIT",
@@ -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
- @media (max-width: ($breakpoint-value - 1)) {
23
- @content;
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
- @media (min-width: $breakpoint-value) {
27
- @content;
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
- @media (max-width: $breakpoint) {
39
- @content;
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
- @media (min-width: $breakpoint) {
43
- @content;
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) {
@@ -157,5 +157,9 @@ $tm-colors: (
157
157
  'frost-grey': #ccd1d9,
158
158
  'powder-pink': #f7e5e7,
159
159
  'cloud-grey': #e0e0e0,
160
- 'light-pink': #fff1f1
160
+ 'light-pink': #fff1f1,
161
+ // voting
162
+ 'higher': #0f9,
163
+ 'equal': #0087ff,
164
+ 'lower': #ff2d76
161
165
  );