material 3.7.1 → 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/bottom-app-bar.css +1 -1
- package/dist/elements/css/bottom-app-bar.js +1 -1
- package/dist/elements/css/card.css +1 -1
- package/dist/elements/css/card.js +1 -1
- package/dist/elements/css/checkbox.css +1 -1
- package/dist/elements/css/checkbox.js +1 -1
- package/dist/elements/css/datepicker.css +1 -1
- package/dist/elements/css/datepicker.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/radios.css +1 -1
- package/dist/elements/css/radios.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/text-field.css +1 -1
- package/dist/elements/css/text-field.js +1 -1
- package/dist/elements/css/timepicker.css +1 -1
- package/dist/elements/css/timepicker.js +1 -1
- package/dist/elements/css/top-app-bar.css +1 -1
- package/dist/elements/css/top-app-bar.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 +2 -2
- 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 +2 -2
- package/dist/styles/chips.css +1 -1
- package/dist/styles/contrast.css +1 -1
- package/dist/styles/datepicker.css +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 -88
- 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 -247
- package/src/styles/components/_chips.scss +239 -304
- package/src/styles/components/_datepicker.scss +172 -220
- 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 -205
- 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 -978
- 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 -224
- 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,4 +1,3 @@
|
|
|
1
|
-
// src/styles/components/_dialog.scss
|
|
2
1
|
@use "../../styles/abstract/base" as base;
|
|
3
2
|
@use "../../styles/abstract/variables" as v;
|
|
4
3
|
@use "../../styles/abstract/functions" as f;
|
|
@@ -7,585 +6,461 @@
|
|
|
7
6
|
|
|
8
7
|
$component: "#{base.$prefix}-dialog";
|
|
9
8
|
|
|
10
|
-
// Dialog overlay (background scrim)
|
|
11
|
-
// MD3 specifies 32% opacity for scrim
|
|
12
9
|
.#{$component}__overlay {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
visibility 0s linear v.motion("duration-short3");
|
|
44
|
-
|
|
45
|
-
&--visible {
|
|
46
|
-
background-color: t.alpha("scrim", 0.32);
|
|
47
|
-
visibility: visible;
|
|
48
|
-
transition: background-color v.motion("duration-long2") linear, visibility 0s;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Dialog container
|
|
53
|
-
// MD3: surface-container-high, 28dp corners, elevation 3
|
|
54
|
-
//
|
|
55
|
-
// Motion follows material-web, the Material web implementation
|
|
56
|
-
// (dialog/internal/animations.ts): the surface grows in height, 35% to 100%
|
|
57
|
-
// over 500ms emphasized, while the dialog slides down into place and the
|
|
58
|
-
// headline, content and actions fade in one after another. Closing takes
|
|
59
|
-
// 150ms on emphasized accelerate. The growth is a scale of the dialog's
|
|
60
|
-
// height from its top, the motion the menu opens with.
|
|
10
|
+
position: fixed;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
background-color: transparent;
|
|
16
|
+
visibility: hidden;
|
|
17
|
+
z-index: v.z-index("modal");
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
overflow: auto;
|
|
22
|
+
padding: 24px;
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
|
|
25
|
+
&--contained {
|
|
26
|
+
position: absolute;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
transition:
|
|
30
|
+
background-color v.motion("duration-short3") linear,
|
|
31
|
+
visibility 0s linear v.motion("duration-short3");
|
|
32
|
+
|
|
33
|
+
&--visible {
|
|
34
|
+
background-color: t.alpha("scrim", 0.32);
|
|
35
|
+
visibility: visible;
|
|
36
|
+
transition: background-color v.motion("duration-long2") linear, visibility 0s;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
61
40
|
|
|
62
41
|
.#{$component} {
|
|
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
|
-
&--scale {
|
|
179
|
-
transform-origin: center center;
|
|
180
|
-
transform: scale(0.8);
|
|
181
|
-
|
|
182
|
-
&.#{$component}--visible {
|
|
183
|
-
transform: scale(1);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
// layer: "top": the dialog is a <dialog> the browser shows in the top layer
|
|
189
|
-
// with showModal(). This undoes the user agent's dialog box and centres it
|
|
190
|
-
// within the 24px the overlay pads by, and the scrim is its ::backdrop, which
|
|
191
|
-
// fades as the overlay did. Closing, `display` and `overlay` change at the end
|
|
192
|
-
// of the transition (allow-discrete), so it animates out in the top layer.
|
|
42
|
+
position: relative;
|
|
43
|
+
background-color: t.color("surface-container-high");
|
|
44
|
+
color: t.color("on-surface");
|
|
45
|
+
border-radius: v.shape("extra-large");
|
|
46
|
+
max-width: 560px;
|
|
47
|
+
min-width: 280px;
|
|
48
|
+
width: 100%;
|
|
49
|
+
margin: auto;
|
|
50
|
+
@include m.elevation(3);
|
|
51
|
+
|
|
52
|
+
transform-origin: top center;
|
|
53
|
+
transform: translateY(-50px) scaleY(0.35);
|
|
54
|
+
opacity: 0;
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
transition:
|
|
57
|
+
transform v.motion("duration-short3") v.motion("easing-emphasized-accelerate"),
|
|
58
|
+
opacity v.motion("duration-short1") linear v.motion("duration-short2");
|
|
59
|
+
|
|
60
|
+
.#{$component}__header,
|
|
61
|
+
.#{$component}__content,
|
|
62
|
+
.#{$component}__footer {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
transition: opacity v.motion("duration-short2") linear;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&--visible {
|
|
68
|
+
transform: translateY(0) scaleY(1);
|
|
69
|
+
opacity: 1;
|
|
70
|
+
pointer-events: auto;
|
|
71
|
+
transition:
|
|
72
|
+
transform v.motion("duration-long2") v.motion("easing-emphasized"),
|
|
73
|
+
opacity v.motion("duration-short1") linear;
|
|
74
|
+
|
|
75
|
+
.#{$component}__header,
|
|
76
|
+
.#{$component}__content {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
transition: opacity v.motion("duration-medium1") linear v.motion("duration-short1");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.#{$component}__footer {
|
|
82
|
+
opacity: 1;
|
|
83
|
+
transition: opacity v.motion("duration-medium2") linear v.motion("duration-short3");
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&--small {
|
|
88
|
+
width: 80%;
|
|
89
|
+
max-width: 360px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&--medium {
|
|
93
|
+
width: 90%;
|
|
94
|
+
max-width: 560px;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
&--large {
|
|
98
|
+
width: 95%;
|
|
99
|
+
max-width: 560px;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&--fullwidth {
|
|
103
|
+
width: 100%;
|
|
104
|
+
max-width: none;
|
|
105
|
+
margin: 24px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&--fullscreen {
|
|
109
|
+
width: 100%;
|
|
110
|
+
height: 100%;
|
|
111
|
+
max-width: none;
|
|
112
|
+
max-height: none;
|
|
113
|
+
margin: 0;
|
|
114
|
+
border-radius: 0;
|
|
115
|
+
transform-origin: center center;
|
|
116
|
+
transform: translateY(24px);
|
|
117
|
+
|
|
118
|
+
&.#{$component}--visible {
|
|
119
|
+
transform: translateY(0);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&--slide-up {
|
|
124
|
+
transform: translateY(24px) scaleY(0.35);
|
|
125
|
+
|
|
126
|
+
&.#{$component}--visible {
|
|
127
|
+
transform: translateY(0) scaleY(1);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--slide-down {
|
|
132
|
+
transform: translateY(-24px) scaleY(0.35);
|
|
133
|
+
|
|
134
|
+
&.#{$component}--visible {
|
|
135
|
+
transform: translateY(0) scaleY(1);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&--fade {
|
|
140
|
+
transform: none;
|
|
141
|
+
|
|
142
|
+
&.#{$component}--visible {
|
|
143
|
+
transform: none;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&--scale {
|
|
148
|
+
transform-origin: center center;
|
|
149
|
+
transform: scale(0.8);
|
|
150
|
+
|
|
151
|
+
&.#{$component}--visible {
|
|
152
|
+
transform: scale(1);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
193
157
|
dialog.#{$component} {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
// Dialog icon (optional, MD3 spec)
|
|
241
|
-
// Centered above headline, 24dp, secondary color
|
|
242
|
-
.#{$component}__icon {
|
|
243
|
-
display: flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
padding: 24px 24px 0 24px;
|
|
247
|
-
color: t.color("secondary");
|
|
248
|
-
|
|
249
|
-
svg,
|
|
250
|
-
.#{$component}__icon-content {
|
|
251
|
-
width: 24px;
|
|
252
|
-
height: 24px;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
// When icon is present, header should be centered
|
|
256
|
-
& + .#{$component}__header {
|
|
257
|
-
.#{$component}__header-content {
|
|
258
|
-
text-align: center;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
.#{$component}__header-title {
|
|
262
|
-
text-align: center;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
.#{$component}__header-subtitle {
|
|
266
|
-
text-align: center;
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
// Dialog header
|
|
158
|
+
position: fixed;
|
|
159
|
+
inset: 0;
|
|
160
|
+
height: fit-content;
|
|
161
|
+
max-height: calc(100% - 48px);
|
|
162
|
+
padding: 0;
|
|
163
|
+
border: 0;
|
|
164
|
+
overflow: visible;
|
|
165
|
+
transition:
|
|
166
|
+
transform v.motion("duration-short3") v.motion("easing-emphasized-accelerate"),
|
|
167
|
+
opacity v.motion("duration-short1") linear v.motion("duration-short2"),
|
|
168
|
+
display v.motion("duration-short3") allow-discrete,
|
|
169
|
+
overlay v.motion("duration-short3") allow-discrete;
|
|
170
|
+
|
|
171
|
+
&.#{$component}--visible {
|
|
172
|
+
transform: none;
|
|
173
|
+
transition:
|
|
174
|
+
transform v.motion("duration-long2") v.motion("easing-emphasized"),
|
|
175
|
+
opacity v.motion("duration-short1") linear;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
&.#{$component}--fullwidth {
|
|
179
|
+
width: auto;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&.#{$component}--fullscreen {
|
|
183
|
+
height: 100%;
|
|
184
|
+
max-height: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&::backdrop {
|
|
188
|
+
background-color: transparent;
|
|
189
|
+
transition:
|
|
190
|
+
background-color v.motion("duration-short3") linear,
|
|
191
|
+
display v.motion("duration-short3") allow-discrete,
|
|
192
|
+
overlay v.motion("duration-short3") allow-discrete;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
&.#{$component}--visible::backdrop {
|
|
196
|
+
background-color: t.alpha("scrim", 0.32);
|
|
197
|
+
transition: background-color v.motion("duration-long2") linear;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
|
|
272
201
|
.#{$component}__header {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
transform: translate(-50%, -50%);
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
// RTL Support
|
|
357
|
-
@include m.rtl-selector('.#{$component}__header-close') {
|
|
358
|
-
margin: -8px 0 0 -8px;
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
// Dialog content
|
|
363
|
-
// MD3: Body medium typography, on-surface-variant for supporting text
|
|
202
|
+
display: flex;
|
|
203
|
+
align-items: flex-start;
|
|
204
|
+
justify-content: space-between;
|
|
205
|
+
padding: 24px 24px 16px 24px;
|
|
206
|
+
|
|
207
|
+
&-content {
|
|
208
|
+
flex: 1;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
&-title {
|
|
212
|
+
margin: 0;
|
|
213
|
+
color: t.color("on-surface");
|
|
214
|
+
@include m.typography("headline-small");
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&-subtitle {
|
|
218
|
+
margin: 4px 0 0 0;
|
|
219
|
+
@include m.typography("body-medium");
|
|
220
|
+
color: t.color("on-surface-variant");
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
&-close {
|
|
224
|
+
font: inherit;
|
|
225
|
+
display: flex;
|
|
226
|
+
align-items: center;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
width: 40px;
|
|
229
|
+
height: 40px;
|
|
230
|
+
margin: -8px -8px 0 0;
|
|
231
|
+
padding: 8px;
|
|
232
|
+
background: transparent;
|
|
233
|
+
border: none;
|
|
234
|
+
border-radius: 50%;
|
|
235
|
+
cursor: pointer;
|
|
236
|
+
color: t.color("on-surface-variant");
|
|
237
|
+
transition: background-color v.motion("duration-short2")
|
|
238
|
+
v.motion("easing-standard");
|
|
239
|
+
|
|
240
|
+
&:hover {
|
|
241
|
+
background-color: t.alpha("on-surface", 0.08);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&:focus {
|
|
245
|
+
outline: none;
|
|
246
|
+
background-color: t.alpha("on-surface", v.state("focus-state-layer-opacity"));
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
&:focus-visible {
|
|
250
|
+
outline: 2px solid t.color("primary");
|
|
251
|
+
outline-offset: 2px;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&:active {
|
|
255
|
+
background-color: t.alpha("on-surface", v.state("pressed-state-layer-opacity"));
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
svg {
|
|
259
|
+
width: 24px;
|
|
260
|
+
height: 24px;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
position: relative;
|
|
264
|
+
|
|
265
|
+
&::after {
|
|
266
|
+
content: "";
|
|
267
|
+
position: absolute;
|
|
268
|
+
width: 48px;
|
|
269
|
+
height: 48px;
|
|
270
|
+
top: 50%;
|
|
271
|
+
left: 50%;
|
|
272
|
+
transform: translate(-50%, -50%);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
@include m.rtl-selector('.#{$component}__header-close') {
|
|
277
|
+
margin: -8px 0 0 -8px;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
364
281
|
.#{$component}__header:empty {
|
|
365
|
-
|
|
282
|
+
display: none;
|
|
366
283
|
}
|
|
367
284
|
|
|
368
285
|
.#{$component}__header:not(:has(*)) + .#{$component}__content,
|
|
369
286
|
.#{$component} > .#{$component}__content:first-child {
|
|
370
|
-
|
|
287
|
+
padding-top: 24px;
|
|
371
288
|
}
|
|
372
289
|
|
|
373
290
|
.#{$component}__content {
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
&:last-child {
|
|
394
|
-
margin-bottom: 0;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
// When content needs emphasis, use on-surface
|
|
399
|
-
&--emphasis {
|
|
400
|
-
color: t.color("on-surface");
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
&:last-child {
|
|
404
|
-
padding-bottom: 24px;
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
// Dialog footer
|
|
409
|
-
// MD3: Actions right-aligned, 8dp gap, text buttons preferred
|
|
291
|
+
padding: 0 24px;
|
|
292
|
+
color: t.color("on-surface-variant");
|
|
293
|
+
@include m.typography("body-medium");
|
|
294
|
+
|
|
295
|
+
overflow: visible;
|
|
296
|
+
|
|
297
|
+
p {
|
|
298
|
+
margin: 0 0 16px 0;
|
|
299
|
+
|
|
300
|
+
&:last-child {
|
|
301
|
+
margin-bottom: 0;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
&:last-child {
|
|
306
|
+
padding-bottom: 24px;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
410
310
|
.#{$component}__footer {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
// Dialog divider styling
|
|
438
|
-
// MD3: outline-variant color for dividers
|
|
439
|
-
// -----------------------------------------------------------------------------
|
|
440
|
-
// Full-screen dialog: a 56dp header carrying the close affordance and the
|
|
441
|
-
// headline, and a 56dp action bar at the bottom. For compact windows only;
|
|
442
|
-
// wider ones take a basic dialog.
|
|
443
|
-
// -----------------------------------------------------------------------------
|
|
311
|
+
display: flex;
|
|
312
|
+
align-items: center;
|
|
313
|
+
justify-content: flex-end;
|
|
314
|
+
padding: 24px 24px 24px 24px;
|
|
315
|
+
gap: 8px;
|
|
316
|
+
|
|
317
|
+
&--left {
|
|
318
|
+
justify-content: flex-start;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
&--center {
|
|
322
|
+
justify-content: center;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
&--space-between {
|
|
326
|
+
justify-content: space-between;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&--stacked {
|
|
330
|
+
flex-direction: column-reverse;
|
|
331
|
+
align-items: stretch;
|
|
332
|
+
gap: 8px;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
444
336
|
.#{$component}--fullscreen {
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
flex-direction: column;
|
|
337
|
+
.#{$component}__header {
|
|
338
|
+
display: flex;
|
|
339
|
+
align-items: center;
|
|
340
|
+
min-height: 56px;
|
|
341
|
+
padding: 0 24px;
|
|
342
|
+
gap: 8px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.#{$component}__header-close {
|
|
346
|
+
order: -1;
|
|
347
|
+
margin: 0 0 0 -8px;
|
|
348
|
+
|
|
349
|
+
@include m.rtl {
|
|
350
|
+
margin: 0 -8px 0 0;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.#{$component}__header-title {
|
|
355
|
+
@include m.typography("title-large");
|
|
356
|
+
text-align: start;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.#{$component}__content {
|
|
360
|
+
flex: 1;
|
|
361
|
+
overflow-y: auto;
|
|
362
|
+
padding: 24px;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.#{$component}__footer {
|
|
366
|
+
min-height: 56px;
|
|
367
|
+
padding: 0 24px;
|
|
368
|
+
box-sizing: border-box;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
display: flex;
|
|
372
|
+
flex-direction: column;
|
|
482
373
|
}
|
|
483
374
|
|
|
484
375
|
.#{$component}__header-divider,
|
|
485
376
|
.#{$component}__footer-divider {
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
377
|
+
margin: 0;
|
|
378
|
+
border: none;
|
|
379
|
+
height: 1px;
|
|
380
|
+
background-color: t.color("outline-variant");
|
|
490
381
|
}
|
|
491
382
|
|
|
492
|
-
// Accessibility - Reduced motion preference support
|
|
493
383
|
@include m.reduced-motion {
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
// High contrast mode
|
|
384
|
+
.#{$component},
|
|
385
|
+
.#{$component}--visible,
|
|
386
|
+
.#{$component}__overlay,
|
|
387
|
+
.#{$component}__overlay--visible {
|
|
388
|
+
transition: opacity v.motion("duration-short2") linear;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.#{$component},
|
|
392
|
+
.#{$component}--visible,
|
|
393
|
+
.#{$component}--scale,
|
|
394
|
+
.#{$component}--slide-up,
|
|
395
|
+
.#{$component}--slide-down,
|
|
396
|
+
.#{$component}--fullscreen {
|
|
397
|
+
transform: none;
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
|
|
512
401
|
@include m.high-contrast {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
402
|
+
.#{$component} {
|
|
403
|
+
border: 2px solid CurrentColor;
|
|
404
|
+
}
|
|
516
405
|
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
406
|
+
.#{$component}__header-divider,
|
|
407
|
+
.#{$component}__footer-divider {
|
|
408
|
+
background-color: CurrentColor;
|
|
409
|
+
}
|
|
521
410
|
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
411
|
+
.#{$component}__header-close:focus-visible {
|
|
412
|
+
outline: 2px solid CurrentColor;
|
|
413
|
+
}
|
|
525
414
|
}
|
|
526
415
|
|
|
527
|
-
// Mobile responsiveness
|
|
528
|
-
// MD3: Dialogs may become full-width sheets on mobile
|
|
529
416
|
@media (max-width: v.breakpoint("sm")) {
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
transform: translateY(0);
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
// Stacked footer buttons on mobile when needed
|
|
570
|
-
.#{$component}__footer--responsive {
|
|
571
|
-
flex-direction: column-reverse;
|
|
572
|
-
align-items: stretch;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
|
|
576
|
-
// Print styles
|
|
417
|
+
.#{$component} {
|
|
418
|
+
min-width: 280px;
|
|
419
|
+
width: calc(100% - 32px);
|
|
420
|
+
max-width: 100%;
|
|
421
|
+
margin: 16px;
|
|
422
|
+
|
|
423
|
+
transform-origin: bottom center;
|
|
424
|
+
|
|
425
|
+
&--fullscreen {
|
|
426
|
+
width: 100%;
|
|
427
|
+
height: 100%;
|
|
428
|
+
margin: 0;
|
|
429
|
+
transform-origin: center center;
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
.#{$component}__overlay {
|
|
434
|
+
padding: 16px;
|
|
435
|
+
align-items: flex-end;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.#{$component}--slide-up {
|
|
439
|
+
transform: translateY(24px);
|
|
440
|
+
|
|
441
|
+
&.#{$component}--visible {
|
|
442
|
+
transform: translateY(0);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.#{$component}__footer--responsive {
|
|
447
|
+
flex-direction: column-reverse;
|
|
448
|
+
align-items: stretch;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
|
|
577
452
|
@media print {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
453
|
+
.#{$component}__overlay {
|
|
454
|
+
position: static;
|
|
455
|
+
background: none;
|
|
456
|
+
padding: 0;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.#{$component} {
|
|
460
|
+
box-shadow: none;
|
|
461
|
+
border: 1px solid #000;
|
|
462
|
+
max-width: 100%;
|
|
463
|
+
transform: none;
|
|
464
|
+
opacity: 1;
|
|
465
|
+
}
|
|
591
466
|
}
|