@shortfuse/materialdesignweb 0.4.0 → 0.7.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/README.md +155 -79
- package/bin/generate-css.js +12 -0
- package/components/Badge.css +30 -0
- package/components/Badge.js +15 -0
- package/components/Body.css +14 -0
- package/components/Body.js +7 -0
- package/components/BottomAppBar.css +23 -0
- package/components/BottomAppBar.js +25 -0
- package/components/Box.css +31 -0
- package/components/Box.js +24 -0
- package/components/Button.css +146 -0
- package/components/Button.js +95 -0
- package/components/Button.md +61 -0
- package/components/Card.css +109 -0
- package/components/Card.js +82 -0
- package/components/Checkbox.css +77 -0
- package/components/Checkbox.js +59 -0
- package/components/CheckboxIcon.css +89 -0
- package/components/CheckboxIcon.js +41 -0
- package/components/Chip.css +35 -0
- package/components/Chip.js +22 -0
- package/components/Dialog.css +235 -0
- package/components/Dialog.js +327 -0
- package/components/DialogActions.js +13 -0
- package/components/Divider.css +41 -0
- package/components/Divider.js +13 -0
- package/components/ExtendedFab.css +24 -0
- package/components/ExtendedFab.js +11 -0
- package/components/Fab.css +23 -0
- package/components/Fab.js +26 -0
- package/components/FilterChip.css +80 -0
- package/components/FilterChip.js +51 -0
- package/components/Headline.css +14 -0
- package/components/Headline.js +33 -0
- package/components/Icon.css +76 -0
- package/components/Icon.js +174 -0
- package/components/IconButton.css +151 -0
- package/components/IconButton.js +65 -0
- package/components/Input.js +16 -0
- package/components/Label.css +14 -0
- package/components/Label.js +7 -0
- package/components/Layout.css +19 -0
- package/components/Layout.js +12 -0
- package/components/List.css +12 -0
- package/components/List.js +17 -0
- package/components/ListItem.css +224 -0
- package/components/ListItem.js +112 -0
- package/components/ListOption.css +34 -0
- package/components/ListOption.js +122 -0
- package/components/ListSelect.css +9 -0
- package/components/ListSelect.js +206 -0
- package/components/Menu.css +171 -0
- package/components/Menu.js +470 -0
- package/components/MenuItem.css +53 -0
- package/components/MenuItem.js +215 -0
- package/components/Nav.css +17 -0
- package/components/Nav.js +23 -0
- package/components/NavBar.css +34 -0
- package/components/NavBar.js +88 -0
- package/components/NavBarItem.css +41 -0
- package/components/NavBarItem.js +7 -0
- package/components/NavDrawer.css +31 -0
- package/components/NavDrawer.js +13 -0
- package/components/NavDrawerItem.css +42 -0
- package/components/NavDrawerItem.js +12 -0
- package/components/NavItem.css +181 -0
- package/components/NavItem.js +83 -0
- package/components/NavRail.css +47 -0
- package/components/NavRail.js +17 -0
- package/components/NavRailItem.css +25 -0
- package/components/NavRailItem.js +7 -0
- package/components/Option.js +91 -0
- package/components/Outline.css +138 -0
- package/components/Pane.css +261 -0
- package/components/Pane.js +21 -0
- package/components/Progress.css +74 -0
- package/components/Progress.js +67 -0
- package/components/ProgressCircle.css +226 -0
- package/components/ProgressLine.css +155 -0
- package/components/Radio.css +83 -0
- package/components/Radio.js +42 -0
- package/components/RadioIcon.css +73 -0
- package/components/RadioIcon.js +37 -0
- package/components/Ripple.css +74 -0
- package/components/Ripple.js +114 -0
- package/components/SegmentedButton.css +94 -0
- package/components/SegmentedButton.js +49 -0
- package/components/SegmentedButtonGroup.css +12 -0
- package/components/SegmentedButtonGroup.js +44 -0
- package/components/Select.css +52 -0
- package/components/Select.js +71 -0
- package/components/Shape.css +132 -0
- package/components/Shape.js +25 -0
- package/components/Slider.css +306 -0
- package/components/Slider.js +206 -0
- package/components/Snackbar.css +80 -0
- package/components/Snackbar.js +75 -0
- package/components/Surface.css +10 -0
- package/components/Surface.js +23 -0
- package/components/Switch.css +63 -0
- package/components/Switch.js +127 -0
- package/components/SwitchIcon.css +177 -0
- package/components/SwitchIcon.js +89 -0
- package/components/SwitchIconAnimations.css +89 -0
- package/components/Tab.css +85 -0
- package/components/Tab.js +103 -0
- package/components/TabContent.js +151 -0
- package/components/TabList.css +129 -0
- package/components/TabList.js +309 -0
- package/components/TabPanel.js +37 -0
- package/components/TextArea.css +93 -0
- package/components/TextArea.js +229 -0
- package/components/Title.css +14 -0
- package/components/Title.js +15 -0
- package/components/Tooltip.css +40 -0
- package/components/Tooltip.js +22 -0
- package/components/TopAppBar.css +209 -0
- package/components/TopAppBar.js +201 -0
- package/core/Composition.js +988 -0
- package/core/CustomElement.js +844 -0
- package/core/ICustomElement.d.ts +288 -0
- package/core/ICustomElement.js +1 -0
- package/core/css.js +51 -0
- package/core/customTypes.js +125 -0
- package/core/dom.js +56 -245
- package/core/identify.js +40 -0
- package/core/observe.js +410 -0
- package/core/template.js +121 -0
- package/core/typings.d.ts +135 -0
- package/core/typings.js +1 -0
- package/mixins/AriaReflectorMixin.js +42 -0
- package/mixins/AriaToolbarMixin.js +13 -0
- package/mixins/ControlMixin.css +57 -0
- package/mixins/ControlMixin.js +212 -0
- package/mixins/DensityMixin.css +40 -0
- package/mixins/DensityMixin.js +11 -0
- package/mixins/FlexableMixin.css +79 -0
- package/mixins/FlexableMixin.js +32 -0
- package/mixins/FormAssociatedMixin.js +170 -0
- package/mixins/InputMixin.js +335 -0
- package/mixins/KeyboardNavMixin.js +244 -0
- package/mixins/RTLObserverMixin.js +35 -0
- package/mixins/ResizeObserverMixin.js +38 -0
- package/mixins/RippleMixin.css +12 -0
- package/mixins/RippleMixin.js +115 -0
- package/mixins/ScrollListenerMixin.js +100 -0
- package/mixins/ShapeMixin.css +135 -0
- package/mixins/ShapeMixin.js +31 -0
- package/mixins/StateMixin.css +82 -0
- package/mixins/StateMixin.js +114 -0
- package/mixins/SurfaceMixin.css +150 -0
- package/mixins/SurfaceMixin.js +32 -0
- package/mixins/TextFieldMixin.css +657 -0
- package/mixins/TextFieldMixin.js +121 -0
- package/mixins/ThemableMixin.css +204 -0
- package/mixins/ThemableMixin.js +16 -0
- package/mixins/TooltipTriggerMixin.css +27 -0
- package/mixins/TooltipTriggerMixin.js +366 -0
- package/mixins/TouchTargetMixin.css +26 -0
- package/mixins/TouchTargetMixin.js +9 -0
- package/package.json +57 -41
- package/theming/index.js +594 -0
- package/theming/loader.js +24 -0
- package/utils/cli.js +11 -0
- package/utils/color_keywords.js +151 -0
- package/utils/hct/Cam16.js +298 -0
- package/utils/hct/CorePalette.js +84 -0
- package/utils/hct/Hct.js +172 -0
- package/utils/hct/Scheme.js +587 -0
- package/utils/hct/TonalPalette.js +68 -0
- package/utils/hct/ViewingConditions.js +136 -0
- package/utils/hct/blend.js +93 -0
- package/utils/hct/colorUtils.js +302 -0
- package/utils/hct/hctSolver.js +559 -0
- package/utils/hct/helper.js +182 -0
- package/utils/hct/mathUtils.js +153 -0
- package/utils/jsonMergePatch.js +100 -0
- package/utils/jsx-runtime.js +101 -0
- package/utils/popup.js +117 -0
- package/utils/svg.js +129 -0
- package/.browserslistrc +0 -3
- package/.eslintrc.json +0 -153
- package/.stylelintrc.json +0 -600
- package/.vscode/launch.json +0 -31
- package/.vscode/settings.json +0 -3
- package/.vscode/tasks.json +0 -32
- package/CHANGELOG.md +0 -24
- package/CODE_OF_CONDUCT.md +0 -46
- package/adapters/datatable/column.js +0 -203
- package/adapters/datatable/index.js +0 -972
- package/adapters/dom/index.js +0 -601
- package/adapters/list/index.js +0 -69
- package/adapters/search/index.js +0 -521
- package/components/appbar/_spec.scss +0 -225
- package/components/appbar/_theme.scss +0 -0
- package/components/appbar/index.scss +0 -2
- package/components/banner/_spec.scss +0 -118
- package/components/banner/_theme.scss +0 -0
- package/components/banner/index.scss +0 -2
- package/components/bottomnav/README.md +0 -85
- package/components/bottomnav/_spec.scss +0 -157
- package/components/bottomnav/_theme.scss +0 -0
- package/components/bottomnav/index.js +0 -122
- package/components/bottomnav/index.scss +0 -2
- package/components/bottomnav/item.js +0 -89
- package/components/button/README.md +0 -61
- package/components/button/_spec.scss +0 -161
- package/components/button/_theme.scss +0 -65
- package/components/button/index.eta +0 -32
- package/components/button/index.js +0 -43
- package/components/button/index.pug +0 -18
- package/components/button/index.scss +0 -2
- package/components/card/_spec.scss +0 -249
- package/components/card/_theme.scss +0 -0
- package/components/card/index.scss +0 -2
- package/components/chip/_spec.scss +0 -134
- package/components/chip/_theme.scss +0 -177
- package/components/chip/index.js +0 -21
- package/components/chip/index.scss +0 -2
- package/components/chip/item.js +0 -20
- package/components/datatable/_spec.scss +0 -288
- package/components/datatable/_theme.scss +0 -154
- package/components/datatable/cell.js +0 -45
- package/components/datatable/columnheader.js +0 -47
- package/components/datatable/index.js +0 -388
- package/components/datatable/index.scss +0 -2
- package/components/datatable/row.js +0 -49
- package/components/datatable/rowheader.js +0 -18
- package/components/dialog/_spec.scss +0 -213
- package/components/dialog/_theme.scss +0 -0
- package/components/dialog/index.js +0 -627
- package/components/dialog/index.scss +0 -2
- package/components/divider/_spec.scss +0 -13
- package/components/divider/_theme.scss +0 -0
- package/components/divider/index.scss +0 -2
- package/components/elevation/_spec.scss +0 -9
- package/components/elevation/_theme.scss +0 -0
- package/components/elevation/index.scss +0 -2
- package/components/fab/_spec.scss +0 -222
- package/components/fab/_theme.scss +0 -0
- package/components/fab/index.js +0 -103
- package/components/fab/index.scss +0 -2
- package/components/grid/_spec.scss +0 -312
- package/components/grid/_theme.scss +0 -0
- package/components/grid/index.scss +0 -2
- package/components/layout/_mixins.scss +0 -33
- package/components/layout/_spec.scss +0 -1012
- package/components/layout/_theme.scss +0 -44
- package/components/layout/index.js +0 -464
- package/components/layout/index.scss +0 -2
- package/components/list/_spec.scss +0 -397
- package/components/list/_theme.scss +0 -111
- package/components/list/content.js +0 -110
- package/components/list/index.js +0 -260
- package/components/list/index.scss +0 -2
- package/components/list/item.js +0 -170
- package/components/list/secondary.js +0 -46
- package/components/menu/_spec.scss +0 -362
- package/components/menu/_theme.scss +0 -0
- package/components/menu/index.js +0 -721
- package/components/menu/index.scss +0 -2
- package/components/menu/item.js +0 -239
- package/components/progress/_spec.scss +0 -147
- package/components/progress/_theme.scss +0 -0
- package/components/progress/index.js +0 -36
- package/components/progress/index.scss +0 -2
- package/components/selection/_spec.scss +0 -386
- package/components/selection/_theme.scss +0 -166
- package/components/selection/index.eta +0 -60
- package/components/selection/index.js +0 -76
- package/components/selection/index.pug +0 -30
- package/components/selection/index.scss +0 -2
- package/components/selection/input.js +0 -56
- package/components/selection/radiogroup.js +0 -47
- package/components/slider/_spec.scss +0 -64
- package/components/slider/_theme.scss +0 -0
- package/components/slider/index.scss +0 -2
- package/components/snackbar/_spec.scss +0 -195
- package/components/snackbar/_theme.scss +0 -0
- package/components/snackbar/index.js +0 -344
- package/components/snackbar/index.scss +0 -2
- package/components/tab/_spec.scss +0 -235
- package/components/tab/_theme.scss +0 -0
- package/components/tab/content.js +0 -205
- package/components/tab/index.js +0 -260
- package/components/tab/index.scss +0 -2
- package/components/tab/item.js +0 -89
- package/components/tab/list.js +0 -210
- package/components/tab/panel.js +0 -54
- package/components/template/_theme.scss +0 -27
- package/components/textfield/README.md +0 -179
- package/components/textfield/_mixins.scss +0 -52
- package/components/textfield/_spec.scss +0 -809
- package/components/textfield/_theme.scss +0 -299
- package/components/textfield/index.eta +0 -74
- package/components/textfield/index.js +0 -168
- package/components/textfield/index.pug +0 -30
- package/components/textfield/index.scss +0 -2
- package/components/tooltip/_spec.scss +0 -188
- package/components/tooltip/_theme.scss +0 -0
- package/components/tooltip/index.scss +0 -2
- package/components/type/_spec.scss +0 -224
- package/components/type/_theme.scss +0 -0
- package/components/type/index.scss +0 -2
- package/core/_breakpoint.scss +0 -189
- package/core/_elevation.scss +0 -38
- package/core/_length.scss +0 -9
- package/core/_motion.scss +0 -31
- package/core/_platform.scss +0 -34
- package/core/_type.scss +0 -127
- package/core/aria/attributes.js +0 -141
- package/core/aria/button.js +0 -50
- package/core/aria/keyboard.js +0 -93
- package/core/aria/rovingtabindex.js +0 -178
- package/core/aria/tab.js +0 -60
- package/core/color/_spec.scss +0 -0
- package/core/color/_theme.scss +0 -390
- package/core/color/index.scss +0 -2
- package/core/document/index.js +0 -39
- package/core/overlay/_spec.scss +0 -31
- package/core/overlay/_theme.scss +0 -171
- package/core/overlay/index.js +0 -108
- package/core/overlay/index.scss +0 -2
- package/core/ripple/_spec.scss +0 -197
- package/core/ripple/_theme.scss +0 -40
- package/core/ripple/index.js +0 -294
- package/core/ripple/index.scss +0 -2
- package/core/theme/_config.scss +0 -2
- package/core/theme/_mixins.scss +0 -172
- package/core/theme/_palettes.scss +0 -406
- package/core/theme/_variables.scss +0 -24
- package/core/theme/index.js +0 -50
- package/core/throttler.js +0 -42
- package/core/transition/index.js +0 -468
- package/docs/_flex.scss +0 -22
- package/docs/_menuoptions.js +0 -183
- package/docs/_mixins.pug +0 -155
- package/docs/_partials/_androidnavbar.eta +0 -5
- package/docs/_partials/_androidstatusbar.eta +0 -13
- package/docs/_partials/_appbar.eta +0 -29
- package/docs/_partials/_buttontest.eta +0 -31
- package/docs/_partials/_header.eta +0 -149
- package/docs/_partials/_navlistitem.eta +0 -16
- package/docs/_partials/_target.eta +0 -1
- package/docs/_sample-utils.js +0 -93
- package/docs/_storage.js +0 -33
- package/docs/docs.scss +0 -295
- package/docs/index.eta +0 -16
- package/docs/index.js +0 -0
- package/docs/pages/appbar.eta +0 -114
- package/docs/pages/appbar.js +0 -0
- package/docs/pages/appbar.pug +0 -78
- package/docs/pages/bottomnav.eta +0 -188
- package/docs/pages/bottomnav.js +0 -115
- package/docs/pages/bottomnav.pug +0 -137
- package/docs/pages/button.eta +0 -124
- package/docs/pages/button.js +0 -224
- package/docs/pages/button.pug +0 -121
- package/docs/pages/card.eta +0 -90
- package/docs/pages/card.js +0 -177
- package/docs/pages/card.pug +0 -74
- package/docs/pages/chip.eta +0 -122
- package/docs/pages/chip.js +0 -82
- package/docs/pages/chip.pug +0 -91
- package/docs/pages/color.eta +0 -143
- package/docs/pages/color.js +0 -262
- package/docs/pages/color.pug +0 -121
- package/docs/pages/datatable.eta +0 -323
- package/docs/pages/datatable.js +0 -164
- package/docs/pages/datatable.pug +0 -283
- package/docs/pages/dialog.eta +0 -186
- package/docs/pages/dialog.js +0 -177
- package/docs/pages/dialog.pug +0 -132
- package/docs/pages/dom.eta +0 -26
- package/docs/pages/dom.js +0 -143
- package/docs/pages/dom.pug +0 -22
- package/docs/pages/elevation.eta +0 -35
- package/docs/pages/elevation.js +0 -0
- package/docs/pages/elevation.pug +0 -25
- package/docs/pages/fab.eta +0 -99
- package/docs/pages/fab.js +0 -44
- package/docs/pages/fab.pug +0 -66
- package/docs/pages/grid.eta +0 -135
- package/docs/pages/grid.js +0 -128
- package/docs/pages/grid.pug +0 -95
- package/docs/pages/layout.eta +0 -8
- package/docs/pages/layout.js +0 -0
- package/docs/pages/layout.pug +0 -7
- package/docs/pages/list.eta +0 -465
- package/docs/pages/list.js +0 -9
- package/docs/pages/list.pug +0 -326
- package/docs/pages/menu.eta +0 -276
- package/docs/pages/menu.js +0 -217
- package/docs/pages/menu.pug +0 -205
- package/docs/pages/overlay.eta +0 -69
- package/docs/pages/overlay.js +0 -4
- package/docs/pages/overlay.pug +0 -55
- package/docs/pages/progress.eta +0 -23
- package/docs/pages/progress.js +0 -12
- package/docs/pages/progress.pug +0 -16
- package/docs/pages/ripple.eta +0 -27
- package/docs/pages/ripple.js +0 -4
- package/docs/pages/ripple.pug +0 -21
- package/docs/pages/search.eta +0 -246
- package/docs/pages/search.js +0 -243
- package/docs/pages/search.pug +0 -165
- package/docs/pages/selection.eta +0 -111
- package/docs/pages/selection.js +0 -13
- package/docs/pages/selection.pug +0 -74
- package/docs/pages/slider.eta +0 -23
- package/docs/pages/slider.js +0 -0
- package/docs/pages/slider.pug +0 -17
- package/docs/pages/snackbar.eta +0 -83
- package/docs/pages/snackbar.js +0 -158
- package/docs/pages/snackbar.pug +0 -60
- package/docs/pages/tab.eta +0 -421
- package/docs/pages/tab.js +0 -151
- package/docs/pages/tab.pug +0 -304
- package/docs/pages/textfield.eta +0 -486
- package/docs/pages/textfield.js +0 -254
- package/docs/pages/textfield.pug +0 -360
- package/docs/pages/tooltip.eta +0 -94
- package/docs/pages/tooltip.js +0 -0
- package/docs/pages/tooltip.pug +0 -78
- package/docs/pages/transition.eta +0 -117
- package/docs/pages/transition.js +0 -54
- package/docs/pages/transition.pug +0 -76
- package/docs/pages/type.eta +0 -31
- package/docs/pages/type.js +0 -0
- package/docs/pages/type.pug +0 -29
- package/docs/postrender.js +0 -39
- package/docs/prerender.js +0 -16
- package/docs/pwa/_dialogs.eta +0 -143
- package/docs/pwa/_dialogs.pug +0 -96
- package/docs/pwa/_menus.eta +0 -16
- package/docs/pwa/_menus.pug +0 -11
- package/docs/pwa/pwa-prerender.js +0 -3
- package/docs/pwa/pwa.eta +0 -480
- package/docs/pwa/pwa.js +0 -306
- package/docs/pwa/pwa.pug +0 -325
- package/docs/pwa/pwa.scss +0 -26
- package/docs/spec.scss +0 -26
- package/docs/themes/_component-themes.scss +0 -26
- package/docs/themes/theme-colored-fallbacks.scss +0 -17
- package/docs/themes/theme-colored.scss +0 -17
- package/docs/themes/theme-default-fallbacks.scss +0 -17
- package/docs/themes/theme-default.scss +0 -17
- package/jsconfig.json +0 -12
- package/scripts/deploy-docs.sh +0 -9
- package/templates/index.eta +0 -2
- package/templates/index.pug +0 -3
- package/webpack.config.cjs +0 -257
|
@@ -1,1012 +0,0 @@
|
|
|
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
|
-
}
|