@inchurch/matcha-theme 20.277.0 → 21.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 +86 -265
- package/abstracts/_elevation.scss +8 -8
- package/abstracts/_functions.scss +9 -911
- package/base/_reset.scss +40 -46
- package/components/matcha-button-toggle.scss +22 -46
- package/components/matcha-chip.scss +18 -23
- package/components/matcha-file-uploader.scss +21 -13
- package/components/matcha-page-builder.scss +13 -2
- package/components/matcha-progress-bar.scss +2 -2
- package/components/matcha-select-multiple.scss +2 -2
- package/components/matcha-slide-toggle.scss +1 -1
- package/components/matcha-slider.scss +1 -1
- package/components/matcha-spinner.scss +1 -1
- package/components/matcha-table.scss +2 -2
- package/components/matcha-tabs.scss +19 -42
- package/components/matcha-tree-view.scss +23 -0
- package/layout/matcha-page-layout.scss +6 -6
- package/main.scss +25 -23
- package/package.json +1 -1
- package/tokens/_color-tokens.scss +257 -1147
- package/tokens/_emit-tokens.scss +334 -0
- package/tokens/_material-palette.scss +1150 -0
- package/tokens/_primitives.scss +16 -0
- package/tokens/_static-tokens.scss +137 -0
- package/vendors/charts.scss +6 -9
- package/tokens/_css-custom-properties.scss +0 -704
- package/vendors/angular-editor.scss +0 -56
- package/vendors/angular-material-fixes.scss +0 -297
- package/vendors/calendar.scss +0 -2880
- package/vendors/ng5-slider.scss +0 -56
- package/vendors/ngx-material-timepicker.scss +0 -50
package/base/_reset.scss
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
@mixin base-body-reset-theme($theme) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
@mixin base-body-reset-theme($theme: ()) {
|
|
2
|
+
// theme-agnóstico em valor (var); fica per-classe de tema pelo & (pinta o
|
|
3
|
+
// elemento que carrega a classe). $theme vestigial (default ()).
|
|
5
4
|
& {
|
|
6
5
|
*, *:before, *:after {
|
|
7
6
|
box-sizing: border-box;
|
|
8
7
|
}
|
|
9
|
-
color:
|
|
10
|
-
background:
|
|
8
|
+
color: var(--matcha-color-fg);
|
|
9
|
+
background: var(--matcha-color-surface-bg);
|
|
11
10
|
}
|
|
12
11
|
}
|
|
13
12
|
|
|
@@ -20,60 +19,55 @@ How to use
|
|
|
20
19
|
// Typography [Theme]
|
|
21
20
|
// -----------------------------------------------------------------------------------------------------
|
|
22
21
|
@mixin base-typography-theme($theme) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
$warn: map-get($theme, warn);
|
|
26
|
-
$primary: map-get($theme, primary);
|
|
27
|
-
$background: map-get($theme, background);
|
|
28
|
-
$foreground: map-get($theme, foreground);
|
|
22
|
+
// theme-agnóstico: tudo via var(--matcha-color-*) (runtime). $theme mantido só
|
|
23
|
+
// na assinatura por retrocompat dos call sites.
|
|
29
24
|
|
|
30
25
|
a {
|
|
31
|
-
color:
|
|
26
|
+
color: var(--matcha-color-accent);
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
pre > code{
|
|
35
|
-
color:
|
|
30
|
+
color: var(--matcha-color-info);
|
|
36
31
|
}
|
|
37
32
|
code {
|
|
38
33
|
&:not(.highlight) {
|
|
39
|
-
|
|
34
|
+
// Token em runtime (não getter compile-time): resolve no escopo de tema
|
|
35
|
+
// MAIS PRÓXIMO, então temas aninhados (ex.: preview light dentro de body
|
|
36
|
+
// dark) não colidem mais — antes geravam tarja escura sobre card claro.
|
|
37
|
+
// Dark é value-preserving (#1c1f26); light adota o surface-card do DSV3.
|
|
38
|
+
background-color: var(--matcha-color-surface-card);
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
.changelog {
|
|
44
43
|
.entry {
|
|
45
|
-
background-color:
|
|
44
|
+
background-color: var(--matcha-color-surface-card);
|
|
46
45
|
}
|
|
47
46
|
}
|
|
48
47
|
|
|
49
48
|
.text-boxed {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
color: rgba(255, 255, 255, 0.54);
|
|
53
|
-
} @else {
|
|
54
|
-
background-color: rgba(0, 0, 0, 0.12);
|
|
55
|
-
color: rgba(0, 0, 0, 0.54);
|
|
56
|
-
}
|
|
49
|
+
background-color: var(--matcha-color-text-boxed-bg);
|
|
50
|
+
color: var(--matcha-color-text-boxed-fg);
|
|
57
51
|
}
|
|
58
52
|
|
|
59
53
|
.text-primary {
|
|
60
|
-
color:
|
|
54
|
+
color: var(--matcha-color-primary) !important;
|
|
61
55
|
}
|
|
62
56
|
|
|
63
57
|
.text-warn {
|
|
64
|
-
color:
|
|
58
|
+
color: var(--matcha-color-warn) !important;
|
|
65
59
|
}
|
|
66
60
|
|
|
67
61
|
.text-label {
|
|
68
|
-
color:
|
|
62
|
+
color: var(--matcha-color-text-label) !important;
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
.text-placeholder {
|
|
72
|
-
color:
|
|
66
|
+
color: var(--matcha-color-text-placeholder) !important;
|
|
73
67
|
}
|
|
74
68
|
|
|
75
69
|
.text-basic {
|
|
76
|
-
color:
|
|
70
|
+
color: var(--matcha-color-fg) !important;
|
|
77
71
|
}
|
|
78
72
|
|
|
79
73
|
// Changelog
|
|
@@ -82,25 +76,25 @@ How to use
|
|
|
82
76
|
.groups {
|
|
83
77
|
.breaking-changes {
|
|
84
78
|
.title {
|
|
85
|
-
background:
|
|
79
|
+
background: var(--matcha-color-danger);
|
|
86
80
|
}
|
|
87
81
|
}
|
|
88
82
|
|
|
89
83
|
.new {
|
|
90
84
|
.title {
|
|
91
|
-
background:
|
|
85
|
+
background: var(--matcha-color-success);
|
|
92
86
|
}
|
|
93
87
|
}
|
|
94
88
|
|
|
95
89
|
.improved {
|
|
96
90
|
.title {
|
|
97
|
-
background:
|
|
91
|
+
background: var(--matcha-prim-purple-500);
|
|
98
92
|
}
|
|
99
93
|
}
|
|
100
94
|
|
|
101
95
|
.fixed {
|
|
102
96
|
.title {
|
|
103
|
-
background:
|
|
97
|
+
background: var(--matcha-color-info);
|
|
104
98
|
}
|
|
105
99
|
}
|
|
106
100
|
}
|
|
@@ -110,22 +104,22 @@ How to use
|
|
|
110
104
|
// Code
|
|
111
105
|
code {
|
|
112
106
|
&:not(.highlight) {
|
|
113
|
-
color:
|
|
107
|
+
color: var(--matcha-color-info);
|
|
114
108
|
}
|
|
115
109
|
}
|
|
116
110
|
|
|
117
111
|
// Mark
|
|
118
112
|
mark {
|
|
119
|
-
background:
|
|
113
|
+
background: var(--matcha-color-warn);
|
|
120
114
|
}
|
|
121
115
|
|
|
122
116
|
// Message boxes
|
|
123
117
|
.matcha-message-box,
|
|
124
118
|
.matcha-msg-box,
|
|
125
119
|
.message-box {
|
|
126
|
-
background-color:
|
|
127
|
-
border-left-color:
|
|
128
|
-
color:
|
|
120
|
+
background-color: var(--matcha-color-primary-alpha);
|
|
121
|
+
border-left-color: var(--matcha-color-primary);
|
|
122
|
+
color: var(--matcha-color-fg);
|
|
129
123
|
|
|
130
124
|
&.error,
|
|
131
125
|
&.warning,
|
|
@@ -135,31 +129,31 @@ How to use
|
|
|
135
129
|
&--warning,
|
|
136
130
|
&--success,
|
|
137
131
|
&--info {
|
|
138
|
-
color:
|
|
132
|
+
color: var(--matcha-color-fg);
|
|
139
133
|
}
|
|
140
134
|
|
|
141
135
|
&--error,
|
|
142
136
|
&.error {
|
|
143
|
-
background-color:
|
|
144
|
-
border-left-color:
|
|
137
|
+
background-color: var(--matcha-color-danger-alpha);
|
|
138
|
+
border-left-color: var(--matcha-color-danger);
|
|
145
139
|
}
|
|
146
140
|
|
|
147
141
|
&--warning,
|
|
148
142
|
&.warning {
|
|
149
|
-
background-color:
|
|
150
|
-
border-left-color:
|
|
143
|
+
background-color: var(--matcha-color-warn-alpha);
|
|
144
|
+
border-left-color: var(--matcha-color-warn);
|
|
151
145
|
}
|
|
152
146
|
|
|
153
147
|
&--success,
|
|
154
148
|
&.success {
|
|
155
|
-
background-color:
|
|
156
|
-
border-left-color:
|
|
149
|
+
background-color: var(--matcha-color-success-alpha);
|
|
150
|
+
border-left-color: var(--matcha-color-success);
|
|
157
151
|
}
|
|
158
152
|
|
|
159
153
|
&--info,
|
|
160
154
|
&.info {
|
|
161
|
-
background-color:
|
|
162
|
-
border-left-color:
|
|
155
|
+
background-color: var(--matcha-color-info-alpha);
|
|
156
|
+
border-left-color: var(--matcha-color-info);
|
|
163
157
|
}
|
|
164
158
|
}
|
|
165
159
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
&:not([inactivetype]),
|
|
4
4
|
&[inactivetype="solid"] {
|
|
5
|
-
@each $colorName
|
|
5
|
+
@each $colorName in $color-functions {
|
|
6
6
|
&[inactivecolor="#{'' + $colorName}"] {
|
|
7
7
|
.button-group {
|
|
8
8
|
|
|
9
9
|
button[matcha-button],
|
|
10
10
|
a[matcha-button] {
|
|
11
11
|
&:not([active]) {
|
|
12
|
-
background:
|
|
13
|
-
color:
|
|
12
|
+
background: var(--matcha-color-#{$colorName});
|
|
13
|
+
color: var(--matcha-color-#{$colorName}-contrast);
|
|
14
14
|
box-shadow: 0 0 0 0px inset;
|
|
15
15
|
|
|
16
16
|
.ripple {
|
|
17
|
-
background:
|
|
17
|
+
background: var(--matcha-color-#{$colorName}-contrast-alpha); // ok: legacy ripple color token
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
@mixin _colorize-inactive-type-basic-button-toggle-item($theme, $color-functions) {
|
|
42
42
|
&[inactivetype="basic"] {
|
|
43
|
-
@each $colorName
|
|
43
|
+
@each $colorName in $color-functions {
|
|
44
44
|
&[inactivecolor="#{'' + $colorName}"] {
|
|
45
45
|
.button-group {
|
|
46
46
|
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
a[matcha-button] {
|
|
49
49
|
&:not([active]) {
|
|
50
50
|
background: var(--matcha-color-surface);
|
|
51
|
-
color:
|
|
51
|
+
color: var(--matcha-color-#{$colorName});
|
|
52
52
|
box-shadow: 0 0 0 0px inset;
|
|
53
53
|
|
|
54
54
|
.ripple {
|
|
55
|
-
background:
|
|
55
|
+
background: var(--matcha-color-#{$colorName}-alpha); // ok: legacy ripple color token
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
//disabled false
|
|
83
83
|
&:not([disabled="true"]) {
|
|
84
|
-
@each $colorName
|
|
84
|
+
@each $colorName in $color-functions {
|
|
85
85
|
&[inactivecolor="#{'' + $colorName}"] {
|
|
86
86
|
.button-group {
|
|
87
87
|
|
|
@@ -90,12 +90,12 @@
|
|
|
90
90
|
|
|
91
91
|
//botão não ativo
|
|
92
92
|
&:not([active]) {
|
|
93
|
-
color:
|
|
93
|
+
color: var(--matcha-color-#{$colorName});
|
|
94
94
|
background: transparent;
|
|
95
|
-
box-shadow: 0 0 0 2px
|
|
95
|
+
box-shadow: 0 0 0 2px var(--matcha-color-#{$colorName}) inset;
|
|
96
96
|
|
|
97
97
|
.ripple {
|
|
98
|
-
background:
|
|
98
|
+
background: var(--matcha-color-#{$colorName}-alpha); // ok: legacy ripple color token
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -125,19 +125,19 @@
|
|
|
125
125
|
|
|
126
126
|
@mixin _colorize-inactive-type-alpha-button-toggle-item($theme, $color-functions) {
|
|
127
127
|
&[inactivetype="alpha"] {
|
|
128
|
-
@each $colorName
|
|
128
|
+
@each $colorName in $color-functions {
|
|
129
129
|
&[inactivecolor="#{'' + $colorName}"] {
|
|
130
130
|
.button-group {
|
|
131
131
|
|
|
132
132
|
button[matcha-button],
|
|
133
133
|
a[matcha-button] {
|
|
134
134
|
&:not([active]) {
|
|
135
|
-
color:
|
|
136
|
-
background:
|
|
135
|
+
color: var(--matcha-color-#{$colorName});
|
|
136
|
+
background: var(--matcha-color-#{$colorName}-alpha);
|
|
137
137
|
box-shadow: 0 0 0 0px;
|
|
138
138
|
|
|
139
139
|
.ripple {
|
|
140
|
-
background:
|
|
140
|
+
background: var(--matcha-color-#{$colorName}-contrast-alpha) // ok: legacy ripple color token
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
@mixin _colorize-inactive-type-link-button-toggle-item($theme, $color-functions) {
|
|
167
167
|
|
|
168
168
|
&[inactivetype="link"] {
|
|
169
|
-
@each $colorName
|
|
169
|
+
@each $colorName in $color-functions {
|
|
170
170
|
&[inactivecolor="#{'' + $colorName}"] {
|
|
171
171
|
.button-group {
|
|
172
172
|
|
|
@@ -175,11 +175,11 @@
|
|
|
175
175
|
&:not([active]) {
|
|
176
176
|
|
|
177
177
|
background: transparent;
|
|
178
|
-
color:
|
|
178
|
+
color: var(--matcha-color-#{$colorName});
|
|
179
179
|
box-shadow: 0 0 0 0px;
|
|
180
180
|
|
|
181
181
|
.ripple {
|
|
182
|
-
background:
|
|
182
|
+
background: var(--matcha-color-#{$colorName}-alpha); // ok: legacy ripple color token
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
}
|
|
@@ -210,34 +210,10 @@
|
|
|
210
210
|
|
|
211
211
|
|
|
212
212
|
@mixin matcha-button-toggle($theme) {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
deep-purple: getDeepPurple,
|
|
218
|
-
indigo: getIndigo,
|
|
219
|
-
blue: getBlue,
|
|
220
|
-
light-blue: getLightBlue,
|
|
221
|
-
cyan: getCyan,
|
|
222
|
-
teal: getTeal,
|
|
223
|
-
green: getGreen,
|
|
224
|
-
light-green: getLightGreen,
|
|
225
|
-
lime: getLime,
|
|
226
|
-
yellow: getYellow,
|
|
227
|
-
amber: getAmber,
|
|
228
|
-
orange: getOrange,
|
|
229
|
-
deep-orange: getDeepOrange,
|
|
230
|
-
brown: getBrown,
|
|
231
|
-
grey: getGrey,
|
|
232
|
-
blue-grey: getBlueGrey,
|
|
233
|
-
primary: getPrimary,
|
|
234
|
-
accent: getAccent,
|
|
235
|
-
success: getSuccess,
|
|
236
|
-
warn: getWarn,
|
|
237
|
-
danger: getDanger,
|
|
238
|
-
info: getInfo,
|
|
239
|
-
disabled: getDisabled,
|
|
240
|
-
);
|
|
213
|
+
// Nomes de cor (semânticas + paleta). Cores vêm de var(--matcha-color-*) — sem getRed/$theme.
|
|
214
|
+
$color-functions: "red", "pink", "purple", "deep-purple", "indigo", "blue", "light-blue", "cyan", "teal",
|
|
215
|
+
"green", "light-green", "lime", "yellow", "amber", "orange", "deep-orange", "brown", "grey", "blue-grey",
|
|
216
|
+
"primary", "accent", "success", "warn", "danger", "info", "disabled";
|
|
241
217
|
|
|
242
218
|
matcha-button-toggle {
|
|
243
219
|
display: flex;
|
|
@@ -59,11 +59,14 @@ matcha-chip {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
// ── Selected (On) — bg + border accent, texto
|
|
62
|
+
// ── Selected (On) — bg + border accent, texto contrastante ──
|
|
63
|
+
// accent-text-on é theme-aware (branco no light onde accent=#009400 escuro;
|
|
64
|
+
// preto no dark onde accent=#A8D94E claro) — mesmo token de button/stepper/tabs.
|
|
65
|
+
// accent-contrast (legado, sempre preto) fica só de fallback.
|
|
63
66
|
&[selected] {
|
|
64
67
|
background: var(--matcha-color-accent, #A8D94E);
|
|
65
68
|
border-color: var(--matcha-color-accent, #A8D94E);
|
|
66
|
-
color: var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87));
|
|
69
|
+
color: var(--matcha-color-accent-text-on, var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87)));
|
|
67
70
|
|
|
68
71
|
// On interactive — Hover (overlay rgba(0,0,0,0.2) sobre accent) ──
|
|
69
72
|
&[interactive]:not([disabled]):not(.matcha-chip-disabled):hover {
|
|
@@ -113,7 +116,7 @@ matcha-chip {
|
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
matcha-chip[selected] .matcha-chip-leading {
|
|
116
|
-
color: var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87));
|
|
119
|
+
color: var(--matcha-color-accent-text-on, var(--matcha-color-accent-contrast, rgba(0, 0, 0, 0.87)));
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
matcha-chip[disabled] .matcha-chip-leading,
|
|
@@ -205,38 +208,30 @@ matcha-chip .matcha-chip-remove [class*=" i-matcha-"] {
|
|
|
205
208
|
// ============================================================================
|
|
206
209
|
|
|
207
210
|
@mixin matcha-chip-theme($theme) {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
success: (getSuccess, getSuccessContrast),
|
|
211
|
-
warn: (getWarn, getWarnContrast),
|
|
212
|
-
danger: (getDanger, getDangerContrast),
|
|
213
|
-
info: (getInfo, getInfoContrast),
|
|
214
|
-
);
|
|
211
|
+
// Cores semânticas além de accent — var(--matcha-color-*), sem getters/$theme.
|
|
212
|
+
$chip-colors: primary, success, warn, danger, info;
|
|
215
213
|
|
|
216
214
|
matcha-chip {
|
|
217
|
-
@each $name
|
|
218
|
-
$fn: nth($fns, 1);
|
|
219
|
-
$fnContrast: nth($fns, 2);
|
|
220
|
-
|
|
215
|
+
@each $name in $chip-colors {
|
|
221
216
|
&[color="#{$name}"] {
|
|
222
217
|
// Off na cor: outline + texto na cor (visualmente quente)
|
|
223
|
-
border-color:
|
|
224
|
-
color:
|
|
218
|
+
border-color: var(--matcha-color-#{$name});
|
|
219
|
+
color: var(--matcha-color-#{$name});
|
|
225
220
|
|
|
226
221
|
.matcha-chip-leading {
|
|
227
|
-
color:
|
|
222
|
+
color: var(--matcha-color-#{$name});
|
|
228
223
|
}
|
|
229
224
|
|
|
230
225
|
// Selected na cor: filled
|
|
231
226
|
&[selected],
|
|
232
227
|
// Explicit variant=filled — sem precisar [selected] (status estático)
|
|
233
228
|
&[variant="filled"] {
|
|
234
|
-
background-color:
|
|
235
|
-
border-color:
|
|
236
|
-
color:
|
|
229
|
+
background-color: var(--matcha-color-#{$name});
|
|
230
|
+
border-color: var(--matcha-color-#{$name});
|
|
231
|
+
color: var(--matcha-color-#{$name}-contrast);
|
|
237
232
|
|
|
238
233
|
.matcha-chip-leading {
|
|
239
|
-
color:
|
|
234
|
+
color: var(--matcha-color-#{$name}-contrast);
|
|
240
235
|
}
|
|
241
236
|
}
|
|
242
237
|
|
|
@@ -246,10 +241,10 @@ matcha-chip .matcha-chip-remove [class*=" i-matcha-"] {
|
|
|
246
241
|
&[variant="filled-alpha"] {
|
|
247
242
|
background-color: var(--matcha-color-feedback-#{$name}-alpha, var(--matcha-color-#{$name}-alpha));
|
|
248
243
|
border-color: transparent;
|
|
249
|
-
color:
|
|
244
|
+
color: var(--matcha-color-#{$name});
|
|
250
245
|
|
|
251
246
|
.matcha-chip-leading {
|
|
252
|
-
color:
|
|
247
|
+
color: var(--matcha-color-#{$name});
|
|
253
248
|
}
|
|
254
249
|
}
|
|
255
250
|
}
|
|
@@ -133,14 +133,6 @@
|
|
|
133
133
|
width: 100%;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// Ação secundária (Gabarito, Tirar foto, etc.) — centrada abaixo do box
|
|
137
|
-
.matcha-file-uploader-secondary {
|
|
138
|
-
display: flex;
|
|
139
|
-
justify-content: center;
|
|
140
|
-
|
|
141
|
-
&:empty { display: none; } // sem slot projetado → não ocupa espaço
|
|
142
|
-
}
|
|
143
|
-
|
|
144
136
|
// ── Dropzone box (Estado=Dropzone — Figma 16152:209) — a zona INTEIRA é o alvo
|
|
145
137
|
.matcha-file-uploader-dropzone {
|
|
146
138
|
display: flex;
|
|
@@ -161,6 +153,15 @@
|
|
|
161
153
|
}
|
|
162
154
|
}
|
|
163
155
|
|
|
156
|
+
// layout="card": dropzone vazio compartilha a proporção do card preenchido
|
|
157
|
+
// (aspect-ratio aplicado inline via previewRatio) pra empty e filled terem a
|
|
158
|
+
// MESMA altura lado a lado. Sem isso, vazio é dimensionado por padding/conteúdo
|
|
159
|
+
// e preenchido por aspect-ratio → alturas divergentes.
|
|
160
|
+
.matcha-file-uploader-dropzone--card {
|
|
161
|
+
width: 100%;
|
|
162
|
+
overflow: hidden;
|
|
163
|
+
}
|
|
164
|
+
|
|
164
165
|
// Icon pill (bg interaction/disabled-bg + padding 40h/16v · icon 24×24)
|
|
165
166
|
.matcha-file-uploader-dropzone__icon-pill {
|
|
166
167
|
display: inline-flex;
|
|
@@ -370,7 +371,8 @@
|
|
|
370
371
|
.matcha-file-uploader-card {
|
|
371
372
|
position: relative;
|
|
372
373
|
width: 100%;
|
|
373
|
-
margin-top:
|
|
374
|
+
// SEM margin-top: o card preenchido tem que alinhar o topo com o dropzone
|
|
375
|
+
// vazio quando lado a lado (layout card). margin-top desalinhava em 8px.
|
|
374
376
|
border: var(--matcha-border-hairline, 1px) solid transparent;
|
|
375
377
|
border-radius: var(--matcha-radius-lg, 8px);
|
|
376
378
|
overflow: hidden;
|
|
@@ -390,13 +392,19 @@
|
|
|
390
392
|
right: var(--matcha-space-100, 8px);
|
|
391
393
|
display: flex;
|
|
392
394
|
gap: var(--matcha-space-100, 8px);
|
|
393
|
-
opacity:
|
|
395
|
+
opacity: 1; // persistente — descobrÃvel e operável em touch (canon 20252:2253)
|
|
394
396
|
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
395
397
|
}
|
|
396
398
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
399
|
+
// Em dispositivos com hover, atenua no resting e destaca no hover/foco — mantém
|
|
400
|
+
// a tela limpa sem esconder a affordance onde não há hover (touch/totem).
|
|
401
|
+
@media (hover: hover) {
|
|
402
|
+
.matcha-file-uploader-card__actions { opacity: 0.72; }
|
|
403
|
+
|
|
404
|
+
.matcha-file-uploader-card:hover .matcha-file-uploader-card__actions,
|
|
405
|
+
.matcha-file-uploader-card:focus-within .matcha-file-uploader-card__actions {
|
|
406
|
+
opacity: 1;
|
|
407
|
+
}
|
|
400
408
|
}
|
|
401
409
|
|
|
402
410
|
.matcha-file-uploader-card__action {
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
// =============================================================================
|
|
2
2
|
// matcha-page-builder — Estilos globais para o editor GrapesJS
|
|
3
3
|
// Extraído do index-cdn.html e adaptado como mixin de tema.
|
|
4
|
+
// -----------------------------------------------------------------------------
|
|
5
|
+
// ⚠️ CSS VENDORIZADO (GrapeJS + color-picker Spectrum). A TEMATIZAÇÃO é feita
|
|
6
|
+
// pelo BRIDGE de vars --gjs-* → var(--matcha-color-*) logo abaixo: o GrapeJS
|
|
7
|
+
// re-colore sua chrome por essas vars. Os hex HARDCODED restantes são
|
|
8
|
+
// FUNCIONAIS do vendor e NÃO devem virar token:
|
|
9
|
+
// • Spectrum color-picker (.sp-*, ~L3113-3769): swatches + barra de matiz
|
|
10
|
+
// (linear-gradient #ff0000→#ffff00→… É o arco-íris do seletor de cor);
|
|
11
|
+
// • syntax-highlight / cores utilitárias do editor (#090/#d44/#292/…);
|
|
12
|
+
// • gradientes e alphas de overlay.
|
|
13
|
+
// Converter esses para tokens QUEBRA o editor. Corrige a leitura ingênua de
|
|
14
|
+
// matcha-page-builder-001 ("220 hex p/ migrar") — a integração de tema é o bridge.
|
|
4
15
|
// =============================================================================
|
|
5
16
|
|
|
6
17
|
@mixin matcha-page-builder-theme($theme) {
|
|
@@ -30,8 +41,8 @@
|
|
|
30
41
|
--gjs-color-yellow: var(--matcha-prim-yellow-500);
|
|
31
42
|
--gjs-color-green: var(--matcha-color-success);
|
|
32
43
|
--gjs-left-width: 15%;
|
|
33
|
-
--gjs-color-highlight: #71b7f1
|
|
34
|
-
--gjs-color-warn: #ffca6f
|
|
44
|
+
--gjs-color-highlight: var(--matcha-color-primary); // era #71b7f1 — realce/seleção do editor → papel primary
|
|
45
|
+
--gjs-color-warn: var(--matcha-color-warn); // era #ffca6f — aviso do editor → papel warn
|
|
35
46
|
--gjs-handle-margin: -5px;
|
|
36
47
|
--gjs-light-border: rgba(255, 255, 255, 0.05);
|
|
37
48
|
--gjs-arrow-color: rgba(255, 255, 255, 0.7);
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
// Bind por color attr → CSS var (mesma estratégia do slider/spinner)
|
|
29
29
|
@each $name, $fn in $semantic-colors {
|
|
30
30
|
&[color="#{$name}"] {
|
|
31
|
-
--matcha-progress-fill: var(--matcha-color-#{$name}
|
|
31
|
+
--matcha-progress-fill: var(--matcha-color-#{$name});
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
matcha-progress-bar[type="multi-level"] {
|
|
38
38
|
@each $name, $fn in $semantic-colors {
|
|
39
39
|
.progress-segment-color[data-segment-color="#{$name}"] {
|
|
40
|
-
background-color: var(--matcha-color-#{$name}
|
|
40
|
+
background-color: var(--matcha-color-#{$name});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@mixin matcha-select-multiple-theme($theme) {
|
|
2
|
-
|
|
2
|
+
// theme-agnóstico: cor via var(--matcha-color-*). $theme mantido só na assinatura.
|
|
3
3
|
|
|
4
4
|
// O matcha-select-multiple reusa as classes .matcha-select-* do matcha-select
|
|
5
5
|
// (.matcha-select-container, .matcha-select-trigger, .matcha-select-value, etc.),
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
border: 0;
|
|
30
30
|
outline: none;
|
|
31
31
|
background: transparent;
|
|
32
|
-
color:
|
|
32
|
+
color: var(--matcha-color-text-primary);
|
|
33
33
|
font-size: 14px;
|
|
34
34
|
line-height: 20px;
|
|
35
35
|
|
|
@@ -199,7 +199,7 @@ matcha-slide-toggle label {
|
|
|
199
199
|
content: '';
|
|
200
200
|
position: absolute;
|
|
201
201
|
inset: 0;
|
|
202
|
-
background: currentColor; //
|
|
202
|
+
background: currentColor; // herda o color (var(--matcha-color-*)) definido por variante
|
|
203
203
|
opacity: 0;
|
|
204
204
|
pointer-events: none;
|
|
205
205
|
transition: opacity var(--matcha-duration-instant, 80ms) linear;
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
// Bind por data-color → CSS var pra cores serem trocáveis sem repetir regras
|
|
31
31
|
@each $name, $fn in $semantic-colors {
|
|
32
32
|
&[data-color="#{$name}"] {
|
|
33
|
-
--matcha-slider-fill: var(--matcha-color-#{$name}
|
|
33
|
+
--matcha-slider-fill: var(--matcha-color-#{$name});
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
// em dark e fica imperceptível). Calibrado pra delta visível mesmo sobre stripe.
|
|
67
67
|
// CSS custom property values são TEXTO LITERAL pro Sass — fn calls Sass
|
|
68
68
|
// dentro NÃO são avaliadas. Precisa interpolação `#{}` pra forçar Sass a
|
|
69
|
-
// evaluar `
|
|
70
|
-
// literal no bundle (ex: `rgba(
|
|
69
|
+
// evaluar `var(--matcha-color-fg)` ANTES do output. Sem isso, o valor sai
|
|
70
|
+
// literal no bundle (ex: `rgba(var(--matcha-color-fg), 0.12)`) e o browser
|
|
71
71
|
// descarta como invalid CSS (= chevron invisível, hover sem cor, etc).
|
|
72
72
|
--matcha-table-row-bg-hover: rgba(var(--matcha-color-fg), 0.12);
|
|
73
73
|
--matcha-table-row-bg-hover-striped: rgba(var(--matcha-color-fg), 0.18);
|