matcha-theme 19.56.0 → 19.58.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.
@@ -72,7 +72,7 @@
72
72
  border: 0px solid currentColor;
73
73
  background: map-get($background, card);
74
74
  &:not([color]){
75
- border-color: map-get($foreground, base);
75
+ border-color: getForeground($theme);
76
76
  background: transparent !important;
77
77
  }
78
78
  &[color]:not([outline]){
@@ -85,469 +85,98 @@
85
85
  border: 0px solid currentColor;
86
86
  background: transparent !important;
87
87
  &:not([color]){
88
- border-color: map-get($foreground, base);
89
- color: map-get($foreground, base);
88
+ border-color: getForeground($theme);
89
+ color: getForeground($theme);
90
90
  }
91
91
  }
92
92
 
93
93
  &:not([color]) {
94
94
  background: map-get($background, card);
95
- color: map-get($foreground, base);
96
- }
97
- // red
98
- &[color="red"][alpha]:not([alpha="false"]){
99
- background: rgba(map-get($red, $get-shade), 0.2);
100
- color: map-get($foreground, base)
101
- }
102
- &[color="red"][tint]:not([tint="false"]){
103
- background: rgba(map-get($red, $get-shade), 0.2);
104
- color: map-get($red, $get-shade);
105
- }
106
- &[color="red"][outline]:not([outline="false"]),
107
- &[color="red"][link]:not([link="false"]),
108
- &[color="red"][basic]:not([basic="false"]) {
109
- color: map-get($red, $get-shade)!important
110
- }
111
- &[color="red"]{
112
- background: map-get($red, $get-shade);
113
- color: map-get($red-contrast, $get-shade);
114
- }
115
-
116
- // pink
117
- &[color="pink"][alpha]:not([alpha="false"]){
118
- background: rgba(map-get($pink, $get-shade), 0.2);
119
- color: map-get($foreground, base)
120
- }
121
- &[color="pink"][tint]:not([tint="false"]){
122
- background: rgba(map-get($pink, $get-shade), 0.2);
123
- color: map-get($pink, $get-shade);
124
- }
125
- &[color="pink"][outline]:not([outline="false"]),
126
- &[color="pink"][link]:not([link="false"]),
127
- &[color="pink"][basic]:not([basic="false"]) {
128
- color: map-get($pink, $get-shade)!important
129
- }
130
- &[color="pink"]{
131
- background: map-get($pink, $get-shade);
132
- color: map-get($pink-contrast, $get-shade);
133
- }
134
-
135
- // purple
136
- &[color="purple"][alpha]:not([alpha="false"]){
137
- background: rgba(map-get($purple, $get-shade), 0.2);
138
- color: map-get($foreground, base)
139
- }
140
- &[color="purple"][tint]:not([tint="false"]){
141
- background: rgba(map-get($purple, $get-shade), 0.2);
142
- color: map-get($purple, $get-shade);
143
- }
144
- &[color="purple"][outline]:not([outline="false"]),
145
- &[color="purple"][link]:not([link="false"]),
146
- &[color="purple"][basic]:not([basic="false"]) {
147
- color: map-get($purple, $get-shade)!important
148
- }
149
- &[color="purple"]{
150
- background: map-get($purple, $get-shade);
151
- color: map-get($purple-contrast, $get-shade);
152
- }
153
-
154
- // deep-purple
155
- &[color="deep-purple"][alpha]:not([alpha="false"]){
156
- background: rgba(map-get($deep-purple, $get-shade), 0.2);
157
- color: map-get($foreground, base)
158
- }
159
- &[color="deep-purple"][tint]:not([tint="false"]){
160
- background: rgba(map-get($deep-purple, $get-shade), 0.2);
161
- color: map-get($deep-purple, $get-shade);
162
- }
163
- &[color="deep-purple"][outline]:not([outline="false"]),
164
- &[color="deep-purple"][link]:not([link="false"]),
165
- &[color="deep-purple"][basic]:not([basic="false"]) {
166
- color: map-get($deep-purple, $get-shade)!important
167
- }
168
- &[color="deep-purple"]{
169
- background: map-get($deep-purple, $get-shade);
170
- color: map-get($deep-purple-contrast, $get-shade);
171
- }
172
-
173
- // indigo
174
- &[color="indigo"][alpha]:not([alpha="false"]){
175
- background: rgba(map-get($indigo, $get-shade), 0.2);
176
- color: map-get($foreground, base)
177
- }
178
- &[color="indigo"][tint]:not([tint="false"]){
179
- background: rgba(map-get($indigo, $get-shade), 0.2);
180
- color: map-get($indigo, $get-shade);
181
- }
182
- &[color="indigo"][outline]:not([outline="false"]),
183
- &[color="indigo"][link]:not([link="false"]),
184
- &[color="indigo"][basic]:not([basic="false"]) {
185
- color: map-get($indigo, $get-shade)!important
186
- }
187
- &[color="indigo"]{
188
- background: map-get($indigo, $get-shade);
189
- color: map-get($indigo-contrast, $get-shade);
190
- }
191
-
192
- // blue
193
- &[color="blue"][alpha]:not([alpha="false"]){
194
- background: rgba(map-get($blue, $get-shade), 0.2);
195
- color: map-get($foreground, base)
196
- }
197
- &[color="blue"][tint]:not([tint="false"]){
198
- background: rgba(map-get($blue, $get-shade), 0.2);
199
- color: map-get($blue, $get-shade);
200
- }
201
- &[color="blue"][outline]:not([outline="false"]),
202
- &[color="blue"][link]:not([link="false"]),
203
- &[color="blue"][basic]:not([basic="false"]) {
204
- color: map-get($blue, $get-shade)!important
205
- }
206
- &[color="blue"]{
207
- background: map-get($blue, $get-shade);
208
- color: map-get($blue-contrast, $get-shade);
209
- }
210
-
211
- // light-blue
212
- &[color="light-blue"][alpha]:not([alpha="false"]){
213
- background: rgba(map-get($light-blue, $get-shade), 0.2);
214
- color: map-get($foreground, base)
215
- }
216
- &[color="light-blue"][tint]:not([tint="false"]){
217
- background: rgba(map-get($light-blue, $get-shade), 0.2);
218
- color: map-get($light-blue, $get-shade);
219
- }
220
- &[color="light-blue"][outline]:not([outline="false"]),
221
- &[color="light-blue"][link]:not([link="false"]),
222
- &[color="light-blue"][basic]:not([basic="false"]) {
223
- color: map-get($light-blue, $get-shade)!important
224
- }
225
- &[color="light-blue"]{
226
- background: map-get($light-blue, $get-shade);
227
- color: map-get($light-blue-contrast, $get-shade);
228
- }
229
-
230
- // cyan
231
- &[color="cyan"][alpha]:not([alpha="false"]){
232
- background: rgba(map-get($cyan, $get-shade), 0.2);
233
- color: map-get($foreground, base)
234
- }
235
- &[color="cyan"][tint]:not([tint="false"]){
236
- background: rgba(map-get($cyan, $get-shade), 0.2);
237
- color: map-get($cyan, $get-shade);
238
- }
239
- &[color="cyan"][outline]:not([outline="false"]),
240
- &[color="cyan"][link]:not([link="false"]),
241
- &[color="cyan"][basic]:not([basic="false"]) {
242
- color: map-get($cyan, $get-shade)!important
243
- }
244
- &[color="cyan"]{
245
- background: map-get($cyan, $get-shade);
246
- color: map-get($cyan-contrast, $get-shade);
247
- }
248
-
249
- // teal
250
- &[color="teal"][alpha]:not([alpha="false"]){
251
- background: rgba(map-get($teal, $get-shade), 0.2);
252
- color: map-get($foreground, base)
253
- }
254
- &[color="teal"][tint]:not([tint="false"]){
255
- background: rgba(map-get($teal, $get-shade), 0.2);
256
- color: map-get($teal, $get-shade);
257
- }
258
- &[color="teal"][outline]:not([outline="false"]),
259
- &[color="teal"][link]:not([link="false"]),
260
- &[color="teal"][basic]:not([basic="false"]) {
261
- color: map-get($teal, $get-shade)!important
262
- }
263
- &[color="teal"]{
264
- background: map-get($teal, $get-shade);
265
- color: map-get($teal-contrast, $get-shade);
266
- }
267
-
268
- // green
269
- &[color="green"][alpha]:not([alpha="false"]){
270
- background: rgba(map-get($green, $get-shade), 0.2);
271
- color: map-get($foreground, base)
272
- }
273
- &[color="green"][tint]:not([tint="false"]){
274
- background: rgba(map-get($green, $get-shade), 0.2);
275
- color: map-get($green, $get-shade);
276
- }
277
- &[color="green"][outline]:not([outline="false"]),
278
- &[color="green"][link]:not([link="false"]),
279
- &[color="green"][basic]:not([basic="false"]) {
280
- color: map-get($green, $get-shade)!important
281
- }
282
- &[color="green"]{
283
- background: map-get($green, $get-shade);
284
- color: map-get($green-contrast, $get-shade);
285
- }
286
-
287
- // light-green
288
- &[color="light-green"][alpha]:not([alpha="false"]){
289
- background: rgba(map-get($light-green, $get-shade), 0.2);
290
- color: map-get($foreground, base)
291
- }
292
- &[color="light-green"][tint]:not([tint="false"]){
293
- background: rgba(map-get($light-green, $get-shade), 0.2);
294
- color: map-get($light-green, $get-shade);
295
- }
296
- &[color="light-green"][outline]:not([outline="false"]),
297
- &[color="light-green"][link]:not([link="false"]),
298
- &[color="light-green"][basic]:not([basic="false"]) {
299
- color: map-get($light-green, $get-shade)!important
300
- }
301
- &[color="light-green"]{
302
- background: map-get($light-green, $get-shade);
303
- color: map-get($light-green-contrast, $get-shade);
304
- }
305
-
306
- // lime
307
- &[color="lime"][alpha]:not([alpha="false"]){
308
- background: rgba(map-get($lime, $get-shade), 0.2);
309
- color: map-get($foreground, base)
310
- }
311
- &[color="lime"][tint]:not([tint="false"]){
312
- background: rgba(map-get($lime, $get-shade), 0.2);
313
- color: map-get($lime, $get-shade);
314
- }
315
- &[color="lime"][outline]:not([outline="false"]),
316
- &[color="lime"][link]:not([link="false"]),
317
- &[color="lime"][basic]:not([basic="false"]) {
318
- color: map-get($lime, $get-shade)!important
319
- }
320
- &[color="lime"]{
321
- background: map-get($lime, $get-shade);
322
- color: map-get($lime-contrast, $get-shade);
323
- }
324
-
325
- // yellow
326
- &[color="yellow"][alpha]:not([alpha="false"]){
327
- background: rgba(map-get($yellow, $get-shade), 0.2);
328
- color: map-get($foreground, base)
329
- }
330
- &[color="yellow"][tint]:not([tint="false"]){
331
- background: rgba(map-get($yellow, $get-shade), 0.2);
332
- color: map-get($yellow, $get-shade);
333
- }
334
- &[color="yellow"][outline]:not([outline="false"]),
335
- &[color="yellow"][link]:not([link="false"]),
336
- &[color="yellow"][basic]:not([basic="false"]) {
337
- color: map-get($yellow, $get-shade)!important
338
- }
339
- &[color="yellow"]{
340
- background: map-get($yellow, $get-shade);
341
- color: map-get($yellow-contrast, $get-shade);
342
- }
343
-
344
- // amber
345
- &[color="amber"][alpha]:not([alpha="false"]){
346
- background: rgba(map-get($amber, $get-shade), 0.2);
347
- color: map-get($foreground, base)
348
- }
349
- &[color="amber"][tint]:not([tint="false"]){
350
- background: rgba(map-get($amber, $get-shade), 0.2);
351
- color: map-get($amber, $get-shade);
352
- }
353
- &[color="amber"][outline]:not([outline="false"]),
354
- &[color="amber"][link]:not([link="false"]),
355
- &[color="amber"][basic]:not([basic="false"]) {
356
- color: map-get($amber, $get-shade)!important
357
- }
358
- &[color="amber"]{
359
- background: map-get($amber, $get-shade);
360
- color: map-get($amber-contrast, $get-shade);
361
- }
362
-
363
- // orange
364
- &[color="orange"][alpha]:not([alpha="false"]){
365
- background: rgba(map-get($orange, $get-shade), 0.2);
366
- color: map-get($foreground, base)
367
- }
368
- &[color="orange"][tint]:not([tint="false"]){
369
- background: rgba(map-get($orange, $get-shade), 0.2);
370
- color: map-get($orange, $get-shade);
371
- }
372
- &[color="orange"][outline]:not([outline="false"]),
373
- &[color="orange"][link]:not([link="false"]),
374
- &[color="orange"][basic]:not([basic="false"]) {
375
- color: map-get($orange, $get-shade)!important
376
- }
377
- &[color="orange"]{
378
- background: map-get($orange, $get-shade);
379
- color: map-get($orange-contrast, $get-shade);
380
- }
381
-
382
- // deep-orange
383
- &[color="deep-orange"][alpha]:not([alpha="false"]){
384
- background: rgba(map-get($deep-orange, $get-shade), 0.2);
385
- color: map-get($foreground, base)
386
- }
387
- &[color="deep-orange"][tint]:not([tint="false"]){
388
- background: rgba(map-get($deep-orange, $get-shade), 0.2);
389
- color: map-get($deep-orange, $get-shade);
390
- }
391
- &[color="deep-orange"][outline]:not([outline="false"]),
392
- &[color="deep-orange"][link]:not([link="false"]),
393
- &[color="deep-orange"][basic]:not([basic="false"]) {
394
- color: map-get($deep-orange, $get-shade)!important
395
- }
396
- &[color="deep-orange"]{
397
- background: map-get($deep-orange, $get-shade);
398
- color: map-get($deep-orange-contrast, $get-shade);
399
- }
400
-
401
- // brown
402
- &[color="brown"][alpha]:not([alpha="false"]){
403
- background: rgba(map-get($brown, $get-shade), 0.2);
404
- color: map-get($foreground, base)
405
- }
406
- &[color="brown"][tint]:not([tint="false"]){
407
- background: rgba(map-get($brown, $get-shade), 0.2);
408
- color: map-get($brown, $get-shade);
409
- }
410
- &[color="brown"][outline]:not([outline="false"]),
411
- &[color="brown"][link]:not([link="false"]),
412
- &[color="brown"][basic]:not([basic="false"]) {
413
- color: map-get($brown, $get-shade)!important
414
- }
415
- &[color="brown"]{
416
- background: map-get($brown, $get-shade);
417
- color: map-get($brown-contrast, $get-shade);
418
- }
419
-
420
- // grey
421
- &[color="grey"][alpha]:not([alpha="false"]){
422
- background: rgba(map-get($grey, $get-shade), 0.2);
423
- color: map-get($foreground, base)
424
- }
425
- &[color="grey"][tint]:not([tint="false"]){
426
- background: rgba(map-get($grey, $get-shade), 0.2);
427
- color: map-get($grey, $get-shade);
428
- }
429
- &[color="grey"][outline]:not([outline="false"]),
430
- &[color="grey"][link]:not([link="false"]),
431
- &[color="grey"][basic]:not([basic="false"]) {
432
- color: map-get($grey, $get-shade)!important
433
- }
434
- &[color="grey"]{
435
- background: map-get($grey, $get-shade);
436
- color: map-get($grey-contrast, $get-shade);
437
- }
438
-
439
- // blue-grey
440
- &[color="blue-grey"][alpha]:not([alpha="false"]){
441
- background: rgba(map-get($blue-grey, $get-shade), 0.2);
442
- color: map-get($foreground, base)
443
- }
444
- &[color="blue-grey"][tint]:not([tint="false"]){
445
- background: rgba(map-get($blue-grey, $get-shade), 0.2);
446
- color: map-get($blue-grey, $get-shade);
447
- }
448
- &[color="blue-grey"][outline]:not([outline="false"]),
449
- &[color="blue-grey"][link]:not([link="false"]),
450
- &[color="blue-grey"][basic]:not([basic="false"]) {
451
- color: map-get($blue-grey, $get-shade)!important
452
- }
453
- &[color="blue-grey"]{
454
- background: map-get($blue-grey, $get-shade);
455
- color: map-get($blue-grey-contrast, $get-shade);
456
- }
457
-
458
- // primary
459
- &[color="primary"][alpha]:not([alpha="false"]){
460
- background: rgba(map-get($primary, default), 0.2);
461
- color: map-get($foreground, base)
462
- }
463
- &[color="primary"][tint]:not([tint="false"]){
464
- background: rgba(map-get($primary, default), 0.2);
465
- color: map-get($primary, default);
466
- }
467
- &[color="primary"][outline]:not([outline="false"]),
468
- &[color="primary"][link]:not([link="false"]),
469
- &[color="primary"][basic]:not([basic="false"]) {
470
- color: map-get($primary, default)!important
471
- }
472
- &[color="primary"]{
473
- background: map-get($primary, default);
474
- color: map-get($primary, default-contrast);
475
- }
476
-
477
- // accent
478
- &[color="accent"][alpha]:not([alpha="false"]){
479
- background: rgba(map-get($accent, default), 0.2);
480
- color: map-get($foreground, base)
481
- }
482
- &[color="accent"][tint]:not([tint="false"]){
483
- background: rgba(map-get($accent, default), 0.2);
484
- color: map-get($accent, default);
485
- }
486
- &[color="accent"][outline]:not([outline="false"]),
487
- &[color="accent"][link]:not([link="false"]),
488
- &[color="accent"][basic]:not([basic="false"]) {
489
- color: map-get($accent, default)!important
490
- }
491
- &[color="accent"]{
492
- background: map-get($accent, default);
493
- color: map-get($accent, default-contrast);
494
- }
495
-
496
- // warn
497
- &[color="warn"][alpha]:not([alpha="false"]){
498
- background: rgba(map-get($warn, default), 0.2);
499
- color: map-get($foreground, base)
500
- }
501
- &[color="warn"][tint]:not([tint="false"]){
502
- background: rgba(map-get($warn, default), 0.2);
503
- color: map-get($warn, default);
504
- }
505
- &[color="warn"][outline]:not([outline="false"]),
506
- &[color="warn"][link]:not([link="false"]),
507
- &[color="warn"][basic]:not([basic="false"]) {
508
- color: map-get($warn, default)!important
509
- }
510
- &[color="warn"]{
511
- background: map-get($warn, default);
512
- color: map-get($warn, default-contrast);
95
+ color: getForeground($theme);
96
+ }
97
+
98
+ $color-functions: (
99
+ red: getRed,
100
+ pink: getPink,
101
+ purple: getPurple,
102
+ deep-purple: getDeepPurple,
103
+ indigo: getIndigo,
104
+ blue: getBlue,
105
+ light-blue: getLightBlue,
106
+ cyan: getCyan,
107
+ teal: getTeal,
108
+ green: getGreen,
109
+ light-green: getLightGreen,
110
+ lime: getLime,
111
+ yellow: getYellow,
112
+ amber: getAmber,
113
+ orange: getOrange,
114
+ deep-orange: getDeepOrange,
115
+ brown: getBrown,
116
+ grey: getGrey,
117
+ blue-grey: getBlueGrey,
118
+ primary: getPrimary,
119
+ accent: getAccent,
120
+ warn: getWarn,
121
+ disabled: getDisabled,
122
+ );
123
+
124
+ @each $colorName, $colorFn in $color-functions {
125
+ &[color='"" + $colorName'][alpha]:not([alpha="false"]) {
126
+ background: call(#{$colorFn}Alpha, $theme);
127
+ color: call(#{$colorFn}Contrast, $theme);
128
+ }
129
+ &[color='"" + $colorName'][tint]:not([tint="false"]) {
130
+ background: call(#{$colorFn}Alpha, $theme);
131
+ color: call(#{$colorFn}Contrast, $theme);
132
+ }
133
+ &[color='"" + $colorName'][outline]:not([outline="false"]),
134
+ &[color='"" + $colorName'][link]:not([link="false"]),
135
+ &[color='"" + $colorName'][basic]:not([basic="false"]) {
136
+ color: call(#{$colorFn}Contrast, $theme)!important
137
+ }
138
+ &[color='"" + $colorName'] {
139
+ background: call(#{$colorFn}, $theme);
140
+ color: call(#{$colorFn}Contrast, $theme);
141
+ }
513
142
  }
514
143
 
515
144
  // bg
516
145
  &[color="bg"][alpha]:not([alpha="false"]){
517
- background: rgba(map-get($background, background), 0.2);
146
+ background: getBackgroundAlpha($theme);
518
147
  color: map-get($foreground, base)
519
148
  }
520
149
  &[color="bg"][tint]:not([tint="false"]){
521
- background: rgba(map-get($background, background), 0.2);
522
- color: map-get($foreground, base);
150
+ background: getBackgroundAlpha($theme);
151
+ color: getForeground($theme);
523
152
  }
524
153
  &[color="bg"][outline]:not([outline="false"]),
525
154
  &[color="bg"][link]:not([link="false"]),
526
155
  &[color="bg"][basic]:not([basic="false"]) {
527
- color: map-get($foreground, base)!important
156
+ color: getForeground($theme);
528
157
  }
529
158
  &[color="bg"]{
530
159
  background: map-get($background, background);
531
- color: map-get($foreground, base);
160
+ color: getForeground($theme);
532
161
  }
533
162
 
534
163
  // surface
535
164
  &[color="surface"][alpha]:not([alpha="false"]){
536
- background: rgba(map-get($background, card), 0.2);
165
+ background: getSurfaceAlpha($theme);
537
166
  color: map-get($foreground, base)
538
167
  }
539
168
  &[color="surface"][tint]:not([tint="false"]){
540
- background: rgba(map-get($background, card), 0.2);
541
- color: map-get($foreground, base);
169
+ background: getSurfaceAlpha($theme);
170
+ color: getForeground($theme);
542
171
  }
543
172
  &[color="surface"][outline]:not([outline="false"]),
544
173
  &[color="surface"][link]:not([link="false"]),
545
174
  &[color="surface"][basic]:not([basic="false"]) {
546
- color: map-get($foreground, base)!important
175
+ color: getForeground($theme);
547
176
  }
548
177
  &[color="surface"]{
549
178
  background: map-get($background, card);
550
- color: map-get($foreground, base);
179
+ color: getForeground($theme);
551
180
  }
552
181
 
553
182
  // fg
@@ -562,10 +191,10 @@
562
191
  &[color="fg"][outline]:not([outline="false"]),
563
192
  &[color="fg"][link]:not([link="false"]),
564
193
  &[color="fg"][basic]:not([basic="false"]) {
565
- color: map-get($foreground, base)!important
194
+ color: getForeground($theme);
566
195
  }
567
196
  &[color="fg"]{
568
- background: map-get($foreground, base);
197
+ background: getForeground($theme);
569
198
  color: map-get($foreground, text-inverse);
570
199
  }
571
200
 
@@ -576,21 +205,21 @@
576
205
  }
577
206
  &[color="basic"][tint]:not([tint="false"]){
578
207
  background: rgba(map-get($foreground, base), 0.2);
579
- color: map-get($foreground, base);
208
+ color: getForeground($theme);
580
209
  }
581
210
  &[color="basic"][outline]:not([outline="false"]),
582
211
  &[color="basic"][link]:not([link="false"]),
583
212
  &[color="basic"][basic]:not([basic="false"]) {
584
- color: map-get($foreground, base)!important
213
+ color: getForeground($theme);
585
214
  }
586
215
  &[color="basic"]{
587
216
  background: map-get($background, card);
588
- color: map-get($foreground, base);
217
+ color: getForeground($theme);
589
218
  }
590
219
  &[color="basic"]{
591
220
  background: map-get($background, card);
592
221
  &:not([color]){
593
- color: map-get($foreground, base);
222
+ color: getForeground($theme);
594
223
  }
595
224
  }
596
225
  }
@@ -604,6 +233,7 @@ matcha-card,
604
233
  .matcha-card-flat {
605
234
  padding: 16px;
606
235
  border-radius: 8px;
236
+ display: flex;
607
237
 
608
238
  &-border,
609
239
  &-border-left {
@@ -0,0 +1,86 @@
1
+ @mixin generate-matcha-modal-sizes-classes($helper-breakpoints){
2
+ @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
3
+ @include media-breakpoint($materialBreakpoint) {
4
+ $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
5
+
6
+ &[size#{$infix}="tiny"] .matcha-modal {
7
+ width: 100%;
8
+ max-width: px-to-rem(320px);
9
+ }
10
+
11
+ &[size#{$infix}="small"] .matcha-modal {
12
+ width: 100%;
13
+ max-width: px-to-rem(400px);
14
+ }
15
+
16
+ &[size#{$infix}="medium"] .matcha-modal {
17
+ width: 100%;
18
+ max-width: px-to-rem(480px);
19
+ }
20
+
21
+ &[size#{$infix}="large"] .matcha-modal {
22
+ width: 100%;
23
+ max-width: px-to-rem(560px);
24
+ }
25
+
26
+ &[size#{$infix}="huge"] .matcha-modal {
27
+ width: 100%;
28
+ max-width: px-to-rem(640px);
29
+ }
30
+ }
31
+ }
32
+ }
33
+
34
+ @mixin matcha-modal-theme($theme) {
35
+ matcha-modal {
36
+ display: block;
37
+ position: fixed;
38
+ top: 0;
39
+ left: 0;
40
+ height: 100%;
41
+ width: 100%;
42
+ z-index: 1000;
43
+ display: flex;
44
+ align-items: center;
45
+ justify-content: center;
46
+
47
+ @include generate-matcha-modal-sizes-classes($helper-breakpoints);
48
+ }
49
+
50
+ .matcha-modal-backdrop {
51
+ position: fixed;
52
+ top: 0;
53
+ left: 0;
54
+ width: 100%;
55
+ height: 100%;
56
+ background: getDisabledAlpha($theme);
57
+ backdrop-filter: blur(6px);
58
+ mix-blend-mode: multiply;
59
+ z-index: 999;
60
+ }
61
+
62
+ .matcha-overlay-container {
63
+ position: fixed;
64
+ top: 0;
65
+ left: 0;
66
+ width: 100%;
67
+ height: 100%;
68
+ z-index: 1000;
69
+ pointer-events: none;
70
+ }
71
+
72
+
73
+ @keyframes fadeIn {
74
+ from {
75
+ opacity: 0;
76
+ }
77
+ to {
78
+ opacity: 1;
79
+ }
80
+ }
81
+
82
+ .matcha-overlay-container > * {
83
+ pointer-events: auto;
84
+ }
85
+
86
+ }