material 3.7.2 → 3.7.3
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/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/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 +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 +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 +1 -1
- 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/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/package.json +2 -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 +240 -258
- package/src/styles/themes/_base-theme.scss +96 -128
- package/src/styles/themes/_baseline.scss +273 -314
- package/src/styles/themes/_brownbeige.scss +242 -250
- package/src/styles/themes/_content.scss +240 -248
- package/src/styles/themes/_desert.scss +242 -250
- package/src/styles/themes/_expressive.scss +242 -250
- package/src/styles/themes/_fidelity.scss +240 -248
- package/src/styles/themes/_forest.scss +242 -259
- package/src/styles/themes/_fruit-salad.scss +242 -250
- package/src/styles/themes/_highcontrast.scss +164 -172
- package/src/styles/themes/_index.scss +0 -1
- package/src/styles/themes/_monochrome.scss +226 -234
- package/src/styles/themes/_neutral.scss +242 -250
- package/src/styles/themes/_ocean.scss +242 -259
- package/src/styles/themes/_rainbow.scss +242 -250
- package/src/styles/themes/_sageivory.scss +242 -250
- package/src/styles/themes/_spring.scss +238 -255
- package/src/styles/themes/_summer.scss +242 -250
- package/src/styles/themes/_sunset.scss +242 -259
- package/src/styles/themes/_tealcaramel.scss +242 -250
- package/src/styles/themes/_vibrant.scss +242 -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,12 +1,3 @@
|
|
|
1
|
-
// src/styles/components/_toolbar.scss
|
|
2
|
-
//
|
|
3
|
-
// M3 Expressive toolbars (m3.material.io toolbars specs and guidelines;
|
|
4
|
-
// Compose DockedToolbarTokens and FloatingToolbarTokens):
|
|
5
|
-
// - docked: 64dp, full width, square corners, no shadow, 16dp at each end,
|
|
6
|
-
// items spread across the width or centred 32dp apart
|
|
7
|
-
// - floating: 64dp pill, 8dp padding, items 4dp apart, elevation level 1,
|
|
8
|
-
// 16dp from the window edge (24dp when vertical), a FAB 8dp away
|
|
9
|
-
// - standard on surface container, vibrant on primary container
|
|
10
1
|
@use '../../styles/abstract/base' as base;
|
|
11
2
|
@use '../../styles/abstract/variables' as v;
|
|
12
3
|
@use '../../styles/abstract/functions' as f;
|
|
@@ -17,242 +8,187 @@
|
|
|
17
8
|
$component: '#{base.$prefix}-toolbar';
|
|
18
9
|
|
|
19
10
|
.#{$component} {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
transform: translateX(calc(var(--#{$component}-dir) * (100% + var(--#{$component}-margin))));
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// In the flow there is no edge to leave by
|
|
195
|
-
&:not(.#{$component}--bottom, .#{$component}--top, .#{$component}--start, .#{$component}--end) {
|
|
196
|
-
visibility: hidden;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
@include m.reduced-motion {
|
|
201
|
-
transition-duration: 0.01ms;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
@include m.high-contrast {
|
|
205
|
-
&--docked,
|
|
206
|
-
&--floating .#{$component}__bar {
|
|
207
|
-
outline: 1px solid currentColor;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
// A toolbar shows a selected item through its colour alone: the m3 toolbars
|
|
213
|
-
// specs give a selected toggle item colour roles and the toolbar token set
|
|
214
|
-
// has no item shape tokens, while a standalone toggle icon button morphs
|
|
215
|
-
// round to square when selected (icon buttons specs) and "their square
|
|
216
|
-
// shape conflicts with the fully-rounded shape of the floating toolbar
|
|
217
|
-
// container". So the morph targets of a round item are pinned to its round
|
|
218
|
-
// radius, selected and pressed. (Pressed is this library's reading of the
|
|
219
|
-
// report — round stays round — not something the toolbars spec asks for.)
|
|
220
|
-
// The pins are each item's own resting round radius, half the container
|
|
221
|
-
// height per size (styles/components/_icon-button.scss, which owns them),
|
|
222
|
-
// and they reach only the bar's direct items:
|
|
223
|
-
// - a round icon button that is a child of the bar in the same tree (a
|
|
224
|
-
// factory toolbar's items and overflow button, and the <m-toolbar>
|
|
225
|
-
// element's own overflow button): a size changed later swaps the size
|
|
226
|
-
// class, and the selector follows;
|
|
227
|
-
// - an icon-button host assigned to the bar's default slot (an
|
|
228
|
-
// <m-icon-button> slotted into an <m-toolbar>), behind its own shadow
|
|
229
|
-
// root where no descendant selector reaches: ::slotted() matches it where
|
|
230
|
-
// it is assigned, by the marker attribute every icon-button host of this
|
|
231
|
-
// library carries whatever its tag prefix (src/elements/icon-button.ts,
|
|
232
|
-
// src/elements/define.ts — the sheet cannot spell a tag the page chose),
|
|
233
|
-
// and [size=…] follows a size changed after insertion, the size attribute
|
|
234
|
-
// being the host's public size (the element exposes no size property to
|
|
235
|
-
// drift from it). The default tag is matched as well, so markup that
|
|
236
|
-
// reaches the browser without the marker by any path — an adapter not
|
|
237
|
-
// writing it, hand-written HTML, a cached page from an older server
|
|
238
|
-
// render — still pins under the default prefix, as before the marker; a
|
|
239
|
-
// custom prefix cannot be spelled and needs the marker. :is() weighs its
|
|
240
|
-
// most specific argument, so the compound keeps the bare attribute's
|
|
241
|
-
// (0,1,0). Another library's icon button keeps the standalone
|
|
242
|
-
// morphs.
|
|
243
|
-
// Anything deeper — an icon button in the overflow menu's content, a dialog
|
|
244
|
-
// or menu opened from the bar, a composite child — matches neither selector
|
|
245
|
-
// and keeps the standalone morphs.
|
|
11
|
+
--#{$component}-container: #{t.color('surface-container')};
|
|
12
|
+
--#{$component}-content: #{t.color('on-surface-variant')};
|
|
13
|
+
--#{$component}-margin: 16px;
|
|
14
|
+
--#{$component}-dir: 1;
|
|
15
|
+
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
transition: transform v.motion('spring-fast-spatial-duration') v.motion('spring-fast-spatial-easing');
|
|
21
|
+
|
|
22
|
+
&__bar {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
min-height: 64px;
|
|
28
|
+
color: var(--#{$component}-content);
|
|
29
|
+
|
|
30
|
+
> * {
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__fab {
|
|
36
|
+
display: flex;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&--docked {
|
|
40
|
+
--#{$component}-margin: 0px;
|
|
41
|
+
width: 100%;
|
|
42
|
+
min-height: 64px;
|
|
43
|
+
padding-inline: 16px;
|
|
44
|
+
background-color: var(--#{$component}-container);
|
|
45
|
+
border-radius: var(--#{$component}-shape, #{v.shape('none')});
|
|
46
|
+
|
|
47
|
+
.#{$component}__bar {
|
|
48
|
+
flex: 1;
|
|
49
|
+
justify-content: space-between;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&--center .#{$component}__bar {
|
|
54
|
+
justify-content: center;
|
|
55
|
+
gap: 32px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&--floating {
|
|
59
|
+
width: fit-content;
|
|
60
|
+
|
|
61
|
+
.#{$component}__bar {
|
|
62
|
+
gap: 4px;
|
|
63
|
+
padding: 8px;
|
|
64
|
+
background-color: var(--#{$component}-container);
|
|
65
|
+
border-radius: var(--#{$component}-shape, #{v.shape('full')});
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&--elevated .#{$component}__bar {
|
|
70
|
+
@include m.elevation(1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&--vertical {
|
|
74
|
+
--#{$component}-margin: 24px;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
|
|
77
|
+
.#{$component}__bar {
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
min-height: 0;
|
|
80
|
+
min-width: 64px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&--vibrant {
|
|
85
|
+
--#{$component}-container: #{t.color('primary-container')};
|
|
86
|
+
--#{$component}-content: #{t.color('on-primary-container')};
|
|
87
|
+
--#{base.$prefix}-icon-button-standard-color: #{t.color('on-primary-container')};
|
|
88
|
+
--#{base.$prefix}-button-text-color: #{t.color('on-primary-container')};
|
|
89
|
+
--#{base.$prefix}-icon-button-selected-container: #{t.color('surface-container')};
|
|
90
|
+
--#{base.$prefix}-icon-button-selected-color: #{t.color('on-surface')};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&--bottom,
|
|
94
|
+
&--top,
|
|
95
|
+
&--start,
|
|
96
|
+
&--end {
|
|
97
|
+
position: absolute;
|
|
98
|
+
z-index: f.get-z-index('fixed');
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--bottom,
|
|
102
|
+
&--top {
|
|
103
|
+
inset-inline: 0;
|
|
104
|
+
margin-inline: auto;
|
|
105
|
+
max-width: calc(100% - 2 * var(--#{$component}-margin));
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--bottom {
|
|
109
|
+
bottom: 0;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
&--top {
|
|
113
|
+
top: 0;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&--start,
|
|
117
|
+
&--end {
|
|
118
|
+
inset-block: 0;
|
|
119
|
+
margin-block: auto;
|
|
120
|
+
height: fit-content;
|
|
121
|
+
max-height: calc(100% - 2 * var(--#{$component}-margin));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&--start {
|
|
125
|
+
@include d.start(var(--#{$component}-margin), $self: true);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&--end {
|
|
129
|
+
@include d.end(var(--#{$component}-margin), $self: true);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&--floating.#{$component}--bottom {
|
|
133
|
+
bottom: var(--#{$component}-margin);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&--floating.#{$component}--top {
|
|
137
|
+
top: var(--#{$component}-margin);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&--hidden {
|
|
141
|
+
@include m.rtl($self: true) {
|
|
142
|
+
--#{$component}-dir: -1;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.#{$component}--bottom {
|
|
146
|
+
transform: translateY(calc(100% + var(--#{$component}-margin)));
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&.#{$component}--docked.#{$component}--bottom {
|
|
150
|
+
transform: translateY(100%);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
&.#{$component}--top {
|
|
154
|
+
transform: translateY(calc(-100% - var(--#{$component}-margin)));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&.#{$component}--start {
|
|
158
|
+
transform: translateX(calc(-1 * var(--#{$component}-dir) * (100% + var(--#{$component}-margin))));
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.#{$component}--end {
|
|
162
|
+
transform: translateX(calc(var(--#{$component}-dir) * (100% + var(--#{$component}-margin))));
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:not(.#{$component}--bottom, .#{$component}--top, .#{$component}--start, .#{$component}--end) {
|
|
166
|
+
visibility: hidden;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
@include m.reduced-motion {
|
|
171
|
+
transition-duration: 0.01ms;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
@include m.high-contrast {
|
|
175
|
+
&--docked,
|
|
176
|
+
&--floating .#{$component}__bar {
|
|
177
|
+
outline: 1px solid currentColor;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
246
182
|
.#{base.$prefix}-toolbar .#{base.$prefix}-toolbar__bar > .#{base.$prefix}-icon-button--round,
|
|
247
183
|
slot:not([name])::slotted(:is([data-mtrl-icon-button], m-icon-button)) {
|
|
248
|
-
|
|
249
|
-
|
|
184
|
+
--#{base.$prefix}-icon-button-shape-selected: 20px;
|
|
185
|
+
--#{base.$prefix}-icon-button-shape-pressed: 20px;
|
|
250
186
|
}
|
|
251
187
|
|
|
252
188
|
@each $size, $radius in ("xs": 16px, "m": 28px, "l": 48px, "xl": 68px) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
189
|
+
.#{base.$prefix}-toolbar .#{base.$prefix}-toolbar__bar > .#{base.$prefix}-icon-button--round.#{base.$prefix}-icon-button--#{$size},
|
|
190
|
+
slot:not([name])::slotted(:is([data-mtrl-icon-button], m-icon-button)[size=#{$size}]) {
|
|
191
|
+
--#{base.$prefix}-icon-button-shape-selected: #{$radius};
|
|
192
|
+
--#{base.$prefix}-icon-button-shape-pressed: #{$radius};
|
|
193
|
+
}
|
|
258
194
|
}
|