@shortfuse/materialdesignweb 0.0.9 → 0.4.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 +3 -0
- package/.eslintrc.json +146 -27
- package/.stylelintrc.json +598 -2
- package/.vscode/launch.json +20 -5
- package/.vscode/settings.json +3 -0
- package/.vscode/tasks.json +19 -10
- package/CHANGELOG.md +24 -0
- package/README.md +84 -2
- package/adapters/datatable/column.js +203 -0
- package/adapters/datatable/index.js +972 -0
- package/adapters/dom/index.js +601 -0
- package/adapters/list/index.js +69 -0
- package/adapters/search/index.js +521 -0
- package/components/appbar/_spec.scss +225 -0
- package/components/appbar/_theme.scss +0 -0
- package/components/appbar/index.scss +2 -0
- package/components/banner/_spec.scss +118 -0
- package/components/banner/_theme.scss +0 -0
- package/components/banner/index.scss +2 -0
- package/components/bottomnav/README.md +85 -0
- package/components/bottomnav/_spec.scss +157 -0
- package/components/bottomnav/_theme.scss +0 -0
- package/components/bottomnav/index.js +122 -0
- package/components/bottomnav/index.scss +2 -0
- package/components/bottomnav/item.js +89 -0
- package/components/{core/button → button}/README.md +16 -22
- package/components/button/_spec.scss +161 -0
- package/components/button/_theme.scss +65 -0
- package/components/button/index.eta +32 -0
- package/components/button/index.js +43 -0
- package/components/button/index.pug +18 -0
- package/components/button/index.scss +2 -0
- package/components/card/_spec.scss +249 -0
- package/components/card/_theme.scss +0 -0
- package/components/card/index.scss +2 -0
- package/components/chip/_spec.scss +134 -0
- package/components/chip/_theme.scss +177 -0
- package/components/chip/index.js +21 -0
- package/components/chip/index.scss +2 -0
- package/components/chip/item.js +20 -0
- package/components/datatable/_spec.scss +288 -0
- package/components/datatable/_theme.scss +154 -0
- package/components/datatable/cell.js +45 -0
- package/components/datatable/columnheader.js +47 -0
- package/components/datatable/index.js +388 -0
- package/components/datatable/index.scss +2 -0
- package/components/datatable/row.js +49 -0
- package/components/datatable/rowheader.js +18 -0
- package/components/dialog/_spec.scss +213 -0
- package/components/dialog/_theme.scss +0 -0
- package/components/dialog/index.js +627 -0
- package/components/dialog/index.scss +2 -0
- package/components/divider/_spec.scss +13 -0
- package/components/divider/_theme.scss +0 -0
- package/components/divider/index.scss +2 -0
- package/components/elevation/_spec.scss +9 -0
- package/components/elevation/_theme.scss +0 -0
- package/components/elevation/index.scss +2 -0
- package/components/fab/_spec.scss +222 -0
- package/components/fab/_theme.scss +0 -0
- package/components/fab/index.js +103 -0
- package/components/fab/index.scss +2 -0
- package/components/grid/_spec.scss +312 -0
- package/components/grid/_theme.scss +0 -0
- package/components/grid/index.scss +2 -0
- package/components/layout/_mixins.scss +33 -0
- package/components/layout/_spec.scss +1012 -0
- package/components/layout/_theme.scss +44 -0
- package/components/layout/index.js +464 -0
- package/components/layout/index.scss +2 -0
- package/components/list/_spec.scss +397 -0
- package/components/list/_theme.scss +111 -0
- package/components/list/content.js +110 -0
- package/components/list/index.js +260 -0
- package/components/list/index.scss +2 -0
- package/components/list/item.js +170 -0
- package/components/list/secondary.js +46 -0
- package/components/menu/_spec.scss +362 -0
- package/components/menu/_theme.scss +0 -0
- package/components/menu/index.js +721 -0
- package/components/menu/index.scss +2 -0
- package/components/menu/item.js +239 -0
- package/components/{core/progress/style.scss → progress/_spec.scss} +36 -25
- package/components/progress/_theme.scss +0 -0
- package/components/progress/index.js +36 -0
- package/components/progress/index.scss +2 -0
- package/components/selection/_spec.scss +386 -0
- package/components/selection/_theme.scss +166 -0
- package/components/selection/index.eta +60 -0
- package/components/selection/index.js +76 -0
- package/components/selection/index.pug +30 -0
- package/components/selection/index.scss +2 -0
- package/components/selection/input.js +56 -0
- package/components/selection/radiogroup.js +47 -0
- package/components/slider/_spec.scss +64 -0
- package/components/slider/_theme.scss +0 -0
- package/components/slider/index.scss +2 -0
- package/components/snackbar/_spec.scss +195 -0
- package/components/snackbar/_theme.scss +0 -0
- package/components/snackbar/index.js +344 -0
- package/components/snackbar/index.scss +2 -0
- package/components/tab/_spec.scss +235 -0
- package/components/tab/_theme.scss +0 -0
- package/components/tab/content.js +205 -0
- package/components/tab/index.js +260 -0
- package/components/tab/index.scss +2 -0
- package/components/tab/item.js +89 -0
- package/components/tab/list.js +210 -0
- package/components/tab/panel.js +54 -0
- package/components/template/_theme.scss +27 -0
- package/components/{core/textfield → textfield}/README.md +70 -50
- package/components/textfield/_mixins.scss +52 -0
- package/components/textfield/_spec.scss +809 -0
- package/components/textfield/_theme.scss +299 -0
- package/components/textfield/index.eta +74 -0
- package/components/textfield/index.js +168 -0
- package/components/textfield/index.pug +30 -0
- package/components/textfield/index.scss +2 -0
- package/components/tooltip/_spec.scss +188 -0
- package/components/tooltip/_theme.scss +0 -0
- package/components/tooltip/index.scss +2 -0
- package/components/type/_spec.scss +224 -0
- package/components/type/_theme.scss +0 -0
- package/components/type/index.scss +2 -0
- package/core/_breakpoint.scss +189 -0
- package/core/_elevation.scss +38 -0
- package/core/_length.scss +9 -0
- package/core/_motion.scss +31 -0
- package/core/_platform.scss +34 -0
- package/core/_type.scss +127 -0
- package/core/aria/attributes.js +141 -0
- package/core/aria/button.js +50 -0
- package/core/aria/keyboard.js +93 -0
- package/core/aria/rovingtabindex.js +178 -0
- package/core/aria/tab.js +60 -0
- package/core/color/_spec.scss +0 -0
- package/core/color/_theme.scss +390 -0
- package/core/color/index.scss +2 -0
- package/core/document/index.js +39 -0
- package/core/dom.js +271 -0
- package/core/overlay/_spec.scss +31 -0
- package/core/overlay/_theme.scss +171 -0
- package/core/overlay/index.js +108 -0
- package/core/overlay/index.scss +2 -0
- package/core/ripple/_spec.scss +197 -0
- package/core/ripple/_theme.scss +40 -0
- package/core/ripple/index.js +294 -0
- package/core/ripple/index.scss +2 -0
- package/core/theme/_config.scss +2 -0
- package/core/theme/_mixins.scss +172 -0
- package/{components/theming/palettes.scss → core/theme/_palettes.scss} +173 -150
- package/core/theme/_variables.scss +24 -0
- package/core/theme/index.js +50 -0
- package/core/throttler.js +42 -0
- package/core/transition/index.js +468 -0
- package/docs/_flex.scss +22 -0
- package/docs/_menuoptions.js +183 -0
- package/docs/_mixins.pug +155 -0
- package/docs/_partials/_androidnavbar.eta +5 -0
- package/docs/_partials/_androidstatusbar.eta +13 -0
- package/docs/_partials/_appbar.eta +29 -0
- package/docs/_partials/_buttontest.eta +31 -0
- package/docs/_partials/_header.eta +149 -0
- package/docs/_partials/_navlistitem.eta +16 -0
- package/docs/_partials/_target.eta +1 -0
- package/docs/_sample-utils.js +93 -0
- package/docs/_storage.js +33 -0
- package/docs/docs.scss +295 -0
- package/docs/index.eta +16 -0
- package/docs/index.js +0 -0
- package/docs/pages/appbar.eta +114 -0
- package/docs/pages/appbar.js +0 -0
- package/docs/pages/appbar.pug +78 -0
- package/docs/pages/bottomnav.eta +188 -0
- package/docs/pages/bottomnav.js +115 -0
- package/docs/pages/bottomnav.pug +137 -0
- package/docs/pages/button.eta +124 -0
- package/docs/pages/button.js +224 -0
- package/docs/pages/button.pug +121 -0
- package/docs/pages/card.eta +90 -0
- package/docs/pages/card.js +177 -0
- package/docs/pages/card.pug +74 -0
- package/docs/pages/chip.eta +122 -0
- package/docs/pages/chip.js +82 -0
- package/docs/pages/chip.pug +91 -0
- package/docs/pages/color.eta +143 -0
- package/docs/pages/color.js +262 -0
- package/docs/pages/color.pug +121 -0
- package/docs/pages/datatable.eta +323 -0
- package/docs/pages/datatable.js +164 -0
- package/docs/pages/datatable.pug +283 -0
- package/docs/pages/dialog.eta +186 -0
- package/docs/pages/dialog.js +177 -0
- package/docs/pages/dialog.pug +132 -0
- package/docs/pages/dom.eta +26 -0
- package/docs/pages/dom.js +143 -0
- package/docs/pages/dom.pug +22 -0
- package/docs/pages/elevation.eta +35 -0
- package/docs/pages/elevation.js +0 -0
- package/docs/pages/elevation.pug +25 -0
- package/docs/pages/fab.eta +99 -0
- package/docs/pages/fab.js +44 -0
- package/docs/pages/fab.pug +66 -0
- package/docs/pages/grid.eta +135 -0
- package/docs/pages/grid.js +128 -0
- package/docs/pages/grid.pug +95 -0
- package/docs/pages/layout.eta +8 -0
- package/docs/pages/layout.js +0 -0
- package/docs/pages/layout.pug +7 -0
- package/docs/pages/list.eta +465 -0
- package/docs/pages/list.js +9 -0
- package/docs/pages/list.pug +326 -0
- package/docs/pages/menu.eta +276 -0
- package/docs/pages/menu.js +217 -0
- package/docs/pages/menu.pug +205 -0
- package/docs/pages/overlay.eta +69 -0
- package/docs/pages/overlay.js +4 -0
- package/docs/pages/overlay.pug +55 -0
- package/docs/pages/progress.eta +23 -0
- package/docs/pages/progress.js +12 -0
- package/docs/pages/progress.pug +16 -0
- package/docs/pages/ripple.eta +27 -0
- package/docs/pages/ripple.js +4 -0
- package/docs/pages/ripple.pug +21 -0
- package/docs/pages/search.eta +246 -0
- package/docs/pages/search.js +243 -0
- package/docs/pages/search.pug +165 -0
- package/docs/pages/selection.eta +111 -0
- package/docs/pages/selection.js +13 -0
- package/docs/pages/selection.pug +74 -0
- package/docs/pages/slider.eta +23 -0
- package/docs/pages/slider.js +0 -0
- package/docs/pages/slider.pug +17 -0
- package/docs/pages/snackbar.eta +83 -0
- package/docs/pages/snackbar.js +158 -0
- package/docs/pages/snackbar.pug +60 -0
- package/docs/pages/tab.eta +421 -0
- package/docs/pages/tab.js +151 -0
- package/docs/pages/tab.pug +304 -0
- package/docs/pages/textfield.eta +486 -0
- package/docs/pages/textfield.js +254 -0
- package/docs/pages/textfield.pug +360 -0
- package/docs/pages/tooltip.eta +94 -0
- package/docs/pages/tooltip.js +0 -0
- package/docs/pages/tooltip.pug +78 -0
- package/docs/pages/transition.eta +117 -0
- package/docs/pages/transition.js +54 -0
- package/docs/pages/transition.pug +76 -0
- package/docs/pages/type.eta +31 -0
- package/docs/pages/type.js +0 -0
- package/docs/pages/type.pug +29 -0
- package/docs/postrender.js +39 -0
- package/docs/prerender.js +16 -0
- package/docs/pwa/_dialogs.eta +143 -0
- package/docs/pwa/_dialogs.pug +96 -0
- package/docs/pwa/_menus.eta +16 -0
- package/docs/pwa/_menus.pug +11 -0
- package/docs/pwa/pwa-prerender.js +3 -0
- package/docs/pwa/pwa.eta +480 -0
- package/docs/pwa/pwa.js +306 -0
- package/docs/pwa/pwa.pug +325 -0
- package/docs/pwa/pwa.scss +26 -0
- package/docs/spec.scss +26 -0
- package/docs/themes/_component-themes.scss +26 -0
- package/docs/themes/theme-colored-fallbacks.scss +17 -0
- package/docs/themes/theme-colored.scss +17 -0
- package/docs/themes/theme-default-fallbacks.scss +17 -0
- package/docs/themes/theme-default.scss +17 -0
- package/jsconfig.json +4 -2
- package/package.json +43 -28
- package/scripts/deploy-docs.sh +9 -0
- package/templates/index.eta +2 -0
- package/templates/index.pug +3 -0
- package/utils/function.js +3 -0
- package/webpack.config.cjs +257 -0
- package/components/_index.scss +0 -4
- package/components/all-components.scss +0 -14
- package/components/common/functions.scss +0 -173
- package/components/common/mixins.scss +0 -107
- package/components/common/motion.scss +0 -36
- package/components/common/ripple.scss +0 -92
- package/components/common/variables.scss +0 -48
- package/components/complex/dialog/style.scss +0 -159
- package/components/complex/dialog/theming.scss +0 -29
- package/components/complex/navdrawer/style.scss +0 -477
- package/components/complex/navdrawer/theming.scss +0 -58
- package/components/complex/search/index.js +0 -492
- package/components/core/bottomnav/README.md +0 -85
- package/components/core/bottomnav/index.js +0 -140
- package/components/core/bottomnav/style.scss +0 -173
- package/components/core/bottomnav/theming.scss +0 -42
- package/components/core/button/index.js +0 -52
- package/components/core/button/style.scss +0 -283
- package/components/core/button/theming.scss +0 -131
- package/components/core/list/index.js +0 -94
- package/components/core/list/style.scss +0 -269
- package/components/core/list/theming.scss +0 -74
- package/components/core/menu/index.js +0 -127
- package/components/core/menu/style.scss +0 -239
- package/components/core/menu/theming.scss +0 -55
- package/components/core/progress/index.js +0 -33
- package/components/core/selection/style.scss +0 -249
- package/components/core/selection/theming.scss +0 -49
- package/components/core/switch/style.scss +0 -3
- package/components/core/tab/index.js +0 -174
- package/components/core/tab/style.scss +0 -202
- package/components/core/tab/theming.scss +0 -43
- package/components/core/textfield/index.js +0 -169
- package/components/core/textfield/style.scss +0 -672
- package/components/core/textfield/theming.scss +0 -262
- package/components/core/toolbar/style.scss +0 -109
- package/components/core/toolbar/theming.scss +0 -28
- package/components/core/tooltip/style.scss +0 -127
- package/components/core/type/style.scss +0 -133
- package/components/core/type/theming.scss +0 -25
- package/components/index.js +0 -24
- package/components/template/theming.scss +0 -31
- package/components/theming/theming.scss +0 -504
- package/docs/bottomnav.html +0 -171
- package/docs/bottomnav.min.js +0 -383
- package/docs/button.html +0 -322
- package/docs/button.min.js +0 -251
- package/docs/components.min.css +0 -1
- package/docs/components.min.js +0 -83
- package/docs/dialog.html +0 -103
- package/docs/dialog.min.js +0 -160
- package/docs/docs.min.css +0 -1
- package/docs/docs.min.js +0 -83
- package/docs/index.html +0 -55
- package/docs/index.min.js +0 -83
- package/docs/list.html +0 -442
- package/docs/list.min.js +0 -312
- package/docs/menu.html +0 -185
- package/docs/menu.min.js +0 -370
- package/docs/navdrawer.html +0 -199
- package/docs/navdrawer.min.js +0 -244
- package/docs/progress.html +0 -75
- package/docs/progress.min.js +0 -162
- package/docs/search.html +0 -230
- package/docs/search.min.js +0 -1202
- package/docs/selection.html +0 -188
- package/docs/selection.min.js +0 -160
- package/docs/src/complex/dialog.js +0 -3
- package/docs/src/complex/dialog.pug +0 -44
- package/docs/src/complex/navdrawer.js +0 -82
- package/docs/src/complex/navdrawer.pug +0 -109
- package/docs/src/complex/search.js +0 -207
- package/docs/src/complex/search.pug +0 -143
- package/docs/src/components.scss +0 -1
- package/docs/src/core/bottomnav.js +0 -22
- package/docs/src/core/bottomnav.pug +0 -93
- package/docs/src/core/button.js +0 -16
- package/docs/src/core/button.pug +0 -73
- package/docs/src/core/list.js +0 -21
- package/docs/src/core/list.pug +0 -246
- package/docs/src/core/menu.js +0 -33
- package/docs/src/core/menu.pug +0 -108
- package/docs/src/core/progress.js +0 -11
- package/docs/src/core/progress.pug +0 -17
- package/docs/src/core/selection.js +0 -4
- package/docs/src/core/selection.pug +0 -92
- package/docs/src/core/tab.js +0 -21
- package/docs/src/core/tab.pug +0 -180
- package/docs/src/core/textfield.js +0 -15
- package/docs/src/core/textfield.pug +0 -274
- package/docs/src/core/toolbar.js +0 -4
- package/docs/src/core/toolbar.pug +0 -79
- package/docs/src/core/tooltip.js +0 -4
- package/docs/src/core/tooltip.pug +0 -76
- package/docs/src/core/type.js +0 -4
- package/docs/src/core/type.pug +0 -36
- package/docs/src/docs.scss +0 -200
- package/docs/src/index.pug +0 -5
- package/docs/src/mixins.pug +0 -72
- package/docs/src/targetHandler.js +0 -50
- package/docs/src/theming.ie11.scss +0 -35
- package/docs/src/theming.scss +0 -36
- package/docs/tab.html +0 -301
- package/docs/tab.min.js +0 -397
- package/docs/textfield.html +0 -476
- package/docs/textfield.min.js +0 -381
- package/docs/theming.ie11.min.css +0 -1
- package/docs/theming.ie11.min.js +0 -83
- package/docs/theming.min.css +0 -1
- package/docs/theming.min.js +0 -83
- package/docs/toolbar.html +0 -213
- package/docs/toolbar.min.js +0 -160
- package/docs/tooltip.html +0 -138
- package/docs/tooltip.min.js +0 -160
- package/docs/type.html +0 -94
- package/docs/type.min.js +0 -160
- package/webpack.config.js +0 -176
|
@@ -0,0 +1,1012 @@
|
|
|
1
|
+
// https://material.io/design/components/navigation-drawer.html
|
|
2
|
+
// https://material.io/archive/guidelines/patterns/navigation-drawer.html
|
|
3
|
+
// https://material.io/archive/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
|
|
4
|
+
|
|
5
|
+
@use '../../core/_breakpoint.scss' as breakpoint;
|
|
6
|
+
@use '../../core/_elevation.scss' as elevation;
|
|
7
|
+
@use '../../core/_length.scss' as *;
|
|
8
|
+
@use '../../core/_motion.scss' as motion;
|
|
9
|
+
@use '../../core/_type.scss' as type;
|
|
10
|
+
|
|
11
|
+
@use './_mixins.scss' as *;
|
|
12
|
+
|
|
13
|
+
$scrimColor: rgba(0, 0, 0, 0.50) !default;
|
|
14
|
+
$sheetMinWidth: dp(256) !default;
|
|
15
|
+
$sheetMaxWidthMini: dp(72) !default;
|
|
16
|
+
|
|
17
|
+
$fabSize: dp(56) !default;
|
|
18
|
+
$fabCutSize: dp(72) !default;
|
|
19
|
+
$fabCutDelay: 100ms !default;
|
|
20
|
+
|
|
21
|
+
$rowTop: 1 !default;
|
|
22
|
+
$rowBanner: 2 !default;
|
|
23
|
+
$rowContent: 3 !default;
|
|
24
|
+
$rowBottom: 4 !default;
|
|
25
|
+
|
|
26
|
+
$columnNavDrawer: 1 !default;
|
|
27
|
+
$columnContent: 2 !default;
|
|
28
|
+
$columnSideSheet: 3 !default;
|
|
29
|
+
$columnViewportEnd: 4 !default;
|
|
30
|
+
|
|
31
|
+
$bodyOverflowY: hidden !default;
|
|
32
|
+
$bodyOverflowYSticky: auto !default;
|
|
33
|
+
$contentOverflowY: auto !default;
|
|
34
|
+
$contentOverflowYSticky: visible !default;
|
|
35
|
+
|
|
36
|
+
.mdw-layout {
|
|
37
|
+
overflow-y: hidden;
|
|
38
|
+
|
|
39
|
+
min-height: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 100vw;
|
|
42
|
+
margin: 0;
|
|
43
|
+
padding: 0;
|
|
44
|
+
|
|
45
|
+
// TODO: Move fonts out of app-layout
|
|
46
|
+
// Prefer iOS Dynamic Type for accessibility support
|
|
47
|
+
font: -apple-system-body;
|
|
48
|
+
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mdw-layout__body {
|
|
52
|
+
@include type.addRules('body');
|
|
53
|
+
|
|
54
|
+
display: -ms-grid;
|
|
55
|
+
display: grid;
|
|
56
|
+
position: relative;
|
|
57
|
+
// start | main | end
|
|
58
|
+
// Use minmax(0, 1fr) to clamp horizontally oversized grid-items~~
|
|
59
|
+
// Use minmax everywhere to solve Chrome v80 grid bugs
|
|
60
|
+
grid-template-columns: minmax(0, auto) minmax(0, 100%) minmax(0, auto);
|
|
61
|
+
-ms-grid-columns: auto minmax(0, 1fr) auto;
|
|
62
|
+
// top | banner | content | bottom
|
|
63
|
+
grid-template-rows: auto auto minmax(auto, 1fr) auto;
|
|
64
|
+
-ms-grid-rows: auto auto 1fr auto;
|
|
65
|
+
|
|
66
|
+
overflow-x: hidden;
|
|
67
|
+
overflow-y: $bodyOverflowY;
|
|
68
|
+
-webkit-overflow-scrolling: touch;
|
|
69
|
+
|
|
70
|
+
height: 100%;
|
|
71
|
+
max-width: 100vw;
|
|
72
|
+
width: 100vw;
|
|
73
|
+
margin: 0;
|
|
74
|
+
padding: 0;
|
|
75
|
+
|
|
76
|
+
transition-duration: motion.$simpleDuration;
|
|
77
|
+
transition-timing-function: motion.$standardEasing;
|
|
78
|
+
|
|
79
|
+
background-color: inherit;
|
|
80
|
+
|
|
81
|
+
// Chrome v78 fix scrolling bug
|
|
82
|
+
// https://bugs.chromium.org/p/chromium/issues/detail?id=1011866
|
|
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;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.mdw-layout__appbar {
|
|
91
|
+
@include gridColumn($columnContent);
|
|
92
|
+
@include gridRow($rowTop);
|
|
93
|
+
|
|
94
|
+
&[aria-hidden="true"] {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
position: static;
|
|
99
|
+
position: -webkit-sticky;
|
|
100
|
+
position: -moz-sticky;
|
|
101
|
+
position: sticky;
|
|
102
|
+
top: 0;
|
|
103
|
+
|
|
104
|
+
margin-top: 0;
|
|
105
|
+
|
|
106
|
+
transition-duration: motion.$expandDuration;
|
|
107
|
+
transition-property: transform, margin-top;
|
|
108
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
109
|
+
will-change: transform, margin-top;
|
|
110
|
+
|
|
111
|
+
transform: translateY(0); // browser hint
|
|
112
|
+
z-index: 4;
|
|
113
|
+
|
|
114
|
+
&[mdw-hide] {
|
|
115
|
+
transition-duration: motion.$collapseDuration;
|
|
116
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
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
|
+
.mdw-layout__scrim {
|
|
131
|
+
content: '';
|
|
132
|
+
|
|
133
|
+
position: fixed;
|
|
134
|
+
top: 0;
|
|
135
|
+
left: 0;
|
|
136
|
+
// Scroll mask
|
|
137
|
+
-ms-overflow-style: none;
|
|
138
|
+
overflow-y: scroll;
|
|
139
|
+
overscroll-behavior: none;
|
|
140
|
+
overscroll-behavior: contain;
|
|
141
|
+
-ms-scroll-chaining: none;
|
|
142
|
+
scrollbar-width: none;
|
|
143
|
+
|
|
144
|
+
height: 100%;
|
|
145
|
+
width: 100%;
|
|
146
|
+
|
|
147
|
+
cursor: auto;
|
|
148
|
+
outline: none;
|
|
149
|
+
-webkit-tap-highlight-color: transparent;
|
|
150
|
+
|
|
151
|
+
transition-duration: motion.$fadeOutDuration;
|
|
152
|
+
transition-property: background-color, visibility;
|
|
153
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
154
|
+
|
|
155
|
+
pointer-events: none;
|
|
156
|
+
visibility: hidden;
|
|
157
|
+
z-index: 16;
|
|
158
|
+
|
|
159
|
+
background-color: transparent;
|
|
160
|
+
|
|
161
|
+
// Hide scrollbar
|
|
162
|
+
&::-webkit-scrollbar {
|
|
163
|
+
display: none;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&::after {
|
|
167
|
+
display: block;
|
|
168
|
+
content: '';
|
|
169
|
+
|
|
170
|
+
height: 200%;
|
|
171
|
+
width: 200%;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.mdw-layout__navdrawer,
|
|
176
|
+
.mdw-layout__sidesheet {
|
|
177
|
+
@include gridRow($rowTop, $rowBottom);
|
|
178
|
+
|
|
179
|
+
box-sizing: border-box;
|
|
180
|
+
max-height: 100vh;
|
|
181
|
+
height: 100%;
|
|
182
|
+
max-width: calc(100vw - #{dp(56)});
|
|
183
|
+
@include breakpoint.isXSmallWindow() {
|
|
184
|
+
max-width: calc(100vw - #{dp(64)}); // Tablet or Desktop
|
|
185
|
+
}
|
|
186
|
+
width: $sheetMinWidth;
|
|
187
|
+
|
|
188
|
+
transition-duration: motion.$expandDuration;
|
|
189
|
+
transition-property: width, max-width, transform;
|
|
190
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
191
|
+
|
|
192
|
+
will-change: max-width, transform, position;
|
|
193
|
+
|
|
194
|
+
transform: translateX(0);
|
|
195
|
+
z-index: 5; // Above appbar shadow
|
|
196
|
+
|
|
197
|
+
background-color: inherit;
|
|
198
|
+
box-shadow: elevation.boxShadow(0);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.mdw-layout__sheet-content {
|
|
202
|
+
overflow-y: auto;
|
|
203
|
+
-webkit-overflow-scrolling: touch;
|
|
204
|
+
|
|
205
|
+
box-sizing: border-box;
|
|
206
|
+
max-height: 100%;
|
|
207
|
+
height: 100%;
|
|
208
|
+
border-width: dp(1);
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.mdw-layout__navdrawer {
|
|
212
|
+
@include gridColumn($columnNavDrawer);
|
|
213
|
+
|
|
214
|
+
.mdw-list__content.mdw-overlay {
|
|
215
|
+
&::before,
|
|
216
|
+
& > .mdw-ripple__container {
|
|
217
|
+
margin: dp(4) dp(8);
|
|
218
|
+
|
|
219
|
+
border-radius: dp(4);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.mdw-layout__sidesheet {
|
|
225
|
+
@include gridColumn($columnSideSheet);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.mdw-layout__navdrawer .mdw-layout__sheet-content,
|
|
229
|
+
:root[dir="rtl"] .mdw-layout__sidesheet .mdw-layout__sheet-content {
|
|
230
|
+
border-right-style: solid;
|
|
231
|
+
border-left-style: none;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/* stylelint-disable-next-line no-descending-specificity */
|
|
235
|
+
.mdw-layout__sidesheet .mdw-layout__sheet-content,
|
|
236
|
+
:root[dir="rtl"] .mdw-layout__navdrawer .mdw-layout__sheet-content {
|
|
237
|
+
border-right-style: none;
|
|
238
|
+
border-left-style: solid;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@each $side in ('navdrawer', 'sidesheet') {
|
|
242
|
+
@include modal($side) {
|
|
243
|
+
.mdw-layout__#{$side}-hide {
|
|
244
|
+
display: none;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.mdw-layout__#{$side} {
|
|
248
|
+
// Safari bug prevents using position:fixed with grid on resize
|
|
249
|
+
// Switching between display:block and display:flex will force Safari to rerender
|
|
250
|
+
// https://codepen.io/shortfuse/pen/pYqLbQ
|
|
251
|
+
|
|
252
|
+
display: inline-block;
|
|
253
|
+
position: fixed;
|
|
254
|
+
top: 0;
|
|
255
|
+
bottom: 0;
|
|
256
|
+
|
|
257
|
+
flex-direction: column;
|
|
258
|
+
|
|
259
|
+
// Transition visibility
|
|
260
|
+
transition-duration: motion.$collapseDuration;
|
|
261
|
+
transition-property: max-width, transform, visibility;
|
|
262
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
263
|
+
|
|
264
|
+
// Prevent tabbing
|
|
265
|
+
visibility: hidden;
|
|
266
|
+
z-index: 17; // Above scrim
|
|
267
|
+
|
|
268
|
+
.mdw-layout__sheet-content {
|
|
269
|
+
border-width: 0;
|
|
270
|
+
}
|
|
271
|
+
@if ($side == 'navdrawer') {
|
|
272
|
+
right: auto;
|
|
273
|
+
left: 0;
|
|
274
|
+
|
|
275
|
+
transform: translateX(-100%);
|
|
276
|
+
|
|
277
|
+
:root[dir="rtl"] & {
|
|
278
|
+
right: 0;
|
|
279
|
+
left: auto;
|
|
280
|
+
|
|
281
|
+
transform: translateX(100%);
|
|
282
|
+
}
|
|
283
|
+
} @else {
|
|
284
|
+
right: 0;
|
|
285
|
+
left: auto;
|
|
286
|
+
|
|
287
|
+
transform: translateX(100%);
|
|
288
|
+
|
|
289
|
+
:root[dir="rtl"] & {
|
|
290
|
+
right: auto;
|
|
291
|
+
left: 0;
|
|
292
|
+
|
|
293
|
+
transform: translateX(-100%);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// Shown
|
|
298
|
+
&[id]:target,
|
|
299
|
+
&[aria-hidden="false"] {
|
|
300
|
+
// Change visibility immediately
|
|
301
|
+
transition-duration: motion.$expandDuration;
|
|
302
|
+
transition-property: max-width, transform;
|
|
303
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
304
|
+
|
|
305
|
+
transform: translateX(0);
|
|
306
|
+
visibility: visible;
|
|
307
|
+
|
|
308
|
+
box-shadow: elevation.boxShadow(16);
|
|
309
|
+
|
|
310
|
+
& ~ .mdw-layout__scrim {
|
|
311
|
+
pointer-events: auto;
|
|
312
|
+
visibility: visible;
|
|
313
|
+
|
|
314
|
+
background-color: $scrimColor;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
&,
|
|
318
|
+
&.mdw-layout__appbar {
|
|
319
|
+
.mdw-layout__#{$side}-show {
|
|
320
|
+
display: none;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.mdw-layout__banner {
|
|
329
|
+
@include gridRow($rowBanner);
|
|
330
|
+
@include gridColumn($columnContent);
|
|
331
|
+
z-index: 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.mdw-layout__content {
|
|
335
|
+
@include gridRow($rowContent);
|
|
336
|
+
@include gridColumn($columnContent);
|
|
337
|
+
|
|
338
|
+
display: flex;
|
|
339
|
+
position: relative;
|
|
340
|
+
align-items: center;
|
|
341
|
+
flex-direction: column;
|
|
342
|
+
overflow-x: visible;
|
|
343
|
+
overflow-y: $contentOverflowY;
|
|
344
|
+
-webkit-overflow-scrolling: touch;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
.mdw-layout__content-page {
|
|
349
|
+
width: 100%;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
.mdw-layout__fab,
|
|
353
|
+
.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
|
+
position: sticky;
|
|
362
|
+
top: auto;
|
|
363
|
+
bottom: 0;
|
|
364
|
+
|
|
365
|
+
width: auto;
|
|
366
|
+
|
|
367
|
+
transition-duration: motion.$expandDuration;
|
|
368
|
+
transition-property: transform;
|
|
369
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
370
|
+
|
|
371
|
+
pointer-events: none;
|
|
372
|
+
transform: translateY(-100%);
|
|
373
|
+
z-index: 6;
|
|
374
|
+
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.mdw-layout__menus {
|
|
378
|
+
position: absolute;
|
|
379
|
+
|
|
380
|
+
z-index: 8;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.mdw-layout__dialogs {
|
|
384
|
+
position: fixed;
|
|
385
|
+
top: 0;
|
|
386
|
+
right: 0;
|
|
387
|
+
bottom: 0;
|
|
388
|
+
left: 0;
|
|
389
|
+
|
|
390
|
+
pointer-events: none;
|
|
391
|
+
|
|
392
|
+
z-index: 24;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
.mdw-layout__snackbar-anchor {
|
|
396
|
+
position: absolute;
|
|
397
|
+
right: auto;
|
|
398
|
+
bottom: 0;
|
|
399
|
+
left: 0;
|
|
400
|
+
|
|
401
|
+
// Snackbars are not aligned with layout
|
|
402
|
+
box-sizing: border-box;
|
|
403
|
+
padding-top: dp(24 * 0.5);
|
|
404
|
+
padding-right: 0;
|
|
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
|
+
}
|
|
413
|
+
|
|
414
|
+
transition-duration: inherit;
|
|
415
|
+
transition-property: transform, bottom;
|
|
416
|
+
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
|
+
}
|
|
434
|
+
|
|
435
|
+
.mdw-layout__snackbar .mdw-snackbar__container {
|
|
436
|
+
position: relative;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
.mdw-layout__fab-anchor {
|
|
440
|
+
position: absolute;
|
|
441
|
+
|
|
442
|
+
// Left aligned
|
|
443
|
+
right: 0;
|
|
444
|
+
bottom: 0;
|
|
445
|
+
left: auto;
|
|
446
|
+
|
|
447
|
+
padding: dp(24);
|
|
448
|
+
@include breakpoint.has16DPMargin() {
|
|
449
|
+
padding: dp(16);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
transition-duration: inherit;
|
|
453
|
+
transition-property: transform, right, padding-top, padding-bottom;
|
|
454
|
+
transition-timing-function: inherit;
|
|
455
|
+
|
|
456
|
+
:root[dir="rtl"] & {
|
|
457
|
+
right: 100%;
|
|
458
|
+
|
|
459
|
+
transform: translateX(100%);
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.mdw-layout__fab-anchor .mdw-fab {
|
|
464
|
+
transition-duration: motion.$collapseDuration;
|
|
465
|
+
transition-property: transform;
|
|
466
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
467
|
+
|
|
468
|
+
transform: scale(0);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.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
|
+
position: sticky;
|
|
483
|
+
bottom: 0;
|
|
484
|
+
|
|
485
|
+
z-index: 4;
|
|
486
|
+
|
|
487
|
+
box-shadow: elevation.boxShadow(8);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
.mdw-layout__appbar-shape {
|
|
491
|
+
display: flex;
|
|
492
|
+
position: absolute;
|
|
493
|
+
top: 0;
|
|
494
|
+
left: 0;
|
|
495
|
+
overflow: hidden;
|
|
496
|
+
|
|
497
|
+
height: 100%;
|
|
498
|
+
width: 100%;
|
|
499
|
+
|
|
500
|
+
transition-duration: inherit;
|
|
501
|
+
transition-property: box-shadow;
|
|
502
|
+
transition-timing-function: inherit;
|
|
503
|
+
|
|
504
|
+
box-shadow: elevation.boxShadow(4);
|
|
505
|
+
|
|
506
|
+
color: transparent;
|
|
507
|
+
|
|
508
|
+
.mdw-layout__appbar[mdw-autoraise]:not([mdw-raise]) & {
|
|
509
|
+
filter: none;
|
|
510
|
+
|
|
511
|
+
box-shadow: elevation.boxShadow(0);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
&::before,
|
|
515
|
+
&::after {
|
|
516
|
+
content: '';
|
|
517
|
+
|
|
518
|
+
min-width: dp(24);
|
|
519
|
+
@include breakpoint.has16DPMargin() {
|
|
520
|
+
min-width: dp(16);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.mdw-layout__fab-cut-track {
|
|
526
|
+
display: flex;
|
|
527
|
+
position: relative;
|
|
528
|
+
top: 0;
|
|
529
|
+
left: 0;
|
|
530
|
+
flex-direction: row;
|
|
531
|
+
|
|
532
|
+
height: 100%;
|
|
533
|
+
width: 100%;
|
|
534
|
+
|
|
535
|
+
transition-duration: motion.$shapeChangeDuration;
|
|
536
|
+
transition-property: transform;
|
|
537
|
+
transition-timing-function: motion.$standardEasing;
|
|
538
|
+
|
|
539
|
+
transform: translateX(100%) translateX(-($fabSize * 0.5));
|
|
540
|
+
|
|
541
|
+
&::before,
|
|
542
|
+
&::after,
|
|
543
|
+
& > svg {
|
|
544
|
+
position: absolute;
|
|
545
|
+
top: 0;
|
|
546
|
+
|
|
547
|
+
height: 100%;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
&::before,
|
|
551
|
+
&::after {
|
|
552
|
+
content: '';
|
|
553
|
+
|
|
554
|
+
width: 100%;
|
|
555
|
+
margin-left: -$fabCutSize * 0.5;
|
|
556
|
+
|
|
557
|
+
background-color: currentColor;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
&::before {
|
|
561
|
+
left: -100%;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
&::after {
|
|
565
|
+
left: $fabCutSize;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
& > svg {
|
|
569
|
+
left: -$fabCutSize * 0.5;
|
|
570
|
+
|
|
571
|
+
width: $fabCutSize;
|
|
572
|
+
|
|
573
|
+
fill: currentColor;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.mdw-layout__fab-mask-shape {
|
|
578
|
+
transition-delay: $fabCutDelay;
|
|
579
|
+
transition-duration: motion.$collapseDuration;
|
|
580
|
+
transition-property: transform;
|
|
581
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
582
|
+
|
|
583
|
+
// Closed
|
|
584
|
+
transform: scale(0);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
@include breakpoint.isXSmallWindow() {
|
|
588
|
+
.mdw-layout__appbar[mdw-autohide~="mobile"][mdw-hide] {
|
|
589
|
+
transform: translateY(-100%);
|
|
590
|
+
|
|
591
|
+
&[mdw-bottom] {
|
|
592
|
+
transform: translateY(100%);
|
|
593
|
+
|
|
594
|
+
& ~ .mdw-layout__fab,
|
|
595
|
+
& ~ .mdw-layout__snackbar {
|
|
596
|
+
transition-duration: motion.$collapseDuration;
|
|
597
|
+
transition-property: transform;
|
|
598
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
599
|
+
|
|
600
|
+
transform: translateY(0);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
.mdw-layout__appbar-shape {
|
|
605
|
+
filter: none;
|
|
606
|
+
|
|
607
|
+
box-shadow: elevation.boxShadow(0);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
@include breakpoint.isSmallWindow() {
|
|
613
|
+
.mdw-layout__appbar[mdw-autohide~="tablet"][mdw-hide] {
|
|
614
|
+
transform: translateY(-100%);
|
|
615
|
+
|
|
616
|
+
&[mdw-bottom] {
|
|
617
|
+
transform: translateY(100%);
|
|
618
|
+
|
|
619
|
+
& ~ .mdw-layout__fab,
|
|
620
|
+
& ~ .mdw-layout__snackbar {
|
|
621
|
+
transition-duration: motion.$collapseDuration;
|
|
622
|
+
transition-property: transform;
|
|
623
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
624
|
+
|
|
625
|
+
transform: translateY(0);
|
|
626
|
+
}
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
.mdw-layout__appbar-shape {
|
|
630
|
+
filter: none;
|
|
631
|
+
|
|
632
|
+
box-shadow: elevation.boxShadow(0);
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@include breakpoint.maxSmallWindow {
|
|
638
|
+
.mdw-layout__appbar[mdw-bottom] {
|
|
639
|
+
@include gridRow($rowBottom);
|
|
640
|
+
top: auto;
|
|
641
|
+
bottom: 0;
|
|
642
|
+
|
|
643
|
+
z-index: 8;
|
|
644
|
+
|
|
645
|
+
.mdw-layout__appbar-shape {
|
|
646
|
+
box-shadow: elevation.boxShadow(8);
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
&[mdw-fab-cut] {
|
|
650
|
+
& ~ .mdw-layout__fab {
|
|
651
|
+
transform: translateY(-100%) translateY(#{$fabSize * 0.5});
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.mdw-layout__appbar-shape {
|
|
655
|
+
transition-property: filter;
|
|
656
|
+
|
|
657
|
+
filter: elevation.filter(8);
|
|
658
|
+
|
|
659
|
+
box-shadow: elevation.boxShadow(0);
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.mdw-layout__fab-mask-shape {
|
|
663
|
+
transform: scale(0);
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
&[mdw-fab-cut~="open"] {
|
|
668
|
+
.mdw-layout__fab-mask-shape {
|
|
669
|
+
transition-delay: 0s;
|
|
670
|
+
transition-duration: motion.$expandDuration;
|
|
671
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
672
|
+
|
|
673
|
+
transform: scale(1);
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
.mdw-layout__appbar[mdw-autohide=""][mdw-hide] {
|
|
679
|
+
transform: translateY(-100%);
|
|
680
|
+
|
|
681
|
+
&[mdw-bottom] {
|
|
682
|
+
transform: translateY(100%);
|
|
683
|
+
|
|
684
|
+
& ~ .mdw-layout__fab,
|
|
685
|
+
& ~ .mdw-layout__snackbar {
|
|
686
|
+
transition-duration: motion.$collapseDuration;
|
|
687
|
+
transition-property: transform;
|
|
688
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
689
|
+
|
|
690
|
+
transform: translateY(0);
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
.mdw-layout__appbar-shape {
|
|
695
|
+
filter: none;
|
|
696
|
+
|
|
697
|
+
box-shadow: elevation.boxShadow(0);
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.mdw-layout__snackbar-anchor {
|
|
703
|
+
&,
|
|
704
|
+
:root[dir="rtl"] & {
|
|
705
|
+
right: 0;
|
|
706
|
+
left: 0;
|
|
707
|
+
|
|
708
|
+
padding: dp(24 * 0.5);
|
|
709
|
+
@include breakpoint.has16DPMargin() {
|
|
710
|
+
padding: dp(16 * 0.5);
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
.mdw-layout__fab[mdw-mobile] {
|
|
716
|
+
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
717
|
+
bottom: dp(24);
|
|
718
|
+
@include breakpoint.has16DPMargin() {
|
|
719
|
+
bottom: dp(16);
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
transform: translateY(#{dp(-56)});
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
& ~ .mdw-layout__content {
|
|
726
|
+
padding-bottom: #{$fabSize + dp(24)};
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
&[aria-hidden="false"] .mdw-fab {
|
|
730
|
+
transition-duration: motion.$expandDuration;
|
|
731
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
732
|
+
|
|
733
|
+
transform: scale(1);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
.mdw-layout__appbar[mdw-fab-cut~="center"] .mdw-layout__fab-cut-track,
|
|
738
|
+
.mdw-layout__fab[mdw-mobile="center"] .mdw-layout__fab-anchor {
|
|
739
|
+
right: 50%;
|
|
740
|
+
|
|
741
|
+
transform: translateX(50%);
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
.mdw-layout__appbar[mdw-fab-cut~="full"] .mdw-layout__fab-cut-track,
|
|
745
|
+
.mdw-layout__fab[mdw-mobile="full"] .mdw-layout__fab-anchor {
|
|
746
|
+
right: 0;
|
|
747
|
+
left: 0;
|
|
748
|
+
|
|
749
|
+
transform: none;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
.mdw-layout__fab[mdw-mobile="full"] .mdw-fab__button {
|
|
753
|
+
width: 100%;
|
|
754
|
+
padding-right: 0;
|
|
755
|
+
padding-left: 0;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.mdw-layout__appbar[mdw-fab-cut][mdw-bottom]:not([mdw-hide]) {
|
|
759
|
+
& ~ .mdw-layout__fab {
|
|
760
|
+
z-index: 8; // Fab is cut into appbar, therefore elevation must match or be above
|
|
761
|
+
|
|
762
|
+
.mdw-fab {
|
|
763
|
+
transform: scale(0);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
&[aria-hidden="false"] .mdw-fab {
|
|
767
|
+
transition-delay: $fabCutDelay;
|
|
768
|
+
transition-duration: motion.$expandDuration;
|
|
769
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
770
|
+
|
|
771
|
+
transform: scale(1);
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
.mdw-layout__fab-anchor {
|
|
775
|
+
padding-top: 0;
|
|
776
|
+
padding-bottom: 0;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
781
|
+
bottom: 0;
|
|
782
|
+
|
|
783
|
+
transform: translateY(-$fabSize * 0.5);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
@include breakpoint.minMediumWindow {
|
|
789
|
+
.mdw-layout__body:not([mdw-navdrawer-toggle]):not([mdw-navdrawer-style="modal"]) {
|
|
790
|
+
.mdw-layout__navdrawer-show,
|
|
791
|
+
.mdw-layout__navdrawer-hide,
|
|
792
|
+
.mdw-layout__navdrawer-toggle {
|
|
793
|
+
display: none;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
.mdw-layout__body:not([mdw-sidesheet-toggle]):not([mdw-sidesheet-style="modal"]) {
|
|
798
|
+
.mdw-layout__sidesheet-show,
|
|
799
|
+
.mdw-layout__sidesheet-hide,
|
|
800
|
+
.mdw-layout__sidesheet-toggle {
|
|
801
|
+
display: none;
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
.mdw-layout__navdrawer,
|
|
806
|
+
.mdw-layout__sidesheet {
|
|
807
|
+
// Full-height
|
|
808
|
+
position: static;
|
|
809
|
+
position: -webkit-sticky;
|
|
810
|
+
position: -moz-sticky;
|
|
811
|
+
position: sticky;
|
|
812
|
+
top: 0;
|
|
813
|
+
bottom: auto;
|
|
814
|
+
|
|
815
|
+
transform: none;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
.mdw-layout__snackbar-anchor {
|
|
819
|
+
width: 50%;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
.mdw-layout__body[mdw-navdrawer-style~="clipped"],
|
|
823
|
+
.mdw-layout__body[mdw-sidesheet-style~="clipped"] {
|
|
824
|
+
overflow-y: $bodyOverflowY;
|
|
825
|
+
|
|
826
|
+
& > .mdw-layout__content {
|
|
827
|
+
overflow-y: $contentOverflowY;
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.mdw-layout__fab[mdw-desktop] {
|
|
832
|
+
&[aria-hidden="false"] .mdw-fab {
|
|
833
|
+
transition-duration: motion.$expandDuration;
|
|
834
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
835
|
+
|
|
836
|
+
transform: scale(1);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
&:not([mdw-desktop="appbar"]) ~ .mdw-layout__content {
|
|
840
|
+
padding-bottom: #{$fabSize + dp(24)};
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
845
|
+
@include gridRow($rowTop);
|
|
846
|
+
top: 0;
|
|
847
|
+
bottom: auto;
|
|
848
|
+
|
|
849
|
+
transform: translateY(100%);
|
|
850
|
+
|
|
851
|
+
&[aria-hidden="false"] .mdw-fab {
|
|
852
|
+
transition-duration: motion.$expandDuration;
|
|
853
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
854
|
+
|
|
855
|
+
transform: translateY(-50%) scale(1);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
859
|
+
width: 75%;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
.mdw-layout__fab-anchor {
|
|
863
|
+
top: 0;
|
|
864
|
+
right: auto;
|
|
865
|
+
bottom: auto;
|
|
866
|
+
left: 0;
|
|
867
|
+
|
|
868
|
+
padding-top: 0;
|
|
869
|
+
padding-right: dp(8);
|
|
870
|
+
padding-bottom: 0;
|
|
871
|
+
padding-left: dp(8);
|
|
872
|
+
|
|
873
|
+
transform: none;
|
|
874
|
+
|
|
875
|
+
:root[dir="rtl"] & {
|
|
876
|
+
right: 0;
|
|
877
|
+
left: auto;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
.mdw-layout__fab[mdw-desktop="appbar"][aria-hidden="true"] .mdw-fab,
|
|
883
|
+
.mdw-layout__appbar[mdw-hide] ~ .mdw-layout__fab[mdw-desktop="appbar"] .mdw-fab {
|
|
884
|
+
transform: translateY(-50%) scale(0);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
.mdw-layout__body[mdw-navdrawer-style~="clipped"] .mdw-layout__navdrawer,
|
|
888
|
+
.mdw-layout__body[mdw-sidesheet-style~="clipped"] .mdw-layout__sidesheet {
|
|
889
|
+
@include gridRow($rowBanner, $rowBottom);
|
|
890
|
+
z-index: 0;
|
|
891
|
+
}
|
|
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
|
+
|
|
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
|
+
.mdw-layout__body[mdw-navdrawer-style~="floating"] .mdw-layout__navdrawer,
|
|
915
|
+
.mdw-layout__body[mdw-sidesheet-style~="floating"] .mdw-layout__sidesheet {
|
|
916
|
+
@include gridRow($rowContent, $rowBottom);
|
|
917
|
+
|
|
918
|
+
& .mdw-layout__sheet-content {
|
|
919
|
+
height: auto;
|
|
920
|
+
border-width: 0;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
|
|
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
|
+
.mdw-layout__body[mdw-navdrawer-style~="card"] .mdw-layout__navdrawer,
|
|
946
|
+
.mdw-layout__body[mdw-sidesheet-style~="card"] .mdw-layout__sidesheet {
|
|
947
|
+
margin: 0 dp(24);
|
|
948
|
+
padding: dp(24) 0;
|
|
949
|
+
|
|
950
|
+
& > .mdw-layout__sheet-content {
|
|
951
|
+
box-shadow: elevation.boxShadow(8);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.mdw-layout__body[mdw-navdrawer-toggle~="dismissible"]:not([mdw-navdrawer-style="modal"]) .mdw-layout__navdrawer:not([aria-hidden="false"]),
|
|
956
|
+
.mdw-layout__body[mdw-sidesheet-toggle~="dismissible"]:not([mdw-sidesheet-style="modal"]) .mdw-layout__sidesheet:not([aria-hidden="false"]) {
|
|
957
|
+
max-width: 0;
|
|
958
|
+
width: 0;
|
|
959
|
+
margin-right: 0;
|
|
960
|
+
margin-left: 0;
|
|
961
|
+
|
|
962
|
+
transition-duration: motion.$collapseDuration;
|
|
963
|
+
transition-property: width, max-width, margin, transform, visibility;
|
|
964
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
965
|
+
|
|
966
|
+
visibility: hidden;
|
|
967
|
+
|
|
968
|
+
.mdw-layout__sheet-content {
|
|
969
|
+
box-shadow: elevation.boxShadow(0);
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
.mdw-layout__body[mdw-navdrawer-toggle~="mini"]:not([mdw-navdrawer-style="modal"]) {
|
|
974
|
+
.mdw-layout__navdrawer:not([aria-hidden="false"]) {
|
|
975
|
+
max-width: $sheetMaxWidthMini;
|
|
976
|
+
width: $sheetMaxWidthMini;
|
|
977
|
+
|
|
978
|
+
transition-duration: motion.$collapseDuration;
|
|
979
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.mdw-layout__body[mdw-sidesheet-toggle~="mini"]:not([mdw-sidesheet-style="modal"]) {
|
|
984
|
+
.mdw-layout__sidesheet:not([aria-hidden="false"]) {
|
|
985
|
+
max-width: $sheetMaxWidthMini;
|
|
986
|
+
width: $sheetMaxWidthMini;
|
|
987
|
+
|
|
988
|
+
transition-duration: motion.$collapseDuration;
|
|
989
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
.mdw-layout__appbar[mdw-autohide=""][mdw-hide] {
|
|
994
|
+
transform: translateY(-100%);
|
|
995
|
+
|
|
996
|
+
.mdw-layout__appbar-shape {
|
|
997
|
+
filter: none;
|
|
998
|
+
|
|
999
|
+
box-shadow: elevation.boxShadow(0);
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
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
|
+
}
|