@transfermarkt/global-styles 1.14.0 → 1.16.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.14.0",
3
+ "version": "1.16.0",
4
4
  "description": "Shared styles and Global configuration for stylelint rules of the Transfermarkt projects",
5
5
  "author": "Transfermarkt",
6
6
  "license": "MIT",
@@ -14,12 +14,13 @@ $icon-color-filters: (
14
14
  contrast(87%),
15
15
  success: invert(40%) sepia(44%) saturate(643%) hue-rotate(135deg) brightness(93%) contrast(95%),
16
16
  success-light: invert(76%) sepia(61%) saturate(125%) hue-rotate(86deg) brightness(119%)
17
- contrast(84%)
17
+ contrast(84%),
18
+ disabled: invert(53%) sepia(8%) saturate(282%) hue-rotate(177deg) brightness(122%) contrast(171%)
18
19
  );
19
20
 
20
21
  @function icon-filter-base($state) {
21
22
  @if $state == 'disabled' {
22
- @return invert(80%) sepia(10%) saturate(0%) brightness(90%) contrast(80%);
23
+ @return invert(53%) sepia(8%) saturate(282%) hue-rotate(177deg) brightness(122%) contrast(171%);
23
24
  } @else if $state == 'warning-dark' {
24
25
  @return invert(77%) sepia(38%) saturate(5784%) hue-rotate(359deg) brightness(101%)
25
26
  contrast(105%);
@@ -56,7 +57,6 @@ $icon-color-filters: (
56
57
  height: 20px;
57
58
  background: url('#{$image-url}') no-repeat center/contain;
58
59
  filter: $base-filter;
59
- transform: rotate(180deg);
60
60
  @if $state != 'disabled' {
61
61
  &:hover {
62
62
  filter: icon-filter-hover($state);
@@ -19,10 +19,8 @@
19
19
  font-size: rem-calc(16);
20
20
  font-variation-settings: 'wght' 600;
21
21
  font-weight: normal;
22
- height: rem-calc(40);
23
22
  justify-content: center;
24
- line-height: rem-calc(20);
25
- margin: rem-calc(10);
23
+ line-height: rem-calc(16);
26
24
  padding: rem-calc(8) rem-calc(20);
27
25
  position: relative;
28
26
  text-decoration: none;
@@ -35,17 +33,20 @@
35
33
  background-color: tm-color('dark-blue-new');
36
34
 
37
35
  &--large {
36
+ height: rem-calc(40);
38
37
  text-transform: uppercase;
39
38
  }
40
39
 
41
40
  &--medium {
42
41
  font-size: rem-calc(14);
42
+ height: rem-calc(36);
43
43
  line-height: rem-calc(20);
44
44
  padding: rem-calc(8) rem-calc(16);
45
45
  }
46
46
 
47
47
  &--small {
48
48
  font-size: rem-calc(12);
49
+ height: rem-calc(30);
49
50
  padding: rem-calc(8) rem-calc(12);
50
51
  }
51
52
 
@@ -57,6 +58,11 @@
57
58
  &--disabled {
58
59
  background-color: tm-color('gainsboro-new');
59
60
  color: tm-color('grey-new');
61
+
62
+ &:hover {
63
+ background-color: tm-color('gainsboro-new');
64
+ color: tm-color('grey-new');
65
+ }
60
66
  }
61
67
 
62
68
  &--warning {
@@ -105,6 +111,11 @@
105
111
  &--disabled {
106
112
  background-color: tm-color('gainsboro-new');
107
113
  color: tm-color('grey-new');
114
+
115
+ &:hover {
116
+ background-color: tm-color('gainsboro-new');
117
+ color: tm-color('grey-new');
118
+ }
108
119
  }
109
120
 
110
121
  &--warning {
@@ -149,6 +160,11 @@
149
160
  &--disabled {
150
161
  background-color: tm-color('gainsboro-new');
151
162
  color: tm-color('grey-new');
163
+
164
+ &:hover {
165
+ background-color: tm-color('gainsboro-new');
166
+ color: tm-color('grey-new');
167
+ }
152
168
  }
153
169
 
154
170
  &--warning {
@@ -174,6 +190,10 @@
174
190
  padding-right: rem-calc(24);
175
191
 
176
192
  @include tm-icon-generate('arrow');
193
+
194
+ &::before {
195
+ transform: rotate(180deg);
196
+ }
177
197
  }
178
198
 
179
199
  &__arrow-right {
@@ -184,12 +204,20 @@
184
204
 
185
205
  &__arrow-both {
186
206
  @include tm-icon-generate('arrow', both);
207
+
208
+ &::before {
209
+ transform: rotate(180deg);
210
+ }
187
211
  }
188
212
 
189
213
  &__chevron {
190
214
  padding-right: rem-calc(24);
191
215
 
192
216
  @include tm-icon-generate('chevron');
217
+
218
+ &::before {
219
+ transform: rotate(180deg);
220
+ }
193
221
  }
194
222
 
195
223
  &__chevron-right {
@@ -200,6 +228,10 @@
200
228
 
201
229
  &__chevron-both {
202
230
  @include tm-icon-generate('chevron', both);
231
+
232
+ &::before {
233
+ transform: rotate(180deg);
234
+ }
203
235
  }
204
236
 
205
237
  &__check {
@@ -558,6 +590,10 @@
558
590
  }
559
591
  }
560
592
 
593
+ &__disabled {
594
+ @include tm-icon-color(disabled);
595
+ }
596
+
561
597
  &__large {
562
598
  @include tm-icon-size(24px);
563
599
  }