@transfermarkt/global-styles 1.15.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
package/scss/mixins/_icon.scss
CHANGED
|
@@ -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(
|
|
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);
|
|
@@ -58,6 +58,11 @@
|
|
|
58
58
|
&--disabled {
|
|
59
59
|
background-color: tm-color('gainsboro-new');
|
|
60
60
|
color: tm-color('grey-new');
|
|
61
|
+
|
|
62
|
+
&:hover {
|
|
63
|
+
background-color: tm-color('gainsboro-new');
|
|
64
|
+
color: tm-color('grey-new');
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
67
|
|
|
63
68
|
&--warning {
|
|
@@ -106,6 +111,11 @@
|
|
|
106
111
|
&--disabled {
|
|
107
112
|
background-color: tm-color('gainsboro-new');
|
|
108
113
|
color: tm-color('grey-new');
|
|
114
|
+
|
|
115
|
+
&:hover {
|
|
116
|
+
background-color: tm-color('gainsboro-new');
|
|
117
|
+
color: tm-color('grey-new');
|
|
118
|
+
}
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
&--warning {
|
|
@@ -150,6 +160,11 @@
|
|
|
150
160
|
&--disabled {
|
|
151
161
|
background-color: tm-color('gainsboro-new');
|
|
152
162
|
color: tm-color('grey-new');
|
|
163
|
+
|
|
164
|
+
&:hover {
|
|
165
|
+
background-color: tm-color('gainsboro-new');
|
|
166
|
+
color: tm-color('grey-new');
|
|
167
|
+
}
|
|
153
168
|
}
|
|
154
169
|
|
|
155
170
|
&--warning {
|
|
@@ -175,6 +190,10 @@
|
|
|
175
190
|
padding-right: rem-calc(24);
|
|
176
191
|
|
|
177
192
|
@include tm-icon-generate('arrow');
|
|
193
|
+
|
|
194
|
+
&::before {
|
|
195
|
+
transform: rotate(180deg);
|
|
196
|
+
}
|
|
178
197
|
}
|
|
179
198
|
|
|
180
199
|
&__arrow-right {
|
|
@@ -185,12 +204,20 @@
|
|
|
185
204
|
|
|
186
205
|
&__arrow-both {
|
|
187
206
|
@include tm-icon-generate('arrow', both);
|
|
207
|
+
|
|
208
|
+
&::before {
|
|
209
|
+
transform: rotate(180deg);
|
|
210
|
+
}
|
|
188
211
|
}
|
|
189
212
|
|
|
190
213
|
&__chevron {
|
|
191
214
|
padding-right: rem-calc(24);
|
|
192
215
|
|
|
193
216
|
@include tm-icon-generate('chevron');
|
|
217
|
+
|
|
218
|
+
&::before {
|
|
219
|
+
transform: rotate(180deg);
|
|
220
|
+
}
|
|
194
221
|
}
|
|
195
222
|
|
|
196
223
|
&__chevron-right {
|
|
@@ -201,6 +228,10 @@
|
|
|
201
228
|
|
|
202
229
|
&__chevron-both {
|
|
203
230
|
@include tm-icon-generate('chevron', both);
|
|
231
|
+
|
|
232
|
+
&::before {
|
|
233
|
+
transform: rotate(180deg);
|
|
234
|
+
}
|
|
204
235
|
}
|
|
205
236
|
|
|
206
237
|
&__check {
|
|
@@ -559,6 +590,10 @@
|
|
|
559
590
|
}
|
|
560
591
|
}
|
|
561
592
|
|
|
593
|
+
&__disabled {
|
|
594
|
+
@include tm-icon-color(disabled);
|
|
595
|
+
}
|
|
596
|
+
|
|
562
597
|
&__large {
|
|
563
598
|
@include tm-icon-size(24px);
|
|
564
599
|
}
|