@shortfuse/materialdesignweb 0.3.0 → 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/.eslintrc.json +136 -30
- package/.stylelintrc.json +6 -40
- package/.vscode/launch.json +20 -5
- package/CHANGELOG.md +24 -0
- package/README.md +12 -9
- package/adapters/datatable/column.js +82 -74
- package/adapters/datatable/index.js +173 -131
- package/adapters/dom/index.js +529 -75
- package/adapters/list/index.js +25 -12
- package/adapters/search/index.js +13 -13
- package/components/appbar/_spec.scss +87 -64
- package/components/appbar/index.scss +2 -2
- package/components/banner/_spec.scss +8 -8
- package/components/banner/index.scss +2 -2
- package/components/bottomnav/_spec.scss +22 -17
- package/components/bottomnav/index.js +61 -52
- package/components/bottomnav/index.scss +2 -2
- package/components/bottomnav/item.js +44 -25
- package/components/button/README.md +14 -14
- package/components/button/_spec.scss +23 -22
- package/components/button/_theme.scss +37 -21
- package/components/button/index.eta +32 -0
- package/components/button/index.js +12 -12
- package/components/button/index.scss +2 -2
- package/components/card/_spec.scss +40 -36
- package/components/card/index.scss +2 -2
- package/components/chip/_spec.scss +7 -8
- package/components/chip/_theme.scss +31 -31
- package/components/chip/index.js +3 -2
- package/components/chip/index.scss +2 -2
- package/components/chip/item.js +1 -16
- package/components/datatable/_spec.scss +71 -85
- package/components/datatable/_theme.scss +61 -156
- package/components/datatable/cell.js +45 -0
- package/components/datatable/columnheader.js +47 -0
- package/components/datatable/index.js +279 -366
- package/components/datatable/index.scss +2 -2
- package/components/datatable/row.js +49 -0
- package/components/datatable/rowheader.js +18 -0
- package/components/dialog/_spec.scss +61 -41
- package/components/dialog/index.js +325 -297
- package/components/dialog/index.scss +2 -2
- package/components/divider/_spec.scss +8 -6
- package/components/divider/index.scss +2 -2
- package/components/elevation/_spec.scss +2 -2
- package/components/elevation/index.scss +2 -2
- package/components/fab/_spec.scss +23 -24
- package/components/fab/index.js +50 -50
- package/components/fab/index.scss +2 -2
- package/components/grid/_spec.scss +33 -31
- package/components/grid/index.scss +2 -2
- package/components/layout/_mixins.scss +5 -5
- package/components/layout/_spec.scss +206 -176
- package/components/layout/_theme.scss +14 -16
- package/components/layout/index.js +181 -153
- package/components/layout/index.scss +2 -2
- package/components/list/_spec.scss +117 -104
- package/components/list/_theme.scss +31 -34
- package/components/list/content.js +68 -52
- package/components/list/index.js +194 -61
- package/components/list/index.scss +2 -2
- package/components/list/item.js +136 -12
- package/components/list/secondary.js +46 -0
- package/components/menu/_spec.scss +32 -19
- package/components/menu/index.js +242 -229
- package/components/menu/index.scss +2 -2
- package/components/menu/item.js +95 -110
- package/components/progress/_spec.scss +35 -27
- package/components/progress/index.js +21 -0
- package/components/progress/index.scss +2 -1
- package/components/selection/_spec.scss +242 -224
- package/components/selection/_theme.scss +100 -95
- package/components/selection/index.eta +60 -0
- package/components/selection/index.js +76 -0
- package/components/selection/index.pug +15 -8
- package/components/selection/index.scss +2 -2
- package/components/selection/input.js +56 -0
- package/components/selection/radiogroup.js +47 -0
- package/components/slider/_spec.scss +10 -8
- package/components/slider/index.scss +2 -2
- package/components/snackbar/_spec.scss +22 -21
- package/components/snackbar/index.js +102 -111
- package/components/snackbar/index.scss +2 -2
- package/components/tab/_spec.scss +20 -19
- package/components/tab/content.js +41 -40
- package/components/tab/index.js +192 -99
- package/components/tab/index.scss +2 -2
- package/components/tab/item.js +38 -55
- package/components/tab/list.js +96 -72
- package/components/tab/panel.js +12 -13
- package/components/template/_theme.scss +11 -11
- package/components/textfield/_mixins.scss +52 -0
- package/components/textfield/_spec.scss +215 -266
- package/components/textfield/_theme.scss +95 -72
- package/components/textfield/index.eta +74 -0
- package/components/textfield/index.js +63 -57
- package/components/textfield/index.scss +2 -2
- package/components/tooltip/_spec.scss +27 -25
- package/components/tooltip/index.scss +2 -2
- package/components/type/_spec.scss +51 -38
- package/components/type/index.scss +2 -2
- package/core/_breakpoint.scss +75 -91
- package/core/_elevation.scss +10 -10
- package/core/_length.scss +9 -0
- package/core/_motion.scss +14 -14
- package/core/_platform.scss +9 -15
- package/core/_type.scss +33 -32
- package/core/aria/attributes.js +125 -25
- package/core/aria/button.js +23 -23
- package/core/aria/keyboard.js +93 -0
- package/core/aria/rovingtabindex.js +69 -154
- package/core/aria/tab.js +31 -28
- package/core/color/_theme.scss +240 -280
- package/core/color/index.scss +2 -2
- package/core/document/index.js +39 -0
- package/core/dom.js +12 -12
- package/core/overlay/_spec.scss +0 -3
- package/core/overlay/_theme.scss +56 -74
- package/core/overlay/index.js +49 -18
- package/core/overlay/index.scss +2 -2
- package/core/ripple/_spec.scss +22 -39
- package/core/ripple/_theme.scss +13 -13
- package/core/ripple/index.js +137 -134
- package/core/ripple/index.scss +2 -2
- package/core/theme/_config.scss +2 -0
- package/core/theme/_mixins.scss +172 -0
- package/core/theme/_palettes.scss +155 -135
- package/core/theme/_variables.scss +24 -15
- package/core/theme/index.js +50 -0
- package/core/throttler.js +1 -1
- package/core/transition/index.js +36 -20
- package/{docs-src → docs}/_flex.scss +0 -0
- package/{docs-src → docs}/_menuoptions.js +21 -34
- package/{docs-src → docs}/_mixins.pug +39 -26
- 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-src → docs}/_sample-utils.js +8 -6
- package/{docs-src → docs}/_storage.js +0 -0
- package/{docs-src → docs}/docs.scss +5 -2
- package/docs/index.eta +16 -0
- package/{docs-src → docs}/index.js +0 -0
- package/docs/pages/appbar.eta +114 -0
- package/{docs-src/components → docs/pages}/appbar.js +0 -0
- package/{docs-src/components → docs/pages}/appbar.pug +15 -18
- package/docs/pages/bottomnav.eta +188 -0
- package/{docs-src/components → docs/pages}/bottomnav.js +23 -24
- package/{docs-src/components → docs/pages}/bottomnav.pug +4 -4
- package/docs/pages/button.eta +124 -0
- package/{docs-src/components → docs/pages}/button.js +19 -19
- package/{docs-src/components → docs/pages}/button.pug +15 -15
- package/docs/pages/card.eta +90 -0
- package/{docs-src/components → docs/pages}/card.js +3 -3
- package/{docs-src/components → docs/pages}/card.pug +7 -7
- package/docs/pages/chip.eta +122 -0
- package/{docs-src/components → docs/pages}/chip.js +3 -6
- package/{docs-src/components → docs/pages}/chip.pug +2 -2
- package/docs/pages/color.eta +143 -0
- package/{docs-src/core → docs/pages}/color.js +95 -20
- package/docs/pages/color.pug +121 -0
- package/docs/pages/datatable.eta +323 -0
- package/{docs-src/components → docs/pages}/datatable.js +26 -13
- package/docs/pages/datatable.pug +283 -0
- package/docs/pages/dialog.eta +186 -0
- package/{docs-src/components → docs/pages}/dialog.js +26 -13
- package/{docs-src/components → docs/pages}/dialog.pug +46 -28
- 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-src/components → docs/pages}/elevation.js +0 -0
- package/{docs-src/components → docs/pages}/elevation.pug +0 -0
- package/docs/pages/fab.eta +99 -0
- package/{docs-src/components → docs/pages}/fab.js +3 -3
- package/{docs-src/components → docs/pages}/fab.pug +2 -2
- package/docs/pages/grid.eta +135 -0
- package/{docs-src/components → docs/pages}/grid.js +1 -1
- package/{docs-src/components → docs/pages}/grid.pug +3 -3
- package/docs/pages/layout.eta +8 -0
- package/{docs-src/components → docs/pages}/layout.js +0 -0
- package/{docs-src/components → docs/pages}/layout.pug +0 -0
- package/docs/pages/list.eta +465 -0
- package/{docs-src/components → docs/pages}/list.js +2 -2
- package/{docs-src/components → docs/pages}/list.pug +7 -14
- package/docs/pages/menu.eta +276 -0
- package/{docs-src/components → docs/pages}/menu.js +14 -10
- package/{docs-src/components → docs/pages}/menu.pug +0 -0
- package/docs/pages/overlay.eta +69 -0
- package/docs/pages/overlay.js +4 -0
- package/{docs-src/core → docs/pages}/overlay.pug +14 -11
- package/docs/pages/progress.eta +23 -0
- package/{docs-src/components → docs/pages}/progress.js +1 -1
- package/{docs-src/components → docs/pages}/progress.pug +1 -1
- package/docs/pages/ripple.eta +27 -0
- package/docs/pages/ripple.js +4 -0
- package/{docs-src/core → docs/pages}/ripple.pug +4 -4
- package/docs/pages/search.eta +246 -0
- package/{docs-src/components → docs/pages}/search.js +59 -42
- package/{docs-src/components → docs/pages}/search.pug +50 -51
- 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-src/components → docs/pages}/slider.js +0 -0
- package/{docs-src/components → docs/pages}/slider.pug +0 -0
- package/docs/pages/snackbar.eta +83 -0
- package/{docs-src/components → docs/pages}/snackbar.js +3 -3
- package/{docs-src/components → docs/pages}/snackbar.pug +0 -0
- package/docs/pages/tab.eta +421 -0
- package/{docs-src/components → docs/pages}/tab.js +18 -35
- package/{docs-src/components → docs/pages}/tab.pug +4 -4
- package/docs/pages/textfield.eta +486 -0
- package/{docs-src/components → docs/pages}/textfield.js +3 -4
- package/{docs-src/components → docs/pages}/textfield.pug +87 -35
- package/docs/pages/tooltip.eta +94 -0
- package/{docs-src/components → docs/pages}/tooltip.js +0 -0
- package/{docs-src/components → docs/pages}/tooltip.pug +0 -1
- package/docs/pages/transition.eta +117 -0
- package/{docs-src/core → docs/pages}/transition.js +7 -8
- package/{docs-src/core → docs/pages}/transition.pug +0 -0
- package/docs/pages/type.eta +31 -0
- package/{docs-src/components → docs/pages}/type.js +0 -0
- package/{docs-src/components → docs/pages}/type.pug +0 -1
- package/docs/postrender.js +39 -0
- package/{docs-src → docs}/prerender.js +3 -9
- package/docs/pwa/_dialogs.eta +143 -0
- package/docs/pwa/_dialogs.pug +96 -0
- package/docs/pwa/_menus.eta +16 -0
- package/{docs-src → docs}/pwa/_menus.pug +0 -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-src → docs}/pwa/pwa.pug +166 -263
- 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 +40 -27
- package/scripts/deploy-docs.sh +9 -0
- package/templates/index.eta +2 -0
- package/utils/function.js +3 -0
- package/webpack.config.cjs +257 -0
- package/_spec.scss +0 -27
- package/_theme.scss +0 -27
- package/components/list/expander.js +0 -142
- package/components/list/itemgroup.js +0 -22
- package/core/theme/_builder.scss +0 -116
- package/core/theme/index.scss +0 -68
- package/docs/appbar.html +0 -1
- package/docs/appbar.min.js +0 -2
- package/docs/appbar.min.js.map +0 -1
- package/docs/bottomnav.html +0 -1
- package/docs/bottomnav.min.js +0 -2
- package/docs/bottomnav.min.js.map +0 -1
- package/docs/button.html +0 -1
- package/docs/button.min.js +0 -2
- package/docs/button.min.js.map +0 -1
- package/docs/card.html +0 -1
- package/docs/card.min.js +0 -2
- package/docs/card.min.js.map +0 -1
- package/docs/chip.html +0 -1
- package/docs/chip.min.js +0 -2
- package/docs/chip.min.js.map +0 -1
- package/docs/color.html +0 -1
- package/docs/color.min.js +0 -2
- package/docs/color.min.js.map +0 -1
- package/docs/datatable.html +0 -1
- package/docs/datatable.min.js +0 -2
- package/docs/datatable.min.js.map +0 -1
- package/docs/default.common.min.js +0 -2
- package/docs/default.common.min.js.map +0 -1
- package/docs/dialog.html +0 -1
- package/docs/dialog.min.js +0 -2
- package/docs/dialog.min.js.map +0 -1
- package/docs/docs.min.css +0 -1
- package/docs/docs.min.js +0 -2
- package/docs/docs.min.js.map +0 -1
- package/docs/elevation.html +0 -1
- package/docs/elevation.min.js +0 -2
- package/docs/elevation.min.js.map +0 -1
- package/docs/fab.html +0 -1
- package/docs/fab.min.js +0 -2
- package/docs/fab.min.js.map +0 -1
- package/docs/grid.html +0 -1
- package/docs/grid.min.js +0 -2
- package/docs/grid.min.js.map +0 -1
- package/docs/index.html +0 -1
- package/docs/index.min.js +0 -2
- package/docs/index.min.js.map +0 -1
- package/docs/ink.html +0 -1
- package/docs/ink.min.js +0 -2
- package/docs/ink.min.js.map +0 -1
- package/docs/layout.html +0 -1
- package/docs/layout.min.js +0 -2
- package/docs/layout.min.js.map +0 -1
- package/docs/list.html +0 -1
- package/docs/list.min.js +0 -2
- package/docs/list.min.js.map +0 -1
- package/docs/menu.html +0 -1
- package/docs/menu.min.js +0 -2
- package/docs/menu.min.js.map +0 -1
- package/docs/overlay.html +0 -1
- package/docs/overlay.min.js +0 -2
- package/docs/overlay.min.js.map +0 -1
- package/docs/prerender.common.min.js +0 -2
- package/docs/prerender.common.min.js.map +0 -1
- package/docs/prerender.min.js +0 -2
- package/docs/prerender.min.js.map +0 -1
- package/docs/progress.html +0 -1
- package/docs/progress.min.js +0 -2
- package/docs/progress.min.js.map +0 -1
- package/docs/pwa-prerender.min.js +0 -2
- package/docs/pwa-prerender.min.js.map +0 -1
- package/docs/pwa.html +0 -11
- package/docs/pwa.min.css +0 -1
- package/docs/pwa.min.js +0 -2
- package/docs/pwa.min.js.map +0 -1
- package/docs/ripple.html +0 -1
- package/docs/ripple.min.js +0 -2
- package/docs/ripple.min.js.map +0 -1
- package/docs/search.html +0 -1
- package/docs/search.min.js +0 -2
- package/docs/search.min.js.map +0 -1
- package/docs/selection.html +0 -1
- package/docs/selection.min.js +0 -2
- package/docs/selection.min.js.map +0 -1
- package/docs/slider.html +0 -1
- package/docs/slider.min.js +0 -2
- package/docs/slider.min.js.map +0 -1
- package/docs/snackbar.html +0 -1
- package/docs/snackbar.min.js +0 -2
- package/docs/snackbar.min.js.map +0 -1
- package/docs/spec.min.css +0 -1
- package/docs/spec.min.js +0 -2
- package/docs/spec.min.js.map +0 -1
- package/docs/surface.html +0 -1
- package/docs/surface.min.js +0 -2
- package/docs/surface.min.js.map +0 -1
- package/docs/tab.html +0 -1
- package/docs/tab.min.js +0 -2
- package/docs/tab.min.js.map +0 -1
- package/docs/textfield.html +0 -2
- package/docs/textfield.min.js +0 -2
- package/docs/textfield.min.js.map +0 -1
- package/docs/theme-colored-fallbacks.min.css +0 -1
- package/docs/theme-colored-fallbacks.min.js +0 -2
- package/docs/theme-colored-fallbacks.min.js.map +0 -1
- package/docs/theme-colored.min.css +0 -1
- package/docs/theme-colored.min.js +0 -2
- package/docs/theme-colored.min.js.map +0 -1
- package/docs/theme-default-fallbacks.min.css +0 -1
- package/docs/theme-default-fallbacks.min.js +0 -2
- package/docs/theme-default-fallbacks.min.js.map +0 -1
- package/docs/theme-default.min.css +0 -1
- package/docs/theme-default.min.js +0 -2
- package/docs/theme-default.min.js.map +0 -1
- package/docs/themes-fallbacks.min.css +0 -1
- package/docs/themes-fallbacks.min.js +0 -2
- package/docs/themes-fallbacks.min.js.map +0 -1
- package/docs/themes.min.css +0 -1
- package/docs/themes.min.js +0 -2
- package/docs/themes.min.js.map +0 -1
- package/docs/tooltip.html +0 -1
- package/docs/tooltip.min.js +0 -2
- package/docs/tooltip.min.js.map +0 -1
- package/docs/transition.html +0 -1
- package/docs/transition.min.js +0 -2
- package/docs/transition.min.js.map +0 -1
- package/docs/type.html +0 -1
- package/docs/type.min.js +0 -2
- package/docs/type.min.js.map +0 -1
- package/docs-src/components/datatable.pug +0 -327
- package/docs-src/components/selection.js +0 -9
- package/docs-src/components/selection.pug +0 -77
- package/docs-src/core/color.pug +0 -201
- package/docs-src/core/overlay.js +0 -4
- package/docs-src/core/ripple.js +0 -4
- package/docs-src/index.pug +0 -9
- package/docs-src/pwa/_dialogs.pug +0 -15
- package/docs-src/pwa/pwa-prerender.js +0 -3
- package/docs-src/pwa/pwa.js +0 -182
- package/docs-src/pwa/pwa.scss +0 -25
- package/docs-src/spec.scss +0 -1
- package/docs-src/themes/theme-colored-fallbacks.scss +0 -14
- package/docs-src/themes/theme-colored.scss +0 -14
- package/docs-src/themes/theme-default-fallbacks.scss +0 -14
- package/docs-src/themes/theme-default.scss +0 -14
- package/index.js +0 -51
- package/index.scss +0 -2
- package/webpack.config.js +0 -187
|
@@ -2,42 +2,43 @@
|
|
|
2
2
|
// https://material.io/archive/guidelines/patterns/navigation-drawer.html
|
|
3
3
|
// https://material.io/archive/guidelines/layout/metrics-keylines.html#metrics-keylines-keylines-spacing
|
|
4
4
|
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
$
|
|
14
|
-
$
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$
|
|
18
|
-
$
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
$
|
|
22
|
-
$
|
|
23
|
-
$
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
$
|
|
27
|
-
$
|
|
28
|
-
$
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
$
|
|
32
|
-
$
|
|
33
|
-
$
|
|
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;
|
|
34
35
|
|
|
35
36
|
.mdw-layout {
|
|
36
37
|
overflow-y: hidden;
|
|
37
|
-
|
|
38
|
-
min-height:
|
|
39
|
-
height:
|
|
40
|
-
|
|
38
|
+
|
|
39
|
+
min-height: 100%;
|
|
40
|
+
height: 100%;
|
|
41
|
+
width: 100vw;
|
|
41
42
|
margin: 0;
|
|
42
43
|
padding: 0;
|
|
43
44
|
|
|
@@ -48,36 +49,51 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
.mdw-layout__body {
|
|
51
|
-
@include type
|
|
52
|
+
@include type.addRules('body');
|
|
52
53
|
|
|
53
54
|
display: -ms-grid;
|
|
54
55
|
display: grid;
|
|
55
56
|
position: relative;
|
|
56
57
|
// start | main | end
|
|
57
|
-
// Use minmax(0, 1fr) to clamp horizontally
|
|
58
|
-
|
|
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);
|
|
59
61
|
-ms-grid-columns: auto minmax(0, 1fr) auto;
|
|
60
62
|
// top | banner | content | bottom
|
|
61
|
-
grid-template-rows: auto auto 1fr auto;
|
|
63
|
+
grid-template-rows: auto auto minmax(auto, 1fr) auto;
|
|
62
64
|
-ms-grid-rows: auto auto 1fr auto;
|
|
65
|
+
|
|
63
66
|
overflow-x: hidden;
|
|
64
|
-
overflow-y: $
|
|
67
|
+
overflow-y: $bodyOverflowY;
|
|
68
|
+
-webkit-overflow-scrolling: touch;
|
|
65
69
|
|
|
66
|
-
height:
|
|
70
|
+
height: 100%;
|
|
67
71
|
max-width: 100vw;
|
|
68
72
|
width: 100vw;
|
|
69
73
|
margin: 0;
|
|
70
74
|
padding: 0;
|
|
71
75
|
|
|
72
|
-
transition-duration:
|
|
73
|
-
transition-timing-function:
|
|
76
|
+
transition-duration: motion.$simpleDuration;
|
|
77
|
+
transition-timing-function: motion.$standardEasing;
|
|
74
78
|
|
|
75
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
|
+
}
|
|
76
88
|
}
|
|
77
89
|
|
|
78
90
|
.mdw-layout__appbar {
|
|
79
|
-
@include
|
|
80
|
-
@include
|
|
91
|
+
@include gridColumn($columnContent);
|
|
92
|
+
@include gridRow($rowTop);
|
|
93
|
+
|
|
94
|
+
&[aria-hidden="true"] {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
81
97
|
|
|
82
98
|
position: static;
|
|
83
99
|
position: -webkit-sticky;
|
|
@@ -87,24 +103,28 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
87
103
|
|
|
88
104
|
margin-top: 0;
|
|
89
105
|
|
|
90
|
-
transition-duration:
|
|
106
|
+
transition-duration: motion.$expandDuration;
|
|
91
107
|
transition-property: transform, margin-top;
|
|
92
|
-
transition-timing-function:
|
|
108
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
93
109
|
will-change: transform, margin-top;
|
|
94
110
|
|
|
95
111
|
transform: translateY(0); // browser hint
|
|
96
112
|
z-index: 4;
|
|
97
113
|
|
|
98
|
-
|
|
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 {
|
|
99
124
|
padding-top: dp(20);
|
|
100
125
|
padding-top: constant(safe-area-inset-top);
|
|
101
126
|
padding-top: env(safe-area-inset-top);
|
|
102
127
|
}
|
|
103
|
-
|
|
104
|
-
&[mdw-hide] {
|
|
105
|
-
transition-duration: $mdw-motion__collapse-duration;
|
|
106
|
-
transition-timing-function: $mdw-motion__accelerate-easing;
|
|
107
|
-
}
|
|
108
128
|
}
|
|
109
129
|
|
|
110
130
|
.mdw-layout__scrim {
|
|
@@ -125,12 +145,15 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
125
145
|
width: 100%;
|
|
126
146
|
|
|
127
147
|
cursor: auto;
|
|
148
|
+
outline: none;
|
|
149
|
+
-webkit-tap-highlight-color: transparent;
|
|
128
150
|
|
|
129
|
-
transition-duration:
|
|
130
|
-
transition-property: background-color;
|
|
131
|
-
transition-timing-function:
|
|
151
|
+
transition-duration: motion.$fadeOutDuration;
|
|
152
|
+
transition-property: background-color, visibility;
|
|
153
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
132
154
|
|
|
133
155
|
pointer-events: none;
|
|
156
|
+
visibility: hidden;
|
|
134
157
|
z-index: 16;
|
|
135
158
|
|
|
136
159
|
background-color: transparent;
|
|
@@ -151,20 +174,20 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
151
174
|
|
|
152
175
|
.mdw-layout__navdrawer,
|
|
153
176
|
.mdw-layout__sidesheet {
|
|
154
|
-
@include
|
|
177
|
+
@include gridRow($rowTop, $rowBottom);
|
|
155
178
|
|
|
156
179
|
box-sizing: border-box;
|
|
157
180
|
max-height: 100vh;
|
|
158
181
|
height: 100%;
|
|
159
182
|
max-width: calc(100vw - #{dp(56)});
|
|
160
|
-
@
|
|
183
|
+
@include breakpoint.isXSmallWindow() {
|
|
161
184
|
max-width: calc(100vw - #{dp(64)}); // Tablet or Desktop
|
|
162
185
|
}
|
|
163
|
-
width: $
|
|
186
|
+
width: $sheetMinWidth;
|
|
164
187
|
|
|
165
|
-
transition-duration:
|
|
188
|
+
transition-duration: motion.$expandDuration;
|
|
166
189
|
transition-property: width, max-width, transform;
|
|
167
|
-
transition-timing-function:
|
|
190
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
168
191
|
|
|
169
192
|
will-change: max-width, transform, position;
|
|
170
193
|
|
|
@@ -172,11 +195,12 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
172
195
|
z-index: 5; // Above appbar shadow
|
|
173
196
|
|
|
174
197
|
background-color: inherit;
|
|
175
|
-
box-shadow:
|
|
198
|
+
box-shadow: elevation.boxShadow(0);
|
|
176
199
|
}
|
|
177
200
|
|
|
178
201
|
.mdw-layout__sheet-content {
|
|
179
202
|
overflow-y: auto;
|
|
203
|
+
-webkit-overflow-scrolling: touch;
|
|
180
204
|
|
|
181
205
|
box-sizing: border-box;
|
|
182
206
|
max-height: 100%;
|
|
@@ -185,7 +209,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
185
209
|
}
|
|
186
210
|
|
|
187
211
|
.mdw-layout__navdrawer {
|
|
188
|
-
@include
|
|
212
|
+
@include gridColumn($columnNavDrawer);
|
|
189
213
|
|
|
190
214
|
.mdw-list__content.mdw-overlay {
|
|
191
215
|
&::before,
|
|
@@ -198,7 +222,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
198
222
|
}
|
|
199
223
|
|
|
200
224
|
.mdw-layout__sidesheet {
|
|
201
|
-
@include
|
|
225
|
+
@include gridColumn($columnSideSheet);
|
|
202
226
|
}
|
|
203
227
|
|
|
204
228
|
.mdw-layout__navdrawer .mdw-layout__sheet-content,
|
|
@@ -215,7 +239,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
215
239
|
}
|
|
216
240
|
|
|
217
241
|
@each $side in ('navdrawer', 'sidesheet') {
|
|
218
|
-
@include
|
|
242
|
+
@include modal($side) {
|
|
219
243
|
.mdw-layout__#{$side}-hide {
|
|
220
244
|
display: none;
|
|
221
245
|
}
|
|
@@ -233,9 +257,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
233
257
|
flex-direction: column;
|
|
234
258
|
|
|
235
259
|
// Transition visibility
|
|
236
|
-
transition-duration:
|
|
260
|
+
transition-duration: motion.$collapseDuration;
|
|
237
261
|
transition-property: max-width, transform, visibility;
|
|
238
|
-
transition-timing-function:
|
|
262
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
239
263
|
|
|
240
264
|
// Prevent tabbing
|
|
241
265
|
visibility: hidden;
|
|
@@ -271,21 +295,23 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
// Shown
|
|
298
|
+
&[id]:target,
|
|
274
299
|
&[aria-hidden="false"] {
|
|
275
300
|
// Change visibility immediately
|
|
276
|
-
transition-duration:
|
|
301
|
+
transition-duration: motion.$expandDuration;
|
|
277
302
|
transition-property: max-width, transform;
|
|
278
|
-
transition-timing-function:
|
|
303
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
279
304
|
|
|
280
305
|
transform: translateX(0);
|
|
281
306
|
visibility: visible;
|
|
282
307
|
|
|
283
|
-
box-shadow:
|
|
308
|
+
box-shadow: elevation.boxShadow(16);
|
|
284
309
|
|
|
285
310
|
& ~ .mdw-layout__scrim {
|
|
286
311
|
pointer-events: auto;
|
|
312
|
+
visibility: visible;
|
|
287
313
|
|
|
288
|
-
background-color: $
|
|
314
|
+
background-color: $scrimColor;
|
|
289
315
|
}
|
|
290
316
|
|
|
291
317
|
&,
|
|
@@ -300,21 +326,22 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
300
326
|
}
|
|
301
327
|
|
|
302
328
|
.mdw-layout__banner {
|
|
303
|
-
@include
|
|
304
|
-
@include
|
|
329
|
+
@include gridRow($rowBanner);
|
|
330
|
+
@include gridColumn($columnContent);
|
|
305
331
|
z-index: 0;
|
|
306
332
|
}
|
|
307
333
|
|
|
308
334
|
.mdw-layout__content {
|
|
309
|
-
@include
|
|
310
|
-
@include
|
|
335
|
+
@include gridRow($rowContent);
|
|
336
|
+
@include gridColumn($columnContent);
|
|
311
337
|
|
|
312
338
|
display: flex;
|
|
313
339
|
position: relative;
|
|
314
340
|
align-items: center;
|
|
315
341
|
flex-direction: column;
|
|
316
342
|
overflow-x: visible;
|
|
317
|
-
overflow-y: $
|
|
343
|
+
overflow-y: $contentOverflowY;
|
|
344
|
+
-webkit-overflow-scrolling: touch;
|
|
318
345
|
}
|
|
319
346
|
|
|
320
347
|
|
|
@@ -325,8 +352,8 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
325
352
|
.mdw-layout__fab,
|
|
326
353
|
.mdw-layout__snackbar {
|
|
327
354
|
// Aligned to bottom-anchor
|
|
328
|
-
@include
|
|
329
|
-
@include
|
|
355
|
+
@include gridRow($rowBottom);
|
|
356
|
+
@include gridColumn($columnContent);
|
|
330
357
|
|
|
331
358
|
position: static;
|
|
332
359
|
position: -webkit-sticky;
|
|
@@ -337,9 +364,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
337
364
|
|
|
338
365
|
width: auto;
|
|
339
366
|
|
|
340
|
-
transition-duration:
|
|
367
|
+
transition-duration: motion.$expandDuration;
|
|
341
368
|
transition-property: transform;
|
|
342
|
-
transition-timing-function:
|
|
369
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
343
370
|
|
|
344
371
|
pointer-events: none;
|
|
345
372
|
transform: translateY(-100%);
|
|
@@ -373,15 +400,15 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
373
400
|
|
|
374
401
|
// Snackbars are not aligned with layout
|
|
375
402
|
box-sizing: border-box;
|
|
376
|
-
padding-top: dp(24
|
|
403
|
+
padding-top: dp(24 * 0.5);
|
|
377
404
|
padding-right: 0;
|
|
378
|
-
padding-bottom: dp(24
|
|
379
|
-
padding-left: dp(24
|
|
380
|
-
@include
|
|
381
|
-
padding-top: dp(16
|
|
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);
|
|
382
409
|
padding-right: 0;
|
|
383
|
-
padding-bottom: dp(16
|
|
384
|
-
padding-left: dp(16
|
|
410
|
+
padding-bottom: dp(16 * 0.5);
|
|
411
|
+
padding-left: dp(16 * 0.5);
|
|
385
412
|
}
|
|
386
413
|
|
|
387
414
|
transition-duration: inherit;
|
|
@@ -392,14 +419,14 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
392
419
|
right: 0;
|
|
393
420
|
left: auto;
|
|
394
421
|
|
|
395
|
-
padding-top: dp(24
|
|
396
|
-
padding-right: dp(24
|
|
397
|
-
padding-bottom: dp(24
|
|
422
|
+
padding-top: dp(24 * 0.5);
|
|
423
|
+
padding-right: dp(24 * 0.5);
|
|
424
|
+
padding-bottom: dp(24 * 0.5);
|
|
398
425
|
padding-left: 0;
|
|
399
|
-
@include
|
|
400
|
-
padding-top: dp(16
|
|
401
|
-
padding-right: dp(16
|
|
402
|
-
padding-bottom: dp(16
|
|
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);
|
|
403
430
|
padding-left: dp(0);
|
|
404
431
|
}
|
|
405
432
|
}
|
|
@@ -418,7 +445,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
418
445
|
left: auto;
|
|
419
446
|
|
|
420
447
|
padding: dp(24);
|
|
421
|
-
@include
|
|
448
|
+
@include breakpoint.has16DPMargin() {
|
|
422
449
|
padding: dp(16);
|
|
423
450
|
}
|
|
424
451
|
|
|
@@ -434,24 +461,30 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
434
461
|
}
|
|
435
462
|
|
|
436
463
|
.mdw-layout__fab-anchor .mdw-fab {
|
|
437
|
-
transition-duration:
|
|
464
|
+
transition-duration: motion.$collapseDuration;
|
|
438
465
|
transition-property: transform;
|
|
439
|
-
transition-timing-function:
|
|
466
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
440
467
|
|
|
441
468
|
transform: scale(0);
|
|
442
469
|
}
|
|
443
470
|
|
|
444
471
|
.mdw-layout__bottomnav {
|
|
445
|
-
@include
|
|
446
|
-
@include
|
|
472
|
+
@include gridColumn($columnContent);
|
|
473
|
+
@include gridRow($rowBottom);
|
|
474
|
+
|
|
475
|
+
&[aria-hidden="true"] {
|
|
476
|
+
display: none;
|
|
477
|
+
}
|
|
447
478
|
|
|
448
479
|
position: static;
|
|
449
480
|
position: -webkit-sticky;
|
|
450
481
|
position: -moz-sticky;
|
|
451
482
|
position: sticky;
|
|
452
483
|
bottom: 0;
|
|
453
|
-
|
|
484
|
+
|
|
454
485
|
z-index: 4;
|
|
486
|
+
|
|
487
|
+
box-shadow: elevation.boxShadow(8);
|
|
455
488
|
}
|
|
456
489
|
|
|
457
490
|
.mdw-layout__appbar-shape {
|
|
@@ -468,14 +501,14 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
468
501
|
transition-property: box-shadow;
|
|
469
502
|
transition-timing-function: inherit;
|
|
470
503
|
|
|
471
|
-
box-shadow:
|
|
504
|
+
box-shadow: elevation.boxShadow(4);
|
|
472
505
|
|
|
473
506
|
color: transparent;
|
|
474
507
|
|
|
475
508
|
.mdw-layout__appbar[mdw-autoraise]:not([mdw-raise]) & {
|
|
476
509
|
filter: none;
|
|
477
510
|
|
|
478
|
-
box-shadow:
|
|
511
|
+
box-shadow: elevation.boxShadow(0);
|
|
479
512
|
}
|
|
480
513
|
|
|
481
514
|
&::before,
|
|
@@ -483,7 +516,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
483
516
|
content: '';
|
|
484
517
|
|
|
485
518
|
min-width: dp(24);
|
|
486
|
-
@include
|
|
519
|
+
@include breakpoint.has16DPMargin() {
|
|
487
520
|
min-width: dp(16);
|
|
488
521
|
}
|
|
489
522
|
}
|
|
@@ -499,11 +532,11 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
499
532
|
height: 100%;
|
|
500
533
|
width: 100%;
|
|
501
534
|
|
|
502
|
-
transition-duration:
|
|
535
|
+
transition-duration: motion.$shapeChangeDuration;
|
|
503
536
|
transition-property: transform;
|
|
504
|
-
transition-timing-function:
|
|
537
|
+
transition-timing-function: motion.$standardEasing;
|
|
505
538
|
|
|
506
|
-
transform: translateX(100%) translateX(-($
|
|
539
|
+
transform: translateX(100%) translateX(-($fabSize * 0.5));
|
|
507
540
|
|
|
508
541
|
&::before,
|
|
509
542
|
&::after,
|
|
@@ -519,7 +552,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
519
552
|
content: '';
|
|
520
553
|
|
|
521
554
|
width: 100%;
|
|
522
|
-
margin-left: -$
|
|
555
|
+
margin-left: -$fabCutSize * 0.5;
|
|
523
556
|
|
|
524
557
|
background-color: currentColor;
|
|
525
558
|
}
|
|
@@ -529,29 +562,29 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
529
562
|
}
|
|
530
563
|
|
|
531
564
|
&::after {
|
|
532
|
-
left: $
|
|
565
|
+
left: $fabCutSize;
|
|
533
566
|
}
|
|
534
567
|
|
|
535
568
|
& > svg {
|
|
536
|
-
left: -$
|
|
569
|
+
left: -$fabCutSize * 0.5;
|
|
537
570
|
|
|
538
|
-
width: $
|
|
571
|
+
width: $fabCutSize;
|
|
539
572
|
|
|
540
573
|
fill: currentColor;
|
|
541
574
|
}
|
|
542
575
|
}
|
|
543
576
|
|
|
544
577
|
.mdw-layout__fab-mask-shape {
|
|
545
|
-
transition-delay: $
|
|
546
|
-
transition-duration:
|
|
578
|
+
transition-delay: $fabCutDelay;
|
|
579
|
+
transition-duration: motion.$collapseDuration;
|
|
547
580
|
transition-property: transform;
|
|
548
|
-
transition-timing-function:
|
|
581
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
549
582
|
|
|
550
583
|
// Closed
|
|
551
584
|
transform: scale(0);
|
|
552
585
|
}
|
|
553
586
|
|
|
554
|
-
@include
|
|
587
|
+
@include breakpoint.isXSmallWindow() {
|
|
555
588
|
.mdw-layout__appbar[mdw-autohide~="mobile"][mdw-hide] {
|
|
556
589
|
transform: translateY(-100%);
|
|
557
590
|
|
|
@@ -560,9 +593,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
560
593
|
|
|
561
594
|
& ~ .mdw-layout__fab,
|
|
562
595
|
& ~ .mdw-layout__snackbar {
|
|
563
|
-
transition-duration:
|
|
596
|
+
transition-duration: motion.$collapseDuration;
|
|
564
597
|
transition-property: transform;
|
|
565
|
-
transition-timing-function:
|
|
598
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
566
599
|
|
|
567
600
|
transform: translateY(0);
|
|
568
601
|
}
|
|
@@ -571,12 +604,12 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
571
604
|
.mdw-layout__appbar-shape {
|
|
572
605
|
filter: none;
|
|
573
606
|
|
|
574
|
-
box-shadow:
|
|
607
|
+
box-shadow: elevation.boxShadow(0);
|
|
575
608
|
}
|
|
576
609
|
}
|
|
577
610
|
}
|
|
578
611
|
|
|
579
|
-
@include
|
|
612
|
+
@include breakpoint.isSmallWindow() {
|
|
580
613
|
.mdw-layout__appbar[mdw-autohide~="tablet"][mdw-hide] {
|
|
581
614
|
transform: translateY(-100%);
|
|
582
615
|
|
|
@@ -585,9 +618,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
585
618
|
|
|
586
619
|
& ~ .mdw-layout__fab,
|
|
587
620
|
& ~ .mdw-layout__snackbar {
|
|
588
|
-
transition-duration:
|
|
621
|
+
transition-duration: motion.$collapseDuration;
|
|
589
622
|
transition-property: transform;
|
|
590
|
-
transition-timing-function:
|
|
623
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
591
624
|
|
|
592
625
|
transform: translateY(0);
|
|
593
626
|
}
|
|
@@ -596,34 +629,34 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
596
629
|
.mdw-layout__appbar-shape {
|
|
597
630
|
filter: none;
|
|
598
631
|
|
|
599
|
-
box-shadow:
|
|
632
|
+
box-shadow: elevation.boxShadow(0);
|
|
600
633
|
}
|
|
601
634
|
}
|
|
602
635
|
}
|
|
603
636
|
|
|
604
|
-
@include
|
|
637
|
+
@include breakpoint.maxSmallWindow {
|
|
605
638
|
.mdw-layout__appbar[mdw-bottom] {
|
|
606
|
-
@include
|
|
639
|
+
@include gridRow($rowBottom);
|
|
607
640
|
top: auto;
|
|
608
641
|
bottom: 0;
|
|
609
642
|
|
|
610
643
|
z-index: 8;
|
|
611
644
|
|
|
612
645
|
.mdw-layout__appbar-shape {
|
|
613
|
-
box-shadow:
|
|
646
|
+
box-shadow: elevation.boxShadow(8);
|
|
614
647
|
}
|
|
615
648
|
|
|
616
649
|
&[mdw-fab-cut] {
|
|
617
650
|
& ~ .mdw-layout__fab {
|
|
618
|
-
transform: translateY(-100%) translateY(#{$
|
|
651
|
+
transform: translateY(-100%) translateY(#{$fabSize * 0.5});
|
|
619
652
|
}
|
|
620
653
|
|
|
621
654
|
.mdw-layout__appbar-shape {
|
|
622
655
|
transition-property: filter;
|
|
623
656
|
|
|
624
|
-
filter:
|
|
657
|
+
filter: elevation.filter(8);
|
|
625
658
|
|
|
626
|
-
box-shadow:
|
|
659
|
+
box-shadow: elevation.boxShadow(0);
|
|
627
660
|
}
|
|
628
661
|
|
|
629
662
|
.mdw-layout__fab-mask-shape {
|
|
@@ -634,8 +667,8 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
634
667
|
&[mdw-fab-cut~="open"] {
|
|
635
668
|
.mdw-layout__fab-mask-shape {
|
|
636
669
|
transition-delay: 0s;
|
|
637
|
-
transition-duration:
|
|
638
|
-
transition-timing-function:
|
|
670
|
+
transition-duration: motion.$expandDuration;
|
|
671
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
639
672
|
|
|
640
673
|
transform: scale(1);
|
|
641
674
|
}
|
|
@@ -650,9 +683,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
650
683
|
|
|
651
684
|
& ~ .mdw-layout__fab,
|
|
652
685
|
& ~ .mdw-layout__snackbar {
|
|
653
|
-
transition-duration:
|
|
686
|
+
transition-duration: motion.$collapseDuration;
|
|
654
687
|
transition-property: transform;
|
|
655
|
-
transition-timing-function:
|
|
688
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
656
689
|
|
|
657
690
|
transform: translateY(0);
|
|
658
691
|
}
|
|
@@ -661,23 +694,20 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
661
694
|
.mdw-layout__appbar-shape {
|
|
662
695
|
filter: none;
|
|
663
696
|
|
|
664
|
-
box-shadow:
|
|
697
|
+
box-shadow: elevation.boxShadow(0);
|
|
665
698
|
}
|
|
666
699
|
|
|
667
700
|
}
|
|
668
701
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
702
|
.mdw-layout__snackbar-anchor {
|
|
673
703
|
&,
|
|
674
704
|
:root[dir="rtl"] & {
|
|
675
705
|
right: 0;
|
|
676
706
|
left: 0;
|
|
677
707
|
|
|
678
|
-
padding: dp(24
|
|
679
|
-
@include
|
|
680
|
-
padding: dp(16
|
|
708
|
+
padding: dp(24 * 0.5);
|
|
709
|
+
@include breakpoint.has16DPMargin() {
|
|
710
|
+
padding: dp(16 * 0.5);
|
|
681
711
|
}
|
|
682
712
|
}
|
|
683
713
|
}
|
|
@@ -685,7 +715,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
685
715
|
.mdw-layout__fab[mdw-mobile] {
|
|
686
716
|
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
687
717
|
bottom: dp(24);
|
|
688
|
-
@include
|
|
718
|
+
@include breakpoint.has16DPMargin() {
|
|
689
719
|
bottom: dp(16);
|
|
690
720
|
}
|
|
691
721
|
|
|
@@ -693,12 +723,12 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
693
723
|
}
|
|
694
724
|
|
|
695
725
|
& ~ .mdw-layout__content {
|
|
696
|
-
padding-bottom: #{$
|
|
726
|
+
padding-bottom: #{$fabSize + dp(24)};
|
|
697
727
|
}
|
|
698
728
|
|
|
699
729
|
&[aria-hidden="false"] .mdw-fab {
|
|
700
|
-
transition-duration:
|
|
701
|
-
transition-timing-function:
|
|
730
|
+
transition-duration: motion.$expandDuration;
|
|
731
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
702
732
|
|
|
703
733
|
transform: scale(1);
|
|
704
734
|
}
|
|
@@ -734,9 +764,9 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
734
764
|
}
|
|
735
765
|
|
|
736
766
|
&[aria-hidden="false"] .mdw-fab {
|
|
737
|
-
transition-delay: $
|
|
738
|
-
transition-duration:
|
|
739
|
-
transition-timing-function:
|
|
767
|
+
transition-delay: $fabCutDelay;
|
|
768
|
+
transition-duration: motion.$expandDuration;
|
|
769
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
740
770
|
|
|
741
771
|
transform: scale(1);
|
|
742
772
|
}
|
|
@@ -750,12 +780,12 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
750
780
|
& ~ .mdw-layout__snackbar .mdw-layout__snackbar-anchor {
|
|
751
781
|
bottom: 0;
|
|
752
782
|
|
|
753
|
-
transform: translateY(-$
|
|
783
|
+
transform: translateY(-$fabSize * 0.5);
|
|
754
784
|
}
|
|
755
785
|
}
|
|
756
786
|
}
|
|
757
787
|
|
|
758
|
-
@include
|
|
788
|
+
@include breakpoint.minMediumWindow {
|
|
759
789
|
.mdw-layout__body:not([mdw-navdrawer-toggle]):not([mdw-navdrawer-style="modal"]) {
|
|
760
790
|
.mdw-layout__navdrawer-show,
|
|
761
791
|
.mdw-layout__navdrawer-hide,
|
|
@@ -791,36 +821,36 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
791
821
|
|
|
792
822
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"],
|
|
793
823
|
.mdw-layout__body[mdw-sidesheet-style~="clipped"] {
|
|
794
|
-
overflow-y: $
|
|
824
|
+
overflow-y: $bodyOverflowY;
|
|
795
825
|
|
|
796
826
|
& > .mdw-layout__content {
|
|
797
|
-
overflow-y: $
|
|
827
|
+
overflow-y: $contentOverflowY;
|
|
798
828
|
}
|
|
799
829
|
}
|
|
800
830
|
|
|
801
831
|
.mdw-layout__fab[mdw-desktop] {
|
|
802
832
|
&[aria-hidden="false"] .mdw-fab {
|
|
803
|
-
transition-duration:
|
|
804
|
-
transition-timing-function:
|
|
833
|
+
transition-duration: motion.$expandDuration;
|
|
834
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
805
835
|
|
|
806
836
|
transform: scale(1);
|
|
807
837
|
}
|
|
808
838
|
|
|
809
839
|
&:not([mdw-desktop="appbar"]) ~ .mdw-layout__content {
|
|
810
|
-
padding-bottom: #{$
|
|
840
|
+
padding-bottom: #{$fabSize + dp(24)};
|
|
811
841
|
}
|
|
812
842
|
}
|
|
813
843
|
|
|
814
844
|
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
815
|
-
@include
|
|
845
|
+
@include gridRow($rowTop);
|
|
816
846
|
top: 0;
|
|
817
847
|
bottom: auto;
|
|
818
848
|
|
|
819
849
|
transform: translateY(100%);
|
|
820
850
|
|
|
821
851
|
&[aria-hidden="false"] .mdw-fab {
|
|
822
|
-
transition-duration:
|
|
823
|
-
transition-timing-function:
|
|
852
|
+
transition-duration: motion.$expandDuration;
|
|
853
|
+
transition-timing-function: motion.$decelerateEasing;
|
|
824
854
|
|
|
825
855
|
transform: translateY(-50%) scale(1);
|
|
826
856
|
}
|
|
@@ -856,34 +886,34 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
856
886
|
|
|
857
887
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"] .mdw-layout__navdrawer,
|
|
858
888
|
.mdw-layout__body[mdw-sidesheet-style~="clipped"] .mdw-layout__sidesheet {
|
|
859
|
-
@include
|
|
889
|
+
@include gridRow($rowBanner, $rowBottom);
|
|
860
890
|
z-index: 0;
|
|
861
891
|
}
|
|
862
892
|
|
|
863
893
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"] {
|
|
864
894
|
.mdw-layout__appbar,
|
|
865
895
|
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
866
|
-
@include
|
|
896
|
+
@include gridColumn($columnNavDrawer, $columnContent);
|
|
867
897
|
}
|
|
868
898
|
}
|
|
869
899
|
|
|
870
900
|
.mdw-layout__body[mdw-sidesheet-style~="clipped"] {
|
|
871
901
|
.mdw-layout__appbar,
|
|
872
902
|
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
873
|
-
@include
|
|
903
|
+
@include gridColumn($columnContent, $columnSideSheet);
|
|
874
904
|
}
|
|
875
905
|
}
|
|
876
906
|
|
|
877
907
|
.mdw-layout__body[mdw-navdrawer-style~="clipped"][mdw-sidesheet-style~="clipped"] {
|
|
878
908
|
.mdw-layout__appbar,
|
|
879
909
|
.mdw-layout__fab[mdw-desktop="appbar"] {
|
|
880
|
-
@include
|
|
910
|
+
@include gridColumn($columnNavDrawer, $columnSideSheet);
|
|
881
911
|
}
|
|
882
912
|
}
|
|
883
913
|
|
|
884
914
|
.mdw-layout__body[mdw-navdrawer-style~="floating"] .mdw-layout__navdrawer,
|
|
885
915
|
.mdw-layout__body[mdw-sidesheet-style~="floating"] .mdw-layout__sidesheet {
|
|
886
|
-
@include
|
|
916
|
+
@include gridRow($rowContent, $rowBottom);
|
|
887
917
|
|
|
888
918
|
& .mdw-layout__sheet-content {
|
|
889
919
|
height: auto;
|
|
@@ -894,21 +924,21 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
894
924
|
.mdw-layout__body[mdw-navdrawer-style~="floating"] {
|
|
895
925
|
.mdw-layout__banner,
|
|
896
926
|
.mdw-layout__bottomnav {
|
|
897
|
-
@include
|
|
927
|
+
@include gridColumn($columnNavDrawer, $columnContent);
|
|
898
928
|
}
|
|
899
929
|
}
|
|
900
930
|
|
|
901
931
|
.mdw-layout__body[mdw-sidesheet-style~="floating"] {
|
|
902
932
|
.mdw-layout__banner,
|
|
903
933
|
.mdw-layout__bottomnav {
|
|
904
|
-
@include
|
|
934
|
+
@include gridColumn($columnContent, $columnSideSheet);
|
|
905
935
|
}
|
|
906
936
|
}
|
|
907
937
|
|
|
908
938
|
.mdw-layout__body[mdw-navdrawer-style~="floating"][mdw-sidesheet-style~="floating"] {
|
|
909
939
|
.mdw-layout__banner,
|
|
910
940
|
.mdw-layout__bottomnav {
|
|
911
|
-
@include
|
|
941
|
+
@include gridColumn($columnNavDrawer, $columnSideSheet);
|
|
912
942
|
}
|
|
913
943
|
}
|
|
914
944
|
|
|
@@ -918,7 +948,7 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
918
948
|
padding: dp(24) 0;
|
|
919
949
|
|
|
920
950
|
& > .mdw-layout__sheet-content {
|
|
921
|
-
box-shadow:
|
|
951
|
+
box-shadow: elevation.boxShadow(8);
|
|
922
952
|
}
|
|
923
953
|
}
|
|
924
954
|
|
|
@@ -929,34 +959,34 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
929
959
|
margin-right: 0;
|
|
930
960
|
margin-left: 0;
|
|
931
961
|
|
|
932
|
-
transition-duration:
|
|
962
|
+
transition-duration: motion.$collapseDuration;
|
|
933
963
|
transition-property: width, max-width, margin, transform, visibility;
|
|
934
|
-
transition-timing-function:
|
|
964
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
935
965
|
|
|
936
966
|
visibility: hidden;
|
|
937
967
|
|
|
938
968
|
.mdw-layout__sheet-content {
|
|
939
|
-
box-shadow:
|
|
969
|
+
box-shadow: elevation.boxShadow(0);
|
|
940
970
|
}
|
|
941
971
|
}
|
|
942
972
|
|
|
943
973
|
.mdw-layout__body[mdw-navdrawer-toggle~="mini"]:not([mdw-navdrawer-style="modal"]) {
|
|
944
974
|
.mdw-layout__navdrawer:not([aria-hidden="false"]) {
|
|
945
|
-
max-width: $
|
|
946
|
-
width: $
|
|
975
|
+
max-width: $sheetMaxWidthMini;
|
|
976
|
+
width: $sheetMaxWidthMini;
|
|
947
977
|
|
|
948
|
-
transition-duration:
|
|
949
|
-
transition-timing-function:
|
|
978
|
+
transition-duration: motion.$collapseDuration;
|
|
979
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
950
980
|
}
|
|
951
981
|
}
|
|
952
982
|
|
|
953
983
|
.mdw-layout__body[mdw-sidesheet-toggle~="mini"]:not([mdw-sidesheet-style="modal"]) {
|
|
954
984
|
.mdw-layout__sidesheet:not([aria-hidden="false"]) {
|
|
955
|
-
max-width: $
|
|
956
|
-
width: $
|
|
985
|
+
max-width: $sheetMaxWidthMini;
|
|
986
|
+
width: $sheetMaxWidthMini;
|
|
957
987
|
|
|
958
|
-
transition-duration:
|
|
959
|
-
transition-timing-function:
|
|
988
|
+
transition-duration: motion.$collapseDuration;
|
|
989
|
+
transition-timing-function: motion.$accelerateEasing;
|
|
960
990
|
}
|
|
961
991
|
}
|
|
962
992
|
|
|
@@ -966,17 +996,17 @@ $mdw-layout__content-overflow-y__sticky: visible !default;
|
|
|
966
996
|
.mdw-layout__appbar-shape {
|
|
967
997
|
filter: none;
|
|
968
998
|
|
|
969
|
-
box-shadow:
|
|
999
|
+
box-shadow: elevation.boxShadow(0);
|
|
970
1000
|
}
|
|
971
1001
|
}
|
|
972
1002
|
}
|
|
973
1003
|
|
|
974
1004
|
@supports (position: sticky) or (position: -webkit-sticky) or (position: -moz-sticky) {
|
|
975
1005
|
.mdw-layout__body {
|
|
976
|
-
overflow-y: $
|
|
1006
|
+
overflow-y: $bodyOverflowYSticky;
|
|
977
1007
|
|
|
978
1008
|
& > .mdw-layout__content {
|
|
979
|
-
overflow-y: $
|
|
1009
|
+
overflow-y: $contentOverflowYSticky;
|
|
980
1010
|
}
|
|
981
1011
|
}
|
|
982
1012
|
}
|