@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,210 +1,210 @@
|
|
|
1
|
-
@use "../abstracts/media-breakpoint" as *;
|
|
2
|
-
@use "../abstracts/functions" as *;
|
|
3
|
-
@use "../tokens/breakpoints-tokens" as *;
|
|
4
|
-
@use "sass:map";
|
|
5
|
-
|
|
6
|
-
// =============================================================================
|
|
7
|
-
// matcha-modal.scss — Modal dialog system (overlay, backdrop, sizes)
|
|
8
|
-
// =============================================================================
|
|
9
|
-
|
|
10
|
-
// ── Size generator ──────────────────────────────────────────────────────────
|
|
11
|
-
|
|
12
|
-
@mixin generate-matcha-modal-sizes-classes($helper-breakpoints) {
|
|
13
|
-
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
14
|
-
@include media-breakpoint($materialBreakpoint) {
|
|
15
|
-
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
16
|
-
|
|
17
|
-
&[size#{$infix}="tiny"] .matcha-modal {
|
|
18
|
-
width: 100%;
|
|
19
|
-
max-width: px-to-rem(320px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
&[size#{$infix}="small"] .matcha-modal {
|
|
23
|
-
width: 100%;
|
|
24
|
-
max-width: px-to-rem(400px);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
&[size#{$infix}="medium"] .matcha-modal {
|
|
28
|
-
width: 100%;
|
|
29
|
-
max-width: px-to-rem(480px);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&[size#{$infix}="large"] .matcha-modal {
|
|
33
|
-
width: 100%;
|
|
34
|
-
max-width: px-to-rem(560px);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&[size#{$infix}="huge"] .matcha-modal {
|
|
38
|
-
width: 100%;
|
|
39
|
-
max-width: px-to-rem(640px);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// ── Overlay container ───────────────────────────────────────────────────────
|
|
46
|
-
|
|
47
|
-
.matcha-overlay-container {
|
|
48
|
-
position: fixed;
|
|
49
|
-
inset: 0;
|
|
50
|
-
z-index: 1000;
|
|
51
|
-
pointer-events: none;
|
|
52
|
-
|
|
53
|
-
& > * {
|
|
54
|
-
pointer-events: auto;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Dim previous modals when stacking
|
|
58
|
-
& > *:not(:last-child) {
|
|
59
|
-
opacity: 0.1;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// ── Animations ──────────────────────────────────────────────────────────────
|
|
64
|
-
|
|
65
|
-
@keyframes matcha-modal-backdrop-in {
|
|
66
|
-
from { opacity: 0; }
|
|
67
|
-
to { opacity: 1; }
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@keyframes matcha-modal-backdrop-out {
|
|
71
|
-
from { opacity: 1; }
|
|
72
|
-
to { opacity: 0; }
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
// Enter: scale 0.96 + translate -4 + fade (Material 3 emphasized motion).
|
|
76
|
-
// Mais sutil que 0.95/-8 — menos jumpy, mais "presença suave".
|
|
77
|
-
@keyframes matcha-modal-in {
|
|
78
|
-
from { opacity: 0; transform: scale(0.96) translateY(-4px); }
|
|
79
|
-
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Exit: assimétrico — sai mais rápido que entra (180ms vs 200ms).
|
|
83
|
-
@keyframes matcha-modal-out {
|
|
84
|
-
from { opacity: 1; transform: scale(1) translateY(0); }
|
|
85
|
-
to { opacity: 0; transform: scale(0.96) translateY(-4px); }
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
@media (prefers-reduced-motion: reduce) {
|
|
89
|
-
.matcha-modal-backdrop,
|
|
90
|
-
.matcha-modal,
|
|
91
|
-
matcha-modal {
|
|
92
|
-
animation: none !important;
|
|
93
|
-
transition: none !important;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// =============================================================================
|
|
98
|
-
// Theme mixin
|
|
99
|
-
// =============================================================================
|
|
100
|
-
|
|
101
|
-
@mixin matcha-modal-theme($theme) {
|
|
102
|
-
|
|
103
|
-
// ── Host element ──
|
|
104
|
-
matcha-modal {
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
position: fixed;
|
|
109
|
-
inset: 0;
|
|
110
|
-
z-index: 999;
|
|
111
|
-
|
|
112
|
-
@include generate-matcha-modal-sizes-classes($helper-breakpoints);
|
|
113
|
-
|
|
114
|
-
// Exit animation (added by service before destroy) — accelerated 180ms.
|
|
115
|
-
&.matcha-modal--closing {
|
|
116
|
-
.matcha-modal {
|
|
117
|
-
animation: matcha-modal-out 180ms var(--matcha-easing-accelerated, cubic-bezier(0.4, 0, 1, 1)) forwards;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
// ── Backdrop ──
|
|
123
|
-
.matcha-modal-backdrop {
|
|
124
|
-
position: fixed;
|
|
125
|
-
inset: 0;
|
|
126
|
-
z-index: 998;
|
|
127
|
-
cursor: pointer;
|
|
128
|
-
// Figma matcha/overlay Type=Modal: scrim 50% + blur 6px
|
|
129
|
-
background: var(--matcha-scrim-modal, rgba(0, 0, 0, 0.5));
|
|
130
|
-
backdrop-filter: blur(var(--matcha-scrim-modal-blur, 6px));
|
|
131
|
-
animation: matcha-modal-backdrop-in var(--matcha-duration-normal, 200ms) ease-out;
|
|
132
|
-
|
|
133
|
-
&.matcha-modal-backdrop--closing {
|
|
134
|
-
animation: matcha-modal-backdrop-out 150ms ease-in forwards;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// ── Modal card (Figma DSV3 1:1) ──
|
|
139
|
-
// bg surface/card · radius 16 · shadow 8r@4y + 32r@12y · sem border.
|
|
140
|
-
.matcha-modal {
|
|
141
|
-
position: relative;
|
|
142
|
-
z-index: 999;
|
|
143
|
-
display: flex;
|
|
144
|
-
flex-direction: column;
|
|
145
|
-
// Perf: contain layout/paint pra browser não recalcular reflow da page atrás.
|
|
146
|
-
contain: layout paint;
|
|
147
|
-
border-radius: var(--matcha-radius-xl, 16px);
|
|
148
|
-
// Floating overlay sobre scrim — usa surface-card-strong (pure white
|
|
149
|
-
// no light, lifted dark) pra máximo destaque. Cards inline usam o card
|
|
150
|
-
// soft default (#f8faf8) mas modal precisa pop.
|
|
151
|
-
background-color: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
152
|
-
color: var(--matcha-color-fg);
|
|
153
|
-
overflow: hidden;
|
|
154
|
-
animation: matcha-modal-in var(--matcha-duration-fast, 200ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
155
|
-
|
|
156
|
-
// Figma DSV3 1:1: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.12)
|
|
157
|
-
box-shadow:
|
|
158
|
-
0 4px 8px rgba(0, 0, 0, 0.06),
|
|
159
|
-
0 12px 32px rgba(0, 0, 0, 0.12);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// ── Section coloring (layout vive nos component SCSS — single source of truth) ──
|
|
163
|
-
// Theme só pinta: bg dos slots herda surface-card-strong do parent .matcha-modal,
|
|
164
|
-
// texto pega text-primary, dividers usam surface-border.
|
|
165
|
-
.matcha-modal-header__title {
|
|
166
|
-
color: var(--matcha-color-text-primary);
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
.matcha-modal-content {
|
|
170
|
-
color: var(--matcha-color-text-primary);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// ── Focus ring on modal ──
|
|
174
|
-
.matcha-modal:focus-visible {
|
|
175
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
176
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// ── Forced colors (Windows High Contrast) ──
|
|
181
|
-
// rgba/border hairline pode sumir; CanvasText/Canvas são system tokens visíveis.
|
|
182
|
-
@media (forced-colors: active) {
|
|
183
|
-
.matcha-modal {
|
|
184
|
-
border: 1px solid CanvasText;
|
|
185
|
-
background-color: Canvas !important;
|
|
186
|
-
}
|
|
187
|
-
.matcha-modal-backdrop {
|
|
188
|
-
background: rgba(0, 0, 0, 0.7) !important;
|
|
189
|
-
backdrop-filter: none !important;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
// ── Reduced transparency (acessibilidade visual) ──
|
|
194
|
-
// Usuários com dificuldade de ler texto sobre blur preferem solid bg.
|
|
195
|
-
@media (prefers-reduced-transparency: reduce) {
|
|
196
|
-
.matcha-modal-backdrop {
|
|
197
|
-
background: rgba(0, 0, 0, 0.85) !important;
|
|
198
|
-
backdrop-filter: none !important;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// ── Print ──
|
|
203
|
-
// Convenção DSV3: chrome flutuante (modal/drawer/tooltip) some em impressão.
|
|
204
|
-
@media print {
|
|
205
|
-
.matcha-overlay-container,
|
|
206
|
-
.matcha-modal-backdrop,
|
|
207
|
-
matcha-modal {
|
|
208
|
-
display: none !important;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
1
|
+
@use "../abstracts/media-breakpoint" as *;
|
|
2
|
+
@use "../abstracts/functions" as *;
|
|
3
|
+
@use "../tokens/breakpoints-tokens" as *;
|
|
4
|
+
@use "sass:map";
|
|
5
|
+
|
|
6
|
+
// =============================================================================
|
|
7
|
+
// matcha-modal.scss — Modal dialog system (overlay, backdrop, sizes)
|
|
8
|
+
// =============================================================================
|
|
9
|
+
|
|
10
|
+
// ── Size generator ──────────────────────────────────────────────────────────
|
|
11
|
+
|
|
12
|
+
@mixin generate-matcha-modal-sizes-classes($helper-breakpoints) {
|
|
13
|
+
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
14
|
+
@include media-breakpoint($materialBreakpoint) {
|
|
15
|
+
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
16
|
+
|
|
17
|
+
&[size#{$infix}="tiny"] .matcha-modal {
|
|
18
|
+
width: 100%;
|
|
19
|
+
max-width: px-to-rem(320px);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&[size#{$infix}="small"] .matcha-modal {
|
|
23
|
+
width: 100%;
|
|
24
|
+
max-width: px-to-rem(400px);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[size#{$infix}="medium"] .matcha-modal {
|
|
28
|
+
width: 100%;
|
|
29
|
+
max-width: px-to-rem(480px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[size#{$infix}="large"] .matcha-modal {
|
|
33
|
+
width: 100%;
|
|
34
|
+
max-width: px-to-rem(560px);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[size#{$infix}="huge"] .matcha-modal {
|
|
38
|
+
width: 100%;
|
|
39
|
+
max-width: px-to-rem(640px);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// ── Overlay container ───────────────────────────────────────────────────────
|
|
46
|
+
|
|
47
|
+
.matcha-overlay-container {
|
|
48
|
+
position: fixed;
|
|
49
|
+
inset: 0;
|
|
50
|
+
z-index: 1000;
|
|
51
|
+
pointer-events: none;
|
|
52
|
+
|
|
53
|
+
& > * {
|
|
54
|
+
pointer-events: auto;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Dim previous modals when stacking
|
|
58
|
+
& > *:not(:last-child) {
|
|
59
|
+
opacity: 0.1;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// ── Animations ──────────────────────────────────────────────────────────────
|
|
64
|
+
|
|
65
|
+
@keyframes matcha-modal-backdrop-in {
|
|
66
|
+
from { opacity: 0; }
|
|
67
|
+
to { opacity: 1; }
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@keyframes matcha-modal-backdrop-out {
|
|
71
|
+
from { opacity: 1; }
|
|
72
|
+
to { opacity: 0; }
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// Enter: scale 0.96 + translate -4 + fade (Material 3 emphasized motion).
|
|
76
|
+
// Mais sutil que 0.95/-8 — menos jumpy, mais "presença suave".
|
|
77
|
+
@keyframes matcha-modal-in {
|
|
78
|
+
from { opacity: 0; transform: scale(0.96) translateY(-4px); }
|
|
79
|
+
to { opacity: 1; transform: scale(1) translateY(0); }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Exit: assimétrico — sai mais rápido que entra (180ms vs 200ms).
|
|
83
|
+
@keyframes matcha-modal-out {
|
|
84
|
+
from { opacity: 1; transform: scale(1) translateY(0); }
|
|
85
|
+
to { opacity: 0; transform: scale(0.96) translateY(-4px); }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@media (prefers-reduced-motion: reduce) {
|
|
89
|
+
.matcha-modal-backdrop,
|
|
90
|
+
.matcha-modal,
|
|
91
|
+
matcha-modal {
|
|
92
|
+
animation: none !important;
|
|
93
|
+
transition: none !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// =============================================================================
|
|
98
|
+
// Theme mixin
|
|
99
|
+
// =============================================================================
|
|
100
|
+
|
|
101
|
+
@mixin matcha-modal-theme($theme) {
|
|
102
|
+
|
|
103
|
+
// ── Host element ──
|
|
104
|
+
matcha-modal {
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
justify-content: center;
|
|
108
|
+
position: fixed;
|
|
109
|
+
inset: 0;
|
|
110
|
+
z-index: 999;
|
|
111
|
+
|
|
112
|
+
@include generate-matcha-modal-sizes-classes($helper-breakpoints);
|
|
113
|
+
|
|
114
|
+
// Exit animation (added by service before destroy) — accelerated 180ms.
|
|
115
|
+
&.matcha-modal--closing {
|
|
116
|
+
.matcha-modal {
|
|
117
|
+
animation: matcha-modal-out 180ms var(--matcha-easing-accelerated, cubic-bezier(0.4, 0, 1, 1)) forwards;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// ── Backdrop ──
|
|
123
|
+
.matcha-modal-backdrop {
|
|
124
|
+
position: fixed;
|
|
125
|
+
inset: 0;
|
|
126
|
+
z-index: 998;
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
// Figma matcha/overlay Type=Modal: scrim 50% + blur 6px
|
|
129
|
+
background: var(--matcha-scrim-modal, rgba(0, 0, 0, 0.5));
|
|
130
|
+
backdrop-filter: blur(var(--matcha-scrim-modal-blur, 6px));
|
|
131
|
+
animation: matcha-modal-backdrop-in var(--matcha-duration-normal, 200ms) ease-out;
|
|
132
|
+
|
|
133
|
+
&.matcha-modal-backdrop--closing {
|
|
134
|
+
animation: matcha-modal-backdrop-out 150ms ease-in forwards;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// ── Modal card (Figma DSV3 1:1) ──
|
|
139
|
+
// bg surface/card · radius 16 · shadow 8r@4y + 32r@12y · sem border.
|
|
140
|
+
.matcha-modal {
|
|
141
|
+
position: relative;
|
|
142
|
+
z-index: 999;
|
|
143
|
+
display: flex;
|
|
144
|
+
flex-direction: column;
|
|
145
|
+
// Perf: contain layout/paint pra browser não recalcular reflow da page atrás.
|
|
146
|
+
contain: layout paint;
|
|
147
|
+
border-radius: var(--matcha-radius-xl, 16px);
|
|
148
|
+
// Floating overlay sobre scrim — usa surface-card-strong (pure white
|
|
149
|
+
// no light, lifted dark) pra máximo destaque. Cards inline usam o card
|
|
150
|
+
// soft default (#f8faf8) mas modal precisa pop.
|
|
151
|
+
background-color: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
152
|
+
color: var(--matcha-color-fg);
|
|
153
|
+
overflow: hidden;
|
|
154
|
+
animation: matcha-modal-in var(--matcha-duration-fast, 200ms) var(--matcha-easing-emphasized, cubic-bezier(0.2, 0, 0, 1));
|
|
155
|
+
|
|
156
|
+
// Figma DSV3 1:1: 0 4px 8px rgba(0,0,0,0.06), 0 12px 32px rgba(0,0,0,0.12)
|
|
157
|
+
box-shadow:
|
|
158
|
+
0 4px 8px rgba(0, 0, 0, 0.06),
|
|
159
|
+
0 12px 32px rgba(0, 0, 0, 0.12);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// ── Section coloring (layout vive nos component SCSS — single source of truth) ──
|
|
163
|
+
// Theme só pinta: bg dos slots herda surface-card-strong do parent .matcha-modal,
|
|
164
|
+
// texto pega text-primary, dividers usam surface-border.
|
|
165
|
+
.matcha-modal-header__title {
|
|
166
|
+
color: var(--matcha-color-text-primary);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.matcha-modal-content {
|
|
170
|
+
color: var(--matcha-color-text-primary);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
// ── Focus ring on modal ──
|
|
174
|
+
.matcha-modal:focus-visible {
|
|
175
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
176
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// ── Forced colors (Windows High Contrast) ──
|
|
181
|
+
// rgba/border hairline pode sumir; CanvasText/Canvas são system tokens visíveis.
|
|
182
|
+
@media (forced-colors: active) {
|
|
183
|
+
.matcha-modal {
|
|
184
|
+
border: 1px solid CanvasText;
|
|
185
|
+
background-color: Canvas !important;
|
|
186
|
+
}
|
|
187
|
+
.matcha-modal-backdrop {
|
|
188
|
+
background: rgba(0, 0, 0, 0.7) !important;
|
|
189
|
+
backdrop-filter: none !important;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// ── Reduced transparency (acessibilidade visual) ──
|
|
194
|
+
// Usuários com dificuldade de ler texto sobre blur preferem solid bg.
|
|
195
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
196
|
+
.matcha-modal-backdrop {
|
|
197
|
+
background: rgba(0, 0, 0, 0.85) !important;
|
|
198
|
+
backdrop-filter: none !important;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// ── Print ──
|
|
203
|
+
// Convenção DSV3: chrome flutuante (modal/drawer/tooltip) some em impressão.
|
|
204
|
+
@media print {
|
|
205
|
+
.matcha-overlay-container,
|
|
206
|
+
.matcha-modal-backdrop,
|
|
207
|
+
matcha-modal {
|
|
208
|
+
display: none !important;
|
|
209
|
+
}
|
|
210
|
+
}
|