material 3.0.2 → 3.0.4
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/README.md +2 -2
- package/dist/components/badge/config.d.ts +2 -2
- package/dist/components/button/features/toggle.d.ts +1 -1
- package/dist/components/button/types.d.ts +5 -5
- package/dist/components/button-group/button-group.d.ts +1 -1
- package/dist/components/button-group/constants.d.ts +1 -1
- package/dist/components/button-group/index.d.ts +1 -1
- package/dist/components/button-group/types.d.ts +2 -2
- package/dist/components/card/types.d.ts +5 -5
- package/dist/components/carousel/features/scroll.js +33 -33
- package/dist/components/carousel/keylines.d.ts +8 -5
- package/dist/components/carousel/keylines.js +23 -21
- package/dist/components/carousel/types.d.ts +1 -1
- package/dist/components/checkbox/types.d.ts +4 -4
- package/dist/components/chips/types.d.ts +12 -12
- package/dist/components/datepicker/datepicker.d.ts +1 -1
- package/dist/components/datepicker/types.d.ts +11 -11
- package/dist/components/datepicker/utils.d.ts +1 -1
- package/dist/components/dialog/types.d.ts +1 -1
- package/dist/components/drawer/types.d.ts +1 -1
- package/dist/components/extended-fab/types.d.ts +3 -3
- package/dist/components/fab/types.d.ts +2 -3
- package/dist/components/fab-menu/types.d.ts +1 -1
- package/dist/components/icon-button/types.d.ts +4 -5
- package/dist/components/list/types.d.ts +1 -1
- package/dist/components/menu/features/loader.d.ts +1 -1
- package/dist/components/menu/types.d.ts +3 -3
- package/dist/components/navigation-bar/types.d.ts +1 -1
- package/dist/components/navigation-rail/types.d.ts +2 -2
- package/dist/components/progress/types.d.ts +1 -1
- package/dist/components/radios/types.d.ts +1 -1
- package/dist/components/search/types.d.ts +5 -5
- package/dist/components/select/constants.d.ts +1 -1
- package/dist/components/select/types.d.ts +1 -1
- package/dist/components/slider/config.d.ts +1 -1
- package/dist/components/slider/features/axis.d.ts +1 -1
- package/dist/components/slider/features/controller.d.ts +14 -14
- package/dist/components/slider/types.d.ts +1 -1
- package/dist/components/snackbar/types.d.ts +1 -1
- package/dist/components/switch/features.d.ts +1 -1
- package/dist/components/switch/types.d.ts +5 -5
- package/dist/components/tabs/features.d.ts +1 -1
- package/dist/components/tabs/responsive.d.ts +1 -1
- package/dist/components/tabs/types.d.ts +7 -8
- package/dist/components/tabs/utils.d.ts +5 -5
- package/dist/components/text-field/constants.d.ts +1 -1
- package/dist/components/text-field/features/counter.d.ts +1 -1
- package/dist/components/text-field/features/field.d.ts +1 -1
- package/dist/components/text-field/features/required.d.ts +1 -1
- package/dist/components/text-field/features/trailing-icon.d.ts +2 -2
- package/dist/components/text-field/types.d.ts +8 -8
- package/dist/components/timepicker/dial.d.ts +2 -2
- package/dist/components/timepicker/types.d.ts +9 -9
- package/dist/components/timepicker/utils.d.ts +2 -2
- package/dist/core/compose/features/constants.d.ts +1 -1
- package/dist/core/compose/features/events.d.ts +1 -1
- package/dist/core/config/component.d.ts +1 -1
- package/dist/core/dom/create.d.ts +2 -2
- package/dist/core/dom/layer.d.ts +1 -1
- package/dist/core/state/emitter.d.ts +1 -1
- package/dist/core/theme/shape.d.ts +1 -1
- package/dist/core/theme/tokens.d.ts +1 -1
- package/dist/core/utils/attributes.d.ts +2 -2
- package/dist/core/utils/theme.d.ts +1 -1
- package/dist/elements/adapter.d.ts +12 -1
- package/dist/elements/button.d.ts +1 -1
- package/dist/elements/css/icon-button.css +1 -1
- package/dist/elements/css/icon-button.js +1 -1
- package/dist/elements/css/toolbar.css +1 -1
- package/dist/elements/css/toolbar.js +1 -1
- package/dist/elements/css/tooltip.css +1 -1
- package/dist/elements/css/tooltip.js +1 -1
- package/dist/elements/define.d.ts +20 -4
- package/dist/elements/define.js +2 -0
- package/dist/elements/icon-button.d.ts +6 -1
- package/dist/elements/icon-button.js +1 -0
- package/dist/elements/navigation-bar.d.ts +1 -1
- package/dist/elements/navigation-rail.d.ts +1 -1
- package/dist/elements/preupgrade/badge.css +1 -1
- package/dist/elements/preupgrade/bottom-app-bar.css +1 -1
- package/dist/elements/preupgrade/bottom-sheet.css +1 -1
- package/dist/elements/preupgrade/button-group.css +1 -1
- package/dist/elements/preupgrade/button.css +1 -1
- package/dist/elements/preupgrade/card.css +1 -1
- package/dist/elements/preupgrade/carousel.css +1 -1
- package/dist/elements/preupgrade/checkbox.css +1 -1
- package/dist/elements/preupgrade/chips.css +1 -1
- package/dist/elements/preupgrade/datepicker.css +1 -1
- package/dist/elements/preupgrade/dialog.css +1 -1
- package/dist/elements/preupgrade/divider.css +1 -1
- package/dist/elements/preupgrade/drawer.css +1 -1
- package/dist/elements/preupgrade/extended-fab.css +1 -1
- package/dist/elements/preupgrade/fab-menu.css +1 -1
- package/dist/elements/preupgrade/fab.css +1 -1
- package/dist/elements/preupgrade/icon-button.css +1 -1
- package/dist/elements/preupgrade/list.css +1 -1
- package/dist/elements/preupgrade/loading-indicator.css +1 -1
- package/dist/elements/preupgrade/menu.css +1 -1
- package/dist/elements/preupgrade/navigation-bar.css +1 -1
- package/dist/elements/preupgrade/navigation-rail.css +1 -1
- package/dist/elements/preupgrade/progress.css +1 -1
- package/dist/elements/preupgrade/radios.css +1 -1
- package/dist/elements/preupgrade/search.css +1 -1
- package/dist/elements/preupgrade/select.css +1 -1
- package/dist/elements/preupgrade/side-sheet.css +1 -1
- package/dist/elements/preupgrade/slider.css +1 -1
- package/dist/elements/preupgrade/snackbar.css +1 -1
- package/dist/elements/preupgrade/split-button.css +1 -1
- package/dist/elements/preupgrade/switch.css +1 -1
- package/dist/elements/preupgrade/tabs.css +1 -1
- package/dist/elements/preupgrade/text-field.css +1 -1
- package/dist/elements/preupgrade/timepicker.css +1 -1
- package/dist/elements/preupgrade/toolbar.css +1 -1
- package/dist/elements/preupgrade/tooltip.css +1 -1
- package/dist/elements/preupgrade/top-app-bar.css +1 -1
- package/dist/elements/preupgrade.css +1 -1
- package/dist/elements/styles.d.ts +5 -4
- package/dist/elements/timepicker.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/package.json +1 -1
- package/dist/react/create.d.ts +1 -1
- package/dist/react/create.js +4 -1
- package/dist/solid/create.d.ts +2 -2
- package/dist/solid/create.js +6 -4
- package/dist/ssr/index.js +13 -13
- package/dist/ssr/react.js +1 -1
- package/dist/styles/badge.css +1 -1
- package/dist/styles/base.css +1 -1
- package/dist/styles/bottom-app-bar.css +1 -1
- package/dist/styles/bottom-sheet.css +1 -1
- package/dist/styles/button-group.css +1 -1
- package/dist/styles/button.css +1 -1
- package/dist/styles/card.css +1 -1
- package/dist/styles/carousel.css +1 -1
- package/dist/styles/checkbox.css +1 -1
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +1 -1
- package/dist/styles/divider.css +1 -1
- package/dist/styles/drawer.css +1 -1
- package/dist/styles/extended-fab.css +1 -1
- package/dist/styles/fab-menu.css +1 -1
- package/dist/styles/fab.css +1 -1
- package/dist/styles/icon-button.css +2 -2
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +1 -1
- package/dist/styles/navigation-bar.css +1 -1
- package/dist/styles/navigation-rail.css +1 -1
- package/dist/styles/progress.css +1 -1
- package/dist/styles/radios.css +1 -1
- package/dist/styles/search.css +1 -1
- package/dist/styles/select.css +1 -1
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +1 -1
- package/dist/styles/snackbar.css +1 -1
- package/dist/styles/split-button.css +1 -1
- package/dist/styles/switch.css +1 -1
- package/dist/styles/tabs.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +1 -1
- package/dist/styles/toolbar.css +2 -2
- package/dist/styles/tooltip.css +2 -2
- package/dist/styles/top-app-bar.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/dist/styles/utilities.css +1 -1
- package/dist/styles.css +2 -2
- package/dist/svelte/Badge.svelte +1 -1
- package/dist/svelte/BottomAppBar.svelte +1 -1
- package/dist/svelte/BottomSheet.svelte +1 -1
- package/dist/svelte/Button.svelte +1 -1
- package/dist/svelte/ButtonGroup.svelte +1 -1
- package/dist/svelte/Card.svelte +1 -1
- package/dist/svelte/Carousel.svelte +1 -1
- package/dist/svelte/Checkbox.svelte +1 -1
- package/dist/svelte/Chips.svelte +1 -1
- package/dist/svelte/Datepicker.svelte +1 -1
- package/dist/svelte/Dialog.svelte +1 -1
- package/dist/svelte/Divider.svelte +1 -1
- package/dist/svelte/Drawer.svelte +1 -1
- package/dist/svelte/ExtendedFab.svelte +1 -1
- package/dist/svelte/Fab.svelte +1 -1
- package/dist/svelte/FabMenu.svelte +1 -1
- package/dist/svelte/IconButton.svelte +1 -1
- package/dist/svelte/List.svelte +1 -1
- package/dist/svelte/LoadingIndicator.svelte +1 -1
- package/dist/svelte/Menu.svelte +1 -1
- package/dist/svelte/NavigationBar.svelte +1 -1
- package/dist/svelte/NavigationRail.svelte +1 -1
- package/dist/svelte/Progress.svelte +1 -1
- package/dist/svelte/Radios.svelte +1 -1
- package/dist/svelte/Search.svelte +1 -1
- package/dist/svelte/Select.svelte +1 -1
- package/dist/svelte/SideSheet.svelte +1 -1
- package/dist/svelte/Slider.svelte +1 -1
- package/dist/svelte/Snackbar.svelte +1 -1
- package/dist/svelte/SplitButton.svelte +1 -1
- package/dist/svelte/Switch.svelte +1 -1
- package/dist/svelte/Tabs.svelte +1 -1
- package/dist/svelte/TextField.svelte +1 -1
- package/dist/svelte/Timepicker.svelte +1 -1
- package/dist/svelte/Toolbar.svelte +1 -1
- package/dist/svelte/Tooltip.svelte +1 -1
- package/dist/svelte/TopAppBar.svelte +1 -1
- package/dist/svelte/runtime.d.ts +2 -2
- package/dist/svelte/runtime.js +4 -1
- package/dist/themes/autumn-contrast.css +1 -1
- package/dist/themes/autumn.css +1 -1
- package/dist/themes/baseline-contrast.css +1 -1
- package/dist/themes/baseline.css +1 -1
- package/dist/themes/brownbeige-contrast.css +1 -1
- package/dist/themes/brownbeige.css +1 -1
- package/dist/themes/content-contrast.css +1 -1
- package/dist/themes/content.css +1 -1
- package/dist/themes/desert-contrast.css +1 -1
- package/dist/themes/desert.css +1 -1
- package/dist/themes/expressive-contrast.css +1 -1
- package/dist/themes/expressive.css +1 -1
- package/dist/themes/fidelity-contrast.css +1 -1
- package/dist/themes/fidelity.css +1 -1
- package/dist/themes/forest-contrast.css +1 -1
- package/dist/themes/forest.css +1 -1
- package/dist/themes/fruit-salad-contrast.css +1 -1
- package/dist/themes/fruit-salad.css +1 -1
- package/dist/themes/highcontrast-contrast.css +1 -1
- package/dist/themes/highcontrast.css +1 -1
- package/dist/themes/monochrome-contrast.css +1 -1
- package/dist/themes/monochrome.css +1 -1
- package/dist/themes/neutral-contrast.css +1 -1
- package/dist/themes/neutral.css +1 -1
- package/dist/themes/ocean-contrast.css +1 -1
- package/dist/themes/ocean.css +1 -1
- package/dist/themes/rainbow-contrast.css +1 -1
- package/dist/themes/rainbow.css +1 -1
- package/dist/themes/sageivory-contrast.css +1 -1
- package/dist/themes/sageivory.css +1 -1
- package/dist/themes/spring-contrast.css +1 -1
- package/dist/themes/spring.css +1 -1
- package/dist/themes/summer-contrast.css +1 -1
- package/dist/themes/summer.css +1 -1
- package/dist/themes/sunset-contrast.css +1 -1
- package/dist/themes/sunset.css +1 -1
- package/dist/themes/tealcaramel-contrast.css +1 -1
- package/dist/themes/tealcaramel.css +1 -1
- package/dist/themes/vibrant-contrast.css +1 -1
- package/dist/themes/vibrant.css +1 -1
- package/dist/vue/create.d.ts +2 -2
- package/dist/vue/create.js +4 -1
- package/package.json +1 -1
- package/src/styles/abstract/_mixins.scss +4 -4
- package/src/styles/abstract/_theme.scss +1 -1
- package/src/styles/abstract/_variables.scss +7 -7
- package/src/styles/base/_foundation.scss +1 -1
- package/src/styles/base/_typescale-tokens.scss +1 -1
- package/src/styles/base/_typography.scss +1 -1
- package/src/styles/components/_bottom-sheet.scss +1 -1
- package/src/styles/components/_button.scss +1 -1
- package/src/styles/components/_checkbox.scss +5 -5
- package/src/styles/components/_chips.scss +9 -9
- package/src/styles/components/_datepicker.scss +8 -9
- package/src/styles/components/_dialog.scss +1 -1
- package/src/styles/components/_drawer.scss +1 -1
- package/src/styles/components/_fab-menu.scss +1 -1
- package/src/styles/components/_icon-button.scss +50 -13
- package/src/styles/components/_menu.scss +0 -1
- package/src/styles/components/_navigation-bar.scss +1 -1
- package/src/styles/components/_radios.scss +3 -3
- package/src/styles/components/_search.scss +7 -7
- package/src/styles/components/_select.scss +2 -2
- package/src/styles/components/_side-sheet.scss +2 -2
- package/src/styles/components/_slider.scss +6 -6
- package/src/styles/components/_switch.scss +5 -5
- package/src/styles/components/_tabs.scss +15 -15
- package/src/styles/components/_text-field.scss +20 -21
- package/src/styles/components/_timepicker.scss +6 -6
- package/src/styles/components/_toolbar.scss +48 -0
- package/src/styles/components/_tooltip.scss +35 -74
- package/src/styles/elements/_field.scss +2 -2
- package/src/styles/themes/_autumn.scss +3 -3
- package/src/styles/themes/_base-theme.scss +2 -2
- package/src/styles/themes/_baseline.scss +5 -5
- package/src/styles/themes/_forest.scss +3 -3
- package/src/styles/themes/_ocean.scss +3 -3
- package/src/styles/themes/_spring.scss +3 -3
- package/src/styles/themes/_sunset.scss +3 -3
- package/src/styles/utilities/_ripple.scss +1 -1
|
@@ -27,7 +27,7 @@ $arrow-size: 8px;
|
|
|
27
27
|
transform: scale(0.9);
|
|
28
28
|
transform-origin: center;
|
|
29
29
|
box-sizing: border-box;
|
|
30
|
-
// M3's plain tooltip has no elevation (PlainTooltipTokens)
|
|
30
|
+
// M3's plain tooltip has no elevation (PlainTooltipTokens)
|
|
31
31
|
|
|
32
32
|
// Typography
|
|
33
33
|
@include m.typography('body-small');
|
|
@@ -73,6 +73,8 @@ $arrow-size: 8px;
|
|
|
73
73
|
padding: 12px 16px;
|
|
74
74
|
border-radius: v.shape('medium');
|
|
75
75
|
background-color: t.color('surface-container');
|
|
76
|
+
// The arrow follows the surface (see the arrow styles below).
|
|
77
|
+
--#{base.$prefix}-tooltip-arrow-color: #{t.color('surface-container')};
|
|
76
78
|
color: t.color('on-surface-variant');
|
|
77
79
|
text-align: start;
|
|
78
80
|
@include m.typography('body-medium');
|
|
@@ -81,166 +83,125 @@ $arrow-size: 8px;
|
|
|
81
83
|
|
|
82
84
|
// Plain is M3's plain tooltip, which the base already is (PlainTooltipTokens:
|
|
83
85
|
// inverse-surface, inverse-on-surface). It had its own surface-container-high
|
|
84
|
-
// with an outline, which no M3 source has
|
|
86
|
+
// with an outline, which no M3 source has; its arrows kept painting that
|
|
87
|
+
// surface after the surface itself was corrected, until they went back to the
|
|
88
|
+
// base colour with the surface.
|
|
85
89
|
&--plain {
|
|
86
90
|
background-color: t.color('inverse-surface');
|
|
87
91
|
color: t.color('inverse-on-surface');
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
// Arrow styles
|
|
95
|
+
// The arrow is part of the container it grows from, so it takes the variant's
|
|
96
|
+
// surface colour: default and plain paint inverse-surface (the base value) and
|
|
97
|
+
// rich, whose surface is surface-container, overrides it there. No colour role
|
|
98
|
+
// exists for an arrow (m3.material.io tooltips specs name none), so the surface
|
|
99
|
+
// itself is the only colour it can read as.
|
|
91
100
|
&__arrow {
|
|
92
101
|
position: absolute;
|
|
93
102
|
width: 0;
|
|
94
103
|
height: 0;
|
|
95
104
|
border: $arrow-size solid transparent;
|
|
96
105
|
pointer-events: none;
|
|
97
|
-
|
|
106
|
+
|
|
98
107
|
// Top position (arrow points up)
|
|
99
108
|
&--top {
|
|
100
109
|
bottom: 100%;
|
|
101
110
|
left: 50%;
|
|
102
111
|
transform: translateX(-50%);
|
|
103
|
-
border-bottom-color: t.color('inverse-surface');
|
|
112
|
+
border-bottom-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
104
113
|
border-top-width: 0;
|
|
105
|
-
|
|
106
|
-
.#{$component}--plain & {
|
|
107
|
-
border-bottom-color: t.color('surface-container-high');
|
|
108
|
-
}
|
|
109
114
|
}
|
|
110
|
-
|
|
115
|
+
|
|
111
116
|
// Top-start position
|
|
112
117
|
&--top-start {
|
|
113
118
|
bottom: 100%;
|
|
114
119
|
left: $arrow-size;
|
|
115
|
-
border-bottom-color: t.color('inverse-surface');
|
|
120
|
+
border-bottom-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
116
121
|
border-top-width: 0;
|
|
117
|
-
|
|
118
|
-
.#{$component}--plain & {
|
|
119
|
-
border-bottom-color: t.color('surface-container-high');
|
|
120
|
-
}
|
|
121
122
|
}
|
|
122
|
-
|
|
123
|
+
|
|
123
124
|
// Top-end position
|
|
124
125
|
&--top-end {
|
|
125
126
|
bottom: 100%;
|
|
126
127
|
right: $arrow-size;
|
|
127
|
-
border-bottom-color: t.color('inverse-surface');
|
|
128
|
+
border-bottom-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
128
129
|
border-top-width: 0;
|
|
129
|
-
|
|
130
|
-
.#{$component}--plain & {
|
|
131
|
-
border-bottom-color: t.color('surface-container-high');
|
|
132
|
-
}
|
|
133
130
|
}
|
|
134
|
-
|
|
131
|
+
|
|
135
132
|
// Bottom position (arrow points down)
|
|
136
133
|
&--bottom {
|
|
137
134
|
top: 100%;
|
|
138
135
|
left: 50%;
|
|
139
136
|
transform: translateX(-50%);
|
|
140
|
-
border-top-color: t.color('inverse-surface');
|
|
137
|
+
border-top-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
141
138
|
border-bottom-width: 0;
|
|
142
|
-
|
|
143
|
-
.#{$component}--plain & {
|
|
144
|
-
border-top-color: t.color('surface-container-high');
|
|
145
|
-
}
|
|
146
139
|
}
|
|
147
|
-
|
|
140
|
+
|
|
148
141
|
// Bottom-start position
|
|
149
142
|
&--bottom-start {
|
|
150
143
|
top: 100%;
|
|
151
144
|
left: $arrow-size;
|
|
152
|
-
border-top-color: t.color('inverse-surface');
|
|
145
|
+
border-top-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
153
146
|
border-bottom-width: 0;
|
|
154
|
-
|
|
155
|
-
.#{$component}--plain & {
|
|
156
|
-
border-top-color: t.color('surface-container-high');
|
|
157
|
-
}
|
|
158
147
|
}
|
|
159
|
-
|
|
148
|
+
|
|
160
149
|
// Bottom-end position
|
|
161
150
|
&--bottom-end {
|
|
162
151
|
top: 100%;
|
|
163
152
|
right: $arrow-size;
|
|
164
|
-
border-top-color: t.color('inverse-surface');
|
|
153
|
+
border-top-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
165
154
|
border-bottom-width: 0;
|
|
166
|
-
|
|
167
|
-
.#{$component}--plain & {
|
|
168
|
-
border-top-color: t.color('surface-container-high');
|
|
169
|
-
}
|
|
170
155
|
}
|
|
171
|
-
|
|
156
|
+
|
|
172
157
|
// Left position (arrow points left)
|
|
173
158
|
&--left {
|
|
174
159
|
right: 100%;
|
|
175
160
|
top: 50%;
|
|
176
161
|
transform: translateY(-50%);
|
|
177
|
-
border-right-color: t.color('inverse-surface');
|
|
162
|
+
border-right-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
178
163
|
border-left-width: 0;
|
|
179
|
-
|
|
180
|
-
.#{$component}--plain & {
|
|
181
|
-
border-right-color: t.color('surface-container-high');
|
|
182
|
-
}
|
|
183
164
|
}
|
|
184
|
-
|
|
165
|
+
|
|
185
166
|
// Left-start position
|
|
186
167
|
&--left-start {
|
|
187
168
|
right: 100%;
|
|
188
169
|
top: $arrow-size;
|
|
189
|
-
border-right-color: t.color('inverse-surface');
|
|
170
|
+
border-right-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
190
171
|
border-left-width: 0;
|
|
191
|
-
|
|
192
|
-
.#{$component}--plain & {
|
|
193
|
-
border-right-color: t.color('surface-container-high');
|
|
194
|
-
}
|
|
195
172
|
}
|
|
196
|
-
|
|
173
|
+
|
|
197
174
|
// Left-end position
|
|
198
175
|
&--left-end {
|
|
199
176
|
right: 100%;
|
|
200
177
|
bottom: $arrow-size;
|
|
201
|
-
border-right-color: t.color('inverse-surface');
|
|
178
|
+
border-right-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
202
179
|
border-left-width: 0;
|
|
203
|
-
|
|
204
|
-
.#{$component}--plain & {
|
|
205
|
-
border-right-color: t.color('surface-container-high');
|
|
206
|
-
}
|
|
207
180
|
}
|
|
208
|
-
|
|
181
|
+
|
|
209
182
|
// Right position (arrow points right)
|
|
210
183
|
&--right {
|
|
211
184
|
left: 100%;
|
|
212
185
|
top: 50%;
|
|
213
186
|
transform: translateY(-50%);
|
|
214
|
-
border-left-color: t.color('inverse-surface');
|
|
187
|
+
border-left-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
215
188
|
border-right-width: 0;
|
|
216
|
-
|
|
217
|
-
.#{$component}--plain & {
|
|
218
|
-
border-left-color: t.color('surface-container-high');
|
|
219
|
-
}
|
|
220
189
|
}
|
|
221
|
-
|
|
190
|
+
|
|
222
191
|
// Right-start position
|
|
223
192
|
&--right-start {
|
|
224
193
|
left: 100%;
|
|
225
194
|
top: $arrow-size;
|
|
226
|
-
border-left-color: t.color('inverse-surface');
|
|
195
|
+
border-left-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
227
196
|
border-right-width: 0;
|
|
228
|
-
|
|
229
|
-
.#{$component}--plain & {
|
|
230
|
-
border-left-color: t.color('surface-container-high');
|
|
231
|
-
}
|
|
232
197
|
}
|
|
233
|
-
|
|
198
|
+
|
|
234
199
|
// Right-end position
|
|
235
200
|
&--right-end {
|
|
236
201
|
left: 100%;
|
|
237
202
|
bottom: $arrow-size;
|
|
238
|
-
border-left-color: t.color('inverse-surface');
|
|
203
|
+
border-left-color: var(--#{base.$prefix}-tooltip-arrow-color, #{t.color('inverse-surface')});
|
|
239
204
|
border-right-width: 0;
|
|
240
|
-
|
|
241
|
-
.#{$component}--plain & {
|
|
242
|
-
border-left-color: t.color('surface-container-high');
|
|
243
|
-
}
|
|
244
205
|
}
|
|
245
206
|
}
|
|
246
207
|
|
|
@@ -22,7 +22,7 @@ $supporting-row: 20px;
|
|
|
22
22
|
width: v.text-field('width');
|
|
23
23
|
height: v.text-field('height');
|
|
24
24
|
// The input's line, where the upgraded field's text is: 24px down under a
|
|
25
|
-
// label
|
|
25
|
+
// label. The half pixel is the line's baseline, as measured: with
|
|
26
26
|
// it, the sibling on this line does not move at upgrade.
|
|
27
27
|
padding: 24.5px (v.text-field('padding-horizontal') + $trailing) 0 v.text-field('padding-horizontal');
|
|
28
28
|
border-radius: v.text-field('border-radius') v.text-field('border-radius') 0 0;
|
|
@@ -90,7 +90,7 @@ $supporting-row: 20px;
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
// The supporting text row
|
|
93
|
+
// The supporting text row: upgraded, the field gets a row under
|
|
94
94
|
// it, 4dp and a 16dp body-small line, when it has supporting text or a
|
|
95
95
|
// counter (a maxlength). The host reserves the row as a transparent bottom
|
|
96
96
|
// border, so the fill stays on the 56px field (clipped to the padding box)
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
// fixed roles: generated, do not edit
|
|
24
24
|
// (tones 90, 80, 10, 30 of this theme's primary, secondary and tertiary;
|
|
25
|
-
// the same in dark, so declared once
|
|
25
|
+
// the same in dark, so declared once)
|
|
26
26
|
--#{$prefix}-sys-color-primary-fixed: #ffdbcf;
|
|
27
27
|
--#{$prefix}-sys-color-primary-fixed-dim: #ebbcac;
|
|
28
28
|
--#{$prefix}-sys-color-on-primary-fixed: #2e150b;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$prefix}-sys-color-outline: #85736c;
|
|
55
55
|
--#{$prefix}-sys-color-outline-variant: #d7c1ba;
|
|
56
56
|
// Inverse roles (M3: inverse-surface N20, inverse-on-surface N95,
|
|
57
|
-
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
57
|
+
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
58
58
|
--#{$prefix}-sys-color-inverse-surface: #3a2e27;
|
|
59
59
|
--#{$prefix}-sys-color-inverse-on-surface: #ffede5;
|
|
60
60
|
--#{$prefix}-sys-color-inverse-primary: #ebbcac;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
--#{$prefix}-sys-color-outline: #a08c85;
|
|
112
112
|
--#{$prefix}-sys-color-outline-variant: #53433c;
|
|
113
113
|
// Inverse roles (M3: inverse-surface N90 = on-surface, inverse-on-surface N20,
|
|
114
|
-
// inverse-primary P40).
|
|
114
|
+
// inverse-primary P40).
|
|
115
115
|
--#{$prefix}-sys-color-inverse-surface: #ede0d9;
|
|
116
116
|
--#{$prefix}-sys-color-inverse-on-surface: #3a2e27;
|
|
117
117
|
--#{$prefix}-sys-color-inverse-primary: #7a5649;
|
|
@@ -100,11 +100,11 @@ $contrast-emit: all !default;
|
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
// Success, warning and info: not M3 scheme roles, so no scheme generates them.
|
|
103
|
-
// Every theme takes these values, baseline included
|
|
103
|
+
// Every theme takes these values, baseline included.
|
|
104
104
|
// Each keeps its colour's HCT hue and chroma (material-color-utilities) at the
|
|
105
105
|
// tones M3 uses for a role and its on-role: light tone 40 on 100, dark tone 80
|
|
106
106
|
// on 20 (ColorSpec2021 primary / onPrimary). Those tones clear 4.5:1, so none
|
|
107
|
-
// is shifted further
|
|
107
|
+
// is shifted further.
|
|
108
108
|
@mixin status-roles-light() {
|
|
109
109
|
// Success: #007B5A (hue 169, chroma 43) brought from tone 46 to 40. 6.45:1.
|
|
110
110
|
--#{$prefix}-sys-color-success: #006C4E;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/styles/themes/_baseline.scss
|
|
2
2
|
// Medium/high contrast: Tonal Spot from seed #6750a4, secondary from #625b71, tertiary from #7d5260.
|
|
3
3
|
// M3's baseline scheme, light and dark: the values of Compose's ColorLightTokens and
|
|
4
|
-
// ColorDarkTokens (the published baseline, primary #6750A4),
|
|
4
|
+
// ColorDarkTokens (the published baseline, primary #6750A4),
|
|
5
5
|
@use "../abstract/base" as *;
|
|
6
6
|
@use "base-theme" as *;
|
|
7
7
|
@use "../abstract/variables" as v;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
--#{$prefix}-sys-color-on-error: #FFFFFF;
|
|
17
17
|
--#{$prefix}-sys-color-error-container: #F9DEDC;
|
|
18
18
|
--#{$prefix}-sys-color-on-error-container: #410E0B;
|
|
19
|
-
// Success, warning and info, as every generated theme has them
|
|
19
|
+
// Success, warning and info, as every generated theme has them:
|
|
20
20
|
// the badge's status colours had no background under the default theme
|
|
21
21
|
@include status-roles-light;
|
|
22
22
|
// Key colors
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
--#{$prefix}-sys-color-tertiary-container: #ffd8e4;
|
|
36
36
|
--#{$prefix}-sys-color-on-tertiary-container: #31111d;
|
|
37
37
|
|
|
38
|
-
// Fixed accents: the same in light and dark (M3 fixed roles
|
|
38
|
+
// Fixed accents: the same in light and dark (M3 fixed roles;
|
|
39
39
|
// Compose ColorLightTokens / ColorDarkTokens, tones 90, 80, 10 and 30)
|
|
40
40
|
--#{$prefix}-sys-color-primary-fixed: #eaddff;
|
|
41
41
|
--#{$prefix}-sys-color-primary-fixed-dim: #d0bcff;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
--#{$prefix}-sys-color-surface-dim: #ded8e1;
|
|
56
56
|
--#{$prefix}-sys-color-surface-bright: #fef7ff;
|
|
57
57
|
// Compose ColorLightTokens.SurfaceVariant = NeutralVariant90; the filled
|
|
58
|
-
// card's disabled container reads it (FilledCardTokens
|
|
58
|
+
// card's disabled container reads it (FilledCardTokens)
|
|
59
59
|
--#{$prefix}-sys-color-surface-variant: #e7e0ec;
|
|
60
60
|
--#{$prefix}-sys-color-surface-container-lowest: #ffffff;
|
|
61
61
|
--#{$prefix}-sys-color-surface-container-low: #f7f2fa;
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
--#{$prefix}-sys-color-tertiary-container: #633b48;
|
|
106
106
|
--#{$prefix}-sys-color-on-tertiary-container: #ffd8e4;
|
|
107
107
|
|
|
108
|
-
// Fixed accents: the same in light and dark (M3 fixed roles
|
|
108
|
+
// Fixed accents: the same in light and dark (M3 fixed roles;
|
|
109
109
|
// Compose ColorLightTokens / ColorDarkTokens, tones 90, 80, 10 and 30)
|
|
110
110
|
--#{$prefix}-sys-color-primary-fixed: #eaddff;
|
|
111
111
|
--#{$prefix}-sys-color-primary-fixed-dim: #d0bcff;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
// fixed roles: generated, do not edit
|
|
24
24
|
// (tones 90, 80, 10, 30 of this theme's primary, secondary and tertiary;
|
|
25
|
-
// the same in dark, so declared once
|
|
25
|
+
// the same in dark, so declared once)
|
|
26
26
|
--#{$prefix}-sys-color-primary-fixed: #d6e9be;
|
|
27
27
|
--#{$prefix}-sys-color-primary-fixed-dim: #bacda3;
|
|
28
28
|
--#{$prefix}-sys-color-on-primary-fixed: #111f05;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$prefix}-sys-color-outline: #767b6f;
|
|
55
55
|
--#{$prefix}-sys-color-outline-variant: #c9ccb7;
|
|
56
56
|
// Inverse roles (M3: inverse-surface N20, inverse-on-surface N95,
|
|
57
|
-
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
57
|
+
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
58
58
|
--#{$prefix}-sys-color-inverse-surface: #303127;
|
|
59
59
|
--#{$prefix}-sys-color-inverse-on-surface: #f3f1e2;
|
|
60
60
|
--#{$prefix}-sys-color-inverse-primary: #bacda3;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
--#{$prefix}-sys-color-outline: #929688;
|
|
97
97
|
--#{$prefix}-sys-color-outline-variant: #464840;
|
|
98
98
|
// Inverse roles (M3: inverse-surface N90 = on-surface, inverse-on-surface N20,
|
|
99
|
-
// inverse-primary P40).
|
|
99
|
+
// inverse-primary P40).
|
|
100
100
|
--#{$prefix}-sys-color-inverse-surface: #e3e3dc;
|
|
101
101
|
--#{$prefix}-sys-color-inverse-on-surface: #303127;
|
|
102
102
|
--#{$prefix}-sys-color-inverse-primary: #536442;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
// fixed roles: generated, do not edit
|
|
24
24
|
// (tones 90, 80, 10, 30 of this theme's primary, secondary and tertiary;
|
|
25
|
-
// the same in dark, so declared once
|
|
25
|
+
// the same in dark, so declared once)
|
|
26
26
|
--#{$prefix}-sys-color-primary-fixed: #cae6ff;
|
|
27
27
|
--#{$prefix}-sys-color-primary-fixed-dim: #8dcdff;
|
|
28
28
|
--#{$prefix}-sys-color-on-primary-fixed: #001e30;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$prefix}-sys-color-outline: #71787d;
|
|
55
55
|
--#{$prefix}-sys-color-outline-variant: #c1c8cd;
|
|
56
56
|
// Inverse roles (M3: inverse-surface N20, inverse-on-surface N95,
|
|
57
|
-
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
57
|
+
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
58
58
|
--#{$prefix}-sys-color-inverse-surface: #2b3135;
|
|
59
59
|
--#{$prefix}-sys-color-inverse-on-surface: #ecf1f6;
|
|
60
60
|
--#{$prefix}-sys-color-inverse-primary: #8dcdff;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
--#{$prefix}-sys-color-outline: #8b9297;
|
|
97
97
|
--#{$prefix}-sys-color-outline-variant: #41484d;
|
|
98
98
|
// Inverse roles (M3: inverse-surface N90 = on-surface, inverse-on-surface N20,
|
|
99
|
-
// inverse-primary P40).
|
|
99
|
+
// inverse-primary P40).
|
|
100
100
|
--#{$prefix}-sys-color-inverse-surface: #e1e3e4;
|
|
101
101
|
--#{$prefix}-sys-color-inverse-on-surface: #2b3135;
|
|
102
102
|
--#{$prefix}-sys-color-inverse-primary: #006493;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
// fixed roles: generated, do not edit
|
|
24
24
|
// (tones 90, 80, 10, 30 of this theme's primary, secondary and tertiary;
|
|
25
|
-
// the same in dark, so declared once
|
|
25
|
+
// the same in dark, so declared once)
|
|
26
26
|
--#{$prefix}-sys-color-primary-fixed: #9af7a3;
|
|
27
27
|
--#{$prefix}-sys-color-primary-fixed-dim: #7eda8a;
|
|
28
28
|
--#{$prefix}-sys-color-on-primary-fixed: #002108;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$prefix}-sys-color-outline: #727970;
|
|
55
55
|
--#{$prefix}-sys-color-outline-variant: #c1c9be;
|
|
56
56
|
// Inverse roles (M3: inverse-surface N20, inverse-on-surface N95,
|
|
57
|
-
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
57
|
+
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
58
58
|
--#{$prefix}-sys-color-inverse-surface: #2b322a;
|
|
59
59
|
--#{$prefix}-sys-color-inverse-on-surface: #ebf3e6;
|
|
60
60
|
--#{$prefix}-sys-color-inverse-primary: #7eda8a;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
--#{$prefix}-sys-color-outline: #8b9388;
|
|
97
97
|
--#{$prefix}-sys-color-outline-variant: #424940;
|
|
98
98
|
// Inverse roles (M3: inverse-surface N90 = on-surface, inverse-on-surface N20,
|
|
99
|
-
// inverse-primary P40).
|
|
99
|
+
// inverse-primary P40).
|
|
100
100
|
--#{$prefix}-sys-color-inverse-surface: #d9e3d4;
|
|
101
101
|
--#{$prefix}-sys-color-inverse-on-surface: #2b322a;
|
|
102
102
|
--#{$prefix}-sys-color-inverse-primary: #006e2b;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
// fixed roles: generated, do not edit
|
|
24
24
|
// (tones 90, 80, 10, 30 of this theme's primary, secondary and tertiary;
|
|
25
|
-
// the same in dark, so declared once
|
|
25
|
+
// the same in dark, so declared once)
|
|
26
26
|
--#{$prefix}-sys-color-primary-fixed: #ffdbcc;
|
|
27
27
|
--#{$prefix}-sys-color-primary-fixed-dim: #ffb695;
|
|
28
28
|
--#{$prefix}-sys-color-on-primary-fixed: #351000;
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
--#{$prefix}-sys-color-outline: #85736d;
|
|
55
55
|
--#{$prefix}-sys-color-outline-variant: #d8c2bb;
|
|
56
56
|
// Inverse roles (M3: inverse-surface N20, inverse-on-surface N95,
|
|
57
|
-
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
57
|
+
// inverse-primary P80), from this theme's neutral and primary palettes.
|
|
58
58
|
--#{$prefix}-sys-color-inverse-surface: #33302d;
|
|
59
59
|
--#{$prefix}-sys-color-inverse-on-surface: #f7efeb;
|
|
60
60
|
--#{$prefix}-sys-color-inverse-primary: #ffb695;
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
--#{$prefix}-sys-color-outline: #a08c85;
|
|
97
97
|
--#{$prefix}-sys-color-outline-variant: #53433e;
|
|
98
98
|
// Inverse roles (M3: inverse-surface N90 = on-surface, inverse-on-surface N20,
|
|
99
|
-
// inverse-primary P40).
|
|
99
|
+
// inverse-primary P40).
|
|
100
100
|
--#{$prefix}-sys-color-inverse-surface: #f0dfd9;
|
|
101
101
|
--#{$prefix}-sys-color-inverse-on-surface: #33302d;
|
|
102
102
|
--#{$prefix}-sys-color-inverse-primary: #a23f00;
|
|
@@ -36,7 +36,7 @@ $component: '#{base.$prefix}-ripple';
|
|
|
36
36
|
// Active ripple
|
|
37
37
|
&.active {
|
|
38
38
|
animation: #{$component}-expand 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
|
|
39
|
-
// The wave is the pressed state layer
|
|
39
|
+
// The wave is the pressed state layer, as Compose's ripple is.
|
|
40
40
|
opacity: v.state('pressed-state-layer-opacity');
|
|
41
41
|
}
|
|
42
42
|
|