@eui/styles 19.3.7-snapshot-1759908590466 → 19.3.7-snapshot-1759948742327
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.
|
@@ -0,0 +1,674 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use '../01-base/' as base;
|
|
4
|
+
|
|
5
|
+
// BORDER RADIUS
|
|
6
|
+
|
|
7
|
+
$ecl-border-radius: ( // v5.alpha.16
|
|
8
|
+
'xs': 2px,
|
|
9
|
+
's': 4px,
|
|
10
|
+
'm': 8px,
|
|
11
|
+
'l': 12px,
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
$border-radius-map: (
|
|
15
|
+
none: 0,
|
|
16
|
+
s: 2px,
|
|
17
|
+
m: 4px,
|
|
18
|
+
l: 6px,
|
|
19
|
+
xl: 8px,
|
|
20
|
+
max: 999px
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
// BORDER WIDTH
|
|
25
|
+
|
|
26
|
+
$border-width-map: (
|
|
27
|
+
none: 0,
|
|
28
|
+
xs: 1px,
|
|
29
|
+
s: 2px,
|
|
30
|
+
m: 4px
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// BREAKPOINT
|
|
35
|
+
|
|
36
|
+
$breakpoint-map: (
|
|
37
|
+
xs: 0,
|
|
38
|
+
sm: 480px,
|
|
39
|
+
md: 768px,
|
|
40
|
+
lg: 996px,
|
|
41
|
+
xl: 1140px,
|
|
42
|
+
xxl: 1440px,
|
|
43
|
+
fhd: 1920px,
|
|
44
|
+
2k: 2560px,
|
|
45
|
+
4k: 3840px
|
|
46
|
+
);
|
|
47
|
+
|
|
48
|
+
// naming
|
|
49
|
+
$xs: base.new-breakpoint(min-width map.get($breakpoint-map, 'xs') max-width map.get($breakpoint-map, 's') - 1) !default;
|
|
50
|
+
$s: base.new-breakpoint(min-width map.get($breakpoint-map, 'sm') max-width map.get($breakpoint-map, 'md') - 1) !default;
|
|
51
|
+
$m: base.new-breakpoint(min-width map.get($breakpoint-map, 'md') max-width map.get($breakpoint-map, 'lg') - 1) !default;
|
|
52
|
+
$l: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg') max-width map.get($breakpoint-map, 'xl') - 1) !default;
|
|
53
|
+
$xl: base.new-breakpoint(min-width map.get($breakpoint-map, 'xl') max-width map.get($breakpoint-map, 'xxl') - 1) !default;
|
|
54
|
+
$xxl: base.new-breakpoint(min-width map.get($breakpoint-map, 'xxl') max-width map.get($breakpoint-map, 'fhd') - 1) !default;
|
|
55
|
+
$fhd: base.new-breakpoint(min-width map.get($breakpoint-map, 'fhd') max-width map.get($breakpoint-map, '2k') - 1) !default;
|
|
56
|
+
|
|
57
|
+
// human naming
|
|
58
|
+
$eui-bkp-mobile-down: $xs !default;
|
|
59
|
+
$eui-bkp-mobile: base.new-breakpoint(max-width map.get($breakpoint-map, 'md') - 1) !default;
|
|
60
|
+
$eui-bkp-mobile-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'md')) !default;
|
|
61
|
+
$eui-bkp-tablet: $m !default;
|
|
62
|
+
$eui-bkp-tablet-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg')) !default;
|
|
63
|
+
$eui-bkp-desktop-down: base.new-breakpoint(max-width map.get($breakpoint-map, 'lg') - 1) !default;
|
|
64
|
+
$eui-bkp-desktop: base.new-breakpoint(min-width map.get($breakpoint-map, 'xl')) !default;
|
|
65
|
+
$eui-bkp-desktop-up: base.new-breakpoint(min-width map.get($breakpoint-map, 'lg')) !default;
|
|
66
|
+
$eui-bkp-desktop-wide: $xxl !default;
|
|
67
|
+
$eui-bkp-desktop-fhd: $fhd !default;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
// ICON SIZE
|
|
71
|
+
|
|
72
|
+
$icon-size-map: (
|
|
73
|
+
2xs: 0.75rem,
|
|
74
|
+
xs: 1rem,
|
|
75
|
+
s: 1.25rem,
|
|
76
|
+
m: 1.5rem,
|
|
77
|
+
l: 2rem,
|
|
78
|
+
xl: 2.5rem,
|
|
79
|
+
2xl: 3rem,
|
|
80
|
+
3xl: 3.5rem,
|
|
81
|
+
4xl: 4rem,
|
|
82
|
+
fluid: 1em
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
// OPACITY
|
|
87
|
+
|
|
88
|
+
$opacity-map: (
|
|
89
|
+
none: 0,
|
|
90
|
+
25: 0.25,
|
|
91
|
+
50: 0.5,
|
|
92
|
+
75: 0.75,
|
|
93
|
+
100: 1
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
// SPACING
|
|
98
|
+
|
|
99
|
+
$spacing-map: (
|
|
100
|
+
none: 0,
|
|
101
|
+
5xs: 0.0625rem, // 4xs
|
|
102
|
+
4xs: 0.125rem, // 3xs
|
|
103
|
+
3xs: 0.25rem, // 2xs
|
|
104
|
+
2xs: 0.375rem,
|
|
105
|
+
xs: 0.5rem, // ==
|
|
106
|
+
s: 0.75rem, // ==
|
|
107
|
+
m: 1rem, // ==
|
|
108
|
+
l: 1.25rem, // ==
|
|
109
|
+
xl: 1.5rem, // ==
|
|
110
|
+
2xl: 1.75rem, //
|
|
111
|
+
3xl: 2rem, // 2xl
|
|
112
|
+
4xl: 2.25rem, //
|
|
113
|
+
5xl: 2.5rem, // 3xl
|
|
114
|
+
6xl: 3rem, // 4xl
|
|
115
|
+
7xl: 3.5rem, // 5xl
|
|
116
|
+
8xl: 4rem, // 6xl
|
|
117
|
+
9xl: 4.5rem,
|
|
118
|
+
10xl: 5rem, // 7xl
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
// Z-INDEX
|
|
123
|
+
|
|
124
|
+
$z-index-map: (
|
|
125
|
+
auto: auto,
|
|
126
|
+
zero: 0,
|
|
127
|
+
root: 1,
|
|
128
|
+
input-maxlength: 2,
|
|
129
|
+
clearable-icon: 3,
|
|
130
|
+
breadcrumb: 9,
|
|
131
|
+
header: 10,
|
|
132
|
+
top-message: 12,
|
|
133
|
+
nav: 15,
|
|
134
|
+
loading-indicator: 20,
|
|
135
|
+
cdk-overlay-pane: 999,
|
|
136
|
+
logo: 1000,
|
|
137
|
+
sticky: 1040,
|
|
138
|
+
sidebar: 1044,
|
|
139
|
+
overlay: 1045,
|
|
140
|
+
btn-floating: 1046,
|
|
141
|
+
highlighted: 1047,
|
|
142
|
+
footer-action-bar: 1048,
|
|
143
|
+
modal-backdrop: 1049,
|
|
144
|
+
modal: 1050,
|
|
145
|
+
menu: 1060,
|
|
146
|
+
tooltip: 1070,
|
|
147
|
+
max: 9999,
|
|
148
|
+
cdk-overlay-container: 10000,
|
|
149
|
+
block-document: 10010,
|
|
150
|
+
growl-message: 99999
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
// COLORS
|
|
156
|
+
|
|
157
|
+
$ecl-colors: (
|
|
158
|
+
'primary-25': #f7f9ff,
|
|
159
|
+
'primary-50': #f2f6ff,
|
|
160
|
+
'primary-75': #eef2ff,
|
|
161
|
+
'primary-100': #e6edff,
|
|
162
|
+
'primary-200': #d9e3ff,
|
|
163
|
+
'primary-300': #b0c6ff,
|
|
164
|
+
'primary-400': #8cacff,
|
|
165
|
+
'primary-500': #5987ff,
|
|
166
|
+
'primary-600': #0046ff,
|
|
167
|
+
'primary-700': #0035bf,
|
|
168
|
+
'primary-800': #002a99,
|
|
169
|
+
'primary-900': #001f73,
|
|
170
|
+
'primary-950': #001959,
|
|
171
|
+
|
|
172
|
+
'secondary-25': #fffcf7,
|
|
173
|
+
'secondary-50': #fff5e5,
|
|
174
|
+
'secondary-75': #ffebcc,
|
|
175
|
+
'secondary-100': #ffe1b4,
|
|
176
|
+
'secondary-200': #ffd392,
|
|
177
|
+
'secondary-300': #ffcb7d,
|
|
178
|
+
'secondary-400': #ffbe5c,
|
|
179
|
+
'secondary-500': #fea439,
|
|
180
|
+
'secondary-600': #fc8713,
|
|
181
|
+
'secondary-700': #ed6c09,
|
|
182
|
+
'secondary-800': #c55109,
|
|
183
|
+
'secondary-900': #9e4107,
|
|
184
|
+
'secondary-950': #763105,
|
|
185
|
+
|
|
186
|
+
'grey-25': #fafafb,
|
|
187
|
+
'grey-50': #f6f6f8,
|
|
188
|
+
'grey-75': #ededf0,
|
|
189
|
+
'grey-100': #e1e1e7,
|
|
190
|
+
'grey-200': #d4d4dc,
|
|
191
|
+
'grey-300': #b9b9c5,
|
|
192
|
+
'grey-400': #a0a0b1,
|
|
193
|
+
'grey-500': #84849b,
|
|
194
|
+
'grey-600': #696984,
|
|
195
|
+
'grey-700': #505070,
|
|
196
|
+
'grey-800': #353559,
|
|
197
|
+
'grey-900': #1c1c45,
|
|
198
|
+
'grey-950': #00002e,
|
|
199
|
+
|
|
200
|
+
// Status
|
|
201
|
+
'info-25': #f5f7fb,
|
|
202
|
+
'info-50': #ebeff7,
|
|
203
|
+
'info-75': #dee4f2,
|
|
204
|
+
'info-100': #bfcce6,
|
|
205
|
+
'info-200': #a3b6da,
|
|
206
|
+
'info-300': #859dce,
|
|
207
|
+
'info-400': #6685c2,
|
|
208
|
+
'info-500': #4a6eb7,
|
|
209
|
+
'info-600': #3b62b0,
|
|
210
|
+
'info-700': #2e58ab,
|
|
211
|
+
'info-800': #1c49a4,
|
|
212
|
+
'info-900': #0d3d9e,
|
|
213
|
+
'info-950': #039,
|
|
214
|
+
|
|
215
|
+
'success-25': #f9fefc,
|
|
216
|
+
'success-50': #edfbf6,
|
|
217
|
+
'success-75': #e3f9f0,
|
|
218
|
+
'success-100': #daf6eb,
|
|
219
|
+
'success-200': #b2edd6,
|
|
220
|
+
'success-300': #8fe5c4,
|
|
221
|
+
'success-400': #5ddaa9,
|
|
222
|
+
'success-500': #05c67b,
|
|
223
|
+
'success-600': #05b26f,
|
|
224
|
+
'success-700': #049e62,
|
|
225
|
+
'success-800': #037e4e,
|
|
226
|
+
'success-900': #025f3b,
|
|
227
|
+
'success-950': #02472c,
|
|
228
|
+
|
|
229
|
+
'error-25': #fefafa,
|
|
230
|
+
'error-50': #fdefef,
|
|
231
|
+
'error-75': #fce9ea,
|
|
232
|
+
'error-100': #f5bbbe,
|
|
233
|
+
'error-200': #f09a9e,
|
|
234
|
+
'error-300': #ea6c72,
|
|
235
|
+
'error-400': #e54f57,
|
|
236
|
+
'error-500': #df232d,
|
|
237
|
+
'error-600': #cb2029,
|
|
238
|
+
'error-700': #9e1920,
|
|
239
|
+
'error-800': #7b1319,
|
|
240
|
+
'error-900': #5a0e12,
|
|
241
|
+
'error-950': #1f0506,
|
|
242
|
+
|
|
243
|
+
'warning-25': #fffaf5,
|
|
244
|
+
'warning-50': #fff3e8,
|
|
245
|
+
'warning-75': #ffeddc,
|
|
246
|
+
'warning-100': #ffdbba,
|
|
247
|
+
'warning-200': #ffc998,
|
|
248
|
+
'warning-300': #ffb16a,
|
|
249
|
+
'warning-400': #ffa14d,
|
|
250
|
+
'warning-500': #ff8a20,
|
|
251
|
+
'warning-600': #e87e1d,
|
|
252
|
+
'warning-700': #ba6517,
|
|
253
|
+
'warning-800': #8b4c11,
|
|
254
|
+
'warning-900': #68390d,
|
|
255
|
+
'warning-950': #512c0a
|
|
256
|
+
);
|
|
257
|
+
|
|
258
|
+
$color-map: (
|
|
259
|
+
br: (
|
|
260
|
+
950: map.get($ecl-colors, 'grey-950'),
|
|
261
|
+
900: map.get($ecl-colors, 'grey-900'),
|
|
262
|
+
800: map.get($ecl-colors, 'grey-800'),
|
|
263
|
+
700: map.get($ecl-colors, 'grey-700')
|
|
264
|
+
),
|
|
265
|
+
pr: (
|
|
266
|
+
950: map.get($ecl-colors, 'primary-950'),
|
|
267
|
+
900: map.get($ecl-colors, 'primary-900'),
|
|
268
|
+
800: map.get($ecl-colors, 'primary-800'),
|
|
269
|
+
700: map.get($ecl-colors, 'primary-700'),
|
|
270
|
+
600: map.get($ecl-colors, 'primary-600'),
|
|
271
|
+
500: map.get($ecl-colors, 'primary-500'),
|
|
272
|
+
400: map.get($ecl-colors, 'primary-400'),
|
|
273
|
+
300: map.get($ecl-colors, 'primary-300'),
|
|
274
|
+
200: map.get($ecl-colors, 'primary-200'),
|
|
275
|
+
100: map.get($ecl-colors, 'primary-100'),
|
|
276
|
+
75: map.get($ecl-colors, 'primary-75'),
|
|
277
|
+
50: map.get($ecl-colors, 'primary-50'),
|
|
278
|
+
25: map.get($ecl-colors, 'primary-25')
|
|
279
|
+
),
|
|
280
|
+
gr: (
|
|
281
|
+
950: map.get($ecl-colors, 'grey-950'),
|
|
282
|
+
900: map.get($ecl-colors, 'grey-900'),
|
|
283
|
+
800: map.get($ecl-colors, 'grey-800'),
|
|
284
|
+
700: map.get($ecl-colors, 'grey-700'),
|
|
285
|
+
600: map.get($ecl-colors, 'grey-600'),
|
|
286
|
+
500: map.get($ecl-colors, 'grey-500'),
|
|
287
|
+
400: map.get($ecl-colors, 'grey-400'),
|
|
288
|
+
300: map.get($ecl-colors, 'grey-300'),
|
|
289
|
+
200: map.get($ecl-colors, 'grey-200'),
|
|
290
|
+
100: map.get($ecl-colors, 'grey-100'),
|
|
291
|
+
75: map.get($ecl-colors, 'grey-75'),
|
|
292
|
+
50: map.get($ecl-colors, 'grey-50'),
|
|
293
|
+
25: map.get($ecl-colors, 'grey-25')
|
|
294
|
+
),
|
|
295
|
+
grn: (
|
|
296
|
+
950: #171717,
|
|
297
|
+
900: #313131,
|
|
298
|
+
800: #474747,
|
|
299
|
+
700: #606060,
|
|
300
|
+
600: #777777,
|
|
301
|
+
500: #909090,
|
|
302
|
+
400: #a9a9a9,
|
|
303
|
+
300: #bfbfbf,
|
|
304
|
+
200: #d8d8d8,
|
|
305
|
+
100: #e4e4e4,
|
|
306
|
+
75: #efefef,
|
|
307
|
+
50: #f7f7f7,
|
|
308
|
+
25: #fbfbfb
|
|
309
|
+
),
|
|
310
|
+
in: (
|
|
311
|
+
950: map.get($ecl-colors, 'info-950'),
|
|
312
|
+
900: map.get($ecl-colors, 'info-900'),
|
|
313
|
+
800: map.get($ecl-colors, 'info-800'),
|
|
314
|
+
700: map.get($ecl-colors, 'info-700'),
|
|
315
|
+
600: map.get($ecl-colors, 'info-600'),
|
|
316
|
+
500: map.get($ecl-colors, 'info-500'),
|
|
317
|
+
400: map.get($ecl-colors, 'info-400'),
|
|
318
|
+
300: map.get($ecl-colors, 'info-300'),
|
|
319
|
+
200: map.get($ecl-colors, 'info-200'),
|
|
320
|
+
100: map.get($ecl-colors, 'info-100'),
|
|
321
|
+
75: map.get($ecl-colors, 'info-75'),
|
|
322
|
+
50: map.get($ecl-colors, 'info-50'),
|
|
323
|
+
25: map.get($ecl-colors, 'info-25')
|
|
324
|
+
),
|
|
325
|
+
su: (
|
|
326
|
+
950: map.get($ecl-colors, 'success-950'),
|
|
327
|
+
900: map.get($ecl-colors, 'success-900'),
|
|
328
|
+
800: map.get($ecl-colors, 'success-800'),
|
|
329
|
+
700: map.get($ecl-colors, 'success-700'),
|
|
330
|
+
600: map.get($ecl-colors, 'success-600'),
|
|
331
|
+
500: map.get($ecl-colors, 'success-500'),
|
|
332
|
+
400: map.get($ecl-colors, 'success-400'),
|
|
333
|
+
300: map.get($ecl-colors, 'success-300'),
|
|
334
|
+
200: map.get($ecl-colors, 'success-200'),
|
|
335
|
+
100: map.get($ecl-colors, 'success-100'),
|
|
336
|
+
75: map.get($ecl-colors, 'success-75'),
|
|
337
|
+
50: map.get($ecl-colors, 'success-50'),
|
|
338
|
+
25: map.get($ecl-colors, 'success-25')
|
|
339
|
+
),
|
|
340
|
+
wa: (
|
|
341
|
+
950: map.get($ecl-colors, 'warning-950'),
|
|
342
|
+
900: map.get($ecl-colors, 'warning-900'),
|
|
343
|
+
800: map.get($ecl-colors, 'warning-800'),
|
|
344
|
+
700: map.get($ecl-colors, 'warning-700'),
|
|
345
|
+
600: map.get($ecl-colors, 'warning-600'),
|
|
346
|
+
500: map.get($ecl-colors, 'warning-500'),
|
|
347
|
+
400: map.get($ecl-colors, 'warning-400'),
|
|
348
|
+
300: map.get($ecl-colors, 'warning-300'),
|
|
349
|
+
200: map.get($ecl-colors, 'warning-200'),
|
|
350
|
+
100: map.get($ecl-colors, 'warning-100'),
|
|
351
|
+
75: map.get($ecl-colors, 'warning-75'),
|
|
352
|
+
50: map.get($ecl-colors, 'warning-50'),
|
|
353
|
+
25: map.get($ecl-colors, 'warning-25')
|
|
354
|
+
),
|
|
355
|
+
da: (
|
|
356
|
+
950: map.get($ecl-colors, 'error-950'),
|
|
357
|
+
900: map.get($ecl-colors, 'error-900'),
|
|
358
|
+
800: map.get($ecl-colors, 'error-800'),
|
|
359
|
+
700: map.get($ecl-colors, 'error-700'),
|
|
360
|
+
600: map.get($ecl-colors, 'error-600'),
|
|
361
|
+
500: map.get($ecl-colors, 'error-500'),
|
|
362
|
+
400: map.get($ecl-colors, 'error-400'),
|
|
363
|
+
300: map.get($ecl-colors, 'error-300'),
|
|
364
|
+
200: map.get($ecl-colors, 'error-200'),
|
|
365
|
+
100: map.get($ecl-colors, 'error-100'),
|
|
366
|
+
75: map.get($ecl-colors, 'error-75'),
|
|
367
|
+
50: map.get($ecl-colors, 'error-50'),
|
|
368
|
+
25: map.get($ecl-colors, 'error-25')
|
|
369
|
+
),
|
|
370
|
+
cta: (
|
|
371
|
+
950: map.get($ecl-colors, 'secondary-950'),
|
|
372
|
+
900: map.get($ecl-colors, 'secondary-900'),
|
|
373
|
+
800: map.get($ecl-colors, 'secondary-800'),
|
|
374
|
+
700: map.get($ecl-colors, 'secondary-700'),
|
|
375
|
+
600: map.get($ecl-colors, 'secondary-600'),
|
|
376
|
+
500: map.get($ecl-colors, 'secondary-500'),
|
|
377
|
+
400: map.get($ecl-colors, 'secondary-400'),
|
|
378
|
+
300: map.get($ecl-colors, 'secondary-300'),
|
|
379
|
+
200: map.get($ecl-colors, 'secondary-200'),
|
|
380
|
+
100: map.get($ecl-colors, 'secondary-100'),
|
|
381
|
+
75: map.get($ecl-colors, 'secondary-75'),
|
|
382
|
+
50: map.get($ecl-colors, 'secondary-50'),
|
|
383
|
+
25: map.get($ecl-colors, 'secondary-25')
|
|
384
|
+
)
|
|
385
|
+
);
|
|
386
|
+
|
|
387
|
+
// COLOR STATES
|
|
388
|
+
|
|
389
|
+
$color-state-map: (
|
|
390
|
+
branding: (
|
|
391
|
+
base: 'br-900',
|
|
392
|
+
default: 'br-900',
|
|
393
|
+
lighter: 'br-700',
|
|
394
|
+
on-lighter: 'br-700-contrast',
|
|
395
|
+
light: 'br-800',
|
|
396
|
+
on-light: 'br-800-contrast',
|
|
397
|
+
dark: 'br-950',
|
|
398
|
+
on-dark: 'br-950-contrast',
|
|
399
|
+
),
|
|
400
|
+
primary: (
|
|
401
|
+
base: 'pr-600',
|
|
402
|
+
default: 'pr-700',
|
|
403
|
+
lighter: 'pr-500',
|
|
404
|
+
on-lighter: 'pr-500-contrast',
|
|
405
|
+
light: 'pr-600',
|
|
406
|
+
on-light: 'pr-600-contrast',
|
|
407
|
+
dark: 'pr-900',
|
|
408
|
+
on-dark: 'pr-900-contrast',
|
|
409
|
+
darker: 'pr-950',
|
|
410
|
+
on-darker: 'pr-950-contrast',
|
|
411
|
+
surface-light: 'pr-75',
|
|
412
|
+
on-surface-light: 'pr-900',
|
|
413
|
+
surface-light-hover: 'pr-100',
|
|
414
|
+
on-surface-light-hover: 'pr-950',
|
|
415
|
+
surface-medium: 'pr-200',
|
|
416
|
+
on-surface-medium: 'pr-950',
|
|
417
|
+
surface: 'pr-600',
|
|
418
|
+
on-surface: 'pr-600-contrast',
|
|
419
|
+
surface-hover: 'pr-700',
|
|
420
|
+
on-surface-hover: 'pr-700-contrast',
|
|
421
|
+
border: 'pr-500',
|
|
422
|
+
border-light: 'pr-300',
|
|
423
|
+
border-lighter: 'pr-200'
|
|
424
|
+
),
|
|
425
|
+
secondary: (
|
|
426
|
+
base: 'gr-500',
|
|
427
|
+
default: 'gr-800',
|
|
428
|
+
lighter: 'gr-600',
|
|
429
|
+
on-lighter: 'gr-600-contrast',
|
|
430
|
+
light: 'gr-700',
|
|
431
|
+
on-light: 'gr-700-contrast',
|
|
432
|
+
dark: 'gr-900',
|
|
433
|
+
on-dark: 'gr-900-contrast',
|
|
434
|
+
darker: 'gr-950',
|
|
435
|
+
on-darker: 'gr-950-contrast',
|
|
436
|
+
surface-light: 'gr-50',
|
|
437
|
+
on-surface-light: 'gr-900',
|
|
438
|
+
surface-light-hover: 'gr-75',
|
|
439
|
+
on-surface-light-hover: 'gr-950',
|
|
440
|
+
surface-medium: 'gr-200',
|
|
441
|
+
on-surface-medium: 'gr-900',
|
|
442
|
+
surface: 'gr-600',
|
|
443
|
+
on-surface: 'gr-600-contrast',
|
|
444
|
+
surface-hover: 'gr-700',
|
|
445
|
+
on-surface-hover: 'gr-700-contrast',
|
|
446
|
+
border: 'gr-500',
|
|
447
|
+
border-light: 'gr-400',
|
|
448
|
+
border-lighter: 'gr-300'
|
|
449
|
+
),
|
|
450
|
+
neutral: (
|
|
451
|
+
base: 'grn-500',
|
|
452
|
+
default: 'grn-800',
|
|
453
|
+
lighter: 'grn-600',
|
|
454
|
+
on-lighter: 'grn-600-contrast',
|
|
455
|
+
light: 'grn-700',
|
|
456
|
+
on-light: 'grn-700-contrast',
|
|
457
|
+
dark: 'grn-900',
|
|
458
|
+
on-dark: 'grn-900-contrast',
|
|
459
|
+
darker: 'grn-950',
|
|
460
|
+
on-darker: 'grn-950-contrast',
|
|
461
|
+
surface-light: 'grn-50',
|
|
462
|
+
on-surface-light: 'grn-900',
|
|
463
|
+
surface-light-hover: 'grn-75',
|
|
464
|
+
on-surface-light-hover: 'grn-950',
|
|
465
|
+
surface-medium: 'grn-100',
|
|
466
|
+
on-surface-medium: 'grn-900',
|
|
467
|
+
surface: 'grn-400',
|
|
468
|
+
on-surface: 'grn-400-contrast',
|
|
469
|
+
surface-hover: 'grn-300',
|
|
470
|
+
on-surface-hover: 'grn-300-contrast',
|
|
471
|
+
border: 'grn-500',
|
|
472
|
+
border-light: 'grn-400',
|
|
473
|
+
border-lighter: 'grn-300'
|
|
474
|
+
),
|
|
475
|
+
cta: (
|
|
476
|
+
base: 'cta-400',
|
|
477
|
+
default: 'cta-900',
|
|
478
|
+
lighter: 'cta-400',
|
|
479
|
+
on-lighter: 'cta-400-contrast',
|
|
480
|
+
light: 'cta-500',
|
|
481
|
+
on-light: 'cta-500-contrast',
|
|
482
|
+
dark: 'cta-800',
|
|
483
|
+
on-dark: 'cta-800-contrast',
|
|
484
|
+
darker: 'cta-900',
|
|
485
|
+
on-darker: 'cta-900-contrast',
|
|
486
|
+
surface-light: 'cta-25',
|
|
487
|
+
on-surface-light: 'cta-800',
|
|
488
|
+
surface-light-hover: 'cta-50',
|
|
489
|
+
on-surface-light-hover: 'cta-950',
|
|
490
|
+
surface-medium: 'cta-75',
|
|
491
|
+
on-surface-medium: 'cta-900',
|
|
492
|
+
surface: 'cta-400',
|
|
493
|
+
on-surface: 'cta-400-contrast',
|
|
494
|
+
surface-hover: 'cta-500',
|
|
495
|
+
on-surface-hover: 'cta-500-contrast',
|
|
496
|
+
border: 'cta-300',
|
|
497
|
+
border-light: 'cta-100',
|
|
498
|
+
border-lighter: 'cta-75'
|
|
499
|
+
),
|
|
500
|
+
info: (
|
|
501
|
+
base: 'in-500',
|
|
502
|
+
default: 'in-600',
|
|
503
|
+
lighter: 'in-400',
|
|
504
|
+
on-lighter: 'in-400-contrast',
|
|
505
|
+
light: 'in-500',
|
|
506
|
+
on-light: 'in-500-contrast',
|
|
507
|
+
dark: 'in-800',
|
|
508
|
+
on-dark: 'in-800-contrast',
|
|
509
|
+
darker: 'in-900',
|
|
510
|
+
on-darker: 'in-900-contrast',
|
|
511
|
+
surface-light: 'in-50',
|
|
512
|
+
on-surface-light: 'in-600',
|
|
513
|
+
surface-light-hover: 'in-75',
|
|
514
|
+
on-surface-light-hover: 'in-800',
|
|
515
|
+
surface-medium: 'in-100',
|
|
516
|
+
on-surface-medium: 'in-950',
|
|
517
|
+
surface: 'in-600',
|
|
518
|
+
on-surface: 'in-600-contrast',
|
|
519
|
+
surface-hover: 'in-800',
|
|
520
|
+
on-surface-hover: 'in-800-contrast',
|
|
521
|
+
border: 'in-400',
|
|
522
|
+
border-light: 'in-200',
|
|
523
|
+
border-lighter: 'in-100'
|
|
524
|
+
),
|
|
525
|
+
success: (
|
|
526
|
+
base: 'su-700',
|
|
527
|
+
default: 'su-900',
|
|
528
|
+
lighter: 'su-700',
|
|
529
|
+
on-lighter: 'su-700-contrast',
|
|
530
|
+
light: 'su-800',
|
|
531
|
+
on-light: 'su-800-contrast',
|
|
532
|
+
dark: 'su-900',
|
|
533
|
+
on-dark: 'su-900-contrast',
|
|
534
|
+
darker: 'su-950',
|
|
535
|
+
on-darker: 'su-950-contrast',
|
|
536
|
+
surface-light: 'su-100',
|
|
537
|
+
on-surface-light: 'su-950',
|
|
538
|
+
surface-light-hover: 'su-200',
|
|
539
|
+
on-surface-light-hover: 'su-950',
|
|
540
|
+
surface-medium: 'su-300',
|
|
541
|
+
on-surface-medium: 'su-950',
|
|
542
|
+
surface: 'su-900',
|
|
543
|
+
on-surface: 'su-950-contrast',
|
|
544
|
+
surface-hover: 'su-950',
|
|
545
|
+
on-surface-hover: 'su-950-contrast',
|
|
546
|
+
border: 'su-600',
|
|
547
|
+
border-light: 'su-400',
|
|
548
|
+
border-lighter: 'su-300'
|
|
549
|
+
),
|
|
550
|
+
warning: (
|
|
551
|
+
base: 'wa-500',
|
|
552
|
+
default: 'wa-800',
|
|
553
|
+
lighter: 'wa-500',
|
|
554
|
+
on-lighter: 'wa-500-contrast',
|
|
555
|
+
light: 'wa-600',
|
|
556
|
+
on-light: 'wa-600-contrast',
|
|
557
|
+
dark: 'wa-900',
|
|
558
|
+
on-dark: 'wa-900-contrast',
|
|
559
|
+
darker: 'wa-950',
|
|
560
|
+
on-darker: 'wa-950-contrast',
|
|
561
|
+
surface-light: 'wa-50',
|
|
562
|
+
on-surface-light: 'wa-900',
|
|
563
|
+
surface-light-hover: 'wa-75',
|
|
564
|
+
on-surface-light-hover: 'wa-950',
|
|
565
|
+
surface-medium: 'wa-100',
|
|
566
|
+
on-surface-medium: 'wa-900',
|
|
567
|
+
surface: 'wa-500',
|
|
568
|
+
on-surface: 'wa-500-contrast',
|
|
569
|
+
surface-hover: 'wa-600',
|
|
570
|
+
on-surface-hover: 'wa-600-contrast',
|
|
571
|
+
border: 'wa-400',
|
|
572
|
+
border-light: 'wa-200',
|
|
573
|
+
border-lighter: 'wa-100'
|
|
574
|
+
),
|
|
575
|
+
danger: (
|
|
576
|
+
base: 'da-600',
|
|
577
|
+
default: 'da-600',
|
|
578
|
+
lighter: 'da-400',
|
|
579
|
+
on-lighter: 'da-400-contrast',
|
|
580
|
+
light: 'da-500',
|
|
581
|
+
on-light: 'da-500-contrast',
|
|
582
|
+
dark: 'da-700',
|
|
583
|
+
on-dark: 'da-700-contrast',
|
|
584
|
+
darker: 'da-800',
|
|
585
|
+
on-darker: 'da-800-contrast',
|
|
586
|
+
surface-light: 'da-75',
|
|
587
|
+
on-surface-light: 'da-700',
|
|
588
|
+
surface-light-hover: 'da-100',
|
|
589
|
+
on-surface-light-hover: 'da-900',
|
|
590
|
+
surface-medium: 'da-200',
|
|
591
|
+
on-surface-medium: 'da-900',
|
|
592
|
+
surface: 'da-600',
|
|
593
|
+
on-surface: 'da-600-contrast',
|
|
594
|
+
surface-hover: 'da-700',
|
|
595
|
+
on-surface-hover: 'da-700-contrast',
|
|
596
|
+
border: 'da-500',
|
|
597
|
+
border-light: 'da-300',
|
|
598
|
+
border-lighter: 'da-200'
|
|
599
|
+
),
|
|
600
|
+
);
|
|
601
|
+
|
|
602
|
+
// SHADOWS
|
|
603
|
+
|
|
604
|
+
$ecl-shadow-color: #18274b !default;
|
|
605
|
+
$ecl-shadow: (
|
|
606
|
+
1: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 6px 12px 0 rgba($ecl-shadow-color, 0.08)),
|
|
607
|
+
2: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 10px 22px 0 rgba($ecl-shadow-color, 0.1)),
|
|
608
|
+
3: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 12px 32px 0 rgba($ecl-shadow-color, 0.12)),
|
|
609
|
+
4: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 14px 42px 0 rgba($ecl-shadow-color, 0.12)),
|
|
610
|
+
5: (0 0 0.5px 0.5px rgba($ecl-shadow-color, 0.08), 0 18px 52px 0 rgba($ecl-shadow-color, 0.14))
|
|
611
|
+
);
|
|
612
|
+
|
|
613
|
+
$box-shadow-map: (
|
|
614
|
+
0: none,
|
|
615
|
+
1: map.get($ecl-shadow, 1),
|
|
616
|
+
2: map.get($ecl-shadow, 2),
|
|
617
|
+
3: map.get($ecl-shadow, 5),
|
|
618
|
+
4: map.get($ecl-shadow, 4),
|
|
619
|
+
5: map.get($ecl-shadow, 5)
|
|
620
|
+
);
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
// TYPOGRAPHY
|
|
624
|
+
|
|
625
|
+
$font-size-list: (
|
|
626
|
+
'2xs', 'xs', 's', 'm', 'l', 'xl', '2xl', '3xl', '4xl', '5xl', '6xl',
|
|
627
|
+
'2xs-compact', 'xs-compact', 's-compact', 'm-compact', 'l-compact', 'xl-compact', '2xl-compact', '3xl-compact', '4xl-compact', '5xl-compact', '6xl-compact'
|
|
628
|
+
);
|
|
629
|
+
|
|
630
|
+
$font-line-height-map: (
|
|
631
|
+
2xs: 1rem,
|
|
632
|
+
xs: 1.25rem,
|
|
633
|
+
s: 1.25rem,
|
|
634
|
+
m: 1.5rem,
|
|
635
|
+
l: 1.75rem,
|
|
636
|
+
xl: 2.25rem,
|
|
637
|
+
2xl: 2.5rem,
|
|
638
|
+
3xl: 2.75rem,
|
|
639
|
+
4xl: 3rem,
|
|
640
|
+
5xl: 3.25rem,
|
|
641
|
+
6xl: 3.50rem,
|
|
642
|
+
2xs-compact: 0.75rem,
|
|
643
|
+
xs-compact: 1rem,
|
|
644
|
+
s-compact: 1rem,
|
|
645
|
+
m-compact: 1.25rem,
|
|
646
|
+
l-compact: 1.5rem,
|
|
647
|
+
xl-compact: 1.75rem,
|
|
648
|
+
2xl-compact: 2rem,
|
|
649
|
+
3xl-compact: 2.5rem,
|
|
650
|
+
4xl-compact: 2.75rem,
|
|
651
|
+
5xl-compact: 3rem,
|
|
652
|
+
6xl-compact: 3.25rem
|
|
653
|
+
);
|
|
654
|
+
|
|
655
|
+
$font-size-map: (
|
|
656
|
+
2xs: 0.675rem, // 10px
|
|
657
|
+
xs: 0.75rem, // 12px
|
|
658
|
+
s: 0.875rem, // 14px
|
|
659
|
+
m: 1rem, // 16px
|
|
660
|
+
l: 1.25rem, // 20px
|
|
661
|
+
xl: 1.5rem, // 24px
|
|
662
|
+
2xl: 1.75rem, // 28px
|
|
663
|
+
3xl: 2rem, // 32px
|
|
664
|
+
4xl: 2.5rem, // 40px
|
|
665
|
+
5xl: 2.75rem, // 44px
|
|
666
|
+
6xl: 3rem // 48px
|
|
667
|
+
);
|
|
668
|
+
|
|
669
|
+
$font-weight-map: (
|
|
670
|
+
'regular': 400,
|
|
671
|
+
'medium': 500,
|
|
672
|
+
'semi-bold': 600,
|
|
673
|
+
'bold': 700
|
|
674
|
+
);
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
@use '../01-base' as base;
|
|
2
|
+
@use '../02-tokens/maps-eds-theme' as maps;
|
|
3
|
+
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: 'Inter';
|
|
6
|
+
src: url('#{base.$eui-assets-base-path}/fonts/inter/InterVariable.woff2') format('woff2');
|
|
7
|
+
font-weight: 100 900;
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@font-face {
|
|
13
|
+
font-family: 'Inter';
|
|
14
|
+
src: url('#{base.$eui-assets-base-path}/fonts/inter//InterVariable-Italic.woff2') format('woff2');
|
|
15
|
+
font-weight: 100 900;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
font-style: italic;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:root {
|
|
21
|
+
// COLOR BASE - eui-bc
|
|
22
|
+
// -------------------
|
|
23
|
+
|
|
24
|
+
--eui-bc-transparent: transparent;
|
|
25
|
+
|
|
26
|
+
@each $color, $shades in maps.$color-map {
|
|
27
|
+
@each $shade, $value in $shades {
|
|
28
|
+
--eui-bc-#{$color + '-' + $shade}: #{$value};
|
|
29
|
+
--eui-bc-#{$color + '-' + $shade}-contrast: #{base.getContrast($value)};
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// GENERIC CONTEXT COLORS
|
|
34
|
+
// ----------------------
|
|
35
|
+
|
|
36
|
+
// generic context colors reused accross components
|
|
37
|
+
--eui-c-white: #fff;
|
|
38
|
+
--eui-c-black: #000;
|
|
39
|
+
|
|
40
|
+
--eui-c-secondary-min: var(--eui-bc-gr-25);
|
|
41
|
+
--eui-c-secondary-max: var(--eui-bc-gr-950);
|
|
42
|
+
|
|
43
|
+
--eui-c-surface-page: var(--eui-bc-grn-25);
|
|
44
|
+
--eui-c-surface-container: var(--eui-c-white);
|
|
45
|
+
|
|
46
|
+
--eui-c-surface-shell: var(--eui-bc-grn-50);
|
|
47
|
+
--eui-c-surface-container-1: var(--eui-bc-grn-75);
|
|
48
|
+
--eui-c-surface-container-2: var(--eui-bc-grn-100);
|
|
49
|
+
--eui-c-surface-container-3: var(--eui-bc-grn-200);
|
|
50
|
+
|
|
51
|
+
--eui-c-text: var(--eui-bc-gr-950);
|
|
52
|
+
--eui-c-text-light: var(--eui-bc-gr-800);
|
|
53
|
+
--eui-c-text-lighter: var(--eui-bc-gr-700);
|
|
54
|
+
--eui-c-text-lightest: var(--eui-bc-gr-600);
|
|
55
|
+
|
|
56
|
+
--eui-c-focus-visible: var(--eui-bc-pr-600);
|
|
57
|
+
--eui-c-focus: var(--eui-bc-pr-200);
|
|
58
|
+
|
|
59
|
+
--eui-c-hover: var(--eui-bc-pr-75);
|
|
60
|
+
--eui-c-hover-disabled: var(--eui-bc-gr-100);
|
|
61
|
+
|
|
62
|
+
--eui-c-active: var(--eui-bc-pr-600);
|
|
63
|
+
--eui-c-active-bg: var(--eui-bc-pr-200);
|
|
64
|
+
--eui-c-active-bg-alt: var(--eui-bc-pr-300);
|
|
65
|
+
|
|
66
|
+
--eui-c-disabled: var(--eui-bc-gr-500);
|
|
67
|
+
--eui-c-disabled-bg: var(--eui-bc-gr-50);
|
|
68
|
+
--eui-c-readonly: var(--eui-bc-gr-600);
|
|
69
|
+
|
|
70
|
+
--eui-c-link: var(--eui-bc-pr-600);
|
|
71
|
+
|
|
72
|
+
--eui-c-divider: var(--eui-bc-gr-200);
|
|
73
|
+
--eui-c-divider-light: var(--eui-bc-gr-100);
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
// CONTEXT COLORS FROM PALETTES
|
|
77
|
+
// ----------------------------
|
|
78
|
+
|
|
79
|
+
@each $color, $shades in maps.$color-state-map {
|
|
80
|
+
@each $shade, $value in $shades {
|
|
81
|
+
@if $shade == default {
|
|
82
|
+
--eui-c-#{$color}: var(--eui-bc-#{$value});
|
|
83
|
+
} @else if $shade == on-default {
|
|
84
|
+
--eui-c-on-#{$color}: var(--eui-bc-#{$value});
|
|
85
|
+
} @else {
|
|
86
|
+
--eui-c-#{$color + '-' + $shade}: var(--eui-bc-#{$value});
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
// TYPOGRAPHY - eui-f
|
|
93
|
+
// ------------------
|
|
94
|
+
|
|
95
|
+
// TYPOGRAPHY
|
|
96
|
+
--eui-f-family: 'Inter', arial, sans-serif;
|
|
97
|
+
|
|
98
|
+
// font families
|
|
99
|
+
--eui-f-family-monospace: 'Consolas', 'Liberation Mono', 'Courier New', monospace;
|
|
100
|
+
|
|
101
|
+
// font sizes
|
|
102
|
+
--eui-f-size-base: 16px;
|
|
103
|
+
|
|
104
|
+
// font aliases
|
|
105
|
+
--eui-f: var(--eui-f-m);
|
|
106
|
+
--eui-f-bold: var(--eui-f-m-bold);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
// based on new EDS specs, but not convenient, better to have a flat list of sizes rather than too much semantic and overlaps
|
|
110
|
+
// responsive fonts
|
|
111
|
+
// @each $font, $fontDef in maps.$font-map-responsive {
|
|
112
|
+
// @each $size, $sizeDef in $fontDef {
|
|
113
|
+
// $desktop: map-get($sizeDef, 'desktop');
|
|
114
|
+
// $tablet: map-get($sizeDef, 'tablet');
|
|
115
|
+
// $mobile: map-get($sizeDef, 'mobile');
|
|
116
|
+
|
|
117
|
+
// @each $type, $def in $desktop {
|
|
118
|
+
// --eui-f-#{$font}-#{$size}-#{$type}: #{$def};
|
|
119
|
+
// }
|
|
120
|
+
// @each $type, $def in $tablet {
|
|
121
|
+
// --eui-f-#{$font}-#{$size}-tablet-#{$type}: #{$def};
|
|
122
|
+
// }
|
|
123
|
+
// @each $type, $def in $mobile {
|
|
124
|
+
// --eui-f-#{$font}-#{$size}-mobile-#{$type}: #{$def};
|
|
125
|
+
// }
|
|
126
|
+
// --eui-f-#{$font}-#{$size}-regular: normal normal var(--eui-f-weight-regular) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
127
|
+
// --eui-f-#{$font}-#{$size}-medium: normal normal var(--eui-f-weight-medium) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
128
|
+
// --eui-f-#{$font}-#{$size}-semi-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
129
|
+
// --eui-f-#{$font}-#{$size}-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
130
|
+
|
|
131
|
+
// --eui-f-#{$font}-#{$size}-tablet-regular: normal normal var(--eui-f-weight-regular) var(--eui-f-#{$font}-#{$size}-tablet-size)/var(--eui-f-#{$font}-#{$size}-tablet-line-height) var(--eui-f-family);
|
|
132
|
+
// --eui-f-#{$font}-#{$size}-tablet-medium: normal normal var(--eui-f-weight-medium) var(--eui-f-#{$font}-#{$size}-tablet-size)/var(--eui-f-#{$font}-#{$size}-tablet-line-height) var(--eui-f-family);
|
|
133
|
+
// --eui-f-#{$font}-#{$size}-tablet-semi-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-tablet-size)/var(--eui-f-#{$font}-#{$size}-tablet-line-height) var(--eui-f-family);
|
|
134
|
+
// --eui-f-#{$font}-#{$size}-tablet-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-tablet-size)/var(--eui-f-#{$font}-#{$size}-tablet-line-height) var(--eui-f-family);
|
|
135
|
+
|
|
136
|
+
// --eui-f-#{$font}-#{$size}-mobile-regular: normal normal var(--eui-f-weight-regular) var(--eui-f-#{$font}-#{$size}-mobile-size)/var(--eui-f-#{$font}-#{$size}-mobile-line-height) var(--eui-f-family);
|
|
137
|
+
// --eui-f-#{$font}-#{$size}-mobile-medium: normal normal var(--eui-f-weight-medium) var(--eui-f-#{$font}-#{$size}-mobile-size)/var(--eui-f-#{$font}-#{$size}-mobile-line-height) var(--eui-f-family);
|
|
138
|
+
// --eui-f-#{$font}-#{$size}-mobile-semi-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-mobile-size)/var(--eui-f-#{$font}-#{$size}-mobile-line-height) var(--eui-f-family);
|
|
139
|
+
// --eui-f-#{$font}-#{$size}-mobile-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-mobile-size)/var(--eui-f-#{$font}-#{$size}-mobile-line-height) var(--eui-f-family);
|
|
140
|
+
// }
|
|
141
|
+
// }
|
|
142
|
+
|
|
143
|
+
// @include base.media(maps.$eui-bkp-tablet) {
|
|
144
|
+
// @each $font, $fontDef in maps.$font-map-responsive {
|
|
145
|
+
// @each $size, $sizeDef in $fontDef {
|
|
146
|
+
// --eui-f-#{$font}-#{$size}-regular: var(--eui-f-#{$font}-#{$size}-tablet-regular);
|
|
147
|
+
// --eui-f-#{$font}-#{$size}-medium: var(--eui-f-#{$font}-#{$size}-tablet-medium);
|
|
148
|
+
// --eui-f-#{$font}-#{$size}-semi-bold: var(--eui-f-#{$font}-#{$size}-tablet-semi-bold);
|
|
149
|
+
// --eui-f-#{$font}-#{$size}-bold: var(--eui-f-#{$font}-#{$size}-tablet-bold);
|
|
150
|
+
// }
|
|
151
|
+
// }
|
|
152
|
+
// }
|
|
153
|
+
// @include base.media(maps.$eui-bkp-mobile) {
|
|
154
|
+
// @each $font, $fontDef in maps.$font-map-responsive {
|
|
155
|
+
// @each $size, $sizeDef in $fontDef {
|
|
156
|
+
// --eui-f-#{$font}-#{$size}-regular: var(--eui-f-#{$font}-#{$size}-mobile-regular);
|
|
157
|
+
// --eui-f-#{$font}-#{$size}-medium: var(--eui-f-#{$font}-#{$size}-mobile-medium);
|
|
158
|
+
// --eui-f-#{$font}-#{$size}-semi-bold: var(--eui-f-#{$font}-#{$size}-mobile-semi-bold);
|
|
159
|
+
// --eui-f-#{$font}-#{$size}-bold: var(--eui-f-#{$font}-#{$size}-mobile-bold);
|
|
160
|
+
// }
|
|
161
|
+
// }
|
|
162
|
+
// }
|
|
163
|
+
|
|
164
|
+
// // normal fonts (non-responsive)
|
|
165
|
+
// @each $font, $fontDef in maps.$font-map {
|
|
166
|
+
// @each $size, $sizeDef in $fontDef {
|
|
167
|
+
// @each $type, $def in $sizeDef {
|
|
168
|
+
// --eui-f-#{$font}-#{$size}-#{$type}: #{$def};
|
|
169
|
+
// }
|
|
170
|
+
// --eui-f-#{$font}-#{$size}-regular: normal normal var(--eui-f-weight-regular) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
171
|
+
// --eui-f-#{$font}-#{$size}-medium: normal normal var(--eui-f-weight-medium) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
172
|
+
// --eui-f-#{$font}-#{$size}-semi-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
173
|
+
// --eui-f-#{$font}-#{$size}-bold: normal normal var(--eui-f-weight-bold) var(--eui-f-#{$font}-#{$size}-size)/var(--eui-f-#{$font}-#{$size}-line-height) var(--eui-f-family);
|
|
174
|
+
// }
|
|
175
|
+
// }
|
|
176
|
+
|
|
177
|
+
// eUI font maps
|
|
178
|
+
@each $size in maps.$font-size-list {
|
|
179
|
+
--eui-f-#{$size}: normal normal var(--eui-f-weight-regular) var(--eui-f-size-#{$size})/var(--eui-f-line-height-#{$size}) var(--eui-f-family);
|
|
180
|
+
--eui-f-#{$size}-medium: normal normal var(--eui-f-weight-medium) var(--eui-f-size-#{$size})/var(--eui-f-line-height-#{$size}) var(--eui-f-family);
|
|
181
|
+
--eui-f-#{$size}-semi-bold: normal normal var(--eui-f-weight-semi-bold) var(--eui-f-size-#{$size})/var(--eui-f-line-height-#{$size}) var(--eui-f-family);
|
|
182
|
+
--eui-f-#{$size}-bold: normal normal var(--eui-f-weight-bold) var(--eui-f-size-#{$size})/var(--eui-f-line-height-#{$size}) var(--eui-f-family);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
@each $size, $def in maps.$font-size-map {
|
|
186
|
+
--eui-f-size-#{$size}: #{$def};
|
|
187
|
+
--eui-f-size-#{$size}-compact: #{$def};
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
@each $size, $def in maps.$font-line-height-map {
|
|
191
|
+
--eui-f-line-height-#{$size}: #{$def};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@each $size, $def in maps.$font-weight-map {
|
|
195
|
+
--eui-f-weight-#{$size}: #{$def};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
// SPACING - eui-s
|
|
200
|
+
// ---------------
|
|
201
|
+
|
|
202
|
+
@each $spacing, $value in maps.$spacing-map {
|
|
203
|
+
--eui-s-#{$spacing}: #{$value};
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
// BORDER RADIUS - eui-br
|
|
208
|
+
// ----------------------
|
|
209
|
+
|
|
210
|
+
@each $br, $value in maps.$border-radius-map {
|
|
211
|
+
--eui-br-#{$br}: #{$value};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
// LAYOUT-BREAKPOINTS - eui-bp
|
|
216
|
+
// ---------------------------
|
|
217
|
+
|
|
218
|
+
@each $bp, $value in maps.$breakpoint-map {
|
|
219
|
+
--eui-bp-#{$bp}: #{$value};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
// BORDER WIDTH - eui-bw
|
|
224
|
+
// ---------------------
|
|
225
|
+
|
|
226
|
+
@each $br, $value in maps.$border-width-map {
|
|
227
|
+
--eui-bw-#{$br}: #{$value};
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
// BOX-SHADOWS - eui-sh
|
|
232
|
+
// --------------------
|
|
233
|
+
|
|
234
|
+
@each $sh, $value in maps.$box-shadow-map {
|
|
235
|
+
--eui-sh-#{$sh}: #{$value};
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
// ICON-SIZES - eui-is
|
|
240
|
+
// -------------------
|
|
241
|
+
|
|
242
|
+
@each $icon-size, $value in maps.$icon-size-map {
|
|
243
|
+
--eui-is-#{$icon-size}: #{$value};
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
// OPACITY - eui-o
|
|
248
|
+
// ---------------
|
|
249
|
+
|
|
250
|
+
@each $idx, $value in maps.$opacity-map {
|
|
251
|
+
--eui-o-#{$idx}: #{$value};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
// Z-INDEXES - eui-zi
|
|
256
|
+
// -------------------
|
|
257
|
+
|
|
258
|
+
@each $idx, $value in maps.$z-index-map {
|
|
259
|
+
--eui-zi-#{$idx}: #{$value};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
// OTHERS
|
|
264
|
+
// ------
|
|
265
|
+
--eui-internal-icon-checkmark-path: url('#{base.$eui-assets-base-path}/icons/eui-internals/check.svg');
|
|
266
|
+
--eui-internal-icon-remove-path: url('#{base.$eui-assets-base-path}/icons/eui-internals/remove.svg');
|
|
267
|
+
--eui-internal-icon-ellipse-path: url('#{base.$eui-assets-base-path}/icons/eui-internals/ellipse.svg');
|
|
268
|
+
--eui-internal-icon-external-path: url('#{base.$eui-assets-base-path}/icons/eui-internals/external.svg');
|
|
269
|
+
--eui-internal-icon-chevron-down-path: url('#{base.$eui-assets-base-path}/icons/eui-internals/chevron-down.svg');
|
|
270
|
+
|
|
271
|
+
--eui-base-line-height: 1.5;
|
|
272
|
+
--eui-base-scale-factor: 1;
|
|
273
|
+
|
|
274
|
+
// Animations related
|
|
275
|
+
--eui-base-animation-linear-out-slow-in-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
276
|
+
--eui-base-animation-fast-out-slow-in-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
277
|
+
--eui-base-animation-fast-out-linear-in-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
278
|
+
--eui-base-animation-ease-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1); // ease
|
|
279
|
+
--eui-base-animation-ease-in-out-timing-function: ease-in-out;
|
|
280
|
+
|
|
281
|
+
--eui-base-animation-duration-fast: 0.25s;
|
|
282
|
+
--eui-base-animation-duration-medium: 0.5s;
|
|
283
|
+
--eui-base-animation-duration-slow: 1s;
|
|
284
|
+
--eui-base-animation-duration-base: 500ms;
|
|
285
|
+
--eui-base-animation-duration: var(--eui-base-animation-duration-base);
|
|
286
|
+
|
|
287
|
+
--eui-base-animation-transition-base: all 0.2s #{var(--eui-base-animation-linear-out-slow-in-timing-function)};
|
|
288
|
+
--eui-base-animation-transition-ease: all 0.2s #{var(--eui-base-animation-ease-timing-function)};
|
|
289
|
+
--eui-base-animation-transition-ease-in-out: all 0.2s #{var(--eui-base-animation-ease-in-out-timing-function)};
|
|
290
|
+
--eui-base-animation-transition-ease-in-out-1s: all 1s #{var(--eui-base-animation-ease-in-out-timing-function)};
|
|
291
|
+
|
|
292
|
+
--eui-base-animation-delay: 0s;
|
|
293
|
+
--eui-base-animation-direction: normal;
|
|
294
|
+
--eui-base-animation-fill-mode: forwards; // this prevents the animation from restarting
|
|
295
|
+
--eui-base-animation-background-color: var(--eui-c-primary-surface-light);
|
|
296
|
+
}
|