@transfermarkt/global-styles 1.34.1 → 1.36.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 +1 @@
|
|
|
1
|
-
@forward '
|
|
1
|
+
@forward 'hints';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use '../../../mixins/breakpoint' as *;
|
|
5
5
|
@use '../../../mixins/icon' as *;
|
|
6
6
|
|
|
7
|
-
.
|
|
7
|
+
.tm-hint {
|
|
8
8
|
border-radius: rem-calc(8);
|
|
9
9
|
padding: rem-calc(12) rem-calc(16);
|
|
10
10
|
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
content: '';
|
|
30
30
|
flex: 0 0 rem-calc(20);
|
|
31
31
|
height: rem-calc(20);
|
|
32
|
-
margin-top: rem-calc(2);
|
|
33
32
|
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
34
33
|
mask-size: contain;
|
|
35
34
|
}
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
background-color: tm-color('warning-light-new');
|
|
40
39
|
color: tm-color('warning-new');
|
|
41
40
|
|
|
42
|
-
.
|
|
41
|
+
.tm-hint-text::before {
|
|
43
42
|
background-color: tm-color('warning-dark-new');
|
|
44
43
|
mask: url('https://tmsi.akamaized.net/tm-svg-icons/attention.svg') no-repeat center;
|
|
45
44
|
mask-size: contain;
|
|
@@ -50,50 +49,95 @@
|
|
|
50
49
|
background-color: tm-color('alice-blue');
|
|
51
50
|
color: tm-color('slate-blue');
|
|
52
51
|
|
|
53
|
-
.
|
|
52
|
+
.tm-hint-text::before {
|
|
54
53
|
background-color: tm-color('slate-blue');
|
|
55
54
|
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
56
55
|
mask-size: contain;
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
&--blue-new {
|
|
61
|
-
background-color: tm-color('alice-blue');
|
|
62
|
-
color: tm-color('admiral');
|
|
63
|
-
|
|
64
|
-
.info-card__info-text::before {
|
|
65
|
-
background-color: tm-color('light-blue-new');
|
|
66
|
-
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
67
|
-
mask-size: contain;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
59
|
&--success {
|
|
72
60
|
background-color: tm-color('success-light');
|
|
73
61
|
color: tm-color('success-dark');
|
|
74
62
|
|
|
75
|
-
.
|
|
63
|
+
.tm-hint-text::before {
|
|
76
64
|
background-color: tm-color('success-dark');
|
|
77
65
|
mask: url('https://tmsi.akamaized.net/tm-svg-icons/success-check.svg') no-repeat center;
|
|
78
66
|
mask-size: contain;
|
|
79
67
|
}
|
|
80
68
|
}
|
|
69
|
+
}
|
|
81
70
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
71
|
+
/* stylelint-disable no-duplicate-selectors, scss/at-extend-no-missing-placeholder */
|
|
72
|
+
.msgBox {
|
|
73
|
+
display: none;
|
|
74
|
+
margin-top: rem-calc(-4);
|
|
75
|
+
}
|
|
86
76
|
|
|
87
|
-
|
|
88
|
-
|
|
77
|
+
.msgBox:has(.alert-box),
|
|
78
|
+
.msgBox:has(.errorbox) {
|
|
79
|
+
display: block;
|
|
80
|
+
}
|
|
89
81
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
82
|
+
.msgBox .errorbox {
|
|
83
|
+
@extend .tm-hint;
|
|
84
|
+
@extend .tm-hint--alert;
|
|
85
|
+
|
|
86
|
+
align-items: flex-start;
|
|
87
|
+
border: none;
|
|
88
|
+
display: flex;
|
|
89
|
+
font-family: tm-font('septenary');
|
|
90
|
+
font-size: rem-calc(16);
|
|
91
|
+
font-variation-settings: 'wght' 400;
|
|
92
|
+
font-weight: inherit;
|
|
93
|
+
gap: rem-calc(8);
|
|
94
|
+
line-height: rem-calc(24);
|
|
95
|
+
margin: 0;
|
|
96
|
+
|
|
97
|
+
@include breakpoint(laptop) {
|
|
98
|
+
font-size: rem-calc(14);
|
|
99
|
+
line-height: rem-calc(22);
|
|
100
|
+
}
|
|
93
101
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
102
|
+
&::before {
|
|
103
|
+
background-color: currentcolor;
|
|
104
|
+
content: '';
|
|
105
|
+
flex: 0 0 rem-calc(20);
|
|
106
|
+
height: rem-calc(20);
|
|
107
|
+
margin-top: rem-calc(2);
|
|
108
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/attention.svg') no-repeat center;
|
|
109
|
+
mask-size: contain;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.msgBox .alert-box.success {
|
|
114
|
+
@extend .tm-hint;
|
|
115
|
+
@extend .tm-hint--success;
|
|
116
|
+
|
|
117
|
+
align-items: flex-start;
|
|
118
|
+
border: none;
|
|
119
|
+
display: flex;
|
|
120
|
+
font-family: tm-font('septenary');
|
|
121
|
+
font-size: rem-calc(16);
|
|
122
|
+
font-variation-settings: 'wght' 400;
|
|
123
|
+
font-weight: inherit;
|
|
124
|
+
gap: rem-calc(8);
|
|
125
|
+
line-height: rem-calc(24);
|
|
126
|
+
margin: rem-calc(-4) 0 0;
|
|
127
|
+
|
|
128
|
+
@include breakpoint(laptop) {
|
|
129
|
+
font-size: rem-calc(14);
|
|
130
|
+
line-height: rem-calc(22);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&::before {
|
|
134
|
+
background-color: currentcolor;
|
|
135
|
+
content: '';
|
|
136
|
+
flex: 0 0 rem-calc(20);
|
|
137
|
+
height: rem-calc(20);
|
|
138
|
+
margin-top: rem-calc(2);
|
|
139
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/success-check.svg') no-repeat center;
|
|
140
|
+
mask-size: contain;
|
|
98
141
|
}
|
|
99
142
|
}
|
|
143
|
+
/* stylelint-enable no-duplicate-selectors, scss/at-extend-no-missing-placeholder */
|
|
@@ -89,6 +89,8 @@ $tm-colors: (
|
|
|
89
89
|
'whisper': #e9e9e9,
|
|
90
90
|
// the new $rivergrey
|
|
91
91
|
'white-smoke': #f0f0f0,
|
|
92
|
+
'white-transparent-light': #ffffff1a,
|
|
93
|
+
'white-half': #ffffff80,
|
|
92
94
|
// reds
|
|
93
95
|
'red': #8f1a29,
|
|
94
96
|
'danger': #d10414,
|
|
@@ -108,6 +110,7 @@ $tm-colors: (
|
|
|
108
110
|
'warning-dark-new': #ab1744,
|
|
109
111
|
'warning-light-new': #ffedea,
|
|
110
112
|
'pale-chestnut': #e6a8ae,
|
|
113
|
+
'red-base': #ef1717,
|
|
111
114
|
// yellows
|
|
112
115
|
'yellow': #efa93b,
|
|
113
116
|
'sunflower': #e6b40a,
|