material 3.7.2 → 3.8.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/NOTICE +223 -0
- package/README.md +5 -3
- package/dist/components/extended-fab/types.d.ts +3 -0
- package/dist/components/fab/types.d.ts +3 -0
- package/dist/components/slider/features/controller.js +24 -8
- package/dist/elements/css/card.css +1 -1
- package/dist/elements/css/card.js +1 -1
- package/dist/elements/css/dialog.css +1 -1
- package/dist/elements/css/dialog.js +1 -1
- package/dist/elements/css/menu.css +1 -1
- package/dist/elements/css/menu.js +1 -1
- package/dist/elements/css/select.css +1 -1
- package/dist/elements/css/select.js +1 -1
- package/dist/elements/css/slider.css +1 -1
- package/dist/elements/css/slider.js +1 -1
- package/dist/elements/css/tabs.css +1 -1
- package/dist/elements/css/tabs.js +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/timepicker.js +1 -1
- package/dist/elements/extended-fab.d.ts +1 -0
- package/dist/elements/fab.d.ts +1 -0
- 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/styles/badge.css +1 -1
- package/dist/styles/base-lite.css +2 -2
- package/dist/styles/base.css +2 -2
- 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 +2 -2
- 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 +2 -2
- package/dist/styles/datepicker.css +1 -1
- package/dist/styles/dialog.css +2 -2
- 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 +1 -1
- package/dist/styles/list.css +1 -1
- package/dist/styles/loading-indicator.css +1 -1
- package/dist/styles/menu.css +2 -2
- 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 +2 -2
- package/dist/styles/side-sheet.css +1 -1
- package/dist/styles/slider.css +2 -2
- 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 +2 -2
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/timepicker.css +2 -2
- package/dist/styles/toolbar.css +1 -1
- package/dist/styles/tooltip.css +1 -1
- 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/theme/image.d.ts +2 -0
- package/dist/theme/image.js +5 -0
- package/dist/theme/index.d.ts +23 -0
- package/dist/theme/index.js +32 -0
- package/dist/theme/roles.js +68 -0
- package/dist/theme/variants.d.ts +9 -0
- package/dist/theme/variants.js +17 -0
- package/dist/theme/vendor/contrast/contrast.js +72 -0
- package/dist/theme/vendor/dislike/dislike_analyzer.js +31 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.d.ts +63 -0
- package/dist/theme/vendor/dynamiccolor/color_spec_2021.js +663 -0
- package/dist/theme/vendor/dynamiccolor/contrast_curve.js +42 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.d.ts +24 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_color.js +264 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.d.ts +87 -0
- package/dist/theme/vendor/dynamiccolor/dynamic_scheme.js +418 -0
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.d.ts +124 -0
- package/dist/theme/vendor/dynamiccolor/material_dynamic_colors.js +311 -0
- package/dist/theme/vendor/dynamiccolor/tone_delta_pair.js +27 -0
- package/dist/theme/vendor/dynamiccolor/variant.js +28 -0
- package/dist/theme/vendor/hct/cam16.js +249 -0
- package/dist/theme/vendor/hct/hct.d.ts +23 -0
- package/dist/theme/vendor/hct/hct.js +86 -0
- package/dist/theme/vendor/hct/hct_solver.js +390 -0
- package/dist/theme/vendor/hct/viewing_conditions.js +73 -0
- package/dist/theme/vendor/palettes/tonal_palette.js +114 -0
- package/dist/theme/vendor/quantize/lab_point_provider.js +31 -0
- package/dist/theme/vendor/quantize/quantizer_celebi.js +25 -0
- package/dist/theme/vendor/quantize/quantizer_map.js +31 -0
- package/dist/theme/vendor/quantize/quantizer_wsmeans.js +178 -0
- package/dist/theme/vendor/quantize/quantizer_wu.js +342 -0
- package/dist/theme/vendor/scheme/scheme_content.js +30 -0
- package/dist/theme/vendor/scheme/scheme_expressive.js +30 -0
- package/dist/theme/vendor/scheme/scheme_fidelity.js +30 -0
- package/dist/theme/vendor/scheme/scheme_monochrome.js +30 -0
- package/dist/theme/vendor/scheme/scheme_neutral.js +30 -0
- package/dist/theme/vendor/scheme/scheme_tonal_spot.js +30 -0
- package/dist/theme/vendor/scheme/scheme_vibrant.js +30 -0
- package/dist/theme/vendor/score/score.js +100 -0
- package/dist/theme/vendor/temperature/temperature_cache.js +198 -0
- package/dist/theme/vendor/utils/color_utils.js +173 -0
- package/dist/theme/vendor/utils/image_utils.js +72 -0
- package/dist/theme/vendor/utils/math_utils.js +75 -0
- package/dist/theme/vendor/utils/string_utils.js +61 -0
- package/dist/themes/autumn-contrast.css +2 -2
- package/dist/themes/autumn.css +2 -2
- package/dist/themes/baseline-contrast.css +2 -2
- package/dist/themes/baseline.css +2 -2
- package/dist/themes/brownbeige-contrast.css +2 -2
- package/dist/themes/brownbeige.css +2 -2
- package/dist/themes/content-contrast.css +2 -2
- package/dist/themes/content.css +2 -2
- package/dist/themes/desert-contrast.css +2 -2
- package/dist/themes/desert.css +2 -2
- package/dist/themes/expressive-contrast.css +2 -2
- package/dist/themes/expressive.css +2 -2
- package/dist/themes/fidelity-contrast.css +2 -2
- package/dist/themes/fidelity.css +2 -2
- package/dist/themes/forest-contrast.css +2 -2
- package/dist/themes/forest.css +2 -2
- package/dist/themes/fruit-salad-contrast.css +2 -2
- package/dist/themes/fruit-salad.css +2 -2
- package/dist/themes/highcontrast-contrast.css +2 -2
- package/dist/themes/highcontrast.css +2 -2
- package/dist/themes/monochrome-contrast.css +2 -2
- package/dist/themes/monochrome.css +2 -2
- package/dist/themes/neutral-contrast.css +2 -2
- package/dist/themes/neutral.css +2 -2
- package/dist/themes/ocean-contrast.css +2 -2
- package/dist/themes/ocean.css +2 -2
- package/dist/themes/rainbow-contrast.css +2 -2
- package/dist/themes/rainbow.css +2 -2
- package/dist/themes/sageivory-contrast.css +2 -2
- package/dist/themes/sageivory.css +2 -2
- package/dist/themes/spring-contrast.css +2 -2
- package/dist/themes/spring.css +2 -2
- package/dist/themes/summer-contrast.css +2 -2
- package/dist/themes/summer.css +2 -2
- package/dist/themes/sunset-contrast.css +2 -2
- package/dist/themes/sunset.css +2 -2
- package/dist/themes/tealcaramel-contrast.css +2 -2
- package/dist/themes/tealcaramel.css +2 -2
- package/dist/themes/vibrant-contrast.css +2 -2
- package/dist/themes/vibrant.css +2 -2
- package/package.json +15 -1
- package/src/styles/abstract/_base.scss +0 -1
- package/src/styles/abstract/_direction.scss +121 -152
- package/src/styles/abstract/_emit.scss +7 -16
- package/src/styles/abstract/_floating-placement.scss +9 -10
- package/src/styles/abstract/_functions.scss +64 -79
- package/src/styles/abstract/_mixins.scss +355 -459
- package/src/styles/abstract/_theme.scss +122 -136
- package/src/styles/abstract/_variables.scss +320 -390
- package/src/styles/abstract/chips/_assist.scss +2 -3
- package/src/styles/abstract/chips/_filter.scss +2 -3
- package/src/styles/abstract/chips/_input.scss +2 -3
- package/src/styles/abstract/chips/_suggestion.scss +2 -3
- package/src/styles/base/_body-theme.scss +10 -15
- package/src/styles/base/_document.scss +10 -33
- package/src/styles/base/_reset.scss +20 -40
- package/src/styles/base/_tokens.scss +6 -21
- package/src/styles/base/_typescale-tokens.scss +12 -16
- package/src/styles/base/_typography.scss +28 -37
- package/src/styles/components/_badge.scss +171 -193
- package/src/styles/components/_bottom-app-bar.scss +72 -90
- package/src/styles/components/_bottom-sheet.scss +188 -232
- package/src/styles/components/_button-group.scss +140 -189
- package/src/styles/components/_button.scss +382 -478
- package/src/styles/components/_card.scss +349 -473
- package/src/styles/components/_carousel.scss +134 -156
- package/src/styles/components/_checkbox.scss +208 -249
- package/src/styles/components/_chips.scss +239 -304
- package/src/styles/components/_datepicker.scss +172 -222
- package/src/styles/components/_dialog.scss +428 -553
- package/src/styles/components/_divider.scss +37 -46
- package/src/styles/components/_drawer.scss +571 -678
- package/src/styles/components/_extended-fab.scss +263 -294
- package/src/styles/components/_fab-menu.scss +225 -267
- package/src/styles/components/_fab.scss +197 -218
- package/src/styles/components/_icon-button.scss +483 -588
- package/src/styles/components/_list.scss +115 -144
- package/src/styles/components/_loading-indicator.scss +23 -29
- package/src/styles/components/_menu.scss +543 -699
- package/src/styles/components/_navigation-bar.scss +189 -234
- package/src/styles/components/_navigation-rail.scss +256 -312
- package/src/styles/components/_progress.scss +60 -85
- package/src/styles/components/_radios.scss +170 -207
- package/src/styles/components/_search.scss +369 -455
- package/src/styles/components/_select.scss +78 -185
- package/src/styles/components/_side-sheet.scss +234 -292
- package/src/styles/components/_slider.scss +289 -367
- package/src/styles/components/_snackbar.scss +149 -198
- package/src/styles/components/_split-button.scss +139 -228
- package/src/styles/components/_switch.scss +282 -349
- package/src/styles/components/_tabs.scss +350 -547
- package/src/styles/components/_text-field.scss +788 -980
- package/src/styles/components/_timepicker.scss +435 -506
- package/src/styles/components/_toolbar.scss +178 -242
- package/src/styles/components/_tooltip.scss +152 -197
- package/src/styles/components/_top-app-bar.scss +206 -230
- package/src/styles/elements/_badge.scss +42 -61
- package/src/styles/elements/_bottom-app-bar.scss +14 -20
- package/src/styles/elements/_bottom-sheet.scss +0 -3
- package/src/styles/elements/_button-group.scss +80 -80
- package/src/styles/elements/_button.scss +72 -88
- package/src/styles/elements/_card.scss +48 -57
- package/src/styles/elements/_carousel.scss +2 -5
- package/src/styles/elements/_checkbox.scss +32 -43
- package/src/styles/elements/_chips.scss +18 -22
- package/src/styles/elements/_config.scss +11 -26
- package/src/styles/elements/_datepicker.scss +17 -22
- package/src/styles/elements/_dialog.scss +0 -3
- package/src/styles/elements/_divider.scss +11 -13
- package/src/styles/elements/_drawer.scss +9 -14
- package/src/styles/elements/_extended-fab.scss +36 -40
- package/src/styles/elements/_fab-menu.scss +21 -25
- package/src/styles/elements/_fab.scss +17 -20
- package/src/styles/elements/_field.scss +93 -114
- package/src/styles/elements/_icon-button.scss +34 -38
- package/src/styles/elements/_index.scss +0 -4
- package/src/styles/elements/_list.scss +19 -26
- package/src/styles/elements/_loading-indicator.scss +6 -9
- package/src/styles/elements/_menu.scss +0 -3
- package/src/styles/elements/_navigation-bar.scss +5 -9
- package/src/styles/elements/_navigation-rail.scss +10 -15
- package/src/styles/elements/_progress.scss +15 -18
- package/src/styles/elements/_radios.scss +24 -49
- package/src/styles/elements/_search.scss +19 -24
- package/src/styles/elements/_select.scss +4 -9
- package/src/styles/elements/_side-sheet.scss +0 -3
- package/src/styles/elements/_slider.scss +15 -35
- package/src/styles/elements/_snackbar.scss +0 -3
- package/src/styles/elements/_split-button.scss +33 -39
- package/src/styles/elements/_switch.scss +50 -90
- package/src/styles/elements/_tabs.scss +9 -13
- package/src/styles/elements/_text-field.scss +150 -178
- package/src/styles/elements/_timepicker.scss +0 -3
- package/src/styles/elements/_toolbar.scss +30 -35
- package/src/styles/elements/_tooltip.scss +0 -3
- package/src/styles/elements/_top-app-bar.scss +38 -45
- package/src/styles/main.scss +0 -15
- package/src/styles/themes/_autumn.scss +258 -258
- package/src/styles/themes/_base-theme.scss +112 -134
- package/src/styles/themes/_baseline.scss +291 -314
- package/src/styles/themes/_brownbeige.scss +270 -250
- package/src/styles/themes/_content.scss +268 -248
- package/src/styles/themes/_desert.scss +270 -250
- package/src/styles/themes/_expressive.scss +270 -250
- package/src/styles/themes/_fidelity.scss +268 -248
- package/src/styles/themes/_forest.scss +260 -259
- package/src/styles/themes/_fruit-salad.scss +270 -250
- package/src/styles/themes/_highcontrast.scss +183 -172
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/themes/_monochrome.scss +254 -234
- package/src/styles/themes/_neutral.scss +270 -250
- package/src/styles/themes/_ocean.scss +260 -259
- package/src/styles/themes/_rainbow.scss +270 -250
- package/src/styles/themes/_sageivory.scss +270 -250
- package/src/styles/themes/_spring.scss +256 -255
- package/src/styles/themes/_summer.scss +270 -250
- package/src/styles/themes/_sunset.scss +260 -259
- package/src/styles/themes/_tealcaramel.scss +270 -250
- package/src/styles/themes/_vibrant.scss +270 -250
- package/src/styles/utilities/_colors.scss +44 -50
- package/src/styles/utilities/_flexbox.scss +48 -59
- package/src/styles/utilities/_layout.scss +516 -591
- package/src/styles/utilities/_ripple.scss +61 -70
- package/src/styles/utilities/_spacing.scss +120 -127
- package/src/styles/utilities/_typography.scss +45 -58
- package/src/styles/utilities/_visibility.scss +61 -76
- package/dist/package.json +0 -488
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/styles/components/_search.scss
|
|
2
|
-
// Material Design 3 Search Component Styles
|
|
3
|
-
// Implements MD3 Search Bar and Search View specifications
|
|
4
1
|
|
|
5
2
|
@use "../abstract/base" as base;
|
|
6
3
|
@use "../abstract/variables" as v;
|
|
@@ -9,14 +6,8 @@
|
|
|
9
6
|
|
|
10
7
|
$component: "#{base.$prefix}-search";
|
|
11
8
|
|
|
12
|
-
// ============================================================================
|
|
13
|
-
// MD3 Design Tokens
|
|
14
|
-
// ============================================================================
|
|
15
9
|
|
|
16
10
|
$bar-height: 56px;
|
|
17
|
-
// SearchBarTokens.ContainerShape is CornerFull. Half the height, so the
|
|
18
|
-
// radius animates to the view's corners; min() keeps a theme's full corner
|
|
19
|
-
// in charge when it is smaller.
|
|
20
11
|
$bar-shape: min(var(--#{base.$prefix}-sys-shape-corner-full, 9999px), calc(#{$bar-height} / 2));
|
|
21
12
|
$bar-min-width: 360px;
|
|
22
13
|
$bar-max-width: 720px;
|
|
@@ -34,542 +25,465 @@ $avatar-size: 30px;
|
|
|
34
25
|
$transition-duration: 200ms;
|
|
35
26
|
$transition-easing: cubic-bezier(0.2, 0, 0, 1);
|
|
36
27
|
|
|
37
|
-
// ============================================================================
|
|
38
|
-
// Root Element
|
|
39
|
-
// ============================================================================
|
|
40
28
|
|
|
41
|
-
// The surface is a <dialog>: the browser's dialog box is reset, and closed it
|
|
42
|
-
// still shows, as the bar.
|
|
43
29
|
.#{$component} .#{$component}__surface {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// The root keeps the bar's place in the page. While the view is open, the bar
|
|
61
|
-
// and its results show in the top layer as one surface, placed over it
|
|
62
|
-
// A docked view no longer pushes the page down, and a full-screen
|
|
63
|
-
// search no longer covers the page while it is a bar.
|
|
30
|
+
position: static;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: auto;
|
|
35
|
+
height: auto;
|
|
36
|
+
max-width: none;
|
|
37
|
+
max-height: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
border: 0;
|
|
41
|
+
color: inherit;
|
|
42
|
+
background: transparent;
|
|
43
|
+
overflow: visible;
|
|
44
|
+
}
|
|
45
|
+
|
|
64
46
|
.#{$component} {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
&--disabled {
|
|
175
|
-
pointer-events: none;
|
|
176
|
-
|
|
177
|
-
.#{$component}__container {
|
|
178
|
-
opacity: 0.38;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
&--full-width {
|
|
183
|
-
min-width: 0;
|
|
184
|
-
max-width: none;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
// ============================================================================
|
|
190
|
-
// Styles
|
|
191
|
-
// ============================================================================
|
|
192
|
-
|
|
193
|
-
// The rules above draw the divided style, the baseline: the bar squares off
|
|
194
|
-
// when focused and a divider separates the results. Contained, M3 Expressive's
|
|
195
|
-
// recommended style and the default, keeps the bar's pill and filled container,
|
|
196
|
-
// and gives the results their own container: docked 2dp below the bar with
|
|
197
|
-
// 12dp corners (Compose dockedDropdownShape, dockedDropdownGapSize), full
|
|
198
|
-
// screen on surface-container-low with the bar inset 12dp.
|
|
47
|
+
position: relative;
|
|
48
|
+
display: flex;
|
|
49
|
+
flex-direction: column;
|
|
50
|
+
width: 100%;
|
|
51
|
+
min-width: var(--#{$component}-min-width, #{$bar-min-width});
|
|
52
|
+
max-width: var(--#{$component}-max-width, #{$bar-max-width});
|
|
53
|
+
background-color: transparent;
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
&--bar {
|
|
57
|
+
.#{$component}__container {
|
|
58
|
+
border-radius: $bar-shape;
|
|
59
|
+
height: $bar-height;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.#{$component}__divider,
|
|
63
|
+
.#{$component}__content {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&--view {
|
|
69
|
+
height: $bar-height;
|
|
70
|
+
|
|
71
|
+
.#{$component}__container {
|
|
72
|
+
border-radius: v.shape("extra-large") v.shape("extra-large") 0 0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.#{$component}__divider,
|
|
76
|
+
.#{$component}__content {
|
|
77
|
+
display: block;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.#{$component}__surface {
|
|
81
|
+
position: fixed;
|
|
82
|
+
z-index: 1000;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
&--docked.#{$component}--view {
|
|
88
|
+
.#{$component}__surface {
|
|
89
|
+
inset: var(--#{$component}-top) auto auto var(--#{$component}-left);
|
|
90
|
+
width: var(--#{$component}-width);
|
|
91
|
+
height: auto;
|
|
92
|
+
|
|
93
|
+
&::backdrop {
|
|
94
|
+
background: t.alpha("scrim", 0.32);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.#{$component}__container {
|
|
99
|
+
height: $view-docked-header-height;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.#{$component}__content {
|
|
103
|
+
min-height: $view-docked-min-height;
|
|
104
|
+
max-height: calc(66.67vh - #{$view-docked-header-height});
|
|
105
|
+
border-radius: 0 0 v.shape("extra-large") v.shape("extra-large");
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&--fullscreen {
|
|
110
|
+
&.#{$component}--view {
|
|
111
|
+
.#{$component}__surface {
|
|
112
|
+
inset: 0;
|
|
113
|
+
width: 100%;
|
|
114
|
+
height: 100%;
|
|
115
|
+
max-width: none;
|
|
116
|
+
max-height: none;
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
background-color: t.color("surface-container-high");
|
|
120
|
+
|
|
121
|
+
&::backdrop {
|
|
122
|
+
background: transparent;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.#{$component}__container {
|
|
127
|
+
height: $view-fullscreen-header-height;
|
|
128
|
+
border-radius: 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.#{$component}__content {
|
|
132
|
+
flex: 1;
|
|
133
|
+
max-height: none;
|
|
134
|
+
border-radius: 0;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
&--disabled {
|
|
141
|
+
pointer-events: none;
|
|
142
|
+
|
|
143
|
+
.#{$component}__container {
|
|
144
|
+
opacity: 0.38;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--full-width {
|
|
149
|
+
min-width: 0;
|
|
150
|
+
max-width: none;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
|
|
199
156
|
@mixin contained-fullscreen {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
157
|
+
.#{$component}__surface {
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
padding: 12px;
|
|
160
|
+
background-color: t.color("surface-container-low");
|
|
161
|
+
}
|
|
205
162
|
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
163
|
+
.#{$component}__container {
|
|
164
|
+
height: $bar-height;
|
|
165
|
+
border-radius: $bar-shape;
|
|
166
|
+
}
|
|
210
167
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
168
|
+
.#{$component}__content {
|
|
169
|
+
margin-top: 8px;
|
|
170
|
+
background-color: transparent;
|
|
171
|
+
border-radius: 0;
|
|
172
|
+
}
|
|
216
173
|
}
|
|
217
174
|
|
|
218
175
|
.#{$component}--contained.#{$component}--view {
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
176
|
+
.#{$component}__container {
|
|
177
|
+
border-radius: $bar-shape;
|
|
178
|
+
}
|
|
222
179
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
180
|
+
.#{$component}__divider {
|
|
181
|
+
display: none;
|
|
182
|
+
}
|
|
226
183
|
}
|
|
227
184
|
|
|
228
185
|
.#{$component}--contained.#{$component}--docked.#{$component}--view {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
}
|
|
186
|
+
.#{$component}__content {
|
|
187
|
+
margin-top: 2px;
|
|
188
|
+
border-radius: v.shape('medium');
|
|
189
|
+
}
|
|
234
190
|
}
|
|
235
191
|
|
|
236
192
|
.#{$component}--contained.#{$component}--fullscreen.#{$component}--view {
|
|
237
|
-
|
|
193
|
+
@include contained-fullscreen;
|
|
238
194
|
}
|
|
239
195
|
|
|
240
|
-
// The results reveal on the emphasized decelerate curve (the
|
|
241
|
-
// --expanding and --collapsing classes were never driven, and are gone).
|
|
242
196
|
.#{$component}--view .#{$component}__content {
|
|
243
|
-
|
|
197
|
+
animation: #{$component}-reveal v.motion("duration-medium2") v.motion("easing-emphasized-decelerate");
|
|
244
198
|
}
|
|
245
199
|
|
|
246
200
|
@keyframes #{$component}-reveal {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
201
|
+
from {
|
|
202
|
+
opacity: 0;
|
|
203
|
+
transform: translateY(-8px);
|
|
204
|
+
}
|
|
251
205
|
}
|
|
252
206
|
|
|
253
207
|
@media (prefers-reduced-motion: reduce) {
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
208
|
+
.#{$component}--view .#{$component}__content {
|
|
209
|
+
animation: none;
|
|
210
|
+
}
|
|
257
211
|
}
|
|
258
212
|
|
|
259
|
-
// ============================================================================
|
|
260
|
-
// Container (Header/Bar area)
|
|
261
|
-
// ============================================================================
|
|
262
213
|
|
|
263
|
-
// Icons sit in 48dp tap targets 4dp from the ends, so an icon's centre is 28dp
|
|
264
|
-
// in and the text starts 4dp after the leading target: 56dp, as M3 measures.
|
|
265
214
|
.#{$component}__container {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
// The bar's hover state layer: on-surface at 8%.
|
|
215
|
+
position: relative;
|
|
216
|
+
display: flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
height: $bar-height;
|
|
219
|
+
padding: 0 4px;
|
|
220
|
+
background-color: t.color("surface-container-high");
|
|
221
|
+
transition:
|
|
222
|
+
background-color $transition-duration $transition-easing,
|
|
223
|
+
border-radius $transition-duration $transition-easing,
|
|
224
|
+
height $transition-duration $transition-easing;
|
|
225
|
+
}
|
|
226
|
+
|
|
279
227
|
.#{$component}--bar:not(.#{$component}--disabled) .#{$component}__container:hover {
|
|
280
|
-
|
|
228
|
+
background-color: color-mix(in srgb, #{t.color("on-surface")} 8%, #{t.color("surface-container-high")});
|
|
281
229
|
}
|
|
282
230
|
|
|
283
|
-
// ============================================================================
|
|
284
|
-
// Icon buttons: leading, clear, trailing
|
|
285
|
-
// ============================================================================
|
|
286
231
|
|
|
287
|
-
// 48dp tap targets around 24dp icons (they were 24dp buttons), with
|
|
288
|
-
// state layers in their icon colour and md.comp.focus-ring.
|
|
289
232
|
.#{$component}__leading-icon,
|
|
290
233
|
.#{$component}__clear-button,
|
|
291
234
|
.#{$component}__trailing-icon {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
}
|
|
235
|
+
--#{$component}-layer: 0%;
|
|
236
|
+
display: flex;
|
|
237
|
+
align-items: center;
|
|
238
|
+
justify-content: center;
|
|
239
|
+
flex-shrink: 0;
|
|
240
|
+
width: 48px;
|
|
241
|
+
height: 48px;
|
|
242
|
+
margin: 0;
|
|
243
|
+
padding: 0;
|
|
244
|
+
border: none;
|
|
245
|
+
border-radius: 50%;
|
|
246
|
+
font: inherit;
|
|
247
|
+
background-color: color-mix(in srgb, currentColor var(--#{$component}-layer), transparent);
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
transition: background-color $transition-duration $transition-easing;
|
|
250
|
+
|
|
251
|
+
svg {
|
|
252
|
+
width: $icon-size;
|
|
253
|
+
height: $icon-size;
|
|
254
|
+
fill: currentColor;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&:hover { --#{$component}-layer: 8%; }
|
|
258
|
+
&:focus-visible, &:active { --#{$component}-layer: 10%; }
|
|
259
|
+
&:focus { outline: none; }
|
|
260
|
+
&:focus-visible { outline: 3px solid t.color("secondary"); outline-offset: 2px; }
|
|
261
|
+
|
|
262
|
+
&[aria-disabled="true"] {
|
|
263
|
+
cursor: not-allowed;
|
|
264
|
+
opacity: 0.38;
|
|
265
|
+
--#{$component}-layer: 0%;
|
|
266
|
+
}
|
|
325
267
|
}
|
|
326
268
|
|
|
327
269
|
.#{$component}__leading-icon {
|
|
328
|
-
|
|
270
|
+
color: t.color("on-surface");
|
|
329
271
|
}
|
|
330
272
|
|
|
331
273
|
.#{$component}__clear-button,
|
|
332
274
|
.#{$component}__trailing-icon {
|
|
333
|
-
|
|
275
|
+
color: t.color("on-surface-variant");
|
|
334
276
|
}
|
|
335
277
|
|
|
336
278
|
.#{$component}__clear-button {
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
}
|
|
353
|
-
|
|
354
|
-
// The avatar is 30dp, centred in a 48dp box like the icons.
|
|
279
|
+
opacity: 1;
|
|
280
|
+
visibility: visible;
|
|
281
|
+
transition:
|
|
282
|
+
opacity $transition-duration $transition-easing,
|
|
283
|
+
visibility 0s,
|
|
284
|
+
background-color $transition-duration $transition-easing;
|
|
285
|
+
|
|
286
|
+
&--hidden {
|
|
287
|
+
opacity: 0;
|
|
288
|
+
visibility: hidden;
|
|
289
|
+
pointer-events: none;
|
|
290
|
+
transition:
|
|
291
|
+
opacity $transition-duration $transition-easing,
|
|
292
|
+
visibility 0s $transition-duration;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
355
296
|
.#{$component}__avatar {
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
// Trailing items container
|
|
297
|
+
display: flex;
|
|
298
|
+
align-items: center;
|
|
299
|
+
justify-content: center;
|
|
300
|
+
flex-shrink: 0;
|
|
301
|
+
width: 48px;
|
|
302
|
+
height: 48px;
|
|
303
|
+
|
|
304
|
+
> * {
|
|
305
|
+
width: $avatar-size;
|
|
306
|
+
height: $avatar-size;
|
|
307
|
+
border-radius: 50%;
|
|
308
|
+
object-fit: cover;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
372
312
|
.#{$component}__trailing {
|
|
373
|
-
|
|
374
|
-
|
|
313
|
+
display: flex;
|
|
314
|
+
align-items: center;
|
|
375
315
|
}
|
|
376
316
|
|
|
377
|
-
// ============================================================================
|
|
378
|
-
// Input Wrapper & Input
|
|
379
|
-
// ============================================================================
|
|
380
317
|
|
|
381
|
-
// 4dp from the tap targets on either side.
|
|
382
318
|
.#{$component}__input-wrapper {
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
319
|
+
flex: 1;
|
|
320
|
+
min-width: 0;
|
|
321
|
+
height: 100%;
|
|
322
|
+
margin: 0 4px;
|
|
323
|
+
display: flex;
|
|
324
|
+
align-items: center;
|
|
389
325
|
}
|
|
390
326
|
|
|
391
327
|
.#{$component}__input {
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
// Divider
|
|
416
|
-
// ============================================================================
|
|
417
|
-
|
|
418
|
-
// SearchViewTokens.DividerColor is outline (it was outline-variant).
|
|
328
|
+
width: 100%;
|
|
329
|
+
height: 100%;
|
|
330
|
+
min-height: 36px;
|
|
331
|
+
padding: 8px 0;
|
|
332
|
+
border: none;
|
|
333
|
+
background: transparent;
|
|
334
|
+
@include m.typography("body-large");
|
|
335
|
+
color: t.color("on-surface");
|
|
336
|
+
caret-color: t.color("primary");
|
|
337
|
+
outline: none;
|
|
338
|
+
box-sizing: border-box;
|
|
339
|
+
|
|
340
|
+
&::placeholder {
|
|
341
|
+
color: t.color("on-surface-variant");
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&:disabled {
|
|
345
|
+
cursor: not-allowed;
|
|
346
|
+
color: t.color("on-surface");
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
|
|
419
351
|
.#{$component}__divider {
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
352
|
+
width: 100%;
|
|
353
|
+
height: 1px;
|
|
354
|
+
background-color: t.color("outline");
|
|
355
|
+
flex-shrink: 0;
|
|
424
356
|
}
|
|
425
357
|
|
|
426
|
-
// ============================================================================
|
|
427
|
-
// Content Area (View mode only)
|
|
428
|
-
// ============================================================================
|
|
429
358
|
|
|
430
359
|
.#{$component}__content {
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
360
|
+
display: flex;
|
|
361
|
+
flex-direction: column;
|
|
362
|
+
background-color: t.color("surface-container-high");
|
|
363
|
+
overflow: hidden;
|
|
435
364
|
}
|
|
436
365
|
|
|
437
|
-
// ============================================================================
|
|
438
|
-
// Suggestions: M3 one-line list items
|
|
439
|
-
// ============================================================================
|
|
440
366
|
|
|
441
367
|
.#{$component}__suggestions {
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
scroll-behavior: smooth;
|
|
368
|
+
flex: 1;
|
|
369
|
+
overflow-y: auto;
|
|
370
|
+
overflow-x: hidden;
|
|
371
|
+
scroll-behavior: smooth;
|
|
447
372
|
}
|
|
448
373
|
|
|
449
374
|
.#{$component}__suggestion-list {
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
375
|
+
list-style: none;
|
|
376
|
+
padding: 8px 0;
|
|
377
|
+
margin: 0;
|
|
453
378
|
}
|
|
454
379
|
|
|
455
|
-
// 56dp one-line items (they were 48), Body Large, 16dp padding; hover at 8%;
|
|
456
|
-
// the option the arrows reach looks focused: 10% and the focus ring.
|
|
457
380
|
.#{$component}__suggestion-item {
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
&--selected,
|
|
474
|
-
&--selected:hover {
|
|
475
|
-
background-color: t.alpha("on-surface", 0.1);
|
|
476
|
-
outline: 3px solid t.color("secondary");
|
|
477
|
-
outline-offset: -3px;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
// Highlighted text in suggestions
|
|
481
|
-
strong {
|
|
482
|
-
font-weight: 600;
|
|
483
|
-
color: t.color("on-surface");
|
|
484
|
-
}
|
|
381
|
+
display: flex;
|
|
382
|
+
align-items: center;
|
|
383
|
+
gap: 16px;
|
|
384
|
+
padding: 8px 16px;
|
|
385
|
+
min-height: 56px;
|
|
386
|
+
@include m.typography("body-large");
|
|
387
|
+
color: t.color("on-surface");
|
|
388
|
+
cursor: pointer;
|
|
389
|
+
transition: background-color $transition-duration $transition-easing;
|
|
390
|
+
box-sizing: border-box;
|
|
391
|
+
|
|
392
|
+
&:hover {
|
|
393
|
+
background-color: t.alpha("on-surface", 0.08);
|
|
485
394
|
}
|
|
486
395
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
396
|
+
&--selected,
|
|
397
|
+
&--selected:hover {
|
|
398
|
+
background-color: t.alpha("on-surface", 0.1);
|
|
399
|
+
outline: 3px solid t.color("secondary");
|
|
400
|
+
outline-offset: -3px;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
strong {
|
|
404
|
+
font-weight: 600;
|
|
405
|
+
color: t.color("on-surface");
|
|
406
|
+
}
|
|
407
|
+
}
|
|
495
408
|
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
409
|
+
.#{$component}__suggestion-icon {
|
|
410
|
+
display: flex;
|
|
411
|
+
align-items: center;
|
|
412
|
+
justify-content: center;
|
|
413
|
+
flex-shrink: 0;
|
|
414
|
+
width: $icon-size;
|
|
415
|
+
height: $icon-size;
|
|
416
|
+
color: t.color("on-surface-variant");
|
|
417
|
+
|
|
418
|
+
svg {
|
|
419
|
+
width: $icon-size;
|
|
420
|
+
height: $icon-size;
|
|
421
|
+
fill: currentColor;
|
|
422
|
+
}
|
|
501
423
|
}
|
|
502
424
|
|
|
503
425
|
.#{$component}__suggestion-text {
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
426
|
+
flex: 1;
|
|
427
|
+
min-width: 0;
|
|
428
|
+
overflow: hidden;
|
|
429
|
+
text-overflow: ellipsis;
|
|
430
|
+
white-space: nowrap;
|
|
509
431
|
}
|
|
510
432
|
|
|
511
|
-
// Two-line items: 72dp, the second line Body Medium on-surface-variant.
|
|
512
433
|
.#{$component}__suggestion-item--two-line {
|
|
513
|
-
|
|
434
|
+
min-height: 72px;
|
|
514
435
|
}
|
|
515
436
|
|
|
516
437
|
.#{$component}__suggestion-supporting {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
color: t.color("on-surface-variant");
|
|
438
|
+
display: block;
|
|
439
|
+
overflow: hidden;
|
|
440
|
+
text-overflow: ellipsis;
|
|
441
|
+
@include m.typography("body-medium");
|
|
442
|
+
color: t.color("on-surface-variant");
|
|
523
443
|
}
|
|
524
444
|
|
|
525
445
|
.#{$component}__suggestion-divider {
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
446
|
+
height: 1px;
|
|
447
|
+
margin: 8px 0;
|
|
448
|
+
background-color: t.color("outline-variant");
|
|
529
449
|
}
|
|
530
450
|
|
|
531
|
-
// The live region: read, not seen.
|
|
532
451
|
.#{$component}__status {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
452
|
+
position: absolute;
|
|
453
|
+
width: 1px;
|
|
454
|
+
height: 1px;
|
|
455
|
+
overflow: hidden;
|
|
456
|
+
clip-path: inset(50%);
|
|
457
|
+
white-space: nowrap;
|
|
539
458
|
}
|
|
540
459
|
|
|
541
|
-
// ============================================================================
|
|
542
|
-
// Responsive Adjustments
|
|
543
|
-
// ============================================================================
|
|
544
460
|
|
|
545
461
|
@include m.breakpoint-down("sm") {
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
@include contained-fullscreen;
|
|
574
|
-
}
|
|
462
|
+
.#{$component} {
|
|
463
|
+
min-width: 0;
|
|
464
|
+
max-width: 100%;
|
|
465
|
+
|
|
466
|
+
&--docked.#{$component}--view {
|
|
467
|
+
.#{$component}__surface {
|
|
468
|
+
inset: 0;
|
|
469
|
+
width: 100%;
|
|
470
|
+
height: 100%;
|
|
471
|
+
background-color: t.color("surface-container-high");
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.#{$component}__container {
|
|
475
|
+
border-radius: 0;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
.#{$component}__content {
|
|
479
|
+
flex: 1;
|
|
480
|
+
max-height: none;
|
|
481
|
+
border-radius: 0;
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.#{$component}--contained.#{$component}--docked.#{$component}--view {
|
|
487
|
+
@include contained-fullscreen;
|
|
488
|
+
}
|
|
575
489
|
}
|