@inchurch/matcha-theme 20.0.8 → 20.276.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 +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1212 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +260 -0
- package/components/matcha-accordion.scss +294 -157
- package/components/matcha-avatar.scss +171 -31
- package/components/matcha-badge.scss +4 -4
- package/components/matcha-breadcrumb.scss +232 -126
- package/components/matcha-button-toggle.scss +44 -0
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +70 -2
- package/components/matcha-cards.scss +28 -2
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-command-palette.scss +291 -63
- package/components/matcha-crop.scss +407 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-drawer.scss +201 -50
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +42 -1
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +68 -164
- package/components/matcha-form-field.scss +52 -0
- package/components/matcha-form-section.scss +101 -101
- package/components/matcha-header.scss +135 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +21 -0
- package/components/matcha-horizontal-tree.scss +317 -317
- package/components/matcha-icon.scss +17 -25
- package/components/matcha-list.scss +5 -5
- package/components/matcha-menu.scss +13 -0
- package/components/matcha-modal.scss +58 -84
- package/components/matcha-nav.scss +361 -230
- package/components/matcha-notification.scss +413 -197
- package/components/matcha-option.scss +79 -23
- package/components/matcha-paginator.scss +689 -235
- package/components/matcha-panel.scss +42 -26
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +257 -153
- package/components/matcha-radio.scss +244 -452
- package/components/matcha-scrollbox-shadow.scss +122 -122
- package/components/matcha-select.scss +3 -3
- package/components/matcha-skeleton.scss +18 -0
- package/components/matcha-slide-toggle.scss +47 -2
- package/components/matcha-slider.scss +172 -75
- package/components/matcha-snack-bar.scss +114 -121
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +377 -177
- package/components/matcha-table.scss +569 -785
- package/components/matcha-tabs.scss +624 -469
- package/components/matcha-text-editor.scss +98 -144
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +156 -62
- package/components/matcha-tree-view.scss +189 -0
- package/components/matcha-uploader.scss +240 -62
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +776 -0
- package/main.scss +232 -261
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1152 -1152
- package/tokens/_css-custom-properties.scss +650 -568
- package/tokens/_spacing-tokens.scss +94 -94
- package/vendors/angular-editor.scss +56 -56
- package/vendors/angular-material-fixes.scss +297 -297
- package/vendors/charts.scss +92 -92
- package/vendors/ng5-slider.scss +56 -56
- package/vendors/ngx-material-timepicker.scss +50 -50
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +0 -3426
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +0 -13532
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +0 -13511
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +0 -2378
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
@mixin matcha-scrollbox-shadow($theme) {
|
|
2
|
-
$is-dark: map-get($theme, is-dark);
|
|
3
|
-
|
|
4
|
-
// Drop shadow inside of area when scrolled vertically
|
|
5
|
-
.scrollbox,
|
|
6
|
-
.scrollbox-vertical,
|
|
7
|
-
.scrollbox-v,
|
|
8
|
-
.scrollbox-y {
|
|
9
|
-
overflow: overlay;
|
|
10
|
-
background:
|
|
11
|
-
/* Shadow covers */
|
|
12
|
-
linear-gradient(getSurface($theme) 30%, rgba(255, 255, 255, 0)),
|
|
13
|
-
linear-gradient(rgba(255, 255, 255, 0), getSurface($theme) 70%) 0 100%,
|
|
14
|
-
/* Shadows */
|
|
15
|
-
linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
|
|
16
|
-
linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
|
|
17
|
-
|
|
18
|
-
background-repeat: no-repeat;
|
|
19
|
-
background-color: getSurface($theme);
|
|
20
|
-
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
21
|
-
|
|
22
|
-
/* Opera doesn't support this in the shorthand */
|
|
23
|
-
background-attachment: local, local, scroll, scroll;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Drop shadow inside of area when scrolled horizontally
|
|
27
|
-
.scrollbox-horizontal,
|
|
28
|
-
.scrollbox-h,
|
|
29
|
-
.scrollbox-x {
|
|
30
|
-
$fg: if(getForeground($theme), getForeground($theme), #212121);
|
|
31
|
-
box-shadow: 0px -16px 0px 0px inset getSurface($theme), 20px 0 16px -24px inset rgba($fg, 0.15),
|
|
32
|
-
-20px 0 16px -24px inset rgba($fg, 0.15), 0px 2px 2px 0px rgba($fg, 0.035), 0px 2px 2px 0px rgba($fg, 0.035),
|
|
33
|
-
0px 2px 2px 0px rgba($fg, 0.035);
|
|
34
|
-
overflow: auto;
|
|
35
|
-
background: linear-gradient(90deg,
|
|
36
|
-
rgba(0, 0, 0, 0.1),
|
|
37
|
-
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
38
|
-
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
39
|
-
rgba(0, 0, 0, 0.1));
|
|
40
|
-
|
|
41
|
-
background: -moz-linear-gradient(90deg,
|
|
42
|
-
rgba(0, 0, 0, 0.1),
|
|
43
|
-
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
44
|
-
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
45
|
-
rgba(0, 0, 0, 0.1));
|
|
46
|
-
|
|
47
|
-
background: -webkit-linear-gradient(0deg,
|
|
48
|
-
rgba(0, 0, 0, 0.1),
|
|
49
|
-
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
50
|
-
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
51
|
-
rgba(0, 0, 0, 0.1));
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.scrollbox-horizontal-content,
|
|
55
|
-
.scrollbox-h-content,
|
|
56
|
-
.scrollbox-x-content {
|
|
57
|
-
background: getSurface($theme);
|
|
58
|
-
background: linear-gradient(90deg,
|
|
59
|
-
getSurface($theme) 10px,
|
|
60
|
-
getSurface($theme),
|
|
61
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
62
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
63
|
-
getSurface($theme) 10px,
|
|
64
|
-
getSurface($theme));
|
|
65
|
-
background: -moz-linear-gradient(90deg,
|
|
66
|
-
getSurface($theme) 10px,
|
|
67
|
-
getSurface($theme),
|
|
68
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
69
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
70
|
-
getSurface($theme) 10px,
|
|
71
|
-
getSurface($theme));
|
|
72
|
-
background: -webkit-linear-gradient(0deg,
|
|
73
|
-
getSurface($theme) 10px,
|
|
74
|
-
getSurface($theme),
|
|
75
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
76
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
77
|
-
getSurface($theme) 10px,
|
|
78
|
-
getSurface($theme));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.scrollbox-horizontal-content-background,
|
|
82
|
-
.scrollbox-h-content-background,
|
|
83
|
-
.scrollbox-x-content-background {
|
|
84
|
-
background: getBackground($theme);
|
|
85
|
-
background: linear-gradient(90deg,
|
|
86
|
-
getBackground($theme) 10px,
|
|
87
|
-
getBackground($theme),
|
|
88
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
89
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
90
|
-
getBackground($theme) 10px,
|
|
91
|
-
getBackground($theme));
|
|
92
|
-
background: -moz-linear-gradient(90deg,
|
|
93
|
-
getBackground($theme) 10px,
|
|
94
|
-
getBackground($theme),
|
|
95
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
96
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
97
|
-
getBackground($theme) 10px,
|
|
98
|
-
getBackground($theme));
|
|
99
|
-
background: -webkit-linear-gradient(0deg,
|
|
100
|
-
getBackground($theme) 10px,
|
|
101
|
-
getBackground($theme),
|
|
102
|
-
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
103
|
-
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
104
|
-
getBackground($theme) 10px,
|
|
105
|
-
getBackground($theme));
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.scrollbox-background {
|
|
109
|
-
overflow: overlay;
|
|
110
|
-
background:
|
|
111
|
-
/* Shadow covers */
|
|
112
|
-
linear-gradient(getBackground($theme) 30%, rgba(255, 255, 255, 0)),
|
|
113
|
-
linear-gradient(rgba(255, 255, 255, 0), getBackground($theme) 70%) 0 100%,
|
|
114
|
-
/* Shadows */
|
|
115
|
-
linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
|
|
116
|
-
linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
|
|
117
|
-
background-repeat: no-repeat;
|
|
118
|
-
background-color: getBackground($theme);
|
|
119
|
-
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
120
|
-
/* Opera doesn't support this in the shorthand */
|
|
121
|
-
background-attachment: local, local, scroll, scroll;
|
|
122
|
-
}
|
|
1
|
+
@mixin matcha-scrollbox-shadow($theme) {
|
|
2
|
+
$is-dark: map-get($theme, is-dark);
|
|
3
|
+
|
|
4
|
+
// Drop shadow inside of area when scrolled vertically
|
|
5
|
+
.scrollbox,
|
|
6
|
+
.scrollbox-vertical,
|
|
7
|
+
.scrollbox-v,
|
|
8
|
+
.scrollbox-y {
|
|
9
|
+
overflow: overlay;
|
|
10
|
+
background:
|
|
11
|
+
/* Shadow covers */
|
|
12
|
+
linear-gradient(getSurface($theme) 30%, rgba(255, 255, 255, 0)),
|
|
13
|
+
linear-gradient(rgba(255, 255, 255, 0), getSurface($theme) 70%) 0 100%,
|
|
14
|
+
/* Shadows */
|
|
15
|
+
linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
|
|
16
|
+
linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
|
|
17
|
+
|
|
18
|
+
background-repeat: no-repeat;
|
|
19
|
+
background-color: getSurface($theme);
|
|
20
|
+
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
21
|
+
|
|
22
|
+
/* Opera doesn't support this in the shorthand */
|
|
23
|
+
background-attachment: local, local, scroll, scroll;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Drop shadow inside of area when scrolled horizontally
|
|
27
|
+
.scrollbox-horizontal,
|
|
28
|
+
.scrollbox-h,
|
|
29
|
+
.scrollbox-x {
|
|
30
|
+
$fg: if(getForeground($theme), getForeground($theme), #212121);
|
|
31
|
+
box-shadow: 0px -16px 0px 0px inset getSurface($theme), 20px 0 16px -24px inset rgba($fg, 0.15),
|
|
32
|
+
-20px 0 16px -24px inset rgba($fg, 0.15), 0px 2px 2px 0px rgba($fg, 0.035), 0px 2px 2px 0px rgba($fg, 0.035),
|
|
33
|
+
0px 2px 2px 0px rgba($fg, 0.035);
|
|
34
|
+
overflow: auto;
|
|
35
|
+
background: linear-gradient(90deg,
|
|
36
|
+
rgba(0, 0, 0, 0.1),
|
|
37
|
+
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
38
|
+
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
39
|
+
rgba(0, 0, 0, 0.1));
|
|
40
|
+
|
|
41
|
+
background: -moz-linear-gradient(90deg,
|
|
42
|
+
rgba(0, 0, 0, 0.1),
|
|
43
|
+
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
44
|
+
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
45
|
+
rgba(0, 0, 0, 0.1));
|
|
46
|
+
|
|
47
|
+
background: -webkit-linear-gradient(0deg,
|
|
48
|
+
rgba(0, 0, 0, 0.1),
|
|
49
|
+
rgba(0, 0, 0, 0) calc(0% + 10px),
|
|
50
|
+
rgba(0, 0, 0, 0) calc(100% - 10px),
|
|
51
|
+
rgba(0, 0, 0, 0.1));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.scrollbox-horizontal-content,
|
|
55
|
+
.scrollbox-h-content,
|
|
56
|
+
.scrollbox-x-content {
|
|
57
|
+
background: getSurface($theme);
|
|
58
|
+
background: linear-gradient(90deg,
|
|
59
|
+
getSurface($theme) 10px,
|
|
60
|
+
getSurface($theme),
|
|
61
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
62
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
63
|
+
getSurface($theme) 10px,
|
|
64
|
+
getSurface($theme));
|
|
65
|
+
background: -moz-linear-gradient(90deg,
|
|
66
|
+
getSurface($theme) 10px,
|
|
67
|
+
getSurface($theme),
|
|
68
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
69
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
70
|
+
getSurface($theme) 10px,
|
|
71
|
+
getSurface($theme));
|
|
72
|
+
background: -webkit-linear-gradient(0deg,
|
|
73
|
+
getSurface($theme) 10px,
|
|
74
|
+
getSurface($theme),
|
|
75
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
76
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
77
|
+
getSurface($theme) 10px,
|
|
78
|
+
getSurface($theme));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.scrollbox-horizontal-content-background,
|
|
82
|
+
.scrollbox-h-content-background,
|
|
83
|
+
.scrollbox-x-content-background {
|
|
84
|
+
background: getBackground($theme);
|
|
85
|
+
background: linear-gradient(90deg,
|
|
86
|
+
getBackground($theme) 10px,
|
|
87
|
+
getBackground($theme),
|
|
88
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
89
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
90
|
+
getBackground($theme) 10px,
|
|
91
|
+
getBackground($theme));
|
|
92
|
+
background: -moz-linear-gradient(90deg,
|
|
93
|
+
getBackground($theme) 10px,
|
|
94
|
+
getBackground($theme),
|
|
95
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
96
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
97
|
+
getBackground($theme) 10px,
|
|
98
|
+
getBackground($theme));
|
|
99
|
+
background: -webkit-linear-gradient(0deg,
|
|
100
|
+
getBackground($theme) 10px,
|
|
101
|
+
getBackground($theme),
|
|
102
|
+
rgba(255, 255, 255, 0) calc(0% + 10px),
|
|
103
|
+
rgba(255, 255, 255, 0) calc(100% - 10px),
|
|
104
|
+
getBackground($theme) 10px,
|
|
105
|
+
getBackground($theme));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.scrollbox-background {
|
|
109
|
+
overflow: overlay;
|
|
110
|
+
background:
|
|
111
|
+
/* Shadow covers */
|
|
112
|
+
linear-gradient(getBackground($theme) 30%, rgba(255, 255, 255, 0)),
|
|
113
|
+
linear-gradient(rgba(255, 255, 255, 0), getBackground($theme) 70%) 0 100%,
|
|
114
|
+
/* Shadows */
|
|
115
|
+
linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%),
|
|
116
|
+
linear-gradient(0deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 50%) 0 100%;
|
|
117
|
+
background-repeat: no-repeat;
|
|
118
|
+
background-color: getBackground($theme);
|
|
119
|
+
background-size: 100% 40px, 100% 40px, 100% 14px, 100% 14px;
|
|
120
|
+
/* Opera doesn't support this in the shorthand */
|
|
121
|
+
background-attachment: local, local, scroll, scroll;
|
|
122
|
+
}
|
|
123
123
|
}
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
width: 16px;
|
|
379
379
|
height: 16px;
|
|
380
380
|
margin-top: -8px;
|
|
381
|
-
background-color: var(--matcha-color-
|
|
381
|
+
background-color: var(--matcha-color-accent);
|
|
382
382
|
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
383
383
|
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/></svg>");
|
|
384
384
|
mask-size: contain;
|
|
@@ -540,7 +540,7 @@
|
|
|
540
540
|
width: 100%;
|
|
541
541
|
max-height: 90vh;
|
|
542
542
|
min-height: 50vh;
|
|
543
|
-
background: var(--matcha-color-surface-card);
|
|
543
|
+
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
544
544
|
border-top-left-radius: var(--matcha-radius-xl, 16px);
|
|
545
545
|
border-top-right-radius: var(--matcha-radius-xl, 16px);
|
|
546
546
|
box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
|
|
@@ -647,7 +647,7 @@
|
|
|
647
647
|
.matcha-select-sheet-safe-area {
|
|
648
648
|
flex: 0 0 auto;
|
|
649
649
|
height: calc(env(safe-area-inset-bottom, 0px) + var(--matcha-space-150, 12px));
|
|
650
|
-
background: var(--matcha-color-surface-card);
|
|
650
|
+
background: var(--matcha-color-surface-card-strong, var(--matcha-color-surface-card));
|
|
651
651
|
}
|
|
652
652
|
|
|
653
653
|
// Quando sheet-mode tá ativo, esconder a arrow do trigger faz menos sentido —
|
|
@@ -136,3 +136,21 @@
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
+
|
|
140
|
+
// ── Forced colors ──
|
|
141
|
+
@media (forced-colors: active) {
|
|
142
|
+
.skeleton,
|
|
143
|
+
.skeleton-animated-background {
|
|
144
|
+
background: GrayText !important;
|
|
145
|
+
border: 1px solid CanvasText;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
// ── Print ──
|
|
150
|
+
// Skeleton é placeholder de loading — não tem motivo de aparecer em papel.
|
|
151
|
+
@media print {
|
|
152
|
+
.skeleton,
|
|
153
|
+
matcha-skeleton {
|
|
154
|
+
display: none !important;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
@@ -442,9 +442,9 @@
|
|
|
442
442
|
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
443
443
|
}
|
|
444
444
|
|
|
445
|
-
// Label padrão — Figma: text-primary
|
|
445
|
+
// Label padrão — Figma: text-primary. Slot pra consumer override.
|
|
446
446
|
.matcha-slide-toggle-label {
|
|
447
|
-
color: var(--matcha-color-text-primary);
|
|
447
|
+
color: var(--matcha-slide-toggle-label-color, var(--matcha-color-text-primary));
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -588,3 +588,48 @@ matcha-slide-toggle {
|
|
|
588
588
|
label::before { transition: none; }
|
|
589
589
|
}
|
|
590
590
|
}
|
|
591
|
+
|
|
592
|
+
// ── Forced colors ──
|
|
593
|
+
@media (forced-colors: active) {
|
|
594
|
+
matcha-slide-toggle,
|
|
595
|
+
.matcha-slide-toggle {
|
|
596
|
+
input[type="checkbox"] {
|
|
597
|
+
// Track
|
|
598
|
+
&::before {
|
|
599
|
+
background: Canvas !important;
|
|
600
|
+
border: 1px solid CanvasText !important;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
// Thumb
|
|
604
|
+
&::after {
|
|
605
|
+
background: ButtonFace !important;
|
|
606
|
+
border: 1px solid CanvasText !important;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
&:checked::before {
|
|
610
|
+
background: Highlight !important;
|
|
611
|
+
border-color: Highlight !important;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
&:focus-visible::before {
|
|
615
|
+
outline: 2px solid CanvasText !important;
|
|
616
|
+
outline-offset: 2px;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
&:disabled::before,
|
|
620
|
+
&:disabled::after {
|
|
621
|
+
border-color: GrayText !important;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
// ── Print ──
|
|
628
|
+
@media print {
|
|
629
|
+
matcha-slide-toggle,
|
|
630
|
+
.matcha-slide-toggle {
|
|
631
|
+
input[type="checkbox"] {
|
|
632
|
+
&::before { border: 1px solid currentColor !important; }
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|