@transfermarkt/global-styles 1.8.0 → 1.10.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.
|
@@ -17,10 +17,12 @@ module.exports = {
|
|
|
17
17
|
}
|
|
18
18
|
],
|
|
19
19
|
"at-rule-disallowed-list": [
|
|
20
|
-
["media","import"],
|
|
21
|
-
{
|
|
20
|
+
["media", "import"],
|
|
21
|
+
{
|
|
22
|
+
severity: (atRule) => {
|
|
22
23
|
return atRule.includes("import") ? "error" : "warning"
|
|
23
|
-
}
|
|
24
|
+
}
|
|
25
|
+
}],
|
|
24
26
|
'unit-disallowed-list': ['px',
|
|
25
27
|
{
|
|
26
28
|
'ignoreProperties': {
|
|
@@ -44,7 +46,21 @@ module.exports = {
|
|
|
44
46
|
],
|
|
45
47
|
'selector-pseudo-class-no-unknown': [
|
|
46
48
|
true,
|
|
47
|
-
{
|
|
49
|
+
{ignorePseudoClasses: 'global'},
|
|
48
50
|
],
|
|
51
|
+
"selector-class-pattern": [
|
|
52
|
+
"^[a-z]([a-z0-9]*)(-[a-z0-9]+)*(__[a-z0-9]+(-[a-z0-9]+)*)?(--[a-z0-9]+(-[a-z0-9]+)*)?$",
|
|
53
|
+
{
|
|
54
|
+
"severity": "warning",
|
|
55
|
+
"message": "Unexpected class selector format. Class selectors must be written in kebab-case or BEM format, e.g., my-class-name or my__class--name."
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
'selector-id-pattern': [
|
|
59
|
+
'^[a-z]([a-z0-9]+(-[a-z0-9]+)*)?$',
|
|
60
|
+
{
|
|
61
|
+
severity: 'warning',
|
|
62
|
+
message: 'Unexpected ID selector format. ID selectors must be written in kebab-case, e.g., my-id-name.'
|
|
63
|
+
}
|
|
64
|
+
]
|
|
49
65
|
},
|
|
50
66
|
};
|
package/package.json
CHANGED
package/scss/mixins/_icon.scss
CHANGED
|
@@ -1,23 +1,71 @@
|
|
|
1
|
-
@mixin tm-icon($name, $position) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
@mixin tm-icon($name, $position, $state: 'default') {
|
|
2
|
+
$base-url: 'https://tmsi.akamaized.net/tm-svg-icons';
|
|
3
|
+
$image-url: '#{$base-url}/#{$name}.svg';
|
|
4
|
+
|
|
5
|
+
&::after {
|
|
6
|
+
background: url('#{$image-url}');
|
|
7
|
+
bottom: 0;
|
|
8
|
+
color: white;
|
|
9
|
+
content: '';
|
|
10
|
+
fill: white;
|
|
11
|
+
height: 20px;
|
|
12
|
+
margin: auto;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
width: 20px;
|
|
16
|
+
|
|
17
|
+
@if $position == 'left' {
|
|
18
|
+
left: 20px;
|
|
19
|
+
transform: rotate(180deg);
|
|
20
|
+
} @else if $position == 'right' {
|
|
21
|
+
right: 20px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@if $state == 'disabled' {
|
|
25
|
+
filter: invert(80%) sepia(10%) saturate(0%) brightness(90%) contrast(80%);
|
|
26
|
+
} @else if $state == 'default' {
|
|
9
27
|
filter: invert(100%)
|
|
10
28
|
sepia(100%)
|
|
11
29
|
saturate(1%)
|
|
12
30
|
hue-rotate(207deg)
|
|
13
31
|
brightness(102%)
|
|
14
32
|
contrast(102%);
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
33
|
+
|
|
34
|
+
&:hover {
|
|
35
|
+
filter: invert(90%)
|
|
36
|
+
sepia(90%)
|
|
37
|
+
saturate(10%)
|
|
38
|
+
hue-rotate(207deg)
|
|
39
|
+
brightness(110%)
|
|
40
|
+
contrast(110%);
|
|
41
|
+
}
|
|
42
|
+
} @else if $state == 'warning' {
|
|
43
|
+
filter: invert(77%)
|
|
44
|
+
sepia(38%)
|
|
45
|
+
saturate(5784%)
|
|
46
|
+
hue-rotate(359deg)
|
|
47
|
+
brightness(101%)
|
|
48
|
+
contrast(105%);
|
|
49
|
+
|
|
50
|
+
&:hover {
|
|
51
|
+
filter: invert(65%)
|
|
52
|
+
sepia(60%)
|
|
53
|
+
saturate(4500%)
|
|
54
|
+
hue-rotate(359deg)
|
|
55
|
+
brightness(105%)
|
|
56
|
+
contrast(110%);
|
|
57
|
+
}
|
|
58
|
+
} @else if $state == 'success' {
|
|
59
|
+
filter: invert(58%) sepia(79%) saturate(415%) hue-rotate(93deg) brightness(95%) contrast(91%);
|
|
60
|
+
|
|
61
|
+
&:hover {
|
|
62
|
+
filter: invert(58%)
|
|
63
|
+
sepia(90%)
|
|
64
|
+
saturate(500%)
|
|
65
|
+
hue-rotate(93deg)
|
|
66
|
+
brightness(100%)
|
|
67
|
+
contrast(95%);
|
|
68
|
+
}
|
|
21
69
|
}
|
|
22
70
|
}
|
|
23
71
|
}
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
@use '../../../mixins/icon' as *;
|
|
5
5
|
|
|
6
6
|
.tm-btn {
|
|
7
|
-
|
|
7
|
+
$position: 'right';
|
|
8
|
+
|
|
8
9
|
border: none;
|
|
9
10
|
border-radius: 8px;
|
|
10
11
|
color: tm-color('white');
|
|
@@ -20,15 +21,33 @@
|
|
|
20
21
|
position: relative;
|
|
21
22
|
text-decoration: none;
|
|
22
23
|
|
|
23
|
-
@include tm-icon('test', 'left');
|
|
24
|
-
|
|
25
24
|
&__icon {
|
|
26
|
-
&--
|
|
27
|
-
|
|
25
|
+
&--left {
|
|
26
|
+
&.tm-btn__primary--large {
|
|
27
|
+
@include tm-icon('arrow', 'left', 'default');
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.tm-btn__primary--medium,
|
|
31
|
+
&.tm-btn__primary--small {
|
|
32
|
+
@include tm-icon('chevron', 'left', 'default');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&--right {
|
|
37
|
+
&.tm-btn__primary--large {
|
|
38
|
+
@include tm-icon('arrow', 'right', 'default');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.tm-btn__primary--medium,
|
|
42
|
+
&.tm-btn__primary--small {
|
|
43
|
+
@include tm-icon('chevron', 'right', 'default');
|
|
44
|
+
}
|
|
28
45
|
}
|
|
29
46
|
}
|
|
30
47
|
|
|
31
48
|
&__primary {
|
|
49
|
+
background-color: tm-color('dark-blue-new');
|
|
50
|
+
|
|
32
51
|
&--large {
|
|
33
52
|
padding: rem-calc(8) rem-calc(40);
|
|
34
53
|
text-transform: uppercase;
|
|
@@ -76,4 +95,92 @@
|
|
|
76
95
|
}
|
|
77
96
|
}
|
|
78
97
|
}
|
|
98
|
+
|
|
99
|
+
&__secondary {
|
|
100
|
+
background-color: tm-color('white');
|
|
101
|
+
color: tm-color('admiral');
|
|
102
|
+
opacity: 1;
|
|
103
|
+
|
|
104
|
+
&--large {
|
|
105
|
+
text-transform: uppercase;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--medium {
|
|
109
|
+
font-size: rem-calc(14);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--small {
|
|
113
|
+
font-size: rem-calc(12);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&:hover {
|
|
117
|
+
color: tm-color('light-blue-new');
|
|
118
|
+
text-decoration: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&--disabled {
|
|
122
|
+
background-color: tm-color('gainsboro-new');
|
|
123
|
+
color: tm-color('grey-new');
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&--warning {
|
|
127
|
+
color: tm-color('warning-new');
|
|
128
|
+
|
|
129
|
+
&:hover {
|
|
130
|
+
color: #ef1717;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&--success {
|
|
135
|
+
color: tm-color('success-new');
|
|
136
|
+
|
|
137
|
+
&:hover {
|
|
138
|
+
color: #30996c;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&__tertiary {
|
|
144
|
+
background-color: tm-color('white');
|
|
145
|
+
border: 1px solid #d9dde2;
|
|
146
|
+
color: tm-color('admiral');
|
|
147
|
+
|
|
148
|
+
&--large {
|
|
149
|
+
text-transform: uppercase;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&--medium {
|
|
153
|
+
font-size: rem-calc(14);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
&--small {
|
|
157
|
+
font-size: rem-calc(12);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
color: tm-color('light-blue-new');
|
|
162
|
+
text-decoration: none;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&--disabled {
|
|
166
|
+
background-color: tm-color('gainsboro-new');
|
|
167
|
+
color: tm-color('grey-new');
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
&--warning {
|
|
171
|
+
color: tm-color('warning-new');
|
|
172
|
+
|
|
173
|
+
&:hover {
|
|
174
|
+
color: #ef1717;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&--success {
|
|
179
|
+
color: tm-color('success-new');
|
|
180
|
+
|
|
181
|
+
&:hover {
|
|
182
|
+
color: #30996c;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
79
186
|
}
|
|
@@ -10,6 +10,7 @@ $tm-colors: (
|
|
|
10
10
|
'cobalt': #00449e,
|
|
11
11
|
'cyan': #5ca6ff,
|
|
12
12
|
'dark-blue': #1a3151,
|
|
13
|
+
'dark-blue-150': #d9dde2,
|
|
13
14
|
'dark-blue-new': #0087ff,
|
|
14
15
|
'denim': #374457,
|
|
15
16
|
'foggy-sky': #d2e3ed,
|
|
@@ -99,6 +100,7 @@ $tm-colors: (
|
|
|
99
100
|
'raspberry-ripple': #c8102e,
|
|
100
101
|
'pure-red': #f00,
|
|
101
102
|
'warning-new': #c90c0c,
|
|
103
|
+
'warning-dark-new': #ef1717,
|
|
102
104
|
'warning-light-new': #ffedea,
|
|
103
105
|
'pale-chestnut': #e6a8ae,
|
|
104
106
|
// yellows
|
|
@@ -124,6 +126,7 @@ $tm-colors: (
|
|
|
124
126
|
'purple': #8d5ba1,
|
|
125
127
|
// products - pots
|
|
126
128
|
'muddy-waters': #b39254,
|
|
129
|
+
'gold-brown': #b29051,
|
|
127
130
|
// brands
|
|
128
131
|
'brand-facebook': #37589a,
|
|
129
132
|
'brand-snapchat': #fffd00,
|