@transfermarkt/global-styles 1.26.0 → 1.28.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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward 'infos-cards';
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@use '../../../functions/rem-calc' as *;
|
|
2
|
+
@use '../../../functions/tm-color' as *;
|
|
3
|
+
@use '../../../functions/tm-font' as *;
|
|
4
|
+
@use '../../../mixins/breakpoint' as *;
|
|
5
|
+
@use '../../../mixins/icon' as *;
|
|
6
|
+
|
|
7
|
+
.info-card__info {
|
|
8
|
+
border-radius: rem-calc(8);
|
|
9
|
+
padding: rem-calc(12) rem-calc(16);
|
|
10
|
+
|
|
11
|
+
&-text {
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
display: flex;
|
|
14
|
+
font-family: tm-font('septenary');
|
|
15
|
+
font-size: rem-calc(16);
|
|
16
|
+
font-variation-settings: 'wght' 400;
|
|
17
|
+
font-weight: initial;
|
|
18
|
+
gap: rem-calc(8);
|
|
19
|
+
line-height: rem-calc(24);
|
|
20
|
+
margin: 0;
|
|
21
|
+
|
|
22
|
+
@include breakpoint(laptop) {
|
|
23
|
+
font-size: rem-calc(14);
|
|
24
|
+
line-height: rem-calc(22);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
background-color: currentColor; /* stylelint-disable-line value-keyword-case */
|
|
29
|
+
content: '';
|
|
30
|
+
flex: 0 0 rem-calc(20);
|
|
31
|
+
height: rem-calc(20);
|
|
32
|
+
margin-top: rem-calc(2);
|
|
33
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
34
|
+
mask-size: contain;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&--alert {
|
|
39
|
+
background-color: tm-color('warning-light-new');
|
|
40
|
+
color: tm-color('warning-new');
|
|
41
|
+
|
|
42
|
+
.info-card__info-text::before {
|
|
43
|
+
background-color: tm-color('warning-dark-new');
|
|
44
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/attention.svg') no-repeat center;
|
|
45
|
+
mask-size: contain;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&--blue {
|
|
50
|
+
background-color: tm-color('alice-blue');
|
|
51
|
+
color: tm-color('slate-blue');
|
|
52
|
+
|
|
53
|
+
.info-card__info-text::before {
|
|
54
|
+
background-color: tm-color('slate-blue');
|
|
55
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
56
|
+
mask-size: contain;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
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
|
+
&--success {
|
|
72
|
+
background-color: tm-color('success-light');
|
|
73
|
+
color: tm-color('success-dark');
|
|
74
|
+
|
|
75
|
+
.info-card__info-text::before {
|
|
76
|
+
background-color: tm-color('success-dark');
|
|
77
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/success-check.svg') no-repeat center;
|
|
78
|
+
mask-size: contain;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&--border {
|
|
83
|
+
background-color: tm-color('white');
|
|
84
|
+
border: rem-calc(1) solid tm-color('silver-mist');
|
|
85
|
+
color: tm-color('admiral');
|
|
86
|
+
|
|
87
|
+
.info-card__info-text::before {
|
|
88
|
+
background-color: tm-color('ash-grey');
|
|
89
|
+
|
|
90
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
91
|
+
-webkit-mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
92
|
+
mask: url('https://tmsi.akamaized.net/tm-svg-icons/info.svg') no-repeat center;
|
|
93
|
+
|
|
94
|
+
/* stylelint-disable-next-line property-no-vendor-prefix */
|
|
95
|
+
-webkit-mask-size: contain;
|
|
96
|
+
mask-size: contain;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
@@ -140,6 +140,10 @@ $tm-colors: (
|
|
|
140
140
|
'brand-youtube': #f2342c,
|
|
141
141
|
'brand-rss': #f60,
|
|
142
142
|
'brand-community': #1d75a3,
|
|
143
|
-
'brand-wahretabelle': #429535
|
|
143
|
+
'brand-wahretabelle': #429535,
|
|
144
|
+
// new colors to discuss
|
|
145
|
+
'slate-blue': #4c5e78,
|
|
146
|
+
'ash-grey': #6b7280,
|
|
147
|
+
'shadow-blue': #66758c,
|
|
148
|
+
'soft-lemon': #ffffe0
|
|
144
149
|
);
|
|
145
|
-
|