@shortfuse/materialdesignweb 0.4.0 → 0.5.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/.browserslistrc +2 -1
- package/.eslintrc.json +59 -8
- package/.stylelintrc.json +94 -49
- package/CHANGELOG.md +12 -0
- package/README.md +1 -3
- package/adapters/datatable/column.js +27 -54
- package/adapters/datatable/index.js +69 -81
- package/adapters/dom/index.js +32 -47
- package/adapters/search/index.js +107 -133
- package/components/appbar/_spec.scss +77 -137
- package/components/banner/_spec.scss +28 -63
- package/components/bottomnav/_spec.scss +46 -54
- package/components/bottomnav/index.js +15 -20
- package/components/bottomnav/item.js +4 -5
- package/components/button/README.md +1 -1
- package/components/button/_spec.scss +43 -42
- package/components/button/_theme.scss +27 -50
- package/components/card/_spec.scss +61 -69
- package/components/chip/_spec.scss +21 -44
- package/components/chip/_theme.scss +79 -151
- package/components/chip/index.js +6 -4
- package/components/datatable/_spec.scss +36 -99
- package/components/datatable/_theme.scss +98 -124
- package/components/datatable/cell.js +1 -2
- package/components/datatable/columnheader.js +1 -2
- package/components/datatable/index.js +33 -47
- package/components/datatable/row.js +4 -5
- package/components/dialog/_spec.scss +53 -63
- package/components/dialog/_theme.scss +7 -0
- package/components/dialog/index.js +62 -88
- package/components/divider/_spec.scss +6 -8
- package/components/elevation/_spec.scss +1 -1
- package/components/fab/_spec.scss +30 -42
- package/components/fab/index.js +4 -8
- package/components/grid/_spec.scss +68 -211
- package/components/layout/_mixins.scss +0 -22
- package/components/layout/_spec.scss +267 -363
- package/components/layout/_theme.scss +10 -35
- package/components/layout/index.js +40 -50
- package/components/list/_spec.scss +57 -91
- package/components/list/_theme.scss +75 -84
- package/components/list/content.js +9 -13
- package/components/list/index.js +34 -38
- package/components/list/item.js +8 -11
- package/components/list/secondary.js +8 -9
- package/components/menu/_spec.scss +134 -167
- package/components/menu/index.js +45 -61
- package/components/menu/item.js +11 -19
- package/components/progress/_spec.scss +43 -34
- package/components/selection/_spec.scss +123 -133
- package/components/selection/_theme.scss +88 -120
- package/components/selection/index.js +9 -15
- package/components/selection/input.js +3 -5
- package/components/selection/radiogroup.js +8 -15
- package/components/slider/_spec.scss +23 -28
- package/components/snackbar/_spec.scss +17 -62
- package/components/snackbar/index.js +15 -21
- package/components/tab/_spec.scss +35 -50
- package/components/tab/content.js +33 -28
- package/components/tab/index.js +30 -33
- package/components/tab/item.js +4 -5
- package/components/tab/list.js +22 -36
- package/components/textfield/README.md +2 -2
- package/components/textfield/_spec.scss +241 -287
- package/components/textfield/_theme.scss +197 -232
- package/components/textfield/index.js +8 -16
- package/components/tooltip/_spec.scss +23 -26
- package/components/type/_spec.scss +19 -16
- package/core/_breakpoint.scss +33 -33
- package/core/_elevation.scss +40 -0
- package/core/_length.scss +0 -1
- package/core/_platform.scss +0 -22
- package/core/_type.scss +7 -6
- package/core/aria/button.js +4 -5
- package/core/aria/keyboard.js +1 -2
- package/core/aria/rovingtabindex.js +14 -17
- package/core/aria/tab.js +1 -2
- package/core/dom.js +18 -109
- package/core/overlay/_spec.scss +5 -8
- package/core/overlay/_theme.scss +126 -150
- package/core/overlay/index.js +19 -32
- package/core/ripple/_spec.scss +16 -17
- package/core/ripple/_theme.scss +13 -33
- package/core/ripple/index.js +36 -44
- package/core/theme/_aliases.scss +15 -0
- package/core/theme/_config.scss +8 -2
- package/core/theme/_functions.scss +22 -0
- package/core/theme/_palettes.scss +0 -1
- package/core/{color → theme}/_spec.scss +0 -0
- package/core/theme/_theme.scss +268 -0
- package/core/theme/index.scss +4 -0
- package/core/transition/index.js +73 -76
- package/docs/_flex.scss +7 -1
- package/docs/_menuoptions.js +2 -2
- package/docs/_partials/_appbar.eta +12 -14
- package/docs/_partials/_header.eta +41 -44
- package/docs/_sample-utils.js +15 -20
- package/docs/docs.scss +123 -87
- package/docs/framework.scss +26 -0
- package/docs/index.eta +2 -6
- package/docs/index.js +7 -0
- package/docs/pages/appbar.eta +22 -28
- package/docs/pages/bottomnav.js +17 -14
- package/docs/pages/button.js +10 -10
- package/docs/pages/card.js +20 -22
- package/docs/pages/chip.js +11 -13
- package/docs/pages/color.js +35 -36
- package/docs/pages/datatable.js +11 -15
- package/docs/pages/dialog.eta +9 -11
- package/docs/pages/dialog.js +6 -9
- package/docs/pages/dom.js +6 -9
- package/docs/pages/elevation.eta +10 -10
- package/docs/pages/fab.js +2 -3
- package/docs/pages/grid.js +5 -5
- package/docs/pages/list.js +1 -2
- package/docs/pages/menu.eta +17 -19
- package/docs/pages/menu.js +7 -11
- package/docs/pages/overlay.js +1 -2
- package/docs/pages/progress.eta +2 -2
- package/docs/pages/progress.js +1 -1
- package/docs/pages/ripple.js +1 -2
- package/docs/pages/search.eta +20 -24
- package/docs/pages/search.js +24 -41
- package/docs/pages/selection.eta +2 -6
- package/docs/pages/selection.js +3 -4
- package/docs/pages/snackbar.js +3 -4
- package/docs/pages/tab.eta +61 -75
- package/docs/pages/tab.js +16 -15
- package/docs/pages/textfield.eta +9 -8
- package/docs/pages/textfield.js +26 -23
- package/docs/pages/tooltip.eta +10 -12
- package/docs/pages/transition.js +5 -7
- package/docs/postrender.js +7 -5
- package/docs/pwa/pwa.eta +14 -16
- package/docs/pwa/pwa.js +19 -27
- package/docs/pwa/pwa.scss +12 -7
- package/docs/themes/theme-colored.scss +9 -11
- package/docs/themes/theme-default.scss +0 -14
- package/index.scss +27 -0
- package/jsconfig.json +7 -3
- package/package.json +26 -15
- package/tsconfig.json +16 -0
- package/{webpack.config.cjs → webpack.config.js} +105 -58
- package/components/template/_theme.scss +0 -27
- package/components/textfield/_mixins.scss +0 -52
- package/core/color/_theme.scss +0 -390
- package/core/color/index.scss +0 -2
- package/core/theme/_mixins.scss +0 -172
- package/core/theme/_variables.scss +0 -24
- package/docs/_mixins.pug +0 -155
- package/docs/pages/appbar.pug +0 -78
- package/docs/pages/bottomnav.pug +0 -137
- package/docs/pages/button.pug +0 -121
- package/docs/pages/card.pug +0 -74
- package/docs/pages/chip.pug +0 -91
- package/docs/pages/color.pug +0 -121
- package/docs/pages/datatable.pug +0 -283
- package/docs/pages/dialog.pug +0 -132
- package/docs/pages/dom.pug +0 -22
- package/docs/pages/elevation.pug +0 -25
- package/docs/pages/fab.pug +0 -66
- package/docs/pages/grid.pug +0 -95
- package/docs/pages/layout.pug +0 -7
- package/docs/pages/list.pug +0 -326
- package/docs/pages/menu.pug +0 -205
- package/docs/pages/overlay.pug +0 -55
- package/docs/pages/progress.pug +0 -16
- package/docs/pages/ripple.pug +0 -21
- package/docs/pages/search.pug +0 -165
- package/docs/pages/selection.pug +0 -74
- package/docs/pages/slider.pug +0 -17
- package/docs/pages/snackbar.pug +0 -60
- package/docs/pages/tab.pug +0 -304
- package/docs/pages/textfield.pug +0 -360
- package/docs/pages/tooltip.pug +0 -78
- package/docs/pages/transition.pug +0 -76
- package/docs/pages/type.pug +0 -29
- package/docs/pwa/_dialogs.pug +0 -96
- package/docs/pwa/_menus.pug +0 -11
- package/docs/pwa/pwa.pug +0 -325
- package/docs/spec.scss +0 -26
- package/docs/themes/_component-themes.scss +0 -26
- package/docs/themes/theme-colored-fallbacks.scss +0 -17
- package/docs/themes/theme-default-fallbacks.scss +0 -17
|
@@ -1,6 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/*
|
|
2
|
+
* https://material.io/design/components/navigation-drawer.html
|
|
3
|
+
* https://material.io/archive/guidelines/patterns/navigation-drawer.html
|
|
4
|
+
* https://material.io/archive/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
|
|
5
|
+
*
|
|
6
|
+
* Elements follow descending elevation order and use sibling selector (~)
|
|
7
|
+
* Body scrolls except when clipped on desktop (content scrolls instead)
|
|
8
|
+
*
|
|
9
|
+
* html.mdw-layout
|
|
10
|
+
* body.mdw-layout__body Sets layout rules
|
|
11
|
+
* nav.mdw-layout__navdrawer Visible by default on Desktop. Hidden modal on Mobile
|
|
12
|
+
* div.mdw-layout__sidesheet Visible by default on Desktop. Hidden modal on Mobile
|
|
13
|
+
* div.mdw-layout__scrim Visible if modal open. Must follow navdrawer and sidedrawer (~)
|
|
14
|
+
* div.mdw-layout__appbar Should follow navdrawer and sidedrawer (~)
|
|
15
|
+
* div.mdw-layout__fab Must follow appbar (~)
|
|
16
|
+
* div.mdw-layout__snackbar Must follow fab (~)
|
|
17
|
+
* main.mdw-layout__content Must follow fab (~)
|
|
18
|
+
*/
|
|
4
19
|
|
|
5
20
|
@use '../../core/_breakpoint.scss' as breakpoint;
|
|
6
21
|
@use '../../core/_elevation.scss' as elevation;
|
|
@@ -10,12 +25,33 @@
|
|
|
10
25
|
|
|
11
26
|
@use './_mixins.scss' as *;
|
|
12
27
|
|
|
28
|
+
:root {
|
|
29
|
+
--mdw-layout__transform-inline: translateX(100%);
|
|
30
|
+
--mdw-layout__transform-inline-reverse: translateX(-100%);
|
|
31
|
+
--mdw-layout__fab-transform: translateX(0);
|
|
32
|
+
--mdw-layout__sheet-max-inline-size: calc(100vw - 56px);
|
|
33
|
+
--mdw-layout__margin: 24px;
|
|
34
|
+
@include breakpoint.has16DPMargin() {
|
|
35
|
+
--mdw-layout__margin: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include breakpoint.isXSmallWindow() {
|
|
39
|
+
--mdw-layout__sheet-max-inline-size: calc(100vw - 64px);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[dir="rtl"] {
|
|
43
|
+
--mdw-layout__transform-inline: translateX(-100%);
|
|
44
|
+
--mdw-layout__transform-inline-reverse: translateX(100%);
|
|
45
|
+
--mdw-layout__fab-transform: translateX(100%);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
13
49
|
$scrimColor: rgba(0, 0, 0, 0.50) !default;
|
|
14
|
-
$sheetMinWidth:
|
|
15
|
-
$sheetMaxWidthMini:
|
|
50
|
+
$sheetMinWidth: 256px !default;
|
|
51
|
+
$sheetMaxWidthMini: 72px !default;
|
|
16
52
|
|
|
17
|
-
$fabSize:
|
|
18
|
-
$fabCutSize:
|
|
53
|
+
$fabSize: 56px !default;
|
|
54
|
+
$fabCutSize: 72px !default;
|
|
19
55
|
$fabCutDelay: 100ms !default;
|
|
20
56
|
|
|
21
57
|
$rowTop: 1 !default;
|
|
@@ -25,20 +61,15 @@ $rowBottom: 4 !default;
|
|
|
25
61
|
|
|
26
62
|
$columnNavDrawer: 1 !default;
|
|
27
63
|
$columnContent: 2 !default;
|
|
28
|
-
$
|
|
64
|
+
$columnSideDrawer: 3 !default;
|
|
29
65
|
$columnViewportEnd: 4 !default;
|
|
30
66
|
|
|
31
|
-
$bodyOverflowY: hidden !default;
|
|
32
|
-
$bodyOverflowYSticky: auto !default;
|
|
33
|
-
$contentOverflowY: auto !default;
|
|
34
|
-
$contentOverflowYSticky: visible !default;
|
|
35
|
-
|
|
36
67
|
.mdw-layout {
|
|
37
68
|
overflow-y: hidden;
|
|
38
|
-
|
|
39
|
-
min-
|
|
40
|
-
|
|
41
|
-
|
|
69
|
+
|
|
70
|
+
min-block-size: 100%;
|
|
71
|
+
block-size: 100%;
|
|
72
|
+
inline-size: 100vw;
|
|
42
73
|
margin: 0;
|
|
43
74
|
padding: 0;
|
|
44
75
|
|
|
@@ -51,25 +82,38 @@ $contentOverflowYSticky: visible !default;
|
|
|
51
82
|
.mdw-layout__body {
|
|
52
83
|
@include type.addRules('body');
|
|
53
84
|
|
|
54
|
-
|
|
85
|
+
--mdw-grid__row1: "navdrawer appbar sidedrawer";
|
|
86
|
+
--mdw-grid__row2: "navdrawer banner sidedrawer";
|
|
87
|
+
--mdw-grid__row3: "navdrawer content sidedrawer";
|
|
88
|
+
--mdw-grid__row4: "navdrawer bottom sidedrawer";
|
|
89
|
+
|
|
55
90
|
display: grid;
|
|
56
91
|
position: relative;
|
|
57
|
-
|
|
58
|
-
|
|
92
|
+
grid-template-areas:
|
|
93
|
+
var(--mdw-grid__row1)
|
|
94
|
+
var(--mdw-grid__row2)
|
|
95
|
+
var(--mdw-grid__row3)
|
|
96
|
+
var(--mdw-grid__row4);
|
|
97
|
+
|
|
59
98
|
// Use minmax everywhere to solve Chrome v80 grid bugs
|
|
60
|
-
grid-template-columns:
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
99
|
+
grid-template-columns:
|
|
100
|
+
[start] minmax(0, auto)
|
|
101
|
+
[center] minmax(0, 100%)
|
|
102
|
+
[end] minmax(0, auto);
|
|
103
|
+
|
|
104
|
+
grid-template-rows:
|
|
105
|
+
[top] auto
|
|
106
|
+
[banner] auto
|
|
107
|
+
[content] minmax(auto, 1fr) /* Use minmax(0, 1fr) to clamp horizontally oversized grid-items */
|
|
108
|
+
[bottom] auto;
|
|
65
109
|
|
|
66
110
|
overflow-x: hidden;
|
|
67
|
-
overflow-y:
|
|
111
|
+
overflow-y: auto;
|
|
68
112
|
-webkit-overflow-scrolling: touch;
|
|
69
113
|
|
|
70
|
-
|
|
71
|
-
max-
|
|
72
|
-
|
|
114
|
+
block-size: 100%;
|
|
115
|
+
max-inline-size: 100vw;
|
|
116
|
+
inline-size: 100vw;
|
|
73
117
|
margin: 0;
|
|
74
118
|
padding: 0;
|
|
75
119
|
|
|
@@ -78,81 +122,81 @@ $contentOverflowYSticky: visible !default;
|
|
|
78
122
|
|
|
79
123
|
background-color: inherit;
|
|
80
124
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
// Apply to Chrome v76+
|
|
84
|
-
/* stylelint-disable-next-line media-feature-name-no-vendor-prefix */
|
|
85
|
-
@media screen and (prefers-color-scheme) and (-webkit-min-device-pixel-ratio:0) and (min-resolution: 0.001dpcm) {
|
|
86
|
-
opacity: 0.999;
|
|
125
|
+
&[mdw-navdrawer-style~="clipped"] {
|
|
126
|
+
--mdw-grid__row1: "appbar appbar sidedrawer";
|
|
87
127
|
}
|
|
88
|
-
}
|
|
89
128
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
129
|
+
&[mdw-sidedrawer-style~="clipped"] {
|
|
130
|
+
--mdw-grid__row1: "navdrawer appbar appbar";
|
|
131
|
+
}
|
|
93
132
|
|
|
94
|
-
&[
|
|
95
|
-
|
|
133
|
+
&[mdw-navdrawer-style~="clipped"][mdw-sidedrawer-style~="clipped"] {
|
|
134
|
+
--mdw-grid__row1: "appbar appbar appbar";
|
|
96
135
|
}
|
|
97
136
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
137
|
+
&[mdw-navdrawer-style~="floating"] {
|
|
138
|
+
--mdw-grid__row2: "banner banner sidedrawer";
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&[mdw-sidedrawer-style~="floating"] {
|
|
142
|
+
--mdw-grid__row2: "navdrawer banner banner";
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&[mdw-navdrawer-style~="floating"][mdw-sidedrawer-style~="floating"] {
|
|
146
|
+
--mdw-grid__row2: "banner banner banner";
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.mdw-layout__appbar {
|
|
101
151
|
position: sticky;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
152
|
+
inset-block-start: 0;
|
|
153
|
+
grid-area: appbar;
|
|
154
|
+
|
|
155
|
+
margin-block-start: 0;
|
|
105
156
|
|
|
106
157
|
transition-duration: motion.$expandDuration;
|
|
107
|
-
transition-property: transform, margin-
|
|
158
|
+
transition-property: transform, margin-block-start, min-block-size;
|
|
108
159
|
transition-timing-function: motion.$decelerateEasing;
|
|
109
|
-
will-change: transform, margin-
|
|
160
|
+
will-change: transform, margin-block-start, min-block-size;
|
|
110
161
|
|
|
111
162
|
transform: translateY(0); // browser hint
|
|
112
163
|
z-index: 4;
|
|
113
164
|
|
|
165
|
+
&[aria-hidden="true"] {
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
114
169
|
&[mdw-hide] {
|
|
115
170
|
transition-duration: motion.$collapseDuration;
|
|
116
171
|
transition-timing-function: motion.$accelerateEasing;
|
|
117
172
|
}
|
|
118
173
|
}
|
|
119
174
|
|
|
120
|
-
.mdw-layout[mdw-ios][mdw-standalone] {
|
|
121
|
-
.mdw-layout__appbar,
|
|
122
|
-
.mdw-layout__navdrawer,
|
|
123
|
-
.mdw-layout__sidesheet {
|
|
124
|
-
padding-top: dp(20);
|
|
125
|
-
padding-top: constant(safe-area-inset-top);
|
|
126
|
-
padding-top: env(safe-area-inset-top);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
175
|
.mdw-layout__scrim {
|
|
131
176
|
content: '';
|
|
132
177
|
|
|
133
178
|
position: fixed;
|
|
134
|
-
|
|
135
|
-
|
|
179
|
+
inset-block-start: 0;
|
|
180
|
+
inset-inline-start: 0;
|
|
136
181
|
// Scroll mask
|
|
137
|
-
-ms-overflow-style: none;
|
|
138
182
|
overflow-y: scroll;
|
|
139
183
|
overscroll-behavior: none;
|
|
140
184
|
overscroll-behavior: contain;
|
|
141
|
-
-ms-scroll-chaining: none;
|
|
142
185
|
scrollbar-width: none;
|
|
143
186
|
|
|
144
|
-
|
|
145
|
-
|
|
187
|
+
block-size: 100%;
|
|
188
|
+
inline-size: 100%;
|
|
146
189
|
|
|
147
190
|
cursor: auto;
|
|
148
191
|
outline: none;
|
|
192
|
+
|
|
193
|
+
pointer-events: none;
|
|
149
194
|
-webkit-tap-highlight-color: transparent;
|
|
150
195
|
|
|
151
196
|
transition-duration: motion.$fadeOutDuration;
|
|
152
197
|
transition-property: background-color, visibility;
|
|
153
198
|
transition-timing-function: motion.$accelerateEasing;
|
|
154
199
|
|
|
155
|
-
pointer-events: none;
|
|
156
200
|
visibility: hidden;
|
|
157
201
|
z-index: 16;
|
|
158
202
|
|
|
@@ -164,29 +208,25 @@ $contentOverflowYSticky: visible !default;
|
|
|
164
208
|
}
|
|
165
209
|
|
|
166
210
|
&::after {
|
|
167
|
-
display: block;
|
|
168
211
|
content: '';
|
|
169
212
|
|
|
170
|
-
|
|
171
|
-
|
|
213
|
+
display: block;
|
|
214
|
+
|
|
215
|
+
block-size: 200%;
|
|
216
|
+
inline-size: 200%;
|
|
172
217
|
}
|
|
173
218
|
}
|
|
174
219
|
|
|
175
220
|
.mdw-layout__navdrawer,
|
|
176
221
|
.mdw-layout__sidesheet {
|
|
177
|
-
@include gridRow($rowTop, $rowBottom);
|
|
178
|
-
|
|
179
222
|
box-sizing: border-box;
|
|
180
|
-
max-
|
|
181
|
-
|
|
182
|
-
max-
|
|
183
|
-
|
|
184
|
-
max-width: calc(100vw - #{dp(64)}); // Tablet or Desktop
|
|
185
|
-
}
|
|
186
|
-
width: $sheetMinWidth;
|
|
223
|
+
max-block-size: 100vh;
|
|
224
|
+
block-size: 100%;
|
|
225
|
+
max-inline-size: var(--mdw-layout__sheet-max-inline-size);
|
|
226
|
+
inline-size: $sheetMinWidth;
|
|
187
227
|
|
|
188
228
|
transition-duration: motion.$expandDuration;
|
|
189
|
-
transition-property:
|
|
229
|
+
transition-property: block-size, max-block-size, transform;
|
|
190
230
|
transition-timing-function: motion.$decelerateEasing;
|
|
191
231
|
|
|
192
232
|
will-change: max-width, transform, position;
|
|
@@ -203,39 +243,46 @@ $contentOverflowYSticky: visible !default;
|
|
|
203
243
|
-webkit-overflow-scrolling: touch;
|
|
204
244
|
|
|
205
245
|
box-sizing: border-box;
|
|
206
|
-
max-
|
|
207
|
-
|
|
208
|
-
border-width:
|
|
246
|
+
max-block-size: 100%;
|
|
247
|
+
block-size: 100%;
|
|
248
|
+
border-width: 1px;
|
|
209
249
|
}
|
|
210
250
|
|
|
211
251
|
.mdw-layout__navdrawer {
|
|
212
|
-
|
|
252
|
+
grid-area: navdrawer;
|
|
253
|
+
|
|
254
|
+
.mdw-layout__sheet-content {
|
|
255
|
+
border-inline-start-style: none;
|
|
256
|
+
border-inline-end-style: solid;
|
|
257
|
+
}
|
|
213
258
|
|
|
214
259
|
.mdw-list__content.mdw-overlay {
|
|
215
260
|
&::before,
|
|
216
261
|
& > .mdw-ripple__container {
|
|
217
|
-
margin:
|
|
262
|
+
margin: 4px 8px;
|
|
218
263
|
|
|
219
|
-
border-radius:
|
|
264
|
+
border-radius: 4px;
|
|
220
265
|
}
|
|
221
266
|
}
|
|
222
267
|
}
|
|
223
268
|
|
|
224
269
|
.mdw-layout__sidesheet {
|
|
225
|
-
|
|
226
|
-
}
|
|
270
|
+
grid-area: sidedrawer;
|
|
227
271
|
|
|
228
|
-
.mdw-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
272
|
+
.mdw-layout__sheet-content {
|
|
273
|
+
border-inline-start-style: solid;
|
|
274
|
+
border-inline-end-style: none;
|
|
275
|
+
}
|
|
232
276
|
}
|
|
233
277
|
|
|
234
|
-
|
|
235
|
-
.mdw-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
278
|
+
.mdw-layout[mdw-ios][mdw-standalone] {
|
|
279
|
+
.mdw-layout__appbar,
|
|
280
|
+
.mdw-layout__navdrawer,
|
|
281
|
+
.mdw-layout__sidesheet {
|
|
282
|
+
padding-block-start: 20px;
|
|
283
|
+
padding-block-start: constant(safe-area-inset-top);
|
|
284
|
+
padding-block-start: env(safe-area-inset-top);
|
|
285
|
+
}
|
|
239
286
|
}
|
|
240
287
|
|
|
241
288
|
@each $side in ('navdrawer', 'sidesheet') {
|
|
@@ -245,16 +292,13 @@ $contentOverflowYSticky: visible !default;
|
|
|
245
292
|
}
|
|
246
293
|
|
|
247
294
|
.mdw-layout__#{$side} {
|
|
248
|
-
|
|
249
|
-
//
|
|
250
|
-
// https://codepen.io/shortfuse/pen/pYqLbQ
|
|
251
|
-
|
|
252
|
-
display: inline-block;
|
|
295
|
+
|
|
296
|
+
// display: inline-block;
|
|
253
297
|
position: fixed;
|
|
254
|
-
|
|
255
|
-
bottom: 0;
|
|
298
|
+
inset-block: 0;
|
|
256
299
|
|
|
257
300
|
flex-direction: column;
|
|
301
|
+
grid-row-start: 1;
|
|
258
302
|
|
|
259
303
|
// Transition visibility
|
|
260
304
|
transition-duration: motion.$collapseDuration;
|
|
@@ -269,29 +313,14 @@ $contentOverflowYSticky: visible !default;
|
|
|
269
313
|
border-width: 0;
|
|
270
314
|
}
|
|
271
315
|
@if ($side == 'navdrawer') {
|
|
272
|
-
|
|
273
|
-
left: 0;
|
|
316
|
+
inset-inline: 0 auto;
|
|
274
317
|
|
|
275
|
-
transform:
|
|
318
|
+
transform: var(--mdw-layout__transform-inline-reverse);
|
|
276
319
|
|
|
277
|
-
:root[dir="rtl"] & {
|
|
278
|
-
right: 0;
|
|
279
|
-
left: auto;
|
|
280
|
-
|
|
281
|
-
transform: translateX(100%);
|
|
282
|
-
}
|
|
283
320
|
} @else {
|
|
284
|
-
|
|
285
|
-
left: auto;
|
|
321
|
+
inset-inline: auto 0;
|
|
286
322
|
|
|
287
|
-
transform:
|
|
288
|
-
|
|
289
|
-
:root[dir="rtl"] & {
|
|
290
|
-
right: auto;
|
|
291
|
-
left: 0;
|
|
292
|
-
|
|
293
|
-
transform: translateX(-100%);
|
|
294
|
-
}
|
|
323
|
+
transform: var(--mdw-layout__transform-inline);
|
|
295
324
|
}
|
|
296
325
|
|
|
297
326
|
// Shown
|
|
@@ -299,7 +328,7 @@ $contentOverflowYSticky: visible !default;
|
|
|
299
328
|
&[aria-hidden="false"] {
|
|
300
329
|
// Change visibility immediately
|
|
301
330
|
transition-duration: motion.$expandDuration;
|
|
302
|
-
transition-property: max-
|
|
331
|
+
transition-property: max-inline-size, transform;
|
|
303
332
|
transition-timing-function: motion.$decelerateEasing;
|
|
304
333
|
|
|
305
334
|
transform: translateX(0);
|
|
@@ -309,13 +338,14 @@ $contentOverflowYSticky: visible !default;
|
|
|
309
338
|
|
|
310
339
|
& ~ .mdw-layout__scrim {
|
|
311
340
|
pointer-events: auto;
|
|
341
|
+
|
|
312
342
|
visibility: visible;
|
|
313
|
-
|
|
343
|
+
|
|
314
344
|
background-color: $scrimColor;
|
|
315
345
|
}
|
|
316
346
|
|
|
317
347
|
&,
|
|
318
|
-
|
|
348
|
+
& ~ .mdw-layout__appbar {
|
|
319
349
|
.mdw-layout__#{$side}-show {
|
|
320
350
|
display: none;
|
|
321
351
|
}
|
|
@@ -326,49 +356,40 @@ $contentOverflowYSticky: visible !default;
|
|
|
326
356
|
}
|
|
327
357
|
|
|
328
358
|
.mdw-layout__banner {
|
|
329
|
-
|
|
330
|
-
|
|
359
|
+
grid-area: banner;
|
|
360
|
+
|
|
331
361
|
z-index: 0;
|
|
332
362
|
}
|
|
333
363
|
|
|
334
364
|
.mdw-layout__content {
|
|
335
|
-
@include gridRow($rowContent);
|
|
336
|
-
@include gridColumn($columnContent);
|
|
337
|
-
|
|
338
365
|
display: flex;
|
|
339
366
|
position: relative;
|
|
340
367
|
align-items: center;
|
|
341
368
|
flex-direction: column;
|
|
369
|
+
grid-area: content;
|
|
342
370
|
overflow-x: visible;
|
|
343
|
-
overflow-y:
|
|
371
|
+
overflow-y: visible;
|
|
344
372
|
-webkit-overflow-scrolling: touch;
|
|
345
373
|
}
|
|
346
374
|
|
|
347
|
-
|
|
348
375
|
.mdw-layout__content-page {
|
|
349
|
-
|
|
376
|
+
inline-size: 100%;
|
|
350
377
|
}
|
|
351
378
|
|
|
352
379
|
.mdw-layout__fab,
|
|
353
380
|
.mdw-layout__snackbar {
|
|
354
|
-
// Aligned to bottom-anchor
|
|
355
|
-
@include gridRow($rowBottom);
|
|
356
|
-
@include gridColumn($columnContent);
|
|
357
|
-
|
|
358
|
-
position: static;
|
|
359
|
-
position: -webkit-sticky;
|
|
360
|
-
position: -moz-sticky;
|
|
361
381
|
position: sticky;
|
|
362
|
-
|
|
363
|
-
|
|
382
|
+
inset-block: auto 0;
|
|
383
|
+
grid-area: bottom;
|
|
384
|
+
|
|
385
|
+
inline-size: auto;
|
|
364
386
|
|
|
365
|
-
|
|
387
|
+
pointer-events: none;
|
|
366
388
|
|
|
367
389
|
transition-duration: motion.$expandDuration;
|
|
368
390
|
transition-property: transform;
|
|
369
391
|
transition-timing-function: motion.$decelerateEasing;
|
|
370
392
|
|
|
371
|
-
pointer-events: none;
|
|
372
393
|
transform: translateY(-100%);
|
|
373
394
|
z-index: 6;
|
|
374
395
|
|
|
@@ -382,10 +403,7 @@ $contentOverflowYSticky: visible !default;
|
|
|
382
403
|
|
|
383
404
|
.mdw-layout__dialogs {
|
|
384
405
|
position: fixed;
|
|
385
|
-
|
|
386
|
-
right: 0;
|
|
387
|
-
bottom: 0;
|
|
388
|
-
left: 0;
|
|
406
|
+
inset: 0;
|
|
389
407
|
|
|
390
408
|
pointer-events: none;
|
|
391
409
|
|
|
@@ -394,42 +412,17 @@ $contentOverflowYSticky: visible !default;
|
|
|
394
412
|
|
|
395
413
|
.mdw-layout__snackbar-anchor {
|
|
396
414
|
position: absolute;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
left: 0;
|
|
415
|
+
inset-block-end: 0;
|
|
416
|
+
inset-inline: 0 auto;
|
|
400
417
|
|
|
401
418
|
// Snackbars are not aligned with layout
|
|
402
419
|
box-sizing: border-box;
|
|
403
|
-
padding-
|
|
404
|
-
padding-
|
|
405
|
-
padding-bottom: dp(24 * 0.5);
|
|
406
|
-
padding-left: dp(24 * 0.5);
|
|
407
|
-
@include breakpoint.has16DPMargin() {
|
|
408
|
-
padding-top: dp(16 * 0.5);
|
|
409
|
-
padding-right: 0;
|
|
410
|
-
padding-bottom: dp(16 * 0.5);
|
|
411
|
-
padding-left: dp(16 * 0.5);
|
|
412
|
-
}
|
|
420
|
+
padding-block: calc(var(--mdw-layout__margin) * 0.5);
|
|
421
|
+
padding-inline-start: calc(var(--mdw-layout__margin) * 0.5);
|
|
413
422
|
|
|
414
423
|
transition-duration: inherit;
|
|
415
|
-
transition-property: transform,
|
|
424
|
+
transition-property: transform, inset-block-end;
|
|
416
425
|
transition-timing-function: inherit;
|
|
417
|
-
|
|
418
|
-
:root[dir="rtl"] & {
|
|
419
|
-
right: 0;
|
|
420
|
-
left: auto;
|
|
421
|
-
|
|
422
|
-
padding-top: dp(24 * 0.5);
|
|
423
|
-
padding-right: dp(24 * 0.5);
|
|
424
|
-
padding-bottom: dp(24 * 0.5);
|
|
425
|
-
padding-left: 0;
|
|
426
|
-
@include breakpoint.has16DPMargin() {
|
|
427
|
-
padding-top: dp(16 * 0.5);
|
|
428
|
-
padding-right: dp(16 * 0.5);
|
|
429
|
-
padding-bottom: dp(16 * 0.5);
|
|
430
|
-
padding-left: dp(0);
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
426
|
}
|
|
434
427
|
|
|
435
428
|
.mdw-layout__snackbar .mdw-snackbar__container {
|
|
@@ -438,26 +431,17 @@ $contentOverflowYSticky: visible !default;
|
|
|
438
431
|
|
|
439
432
|
.mdw-layout__fab-anchor {
|
|
440
433
|
position: absolute;
|
|
434
|
+
inset-block-end: 0;
|
|
441
435
|
|
|
442
|
-
//
|
|
443
|
-
|
|
444
|
-
bottom: 0;
|
|
445
|
-
left: auto;
|
|
436
|
+
// Start aligned
|
|
437
|
+
inset-inline: auto 0;
|
|
446
438
|
|
|
447
|
-
padding:
|
|
448
|
-
@include breakpoint.has16DPMargin() {
|
|
449
|
-
padding: dp(16);
|
|
450
|
-
}
|
|
439
|
+
padding: var(--mdw-layout__margin);
|
|
451
440
|
|
|
452
441
|
transition-duration: inherit;
|
|
453
|
-
transition-property: transform,
|
|
442
|
+
transition-property: transform, inset-inline, padding-block;
|
|
454
443
|
transition-timing-function: inherit;
|
|
455
444
|
|
|
456
|
-
:root[dir="rtl"] & {
|
|
457
|
-
right: 100%;
|
|
458
|
-
|
|
459
|
-
transform: translateX(100%);
|
|
460
|
-
}
|
|
461
445
|
}
|
|
462
446
|
|
|
463
447
|
.mdw-layout__fab-anchor .mdw-fab {
|
|
@@ -469,40 +453,39 @@ $contentOverflowYSticky: visible !default;
|
|
|
469
453
|
}
|
|
470
454
|
|
|
471
455
|
.mdw-layout__bottomnav {
|
|
472
|
-
@include gridColumn($columnContent);
|
|
473
|
-
@include gridRow($rowBottom);
|
|
474
|
-
|
|
475
|
-
&[aria-hidden="true"] {
|
|
476
|
-
display: none;
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
position: static;
|
|
480
|
-
position: -webkit-sticky;
|
|
481
|
-
position: -moz-sticky;
|
|
482
456
|
position: sticky;
|
|
483
|
-
|
|
484
|
-
|
|
457
|
+
inset-block-end: 0;
|
|
458
|
+
grid-area: bottom;
|
|
459
|
+
|
|
485
460
|
z-index: 4;
|
|
486
461
|
|
|
487
462
|
box-shadow: elevation.boxShadow(8);
|
|
463
|
+
|
|
464
|
+
&[aria-hidden="true"] {
|
|
465
|
+
display: none;
|
|
466
|
+
}
|
|
488
467
|
}
|
|
489
468
|
|
|
490
469
|
.mdw-layout__appbar-shape {
|
|
491
470
|
display: flex;
|
|
492
471
|
position: absolute;
|
|
493
|
-
|
|
494
|
-
|
|
472
|
+
inset-block-start: 0;
|
|
473
|
+
inset-inline-start: 0;
|
|
474
|
+
|
|
475
|
+
grid-row: 1 / span 2;
|
|
495
476
|
overflow: hidden;
|
|
496
477
|
|
|
497
|
-
|
|
498
|
-
|
|
478
|
+
block-size: 100%;
|
|
479
|
+
inline-size: 100%;
|
|
499
480
|
|
|
500
481
|
transition-duration: inherit;
|
|
501
482
|
transition-property: box-shadow;
|
|
502
483
|
transition-timing-function: inherit;
|
|
503
484
|
|
|
485
|
+
z-index: -1;
|
|
486
|
+
|
|
504
487
|
box-shadow: elevation.boxShadow(4);
|
|
505
|
-
|
|
488
|
+
|
|
506
489
|
color: transparent;
|
|
507
490
|
|
|
508
491
|
.mdw-layout__appbar[mdw-autoraise]:not([mdw-raise]) & {
|
|
@@ -515,22 +498,19 @@ $contentOverflowYSticky: visible !default;
|
|
|
515
498
|
&::after {
|
|
516
499
|
content: '';
|
|
517
500
|
|
|
518
|
-
min-
|
|
519
|
-
@include breakpoint.has16DPMargin() {
|
|
520
|
-
min-width: dp(16);
|
|
521
|
-
}
|
|
501
|
+
min-inline-size: var(--mdw-layout__margin);
|
|
522
502
|
}
|
|
523
503
|
}
|
|
524
504
|
|
|
525
505
|
.mdw-layout__fab-cut-track {
|
|
526
506
|
display: flex;
|
|
527
507
|
position: relative;
|
|
528
|
-
|
|
529
|
-
|
|
508
|
+
inset-block-start: 0;
|
|
509
|
+
inset-inline-start: 0;
|
|
530
510
|
flex-direction: row;
|
|
531
511
|
|
|
532
|
-
|
|
533
|
-
|
|
512
|
+
block-size: 100%;
|
|
513
|
+
inline-size: 100%;
|
|
534
514
|
|
|
535
515
|
transition-duration: motion.$shapeChangeDuration;
|
|
536
516
|
transition-property: transform;
|
|
@@ -542,33 +522,33 @@ $contentOverflowYSticky: visible !default;
|
|
|
542
522
|
&::after,
|
|
543
523
|
& > svg {
|
|
544
524
|
position: absolute;
|
|
545
|
-
|
|
525
|
+
inset-block-start: 0;
|
|
546
526
|
|
|
547
|
-
|
|
527
|
+
block-size: 100%;
|
|
548
528
|
}
|
|
549
529
|
|
|
550
530
|
&::before,
|
|
551
531
|
&::after {
|
|
552
532
|
content: '';
|
|
553
533
|
|
|
554
|
-
|
|
555
|
-
margin-
|
|
534
|
+
inline-size: 100%;
|
|
535
|
+
margin-inline-start: -$fabCutSize * 0.5;
|
|
556
536
|
|
|
557
537
|
background-color: currentColor;
|
|
558
538
|
}
|
|
559
539
|
|
|
560
540
|
&::before {
|
|
561
|
-
|
|
541
|
+
inset-inline-start: -100%;
|
|
562
542
|
}
|
|
563
543
|
|
|
564
544
|
&::after {
|
|
565
|
-
|
|
545
|
+
inset-inline-start: $fabCutSize;
|
|
566
546
|
}
|
|
567
547
|
|
|
568
548
|
& > svg {
|
|
569
|
-
|
|
549
|
+
inset-inline-start: -$fabCutSize * 0.5;
|
|
570
550
|
|
|
571
|
-
|
|
551
|
+
inline-size: $fabCutSize;
|
|
572
552
|
|
|
573
553
|
fill: currentColor;
|
|
574
554
|
}
|
|
@@ -600,7 +580,7 @@ $contentOverflowYSticky: visible !default;
|
|
|
600
580
|
transform: translateY(0);
|
|
601
581
|
}
|
|
602
582
|
}
|
|
603
|
-
|
|
583
|
+
|
|
604
584
|
.mdw-layout__appbar-shape {
|
|
605
585
|
filter: none;
|
|
606
586
|
|
|
@@ -635,10 +615,16 @@ $contentOverflowYSticky: visible !default;
|
|
|
635
615
|
}
|
|
636
616
|
|
|
637
617
|
@include breakpoint.maxSmallWindow {
|
|
618
|
+
.mdw-layout__body {
|
|
619
|
+
grid-template-columns:
|
|
620
|
+
[start] 0
|
|
621
|
+
[center] minmax(0, 100%)
|
|
622
|
+
[end] 0;
|
|
623
|
+
}
|
|
624
|
+
|
|
638
625
|
.mdw-layout__appbar[mdw-bottom] {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
bottom: 0;
|
|
626
|
+
inset-block: auto 0;
|
|
627
|
+
grid-area: bottom;
|
|
642
628
|
|
|
643
629
|
z-index: 8;
|
|
644
630
|
|
|
@@ -650,15 +636,15 @@ $contentOverflowYSticky: visible !default;
|
|
|
650
636
|
& ~ .mdw-layout__fab {
|
|
651
637
|
transform: translateY(-100%) translateY(#{$fabSize * 0.5});
|
|
652
638
|
}
|
|
653
|
-
|
|
639
|
+
|
|
654
640
|
.mdw-layout__appbar-shape {
|
|
655
641
|
transition-property: filter;
|
|
656
|
-
|
|
642
|
+
|
|
657
643
|
filter: elevation.filter(8);
|
|
658
|
-
|
|
644
|
+
|
|
659
645
|
box-shadow: elevation.boxShadow(0);
|
|
660
646
|
}
|
|
661
|
-
|
|
647
|
+
|
|
662
648
|
.mdw-layout__fab-mask-shape {
|
|
663
649
|
transform: scale(0);
|
|
664
650
|
}
|
|
@@ -700,30 +686,20 @@ $contentOverflowYSticky: visible !default;
|
|
|
700
686
|
}
|
|
701
687
|
|
|
702
688
|
.mdw-layout__snackbar-anchor {
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
left: 0;
|
|
707
|
-
|
|
708
|
-
padding: dp(24 * 0.5);
|
|
709
|
-
@include breakpoint.has16DPMargin() {
|
|
710
|
-
padding: dp(16 * 0.5);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
689
|
+
inset-inline: 0;
|
|
690
|
+
|
|
691
|
+
padding: calc(var(--mdw-layout__margin) * 0.5);
|
|
713
692
|
}
|
|
714
693
|
|
|
715
694
|
.mdw-layout__fab[mdw-mobile] {
|
|
716
695
|
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
717
|
-
|
|
718
|
-
@include breakpoint.has16DPMargin() {
|
|
719
|
-
bottom: dp(16);
|
|
720
|
-
}
|
|
696
|
+
inset-block-end: var(--mdw-layout__margin);
|
|
721
697
|
|
|
722
|
-
transform: translateY(
|
|
698
|
+
transform: translateY(-56px);
|
|
723
699
|
}
|
|
724
700
|
|
|
725
701
|
& ~ .mdw-layout__content {
|
|
726
|
-
padding-
|
|
702
|
+
padding-block-end: calc(#{$fabSize} + var(--mdw-layout__margin));
|
|
727
703
|
}
|
|
728
704
|
|
|
729
705
|
&[aria-hidden="false"] .mdw-fab {
|
|
@@ -736,6 +712,7 @@ $contentOverflowYSticky: visible !default;
|
|
|
736
712
|
|
|
737
713
|
.mdw-layout__appbar[mdw-fab-cut~="center"] .mdw-layout__fab-cut-track,
|
|
738
714
|
.mdw-layout__fab[mdw-mobile="center"] .mdw-layout__fab-anchor {
|
|
715
|
+
/* stylelint-disable-next-line liberty/use-logical-spec */
|
|
739
716
|
right: 50%;
|
|
740
717
|
|
|
741
718
|
transform: translateX(50%);
|
|
@@ -743,16 +720,14 @@ $contentOverflowYSticky: visible !default;
|
|
|
743
720
|
|
|
744
721
|
.mdw-layout__appbar[mdw-fab-cut~="full"] .mdw-layout__fab-cut-track,
|
|
745
722
|
.mdw-layout__fab[mdw-mobile="full"] .mdw-layout__fab-anchor {
|
|
746
|
-
|
|
747
|
-
left: 0;
|
|
723
|
+
inset-inline: 0;
|
|
748
724
|
|
|
749
725
|
transform: none;
|
|
750
726
|
}
|
|
751
727
|
|
|
752
728
|
.mdw-layout__fab[mdw-mobile="full"] .mdw-fab__button {
|
|
753
|
-
|
|
754
|
-
padding-
|
|
755
|
-
padding-left: 0;
|
|
729
|
+
inline-size: 100%;
|
|
730
|
+
padding-inline: 0;
|
|
756
731
|
}
|
|
757
732
|
|
|
758
733
|
.mdw-layout__appbar[mdw-fab-cut][mdw-bottom]:not([mdw-hide]) {
|
|
@@ -772,13 +747,12 @@ $contentOverflowYSticky: visible !default;
|
|
|
772
747
|
}
|
|
773
748
|
|
|
774
749
|
.mdw-layout__fab-anchor {
|
|
775
|
-
padding-
|
|
776
|
-
padding-bottom: 0;
|
|
750
|
+
padding-block: 0;
|
|
777
751
|
}
|
|
778
752
|
}
|
|
779
753
|
|
|
780
754
|
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
781
|
-
|
|
755
|
+
inset-block-end: 0;
|
|
782
756
|
|
|
783
757
|
transform: translateY(-$fabSize * 0.5);
|
|
784
758
|
}
|
|
@@ -794,37 +768,33 @@ $contentOverflowYSticky: visible !default;
|
|
|
794
768
|
}
|
|
795
769
|
}
|
|
796
770
|
|
|
797
|
-
.mdw-layout__body:not([mdw-
|
|
798
|
-
.mdw-
|
|
799
|
-
.mdw-
|
|
800
|
-
.mdw-
|
|
771
|
+
.mdw-layout__body:not([mdw-sidedrawer-toggle]):not([mdw-sidedrawer-style="modal"]) {
|
|
772
|
+
.mdw-layout__sidedrawer-show,
|
|
773
|
+
.mdw-layout__sidedrawer-hide,
|
|
774
|
+
.mdw-layout__sidedrawer-toggle {
|
|
801
775
|
display: none;
|
|
802
776
|
}
|
|
803
777
|
}
|
|
804
778
|
|
|
805
|
-
.mdw-layout__navdrawer
|
|
806
|
-
.mdw-layout__sidesheet {
|
|
779
|
+
.mdw-layout__navdrawer {
|
|
807
780
|
// Full-height
|
|
808
|
-
|
|
809
|
-
position: -webkit-sticky;
|
|
810
|
-
position: -moz-sticky;
|
|
781
|
+
|
|
811
782
|
position: sticky;
|
|
812
|
-
|
|
813
|
-
bottom: auto;
|
|
783
|
+
inset-block: 0 auto;
|
|
814
784
|
|
|
815
785
|
transform: none;
|
|
816
786
|
}
|
|
817
787
|
|
|
818
788
|
.mdw-layout__snackbar-anchor {
|
|
819
|
-
|
|
789
|
+
inline-size: 50%;
|
|
820
790
|
}
|
|
821
791
|
|
|
822
792
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"],
|
|
823
|
-
.mdw-layout__body[mdw-
|
|
824
|
-
overflow-y:
|
|
793
|
+
.mdw-layout__body[mdw-sidedrawer-style~="clipped"] {
|
|
794
|
+
overflow-y: hidden;
|
|
825
795
|
|
|
826
796
|
& > .mdw-layout__content {
|
|
827
|
-
overflow-y:
|
|
797
|
+
overflow-y: auto;
|
|
828
798
|
}
|
|
829
799
|
}
|
|
830
800
|
|
|
@@ -837,14 +807,13 @@ $contentOverflowYSticky: visible !default;
|
|
|
837
807
|
}
|
|
838
808
|
|
|
839
809
|
&:not([mdw-desktop="appbar"]) ~ .mdw-layout__content {
|
|
840
|
-
padding-
|
|
810
|
+
padding-block-end: calc(#{$fabSize} + var(--mdw-layout__margin));
|
|
841
811
|
}
|
|
842
812
|
}
|
|
843
813
|
|
|
844
814
|
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
bottom: auto;
|
|
815
|
+
inset-block: 0 auto;
|
|
816
|
+
grid-area: appbar;
|
|
848
817
|
|
|
849
818
|
transform: translateY(100%);
|
|
850
819
|
|
|
@@ -856,26 +825,17 @@ $contentOverflowYSticky: visible !default;
|
|
|
856
825
|
}
|
|
857
826
|
|
|
858
827
|
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
859
|
-
|
|
828
|
+
inline-size: 75%;
|
|
860
829
|
}
|
|
861
830
|
|
|
862
831
|
.mdw-layout__fab-anchor {
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
bottom: auto;
|
|
866
|
-
left: 0;
|
|
832
|
+
inset-block: 0 auto;
|
|
833
|
+
inset-inline: 0 auto;
|
|
867
834
|
|
|
868
|
-
padding-
|
|
869
|
-
padding-
|
|
870
|
-
padding-bottom: 0;
|
|
871
|
-
padding-left: dp(8);
|
|
835
|
+
padding-block: 0;
|
|
836
|
+
padding-inline: 8px;
|
|
872
837
|
|
|
873
838
|
transform: none;
|
|
874
|
-
|
|
875
|
-
:root[dir="rtl"] & {
|
|
876
|
-
right: 0;
|
|
877
|
-
left: auto;
|
|
878
|
-
}
|
|
879
839
|
}
|
|
880
840
|
}
|
|
881
841
|
|
|
@@ -885,67 +845,22 @@ $contentOverflowYSticky: visible !default;
|
|
|
885
845
|
}
|
|
886
846
|
|
|
887
847
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"] .mdw-layout__navdrawer,
|
|
888
|
-
.mdw-layout__body[mdw-
|
|
889
|
-
@include gridRow($rowBanner, $rowBottom);
|
|
848
|
+
.mdw-layout__body[mdw-sidedrawer-style~="clipped"] .mdw-layout__sidedrawer {
|
|
890
849
|
z-index: 0;
|
|
891
850
|
}
|
|
892
|
-
|
|
893
|
-
.mdw-layout__body[mdw-navdrawer-style~="clipped"] {
|
|
894
|
-
.mdw-layout__appbar,
|
|
895
|
-
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
896
|
-
@include gridColumn($columnNavDrawer, $columnContent);
|
|
897
|
-
}
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
.mdw-layout__body[mdw-sidesheet-style~="clipped"] {
|
|
901
|
-
.mdw-layout__appbar,
|
|
902
|
-
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
903
|
-
@include gridColumn($columnContent, $columnSideSheet);
|
|
904
|
-
}
|
|
905
|
-
}
|
|
906
851
|
|
|
907
|
-
.mdw-layout__body[mdw-navdrawer-style~="clipped"][mdw-sidesheet-style~="clipped"] {
|
|
908
|
-
.mdw-layout__appbar,
|
|
909
|
-
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
910
|
-
@include gridColumn($columnNavDrawer, $columnSideSheet);
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
|
|
914
852
|
.mdw-layout__body[mdw-navdrawer-style~="floating"] .mdw-layout__navdrawer,
|
|
915
|
-
.mdw-layout__body[mdw-
|
|
916
|
-
@include gridRow($rowContent, $rowBottom);
|
|
917
|
-
|
|
853
|
+
.mdw-layout__body[mdw-sidedrawer-style~="floating"] .mdw-layout__sidedrawer {
|
|
918
854
|
& .mdw-layout__sheet-content {
|
|
919
|
-
|
|
855
|
+
block-size: auto;
|
|
920
856
|
border-width: 0;
|
|
921
857
|
}
|
|
922
858
|
}
|
|
923
859
|
|
|
924
|
-
.mdw-layout__body[mdw-navdrawer-style~="floating"] {
|
|
925
|
-
.mdw-layout__banner,
|
|
926
|
-
.mdw-layout__bottomnav {
|
|
927
|
-
@include gridColumn($columnNavDrawer, $columnContent);
|
|
928
|
-
}
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
.mdw-layout__body[mdw-sidesheet-style~="floating"] {
|
|
932
|
-
.mdw-layout__banner,
|
|
933
|
-
.mdw-layout__bottomnav {
|
|
934
|
-
@include gridColumn($columnContent, $columnSideSheet);
|
|
935
|
-
}
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
.mdw-layout__body[mdw-navdrawer-style~="floating"][mdw-sidesheet-style~="floating"] {
|
|
939
|
-
.mdw-layout__banner,
|
|
940
|
-
.mdw-layout__bottomnav {
|
|
941
|
-
@include gridColumn($columnNavDrawer, $columnSideSheet);
|
|
942
|
-
}
|
|
943
|
-
}
|
|
944
|
-
|
|
945
860
|
.mdw-layout__body[mdw-navdrawer-style~="card"] .mdw-layout__navdrawer,
|
|
946
|
-
.mdw-layout__body[mdw-
|
|
947
|
-
margin: 0
|
|
948
|
-
padding:
|
|
861
|
+
.mdw-layout__body[mdw-sidedrawer-style~="card"] .mdw-layout__sidedrawer {
|
|
862
|
+
margin: 0 var(--mdw-layout__margin);
|
|
863
|
+
padding: var(--mdw-layout__margin) 0;
|
|
949
864
|
|
|
950
865
|
& > .mdw-layout__sheet-content {
|
|
951
866
|
box-shadow: elevation.boxShadow(8);
|
|
@@ -953,16 +868,15 @@ $contentOverflowYSticky: visible !default;
|
|
|
953
868
|
}
|
|
954
869
|
|
|
955
870
|
.mdw-layout__body[mdw-navdrawer-toggle~="dismissible"]:not([mdw-navdrawer-style="modal"]) .mdw-layout__navdrawer:not([aria-hidden="false"]),
|
|
956
|
-
.mdw-layout__body[mdw-
|
|
957
|
-
max-
|
|
958
|
-
|
|
959
|
-
margin-
|
|
960
|
-
margin-left: 0;
|
|
871
|
+
.mdw-layout__body[mdw-sidedrawer-toggle~="dismissible"]:not([mdw-sidedrawer-style="modal"]) .mdw-layout__sidedrawer:not([aria-hidden="false"]) {
|
|
872
|
+
max-inline-size: 0;
|
|
873
|
+
inline-size: 0;
|
|
874
|
+
margin-inline: 0;
|
|
961
875
|
|
|
962
876
|
transition-duration: motion.$collapseDuration;
|
|
963
877
|
transition-property: width, max-width, margin, transform, visibility;
|
|
964
878
|
transition-timing-function: motion.$accelerateEasing;
|
|
965
|
-
|
|
879
|
+
|
|
966
880
|
visibility: hidden;
|
|
967
881
|
|
|
968
882
|
.mdw-layout__sheet-content {
|
|
@@ -972,18 +886,18 @@ $contentOverflowYSticky: visible !default;
|
|
|
972
886
|
|
|
973
887
|
.mdw-layout__body[mdw-navdrawer-toggle~="mini"]:not([mdw-navdrawer-style="modal"]) {
|
|
974
888
|
.mdw-layout__navdrawer:not([aria-hidden="false"]) {
|
|
975
|
-
max-
|
|
976
|
-
|
|
889
|
+
max-inline-size: $sheetMaxWidthMini;
|
|
890
|
+
inline-size: $sheetMaxWidthMini;
|
|
977
891
|
|
|
978
892
|
transition-duration: motion.$collapseDuration;
|
|
979
893
|
transition-timing-function: motion.$accelerateEasing;
|
|
980
894
|
}
|
|
981
895
|
}
|
|
982
896
|
|
|
983
|
-
.mdw-layout__body[mdw-
|
|
984
|
-
.mdw-
|
|
985
|
-
max-
|
|
986
|
-
|
|
897
|
+
.mdw-layout__body[mdw-sidedrawer-toggle~="mini"]:not([mdw-sidedrawer-style="modal"]) {
|
|
898
|
+
.mdw-layout__sidedrawer:not([aria-hidden="false"]) {
|
|
899
|
+
max-inline-size: $sheetMaxWidthMini;
|
|
900
|
+
inline-size: $sheetMaxWidthMini;
|
|
987
901
|
|
|
988
902
|
transition-duration: motion.$collapseDuration;
|
|
989
903
|
transition-timing-function: motion.$accelerateEasing;
|
|
@@ -1000,13 +914,3 @@ $contentOverflowYSticky: visible !default;
|
|
|
1000
914
|
}
|
|
1001
915
|
}
|
|
1002
916
|
}
|
|
1003
|
-
|
|
1004
|
-
@supports (position: sticky) or (position: -webkit-sticky) or (position: -moz-sticky) {
|
|
1005
|
-
.mdw-layout__body {
|
|
1006
|
-
overflow-y: $bodyOverflowYSticky;
|
|
1007
|
-
|
|
1008
|
-
& > .mdw-layout__content {
|
|
1009
|
-
overflow-y: $contentOverflowYSticky;
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|