@inchurch/matcha-theme 21.4.0 → 22.1.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 -236
- 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 +446 -445
- 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 +383 -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-contact.scss +35 -0
- 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 +49 -41
- package/components/matcha-table.scss +579 -579
- 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 -257
- package/layout/matcha-page-layout.scss +778 -778
- package/main.scss +331 -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 -274
- 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,218 +1,218 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// =========================================================
|
|
4
|
-
// Matcha Calendar — somente cores/sombras/bordas (tema)
|
|
5
|
-
// Estrutura (layout, tamanhos, transitions) vive em
|
|
6
|
-
// matcha-components/src/lib/matcha-calendar/calendar/matcha-calendar.component.scss
|
|
7
|
-
// =========================================================
|
|
8
|
-
|
|
9
|
-
@mixin matcha-calendar-theme($theme) {
|
|
10
|
-
.matcha-calendar {
|
|
11
|
-
background: var(--matcha-color-surface-card, var(--matcha-color-surface));
|
|
12
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
13
|
-
box-shadow: var(--matcha-shadow-2);
|
|
14
|
-
// Borda só-no-dark vira valor por modo (light = 0/transparent).
|
|
15
|
-
border: var(--matcha-calendar-border);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// ── Header ──────────────────────────────────────────────
|
|
19
|
-
.matcha-calendar-header-label {
|
|
20
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
21
|
-
|
|
22
|
-
&:hover {
|
|
23
|
-
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:focus-visible {
|
|
27
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
28
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.matcha-calendar-nav-btn {
|
|
33
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
34
|
-
|
|
35
|
-
&:hover:not(:disabled):not(.is-disabled) {
|
|
36
|
-
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
&:focus-visible {
|
|
40
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
41
|
-
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&[disabled],
|
|
45
|
-
&.is-disabled {
|
|
46
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// ── Weekday + Divider ───────────────────────────────────
|
|
51
|
-
.matcha-calendar-weekday {
|
|
52
|
-
color: var(--matcha-color-text-secondary, rgba(255, 255, 255, 0.7));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.matcha-calendar-divider {
|
|
56
|
-
background: var(--matcha-color-surface-border, var(--matcha-color-border));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// ── Day cells (Month view) ──────────────────────────────
|
|
60
|
-
.matcha-calendar-cell {
|
|
61
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
62
|
-
|
|
63
|
-
&:hover:not(.is-disabled):not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
64
|
-
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
&:focus-visible {
|
|
68
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
69
|
-
outline-offset: -2px;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
// Today: ring accent (sem fill)
|
|
73
|
-
&.is-today:not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
74
|
-
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
// In-range (exclusive): pill individual com accent-alpha
|
|
78
|
-
&.is-in-range:not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
79
|
-
background-color: var(--matcha-color-accent-alpha);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
// Selected single (Figma: outlined accent, NÃO filled — preserva text-primary)
|
|
83
|
-
&.is-selected:not(.is-range-start):not(.is-range-end) {
|
|
84
|
-
background-color: transparent;
|
|
85
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
86
|
-
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// Range anchors (start/end): filled accent — destaque visual dos pontos do range
|
|
90
|
-
&.is-range-start,
|
|
91
|
-
&.is-range-end {
|
|
92
|
-
background-color: var(--matcha-color-accent);
|
|
93
|
-
color: var(--matcha-color-accent-contrast);
|
|
94
|
-
font-weight: var(--matcha-weight-semibold, 600);
|
|
95
|
-
box-shadow: none;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
&.is-other-month {
|
|
99
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.is-disabled {
|
|
103
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
104
|
-
background-color: transparent;
|
|
105
|
-
box-shadow: none;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// ── Grid views (Year / Decade) ──────────────────────────
|
|
110
|
-
.matcha-calendar-grid-cell {
|
|
111
|
-
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
112
|
-
|
|
113
|
-
&:hover:not(.is-disabled):not(.is-selected) {
|
|
114
|
-
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
&:focus-visible {
|
|
118
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
119
|
-
outline-offset: -2px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
&.is-today:not(.is-selected) {
|
|
123
|
-
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
&.is-selected {
|
|
127
|
-
background-color: var(--matcha-color-accent);
|
|
128
|
-
color: var(--matcha-color-accent-contrast);
|
|
129
|
-
font-weight: var(--matcha-weight-semibold, 600);
|
|
130
|
-
box-shadow: none;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.is-disabled {
|
|
134
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
// ── Footer (botão Hoje) ─────────────────────────────────
|
|
139
|
-
.matcha-calendar-today-btn {
|
|
140
|
-
color: var(--matcha-color-accent);
|
|
141
|
-
|
|
142
|
-
&:hover:not(:disabled):not(.is-disabled) {
|
|
143
|
-
background-color: var(--matcha-color-accent-alpha);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&:focus-visible {
|
|
147
|
-
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
148
|
-
outline-offset: 2px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
&[disabled],
|
|
152
|
-
&.is-disabled {
|
|
153
|
-
color: var(--matcha-color-interaction-disabled-fg);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
// ── Forced colors (Windows High Contrast) ──
|
|
159
|
-
// Calendar tem muitos estados (selected, today, disabled) — todos precisam
|
|
160
|
-
// distinção visível via system tokens.
|
|
161
|
-
@media (forced-colors: active) {
|
|
162
|
-
matcha-calendar {
|
|
163
|
-
border: 1px solid CanvasText;
|
|
164
|
-
background: Canvas;
|
|
165
|
-
|
|
166
|
-
.matcha-calendar-day-cell {
|
|
167
|
-
border: 1px solid transparent;
|
|
168
|
-
|
|
169
|
-
&.is-selected {
|
|
170
|
-
background: Highlight !important;
|
|
171
|
-
color: HighlightText !important;
|
|
172
|
-
border-color: HighlightText;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
// Today — outlined (não usa Highlight pra não confundir com selected)
|
|
176
|
-
&.is-today:not(.is-selected) {
|
|
177
|
-
border-color: CanvasText !important;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&.is-disabled,
|
|
181
|
-
&[disabled] {
|
|
182
|
-
color: GrayText !important;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
&:focus-visible {
|
|
186
|
-
outline: 2px solid CanvasText !important;
|
|
187
|
-
outline-offset: -2px;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
.matcha-calendar-today-btn:focus-visible {
|
|
192
|
-
outline: 2px solid CanvasText !important;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
// ── Reduced motion ──
|
|
198
|
-
// Calendar tem transitions em hover/select e nav arrows.
|
|
199
|
-
@media (prefers-reduced-motion: reduce) {
|
|
200
|
-
matcha-calendar {
|
|
201
|
-
*,
|
|
202
|
-
*::before,
|
|
203
|
-
*::after {
|
|
204
|
-
transition: none !important;
|
|
205
|
-
animation: none !important;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
// ── Print ──
|
|
211
|
-
// Calendar é informacional — mantém visível, sem shadow + break-inside avoid.
|
|
212
|
-
@media print {
|
|
213
|
-
matcha-calendar {
|
|
214
|
-
box-shadow: none !important;
|
|
215
|
-
border: 1px solid currentColor;
|
|
216
|
-
break-inside: avoid;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
// =========================================================
|
|
4
|
+
// Matcha Calendar — somente cores/sombras/bordas (tema)
|
|
5
|
+
// Estrutura (layout, tamanhos, transitions) vive em
|
|
6
|
+
// matcha-components/src/lib/matcha-calendar/calendar/matcha-calendar.component.scss
|
|
7
|
+
// =========================================================
|
|
8
|
+
|
|
9
|
+
@mixin matcha-calendar-theme($theme) {
|
|
10
|
+
.matcha-calendar {
|
|
11
|
+
background: var(--matcha-color-surface-card, var(--matcha-color-surface));
|
|
12
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
13
|
+
box-shadow: var(--matcha-shadow-2);
|
|
14
|
+
// Borda só-no-dark vira valor por modo (light = 0/transparent).
|
|
15
|
+
border: var(--matcha-calendar-border);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// ── Header ──────────────────────────────────────────────
|
|
19
|
+
.matcha-calendar-header-label {
|
|
20
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
21
|
+
|
|
22
|
+
&:hover {
|
|
23
|
+
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:focus-visible {
|
|
27
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
28
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.matcha-calendar-nav-btn {
|
|
33
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
34
|
+
|
|
35
|
+
&:hover:not(:disabled):not(.is-disabled) {
|
|
36
|
+
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&:focus-visible {
|
|
40
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
41
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[disabled],
|
|
45
|
+
&.is-disabled {
|
|
46
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// ── Weekday + Divider ───────────────────────────────────
|
|
51
|
+
.matcha-calendar-weekday {
|
|
52
|
+
color: var(--matcha-color-text-secondary, rgba(255, 255, 255, 0.7));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.matcha-calendar-divider {
|
|
56
|
+
background: var(--matcha-color-surface-border, var(--matcha-color-border));
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ── Day cells (Month view) ──────────────────────────────
|
|
60
|
+
.matcha-calendar-cell {
|
|
61
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
62
|
+
|
|
63
|
+
&:hover:not(.is-disabled):not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
64
|
+
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
69
|
+
outline-offset: -2px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// Today: ring accent (sem fill)
|
|
73
|
+
&.is-today:not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
74
|
+
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// In-range (exclusive): pill individual com accent-alpha
|
|
78
|
+
&.is-in-range:not(.is-selected):not(.is-range-start):not(.is-range-end) {
|
|
79
|
+
background-color: var(--matcha-color-accent-alpha);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// Selected single (Figma: outlined accent, NÃO filled — preserva text-primary)
|
|
83
|
+
&.is-selected:not(.is-range-start):not(.is-range-end) {
|
|
84
|
+
background-color: transparent;
|
|
85
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
86
|
+
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Range anchors (start/end): filled accent — destaque visual dos pontos do range
|
|
90
|
+
&.is-range-start,
|
|
91
|
+
&.is-range-end {
|
|
92
|
+
background-color: var(--matcha-color-accent);
|
|
93
|
+
color: var(--matcha-color-accent-contrast);
|
|
94
|
+
font-weight: var(--matcha-weight-semibold, 600);
|
|
95
|
+
box-shadow: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.is-other-month {
|
|
99
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.is-disabled {
|
|
103
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
104
|
+
background-color: transparent;
|
|
105
|
+
box-shadow: none;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
// ── Grid views (Year / Decade) ──────────────────────────
|
|
110
|
+
.matcha-calendar-grid-cell {
|
|
111
|
+
color: var(--matcha-color-text-primary, var(--matcha-color-fg));
|
|
112
|
+
|
|
113
|
+
&:hover:not(.is-disabled):not(.is-selected) {
|
|
114
|
+
background-color: var(--matcha-color-surface-hover, rgba(255, 255, 255, 0.08));
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&:focus-visible {
|
|
118
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
119
|
+
outline-offset: -2px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.is-today:not(.is-selected) {
|
|
123
|
+
box-shadow: inset 0 0 0 var(--matcha-border-thin, 2px) var(--matcha-color-accent);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&.is-selected {
|
|
127
|
+
background-color: var(--matcha-color-accent);
|
|
128
|
+
color: var(--matcha-color-accent-contrast);
|
|
129
|
+
font-weight: var(--matcha-weight-semibold, 600);
|
|
130
|
+
box-shadow: none;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.is-disabled {
|
|
134
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// ── Footer (botão Hoje) ─────────────────────────────────
|
|
139
|
+
.matcha-calendar-today-btn {
|
|
140
|
+
color: var(--matcha-color-accent);
|
|
141
|
+
|
|
142
|
+
&:hover:not(:disabled):not(.is-disabled) {
|
|
143
|
+
background-color: var(--matcha-color-accent-alpha);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
&:focus-visible {
|
|
147
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-accent);
|
|
148
|
+
outline-offset: 2px;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&[disabled],
|
|
152
|
+
&.is-disabled {
|
|
153
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// ── Forced colors (Windows High Contrast) ──
|
|
159
|
+
// Calendar tem muitos estados (selected, today, disabled) — todos precisam
|
|
160
|
+
// distinção visível via system tokens.
|
|
161
|
+
@media (forced-colors: active) {
|
|
162
|
+
matcha-calendar {
|
|
163
|
+
border: 1px solid CanvasText;
|
|
164
|
+
background: Canvas;
|
|
165
|
+
|
|
166
|
+
.matcha-calendar-day-cell {
|
|
167
|
+
border: 1px solid transparent;
|
|
168
|
+
|
|
169
|
+
&.is-selected {
|
|
170
|
+
background: Highlight !important;
|
|
171
|
+
color: HighlightText !important;
|
|
172
|
+
border-color: HighlightText;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
// Today — outlined (não usa Highlight pra não confundir com selected)
|
|
176
|
+
&.is-today:not(.is-selected) {
|
|
177
|
+
border-color: CanvasText !important;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&.is-disabled,
|
|
181
|
+
&[disabled] {
|
|
182
|
+
color: GrayText !important;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
&:focus-visible {
|
|
186
|
+
outline: 2px solid CanvasText !important;
|
|
187
|
+
outline-offset: -2px;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.matcha-calendar-today-btn:focus-visible {
|
|
192
|
+
outline: 2px solid CanvasText !important;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// ── Reduced motion ──
|
|
198
|
+
// Calendar tem transitions em hover/select e nav arrows.
|
|
199
|
+
@media (prefers-reduced-motion: reduce) {
|
|
200
|
+
matcha-calendar {
|
|
201
|
+
*,
|
|
202
|
+
*::before,
|
|
203
|
+
*::after {
|
|
204
|
+
transition: none !important;
|
|
205
|
+
animation: none !important;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// ── Print ──
|
|
211
|
+
// Calendar é informacional — mantém visível, sem shadow + break-inside avoid.
|
|
212
|
+
@media print {
|
|
213
|
+
matcha-calendar {
|
|
214
|
+
box-shadow: none !important;
|
|
215
|
+
border: 1px solid currentColor;
|
|
216
|
+
break-inside: avoid;
|
|
217
|
+
}
|
|
218
|
+
}
|