@inchurch/matcha-theme 21.3.3 → 22.0.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/abstracts/_colors.scss +236 -229
- package/abstracts/_elevation.scss +108 -108
- package/abstracts/_functions.scss +321 -321
- package/abstracts/_media-breakpoint.scss +26 -26
- package/abstracts/_theme-api.scss +219 -219
- package/abstracts/_typography.scss +128 -128
- package/base/_reset.scss +445 -432
- package/components/app-page-header.scss +260 -260
- package/components/matcha-accordion.scss +293 -293
- package/components/matcha-audio-player.scss +31 -31
- package/components/matcha-autocomplete.scss +145 -145
- package/components/matcha-avatar.scss +440 -301
- package/components/matcha-badge.scss +120 -120
- package/components/matcha-breadcrumb.scss +231 -231
- package/components/matcha-button-toggle.scss +384 -384
- package/components/matcha-buttons.scss +913 -913
- package/components/matcha-calendar.scss +218 -218
- package/components/matcha-cards.scss +230 -230
- package/components/matcha-chart-card.scss +53 -53
- package/components/matcha-checkbox.scss +255 -255
- package/components/matcha-chip.scss +292 -292
- package/components/matcha-color-pick.scss +34 -34
- package/components/matcha-command-palette.scss +316 -316
- package/components/matcha-crop.scss +406 -406
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +100 -100
- package/components/matcha-draggable.scss +23 -23
- package/components/matcha-drawer.scss +376 -376
- package/components/matcha-drop-image.scss +14 -14
- package/components/matcha-drop-list.scss +430 -430
- package/components/matcha-emoji.scss +69 -69
- package/components/matcha-empty-state.scss +230 -230
- package/components/matcha-file-uploader.scss +471 -471
- package/components/matcha-flag.scss +103 -103
- package/components/matcha-footer.scss +91 -91
- package/components/matcha-form-field.scss +606 -606
- package/components/matcha-form-section.scss +100 -100
- package/components/matcha-header.scss +135 -135
- package/components/matcha-highlight.scss +164 -164
- package/components/matcha-hint-text.scss +90 -90
- package/components/matcha-horizontal-tree.scss +316 -316
- package/components/matcha-icon.scss +98 -98
- package/components/matcha-image.scss +61 -61
- package/components/matcha-list.scss +211 -211
- package/components/matcha-menu.scss +99 -99
- package/components/matcha-modal.scss +210 -210
- package/components/matcha-nav.scss +581 -581
- package/components/matcha-notification.scss +413 -413
- package/components/matcha-option.scss +170 -170
- package/components/matcha-page-builder.scss +4196 -4196
- package/components/matcha-paginator.scss +689 -689
- package/components/matcha-panel.scss +194 -194
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +313 -313
- package/components/matcha-radio.scss +320 -320
- package/components/matcha-ripple.scss +7 -7
- package/components/matcha-scrollbar.scss +33 -33
- package/components/matcha-scrollbox-shadow.scss +120 -120
- package/components/matcha-section.scss +102 -102
- package/components/matcha-select-multiple.scss +56 -56
- package/components/matcha-select.scss +667 -667
- package/components/matcha-skeleton.scss +155 -155
- package/components/matcha-slide-toggle.scss +369 -369
- package/components/matcha-slider.scss +285 -285
- package/components/matcha-snack-bar.scss +259 -259
- package/components/matcha-spin.scss +164 -164
- package/components/matcha-spinner.scss +97 -97
- package/components/matcha-status-pill.scss +38 -18
- package/components/matcha-stepper.scss +376 -376
- package/components/matcha-table-cell.scss +74 -41
- package/components/matcha-table.scss +579 -578
- package/components/matcha-tabs.scss +600 -600
- package/components/matcha-text-editor.scss +105 -105
- package/components/matcha-time.scss +33 -33
- package/components/matcha-timepicker.scss +13 -13
- package/components/matcha-toolbar.scss +359 -359
- package/components/matcha-tooltip.scss +224 -224
- package/components/matcha-tree-view.scss +257 -212
- package/layout/matcha-page-layout.scss +778 -778
- package/main.scss +329 -329
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -35
- package/tokens/_color-tokens.scss +274 -261
- package/tokens/_elevation-tokens.scss +33 -33
- package/tokens/_emit-tokens.scss +324 -324
- package/tokens/_material-palette.scss +1149 -1149
- package/tokens/_primitives.scss +98 -98
- package/tokens/_semantic-aliases.scss +120 -120
- package/tokens/_spacing-tokens.scss +94 -94
- package/tokens/_static-tokens.scss +137 -137
- package/tokens/_typography-tokens.scss +65 -65
- package/vendors/charts.scss +90 -90
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// matcha-flag.scss — Bandeiras (country) + Pagamento (payment)
|
|
3
|
-
//
|
|
4
|
-
// 1:1 Figma DSV3 (i04CyWczuVctwRjE5VbJh7):
|
|
5
|
-
// - matcha/flag/country (3969:15347) — 24x24 frame, 22x16 flag (2:3)
|
|
6
|
-
// - matcha/flag/payment (3205:13569) — 32x24 SVG card (4:3)
|
|
7
|
-
//
|
|
8
|
-
// API host attrs (set pelo MatchaFlagComponent):
|
|
9
|
-
// data-set — country | payment
|
|
10
|
-
// data-name — slug (brasil, visa, pix, etc.)
|
|
11
|
-
// data-size — sm | md | lg
|
|
12
|
-
//
|
|
13
|
-
// Componentes:
|
|
14
|
-
// .matcha-flag — host (inline-flex, alinha + tamanho)
|
|
15
|
-
// .matcha-flag__emoji — span unicode (country)
|
|
16
|
-
// .matcha-flag__svg — wrapper innerHTML SVG (payment)
|
|
17
|
-
//
|
|
18
|
-
// Usado em: matcha-phone (DDI), forms de pagamento, transaction lists, hero CTA.
|
|
19
|
-
// =============================================================================
|
|
20
|
-
|
|
21
|
-
@mixin matcha-flag($theme) {
|
|
22
|
-
|
|
23
|
-
// ── Host ─────────────────────────────────────────────────────────────────
|
|
24
|
-
.matcha-flag {
|
|
25
|
-
display: inline-flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
flex-shrink: 0;
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
line-height: 1;
|
|
31
|
-
// Default size = md (sobrescrito por data-size abaixo)
|
|
32
|
-
width: var(--matcha-flag-w, 32px);
|
|
33
|
-
height: var(--matcha-flag-h, 24px);
|
|
34
|
-
border-radius: var(--matcha-radius-sm, 2px);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// ── Emoji (country) ─────────────────────────────────────────────────────
|
|
38
|
-
// Emoji ocupa o box todo; font-size ditando o tamanho do glyph.
|
|
39
|
-
.matcha-flag__emoji {
|
|
40
|
-
font-size: calc(var(--matcha-flag-h, 24px) * 0.95);
|
|
41
|
-
line-height: 1;
|
|
42
|
-
// Emoji-style render — força o emoji color (algumas fonts renderizam
|
|
43
|
-
// o codepoint como texto B&W; emoji color preserva as cores nacionais)
|
|
44
|
-
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
|
|
45
|
-
font-variant-emoji: emoji;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
// ── SVG (payment) ───────────────────────────────────────────────────────
|
|
49
|
-
.matcha-flag__svg {
|
|
50
|
-
display: inline-flex;
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
|
-
|
|
54
|
-
svg {
|
|
55
|
-
width: 100%;
|
|
56
|
-
height: 100%;
|
|
57
|
-
display: block;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// ── Set: country — 2:3 aspect ratio ─────────────────────────────────────
|
|
62
|
-
.matcha-flag[data-set="country"] {
|
|
63
|
-
--matcha-flag-w: 22px;
|
|
64
|
-
--matcha-flag-h: 16px;
|
|
65
|
-
}
|
|
66
|
-
.matcha-flag[data-set="country"][data-size="small"],
|
|
67
|
-
.matcha-flag[data-set="country"][data-size="sm"] {
|
|
68
|
-
--matcha-flag-w: 16px;
|
|
69
|
-
--matcha-flag-h: 12px;
|
|
70
|
-
}
|
|
71
|
-
.matcha-flag[data-set="country"][data-size="medium"],
|
|
72
|
-
.matcha-flag[data-set="country"][data-size="md"] {
|
|
73
|
-
--matcha-flag-w: 22px;
|
|
74
|
-
--matcha-flag-h: 16px;
|
|
75
|
-
}
|
|
76
|
-
.matcha-flag[data-set="country"][data-size="large"],
|
|
77
|
-
.matcha-flag[data-set="country"][data-size="lg"] {
|
|
78
|
-
--matcha-flag-w: 32px;
|
|
79
|
-
--matcha-flag-h: 24px;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// ── Set: payment — 4:3 aspect ratio ─────────────────────────────────────
|
|
83
|
-
.matcha-flag[data-set="payment"] {
|
|
84
|
-
--matcha-flag-w: 32px;
|
|
85
|
-
--matcha-flag-h: 24px;
|
|
86
|
-
}
|
|
87
|
-
.matcha-flag[data-set="payment"][data-size="small"],
|
|
88
|
-
.matcha-flag[data-set="payment"][data-size="sm"] {
|
|
89
|
-
--matcha-flag-w: 24px;
|
|
90
|
-
--matcha-flag-h: 18px;
|
|
91
|
-
}
|
|
92
|
-
.matcha-flag[data-set="payment"][data-size="medium"],
|
|
93
|
-
.matcha-flag[data-set="payment"][data-size="md"] {
|
|
94
|
-
--matcha-flag-w: 32px;
|
|
95
|
-
--matcha-flag-h: 24px;
|
|
96
|
-
}
|
|
97
|
-
.matcha-flag[data-set="payment"][data-size="large"],
|
|
98
|
-
.matcha-flag[data-set="payment"][data-size="lg"] {
|
|
99
|
-
--matcha-flag-w: 48px;
|
|
100
|
-
--matcha-flag-h: 36px;
|
|
101
|
-
border-radius: var(--matcha-radius-md, 4px);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-flag.scss — Bandeiras (country) + Pagamento (payment)
|
|
3
|
+
//
|
|
4
|
+
// 1:1 Figma DSV3 (i04CyWczuVctwRjE5VbJh7):
|
|
5
|
+
// - matcha/flag/country (3969:15347) — 24x24 frame, 22x16 flag (2:3)
|
|
6
|
+
// - matcha/flag/payment (3205:13569) — 32x24 SVG card (4:3)
|
|
7
|
+
//
|
|
8
|
+
// API host attrs (set pelo MatchaFlagComponent):
|
|
9
|
+
// data-set — country | payment
|
|
10
|
+
// data-name — slug (brasil, visa, pix, etc.)
|
|
11
|
+
// data-size — sm | md | lg
|
|
12
|
+
//
|
|
13
|
+
// Componentes:
|
|
14
|
+
// .matcha-flag — host (inline-flex, alinha + tamanho)
|
|
15
|
+
// .matcha-flag__emoji — span unicode (country)
|
|
16
|
+
// .matcha-flag__svg — wrapper innerHTML SVG (payment)
|
|
17
|
+
//
|
|
18
|
+
// Usado em: matcha-phone (DDI), forms de pagamento, transaction lists, hero CTA.
|
|
19
|
+
// =============================================================================
|
|
20
|
+
|
|
21
|
+
@mixin matcha-flag($theme) {
|
|
22
|
+
|
|
23
|
+
// ── Host ─────────────────────────────────────────────────────────────────
|
|
24
|
+
.matcha-flag {
|
|
25
|
+
display: inline-flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
line-height: 1;
|
|
31
|
+
// Default size = md (sobrescrito por data-size abaixo)
|
|
32
|
+
width: var(--matcha-flag-w, 32px);
|
|
33
|
+
height: var(--matcha-flag-h, 24px);
|
|
34
|
+
border-radius: var(--matcha-radius-sm, 2px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// ── Emoji (country) ─────────────────────────────────────────────────────
|
|
38
|
+
// Emoji ocupa o box todo; font-size ditando o tamanho do glyph.
|
|
39
|
+
.matcha-flag__emoji {
|
|
40
|
+
font-size: calc(var(--matcha-flag-h, 24px) * 0.95);
|
|
41
|
+
line-height: 1;
|
|
42
|
+
// Emoji-style render — força o emoji color (algumas fonts renderizam
|
|
43
|
+
// o codepoint como texto B&W; emoji color preserva as cores nacionais)
|
|
44
|
+
font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
|
|
45
|
+
font-variant-emoji: emoji;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// ── SVG (payment) ───────────────────────────────────────────────────────
|
|
49
|
+
.matcha-flag__svg {
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: 100%;
|
|
53
|
+
|
|
54
|
+
svg {
|
|
55
|
+
width: 100%;
|
|
56
|
+
height: 100%;
|
|
57
|
+
display: block;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ── Set: country — 2:3 aspect ratio ─────────────────────────────────────
|
|
62
|
+
.matcha-flag[data-set="country"] {
|
|
63
|
+
--matcha-flag-w: 22px;
|
|
64
|
+
--matcha-flag-h: 16px;
|
|
65
|
+
}
|
|
66
|
+
.matcha-flag[data-set="country"][data-size="small"],
|
|
67
|
+
.matcha-flag[data-set="country"][data-size="sm"] {
|
|
68
|
+
--matcha-flag-w: 16px;
|
|
69
|
+
--matcha-flag-h: 12px;
|
|
70
|
+
}
|
|
71
|
+
.matcha-flag[data-set="country"][data-size="medium"],
|
|
72
|
+
.matcha-flag[data-set="country"][data-size="md"] {
|
|
73
|
+
--matcha-flag-w: 22px;
|
|
74
|
+
--matcha-flag-h: 16px;
|
|
75
|
+
}
|
|
76
|
+
.matcha-flag[data-set="country"][data-size="large"],
|
|
77
|
+
.matcha-flag[data-set="country"][data-size="lg"] {
|
|
78
|
+
--matcha-flag-w: 32px;
|
|
79
|
+
--matcha-flag-h: 24px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// ── Set: payment — 4:3 aspect ratio ─────────────────────────────────────
|
|
83
|
+
.matcha-flag[data-set="payment"] {
|
|
84
|
+
--matcha-flag-w: 32px;
|
|
85
|
+
--matcha-flag-h: 24px;
|
|
86
|
+
}
|
|
87
|
+
.matcha-flag[data-set="payment"][data-size="small"],
|
|
88
|
+
.matcha-flag[data-set="payment"][data-size="sm"] {
|
|
89
|
+
--matcha-flag-w: 24px;
|
|
90
|
+
--matcha-flag-h: 18px;
|
|
91
|
+
}
|
|
92
|
+
.matcha-flag[data-set="payment"][data-size="medium"],
|
|
93
|
+
.matcha-flag[data-set="payment"][data-size="md"] {
|
|
94
|
+
--matcha-flag-w: 32px;
|
|
95
|
+
--matcha-flag-h: 24px;
|
|
96
|
+
}
|
|
97
|
+
.matcha-flag[data-set="payment"][data-size="large"],
|
|
98
|
+
.matcha-flag[data-set="payment"][data-size="lg"] {
|
|
99
|
+
--matcha-flag-w: 48px;
|
|
100
|
+
--matcha-flag-h: 36px;
|
|
101
|
+
border-radius: var(--matcha-radius-md, 4px);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@use "../abstracts/media-breakpoint" as *;
|
|
2
|
-
@use "sass:map";
|
|
3
|
-
|
|
4
|
-
// =============================================================================
|
|
5
|
-
// matcha-footer.scss — App footer bar
|
|
6
|
-
// 1:1 com Figma DSV3 matcha/footer (nodeId 15930:27)
|
|
7
|
-
// • Default · w fluida · h 28 · padding 8/16
|
|
8
|
-
// • Expanded · w fluida · h 28 · padding 8/16
|
|
9
|
-
// • Mobile · w fluida · h 24 · padding 6/16
|
|
10
|
-
// • bg surface/card · border-top hairline surface/border
|
|
11
|
-
// • topLeftRadius/topRightRadius = 8 · bottom = 0
|
|
12
|
-
// • Conteúdo centralizado (brand inchurch via matcha-brand)
|
|
13
|
-
// =============================================================================
|
|
14
|
-
|
|
15
|
-
@mixin matcha-footer-theme($theme) {
|
|
16
|
-
|
|
17
|
-
.matcha-footer {
|
|
18
|
-
background: var(--matcha-color-surface-card);
|
|
19
|
-
border-top: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border);
|
|
20
|
-
color: var(--matcha-color-text-label);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.matcha-footer {
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
box-sizing: border-box;
|
|
29
|
-
position: relative;
|
|
30
|
-
z-index: 1;
|
|
31
|
-
// Gap default — footer nunca colado no conteúdo nem nas bordas.
|
|
32
|
-
// Tokens: --matcha-footer-gap-block (top) e --matcha-footer-gap-inline (laterais).
|
|
33
|
-
// Fallback unificado --matcha-footer-gap controla os 3 simultaneamente.
|
|
34
|
-
margin-block-start: var(--matcha-footer-gap-block, var(--matcha-footer-gap, var(--matcha-space-300, 24px)));
|
|
35
|
-
margin-inline: var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-300, 24px)));
|
|
36
|
-
// max(0, ...) protege de width negativo se container <= 2 * gap-inline.
|
|
37
|
-
width: max(0px, calc(100% - 2 * var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-300, 24px)))));
|
|
38
|
-
// Figma DSV3 Default/Expanded: h 28, padding 8/16. Logical props pra RTL.
|
|
39
|
-
min-block-size: var(--matcha-footer-height, 28px);
|
|
40
|
-
padding-block: var(--matcha-space-100, 8px);
|
|
41
|
-
padding-inline: var(--matcha-space-200, 16px);
|
|
42
|
-
// Top corners arredondados (Figma DSV3 topLeftRadius/topRightRadius = 8).
|
|
43
|
-
border-start-start-radius: var(--matcha-radius-lg, 8px);
|
|
44
|
-
border-start-end-radius: var(--matcha-radius-lg, 8px);
|
|
45
|
-
border-end-start-radius: 0;
|
|
46
|
-
border-end-end-radius: 0;
|
|
47
|
-
font-family: var(--matcha-font-family);
|
|
48
|
-
font-size: var(--matcha-text-body-sm, 12px);
|
|
49
|
-
line-height: var(--matcha-leading-body-sm, 16px);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// ── Forced colors (Windows High Contrast) ──────────────────────────────────
|
|
53
|
-
// Border hairline com surface/border (12% opacidade) pode sumir em high-contrast.
|
|
54
|
-
// CanvasText é o token system semantic — sempre visível.
|
|
55
|
-
@media (forced-colors: active) {
|
|
56
|
-
.matcha-footer {
|
|
57
|
-
border-top: 1px solid CanvasText;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// ── Reduced motion (defensivo) ──────────────────────────────────────────────
|
|
62
|
-
// Hoje footer não tem transitions, mas mantemos o block pra futuro (sticky
|
|
63
|
-
// shadow, scroll-shrink) — quando adicionar, já está coberto.
|
|
64
|
-
@media (prefers-reduced-motion: reduce) {
|
|
65
|
-
.matcha-footer {
|
|
66
|
-
transition: none !important;
|
|
67
|
-
animation: none !important;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ── Print ──────────────────────────────────────────────────────────────────
|
|
72
|
-
// Convenção DS: chrome (header/footer) some em impressão, conteúdo full-page.
|
|
73
|
-
@media print {
|
|
74
|
-
.matcha-footer {
|
|
75
|
-
display: none;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// ── Responsive ──────────────────────────────────────────────────────────────
|
|
80
|
-
|
|
81
|
-
@include media-breakpoint('xs') {
|
|
82
|
-
.matcha-footer {
|
|
83
|
-
// Figma DSV3 Mobile: h 24, padding 6/16. Gap reduzido em mobile.
|
|
84
|
-
min-block-size: 24px;
|
|
85
|
-
padding-block: var(--matcha-space-075, 6px);
|
|
86
|
-
padding-inline: var(--matcha-space-200, 16px);
|
|
87
|
-
margin-block-start: var(--matcha-footer-gap-block, var(--matcha-footer-gap, var(--matcha-space-200, 16px)));
|
|
88
|
-
margin-inline: var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-200, 16px)));
|
|
89
|
-
width: max(0px, calc(100% - 2 * var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-200, 16px)))));
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
@use "../abstracts/media-breakpoint" as *;
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
|
|
4
|
+
// =============================================================================
|
|
5
|
+
// matcha-footer.scss — App footer bar
|
|
6
|
+
// 1:1 com Figma DSV3 matcha/footer (nodeId 15930:27)
|
|
7
|
+
// • Default · w fluida · h 28 · padding 8/16
|
|
8
|
+
// • Expanded · w fluida · h 28 · padding 8/16
|
|
9
|
+
// • Mobile · w fluida · h 24 · padding 6/16
|
|
10
|
+
// • bg surface/card · border-top hairline surface/border
|
|
11
|
+
// • topLeftRadius/topRightRadius = 8 · bottom = 0
|
|
12
|
+
// • Conteúdo centralizado (brand inchurch via matcha-brand)
|
|
13
|
+
// =============================================================================
|
|
14
|
+
|
|
15
|
+
@mixin matcha-footer-theme($theme) {
|
|
16
|
+
|
|
17
|
+
.matcha-footer {
|
|
18
|
+
background: var(--matcha-color-surface-card);
|
|
19
|
+
border-top: var(--matcha-border-hairline, 1px) solid var(--matcha-color-surface-border);
|
|
20
|
+
color: var(--matcha-color-text-label);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.matcha-footer {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
position: relative;
|
|
30
|
+
z-index: 1;
|
|
31
|
+
// Gap default — footer nunca colado no conteúdo nem nas bordas.
|
|
32
|
+
// Tokens: --matcha-footer-gap-block (top) e --matcha-footer-gap-inline (laterais).
|
|
33
|
+
// Fallback unificado --matcha-footer-gap controla os 3 simultaneamente.
|
|
34
|
+
margin-block-start: var(--matcha-footer-gap-block, var(--matcha-footer-gap, var(--matcha-space-300, 24px)));
|
|
35
|
+
margin-inline: var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-300, 24px)));
|
|
36
|
+
// max(0, ...) protege de width negativo se container <= 2 * gap-inline.
|
|
37
|
+
width: max(0px, calc(100% - 2 * var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-300, 24px)))));
|
|
38
|
+
// Figma DSV3 Default/Expanded: h 28, padding 8/16. Logical props pra RTL.
|
|
39
|
+
min-block-size: var(--matcha-footer-height, 28px);
|
|
40
|
+
padding-block: var(--matcha-space-100, 8px);
|
|
41
|
+
padding-inline: var(--matcha-space-200, 16px);
|
|
42
|
+
// Top corners arredondados (Figma DSV3 topLeftRadius/topRightRadius = 8).
|
|
43
|
+
border-start-start-radius: var(--matcha-radius-lg, 8px);
|
|
44
|
+
border-start-end-radius: var(--matcha-radius-lg, 8px);
|
|
45
|
+
border-end-start-radius: 0;
|
|
46
|
+
border-end-end-radius: 0;
|
|
47
|
+
font-family: var(--matcha-font-family);
|
|
48
|
+
font-size: var(--matcha-text-body-sm, 12px);
|
|
49
|
+
line-height: var(--matcha-leading-body-sm, 16px);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// ── Forced colors (Windows High Contrast) ──────────────────────────────────
|
|
53
|
+
// Border hairline com surface/border (12% opacidade) pode sumir em high-contrast.
|
|
54
|
+
// CanvasText é o token system semantic — sempre visível.
|
|
55
|
+
@media (forced-colors: active) {
|
|
56
|
+
.matcha-footer {
|
|
57
|
+
border-top: 1px solid CanvasText;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// ── Reduced motion (defensivo) ──────────────────────────────────────────────
|
|
62
|
+
// Hoje footer não tem transitions, mas mantemos o block pra futuro (sticky
|
|
63
|
+
// shadow, scroll-shrink) — quando adicionar, já está coberto.
|
|
64
|
+
@media (prefers-reduced-motion: reduce) {
|
|
65
|
+
.matcha-footer {
|
|
66
|
+
transition: none !important;
|
|
67
|
+
animation: none !important;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ── Print ──────────────────────────────────────────────────────────────────
|
|
72
|
+
// Convenção DS: chrome (header/footer) some em impressão, conteúdo full-page.
|
|
73
|
+
@media print {
|
|
74
|
+
.matcha-footer {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// ── Responsive ──────────────────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
@include media-breakpoint('xs') {
|
|
82
|
+
.matcha-footer {
|
|
83
|
+
// Figma DSV3 Mobile: h 24, padding 6/16. Gap reduzido em mobile.
|
|
84
|
+
min-block-size: 24px;
|
|
85
|
+
padding-block: var(--matcha-space-075, 6px);
|
|
86
|
+
padding-inline: var(--matcha-space-200, 16px);
|
|
87
|
+
margin-block-start: var(--matcha-footer-gap-block, var(--matcha-footer-gap, var(--matcha-space-200, 16px)));
|
|
88
|
+
margin-inline: var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-200, 16px)));
|
|
89
|
+
width: max(0px, calc(100% - 2 * var(--matcha-footer-gap-inline, var(--matcha-footer-gap, var(--matcha-space-200, 16px)))));
|
|
90
|
+
}
|
|
91
|
+
}
|