@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.
Files changed (398) hide show
  1. package/.eslintrc.json +136 -30
  2. package/.stylelintrc.json +6 -40
  3. package/.vscode/launch.json +20 -5
  4. package/CHANGELOG.md +24 -0
  5. package/README.md +12 -9
  6. package/adapters/datatable/column.js +82 -74
  7. package/adapters/datatable/index.js +173 -131
  8. package/adapters/dom/index.js +529 -75
  9. package/adapters/list/index.js +25 -12
  10. package/adapters/search/index.js +13 -13
  11. package/components/appbar/_spec.scss +87 -64
  12. package/components/appbar/index.scss +2 -2
  13. package/components/banner/_spec.scss +8 -8
  14. package/components/banner/index.scss +2 -2
  15. package/components/bottomnav/_spec.scss +22 -17
  16. package/components/bottomnav/index.js +61 -52
  17. package/components/bottomnav/index.scss +2 -2
  18. package/components/bottomnav/item.js +44 -25
  19. package/components/button/README.md +14 -14
  20. package/components/button/_spec.scss +23 -22
  21. package/components/button/_theme.scss +37 -21
  22. package/components/button/index.eta +32 -0
  23. package/components/button/index.js +12 -12
  24. package/components/button/index.scss +2 -2
  25. package/components/card/_spec.scss +40 -36
  26. package/components/card/index.scss +2 -2
  27. package/components/chip/_spec.scss +7 -8
  28. package/components/chip/_theme.scss +31 -31
  29. package/components/chip/index.js +3 -2
  30. package/components/chip/index.scss +2 -2
  31. package/components/chip/item.js +1 -16
  32. package/components/datatable/_spec.scss +71 -85
  33. package/components/datatable/_theme.scss +61 -156
  34. package/components/datatable/cell.js +45 -0
  35. package/components/datatable/columnheader.js +47 -0
  36. package/components/datatable/index.js +279 -366
  37. package/components/datatable/index.scss +2 -2
  38. package/components/datatable/row.js +49 -0
  39. package/components/datatable/rowheader.js +18 -0
  40. package/components/dialog/_spec.scss +61 -41
  41. package/components/dialog/index.js +325 -297
  42. package/components/dialog/index.scss +2 -2
  43. package/components/divider/_spec.scss +8 -6
  44. package/components/divider/index.scss +2 -2
  45. package/components/elevation/_spec.scss +2 -2
  46. package/components/elevation/index.scss +2 -2
  47. package/components/fab/_spec.scss +23 -24
  48. package/components/fab/index.js +50 -50
  49. package/components/fab/index.scss +2 -2
  50. package/components/grid/_spec.scss +33 -31
  51. package/components/grid/index.scss +2 -2
  52. package/components/layout/_mixins.scss +5 -5
  53. package/components/layout/_spec.scss +206 -176
  54. package/components/layout/_theme.scss +14 -16
  55. package/components/layout/index.js +181 -153
  56. package/components/layout/index.scss +2 -2
  57. package/components/list/_spec.scss +117 -104
  58. package/components/list/_theme.scss +31 -34
  59. package/components/list/content.js +68 -52
  60. package/components/list/index.js +194 -61
  61. package/components/list/index.scss +2 -2
  62. package/components/list/item.js +136 -12
  63. package/components/list/secondary.js +46 -0
  64. package/components/menu/_spec.scss +32 -19
  65. package/components/menu/index.js +242 -229
  66. package/components/menu/index.scss +2 -2
  67. package/components/menu/item.js +95 -110
  68. package/components/progress/_spec.scss +35 -27
  69. package/components/progress/index.js +21 -0
  70. package/components/progress/index.scss +2 -1
  71. package/components/selection/_spec.scss +242 -224
  72. package/components/selection/_theme.scss +100 -95
  73. package/components/selection/index.eta +60 -0
  74. package/components/selection/index.js +76 -0
  75. package/components/selection/index.pug +15 -8
  76. package/components/selection/index.scss +2 -2
  77. package/components/selection/input.js +56 -0
  78. package/components/selection/radiogroup.js +47 -0
  79. package/components/slider/_spec.scss +10 -8
  80. package/components/slider/index.scss +2 -2
  81. package/components/snackbar/_spec.scss +22 -21
  82. package/components/snackbar/index.js +102 -111
  83. package/components/snackbar/index.scss +2 -2
  84. package/components/tab/_spec.scss +20 -19
  85. package/components/tab/content.js +41 -40
  86. package/components/tab/index.js +192 -99
  87. package/components/tab/index.scss +2 -2
  88. package/components/tab/item.js +38 -55
  89. package/components/tab/list.js +96 -72
  90. package/components/tab/panel.js +12 -13
  91. package/components/template/_theme.scss +11 -11
  92. package/components/textfield/_mixins.scss +52 -0
  93. package/components/textfield/_spec.scss +215 -266
  94. package/components/textfield/_theme.scss +95 -72
  95. package/components/textfield/index.eta +74 -0
  96. package/components/textfield/index.js +63 -57
  97. package/components/textfield/index.scss +2 -2
  98. package/components/tooltip/_spec.scss +27 -25
  99. package/components/tooltip/index.scss +2 -2
  100. package/components/type/_spec.scss +51 -38
  101. package/components/type/index.scss +2 -2
  102. package/core/_breakpoint.scss +75 -91
  103. package/core/_elevation.scss +10 -10
  104. package/core/_length.scss +9 -0
  105. package/core/_motion.scss +14 -14
  106. package/core/_platform.scss +9 -15
  107. package/core/_type.scss +33 -32
  108. package/core/aria/attributes.js +125 -25
  109. package/core/aria/button.js +23 -23
  110. package/core/aria/keyboard.js +93 -0
  111. package/core/aria/rovingtabindex.js +69 -154
  112. package/core/aria/tab.js +31 -28
  113. package/core/color/_theme.scss +240 -280
  114. package/core/color/index.scss +2 -2
  115. package/core/document/index.js +39 -0
  116. package/core/dom.js +12 -12
  117. package/core/overlay/_spec.scss +0 -3
  118. package/core/overlay/_theme.scss +56 -74
  119. package/core/overlay/index.js +49 -18
  120. package/core/overlay/index.scss +2 -2
  121. package/core/ripple/_spec.scss +22 -39
  122. package/core/ripple/_theme.scss +13 -13
  123. package/core/ripple/index.js +137 -134
  124. package/core/ripple/index.scss +2 -2
  125. package/core/theme/_config.scss +2 -0
  126. package/core/theme/_mixins.scss +172 -0
  127. package/core/theme/_palettes.scss +155 -135
  128. package/core/theme/_variables.scss +24 -15
  129. package/core/theme/index.js +50 -0
  130. package/core/throttler.js +1 -1
  131. package/core/transition/index.js +36 -20
  132. package/{docs-src → docs}/_flex.scss +0 -0
  133. package/{docs-src → docs}/_menuoptions.js +21 -34
  134. package/{docs-src → docs}/_mixins.pug +39 -26
  135. package/docs/_partials/_androidnavbar.eta +5 -0
  136. package/docs/_partials/_androidstatusbar.eta +13 -0
  137. package/docs/_partials/_appbar.eta +29 -0
  138. package/docs/_partials/_buttontest.eta +31 -0
  139. package/docs/_partials/_header.eta +149 -0
  140. package/docs/_partials/_navlistitem.eta +16 -0
  141. package/docs/_partials/_target.eta +1 -0
  142. package/{docs-src → docs}/_sample-utils.js +8 -6
  143. package/{docs-src → docs}/_storage.js +0 -0
  144. package/{docs-src → docs}/docs.scss +5 -2
  145. package/docs/index.eta +16 -0
  146. package/{docs-src → docs}/index.js +0 -0
  147. package/docs/pages/appbar.eta +114 -0
  148. package/{docs-src/components → docs/pages}/appbar.js +0 -0
  149. package/{docs-src/components → docs/pages}/appbar.pug +15 -18
  150. package/docs/pages/bottomnav.eta +188 -0
  151. package/{docs-src/components → docs/pages}/bottomnav.js +23 -24
  152. package/{docs-src/components → docs/pages}/bottomnav.pug +4 -4
  153. package/docs/pages/button.eta +124 -0
  154. package/{docs-src/components → docs/pages}/button.js +19 -19
  155. package/{docs-src/components → docs/pages}/button.pug +15 -15
  156. package/docs/pages/card.eta +90 -0
  157. package/{docs-src/components → docs/pages}/card.js +3 -3
  158. package/{docs-src/components → docs/pages}/card.pug +7 -7
  159. package/docs/pages/chip.eta +122 -0
  160. package/{docs-src/components → docs/pages}/chip.js +3 -6
  161. package/{docs-src/components → docs/pages}/chip.pug +2 -2
  162. package/docs/pages/color.eta +143 -0
  163. package/{docs-src/core → docs/pages}/color.js +95 -20
  164. package/docs/pages/color.pug +121 -0
  165. package/docs/pages/datatable.eta +323 -0
  166. package/{docs-src/components → docs/pages}/datatable.js +26 -13
  167. package/docs/pages/datatable.pug +283 -0
  168. package/docs/pages/dialog.eta +186 -0
  169. package/{docs-src/components → docs/pages}/dialog.js +26 -13
  170. package/{docs-src/components → docs/pages}/dialog.pug +46 -28
  171. package/docs/pages/dom.eta +26 -0
  172. package/docs/pages/dom.js +143 -0
  173. package/docs/pages/dom.pug +22 -0
  174. package/docs/pages/elevation.eta +35 -0
  175. package/{docs-src/components → docs/pages}/elevation.js +0 -0
  176. package/{docs-src/components → docs/pages}/elevation.pug +0 -0
  177. package/docs/pages/fab.eta +99 -0
  178. package/{docs-src/components → docs/pages}/fab.js +3 -3
  179. package/{docs-src/components → docs/pages}/fab.pug +2 -2
  180. package/docs/pages/grid.eta +135 -0
  181. package/{docs-src/components → docs/pages}/grid.js +1 -1
  182. package/{docs-src/components → docs/pages}/grid.pug +3 -3
  183. package/docs/pages/layout.eta +8 -0
  184. package/{docs-src/components → docs/pages}/layout.js +0 -0
  185. package/{docs-src/components → docs/pages}/layout.pug +0 -0
  186. package/docs/pages/list.eta +465 -0
  187. package/{docs-src/components → docs/pages}/list.js +2 -2
  188. package/{docs-src/components → docs/pages}/list.pug +7 -14
  189. package/docs/pages/menu.eta +276 -0
  190. package/{docs-src/components → docs/pages}/menu.js +14 -10
  191. package/{docs-src/components → docs/pages}/menu.pug +0 -0
  192. package/docs/pages/overlay.eta +69 -0
  193. package/docs/pages/overlay.js +4 -0
  194. package/{docs-src/core → docs/pages}/overlay.pug +14 -11
  195. package/docs/pages/progress.eta +23 -0
  196. package/{docs-src/components → docs/pages}/progress.js +1 -1
  197. package/{docs-src/components → docs/pages}/progress.pug +1 -1
  198. package/docs/pages/ripple.eta +27 -0
  199. package/docs/pages/ripple.js +4 -0
  200. package/{docs-src/core → docs/pages}/ripple.pug +4 -4
  201. package/docs/pages/search.eta +246 -0
  202. package/{docs-src/components → docs/pages}/search.js +59 -42
  203. package/{docs-src/components → docs/pages}/search.pug +50 -51
  204. package/docs/pages/selection.eta +111 -0
  205. package/docs/pages/selection.js +13 -0
  206. package/docs/pages/selection.pug +74 -0
  207. package/docs/pages/slider.eta +23 -0
  208. package/{docs-src/components → docs/pages}/slider.js +0 -0
  209. package/{docs-src/components → docs/pages}/slider.pug +0 -0
  210. package/docs/pages/snackbar.eta +83 -0
  211. package/{docs-src/components → docs/pages}/snackbar.js +3 -3
  212. package/{docs-src/components → docs/pages}/snackbar.pug +0 -0
  213. package/docs/pages/tab.eta +421 -0
  214. package/{docs-src/components → docs/pages}/tab.js +18 -35
  215. package/{docs-src/components → docs/pages}/tab.pug +4 -4
  216. package/docs/pages/textfield.eta +486 -0
  217. package/{docs-src/components → docs/pages}/textfield.js +3 -4
  218. package/{docs-src/components → docs/pages}/textfield.pug +87 -35
  219. package/docs/pages/tooltip.eta +94 -0
  220. package/{docs-src/components → docs/pages}/tooltip.js +0 -0
  221. package/{docs-src/components → docs/pages}/tooltip.pug +0 -1
  222. package/docs/pages/transition.eta +117 -0
  223. package/{docs-src/core → docs/pages}/transition.js +7 -8
  224. package/{docs-src/core → docs/pages}/transition.pug +0 -0
  225. package/docs/pages/type.eta +31 -0
  226. package/{docs-src/components → docs/pages}/type.js +0 -0
  227. package/{docs-src/components → docs/pages}/type.pug +0 -1
  228. package/docs/postrender.js +39 -0
  229. package/{docs-src → docs}/prerender.js +3 -9
  230. package/docs/pwa/_dialogs.eta +143 -0
  231. package/docs/pwa/_dialogs.pug +96 -0
  232. package/docs/pwa/_menus.eta +16 -0
  233. package/{docs-src → docs}/pwa/_menus.pug +0 -0
  234. package/docs/pwa/pwa-prerender.js +3 -0
  235. package/docs/pwa/pwa.eta +480 -0
  236. package/docs/pwa/pwa.js +306 -0
  237. package/{docs-src → docs}/pwa/pwa.pug +166 -263
  238. package/docs/pwa/pwa.scss +26 -0
  239. package/docs/spec.scss +26 -0
  240. package/docs/themes/_component-themes.scss +26 -0
  241. package/docs/themes/theme-colored-fallbacks.scss +17 -0
  242. package/docs/themes/theme-colored.scss +17 -0
  243. package/docs/themes/theme-default-fallbacks.scss +17 -0
  244. package/docs/themes/theme-default.scss +17 -0
  245. package/jsconfig.json +4 -2
  246. package/package.json +40 -27
  247. package/scripts/deploy-docs.sh +9 -0
  248. package/templates/index.eta +2 -0
  249. package/utils/function.js +3 -0
  250. package/webpack.config.cjs +257 -0
  251. package/_spec.scss +0 -27
  252. package/_theme.scss +0 -27
  253. package/components/list/expander.js +0 -142
  254. package/components/list/itemgroup.js +0 -22
  255. package/core/theme/_builder.scss +0 -116
  256. package/core/theme/index.scss +0 -68
  257. package/docs/appbar.html +0 -1
  258. package/docs/appbar.min.js +0 -2
  259. package/docs/appbar.min.js.map +0 -1
  260. package/docs/bottomnav.html +0 -1
  261. package/docs/bottomnav.min.js +0 -2
  262. package/docs/bottomnav.min.js.map +0 -1
  263. package/docs/button.html +0 -1
  264. package/docs/button.min.js +0 -2
  265. package/docs/button.min.js.map +0 -1
  266. package/docs/card.html +0 -1
  267. package/docs/card.min.js +0 -2
  268. package/docs/card.min.js.map +0 -1
  269. package/docs/chip.html +0 -1
  270. package/docs/chip.min.js +0 -2
  271. package/docs/chip.min.js.map +0 -1
  272. package/docs/color.html +0 -1
  273. package/docs/color.min.js +0 -2
  274. package/docs/color.min.js.map +0 -1
  275. package/docs/datatable.html +0 -1
  276. package/docs/datatable.min.js +0 -2
  277. package/docs/datatable.min.js.map +0 -1
  278. package/docs/default.common.min.js +0 -2
  279. package/docs/default.common.min.js.map +0 -1
  280. package/docs/dialog.html +0 -1
  281. package/docs/dialog.min.js +0 -2
  282. package/docs/dialog.min.js.map +0 -1
  283. package/docs/docs.min.css +0 -1
  284. package/docs/docs.min.js +0 -2
  285. package/docs/docs.min.js.map +0 -1
  286. package/docs/elevation.html +0 -1
  287. package/docs/elevation.min.js +0 -2
  288. package/docs/elevation.min.js.map +0 -1
  289. package/docs/fab.html +0 -1
  290. package/docs/fab.min.js +0 -2
  291. package/docs/fab.min.js.map +0 -1
  292. package/docs/grid.html +0 -1
  293. package/docs/grid.min.js +0 -2
  294. package/docs/grid.min.js.map +0 -1
  295. package/docs/index.html +0 -1
  296. package/docs/index.min.js +0 -2
  297. package/docs/index.min.js.map +0 -1
  298. package/docs/ink.html +0 -1
  299. package/docs/ink.min.js +0 -2
  300. package/docs/ink.min.js.map +0 -1
  301. package/docs/layout.html +0 -1
  302. package/docs/layout.min.js +0 -2
  303. package/docs/layout.min.js.map +0 -1
  304. package/docs/list.html +0 -1
  305. package/docs/list.min.js +0 -2
  306. package/docs/list.min.js.map +0 -1
  307. package/docs/menu.html +0 -1
  308. package/docs/menu.min.js +0 -2
  309. package/docs/menu.min.js.map +0 -1
  310. package/docs/overlay.html +0 -1
  311. package/docs/overlay.min.js +0 -2
  312. package/docs/overlay.min.js.map +0 -1
  313. package/docs/prerender.common.min.js +0 -2
  314. package/docs/prerender.common.min.js.map +0 -1
  315. package/docs/prerender.min.js +0 -2
  316. package/docs/prerender.min.js.map +0 -1
  317. package/docs/progress.html +0 -1
  318. package/docs/progress.min.js +0 -2
  319. package/docs/progress.min.js.map +0 -1
  320. package/docs/pwa-prerender.min.js +0 -2
  321. package/docs/pwa-prerender.min.js.map +0 -1
  322. package/docs/pwa.html +0 -11
  323. package/docs/pwa.min.css +0 -1
  324. package/docs/pwa.min.js +0 -2
  325. package/docs/pwa.min.js.map +0 -1
  326. package/docs/ripple.html +0 -1
  327. package/docs/ripple.min.js +0 -2
  328. package/docs/ripple.min.js.map +0 -1
  329. package/docs/search.html +0 -1
  330. package/docs/search.min.js +0 -2
  331. package/docs/search.min.js.map +0 -1
  332. package/docs/selection.html +0 -1
  333. package/docs/selection.min.js +0 -2
  334. package/docs/selection.min.js.map +0 -1
  335. package/docs/slider.html +0 -1
  336. package/docs/slider.min.js +0 -2
  337. package/docs/slider.min.js.map +0 -1
  338. package/docs/snackbar.html +0 -1
  339. package/docs/snackbar.min.js +0 -2
  340. package/docs/snackbar.min.js.map +0 -1
  341. package/docs/spec.min.css +0 -1
  342. package/docs/spec.min.js +0 -2
  343. package/docs/spec.min.js.map +0 -1
  344. package/docs/surface.html +0 -1
  345. package/docs/surface.min.js +0 -2
  346. package/docs/surface.min.js.map +0 -1
  347. package/docs/tab.html +0 -1
  348. package/docs/tab.min.js +0 -2
  349. package/docs/tab.min.js.map +0 -1
  350. package/docs/textfield.html +0 -2
  351. package/docs/textfield.min.js +0 -2
  352. package/docs/textfield.min.js.map +0 -1
  353. package/docs/theme-colored-fallbacks.min.css +0 -1
  354. package/docs/theme-colored-fallbacks.min.js +0 -2
  355. package/docs/theme-colored-fallbacks.min.js.map +0 -1
  356. package/docs/theme-colored.min.css +0 -1
  357. package/docs/theme-colored.min.js +0 -2
  358. package/docs/theme-colored.min.js.map +0 -1
  359. package/docs/theme-default-fallbacks.min.css +0 -1
  360. package/docs/theme-default-fallbacks.min.js +0 -2
  361. package/docs/theme-default-fallbacks.min.js.map +0 -1
  362. package/docs/theme-default.min.css +0 -1
  363. package/docs/theme-default.min.js +0 -2
  364. package/docs/theme-default.min.js.map +0 -1
  365. package/docs/themes-fallbacks.min.css +0 -1
  366. package/docs/themes-fallbacks.min.js +0 -2
  367. package/docs/themes-fallbacks.min.js.map +0 -1
  368. package/docs/themes.min.css +0 -1
  369. package/docs/themes.min.js +0 -2
  370. package/docs/themes.min.js.map +0 -1
  371. package/docs/tooltip.html +0 -1
  372. package/docs/tooltip.min.js +0 -2
  373. package/docs/tooltip.min.js.map +0 -1
  374. package/docs/transition.html +0 -1
  375. package/docs/transition.min.js +0 -2
  376. package/docs/transition.min.js.map +0 -1
  377. package/docs/type.html +0 -1
  378. package/docs/type.min.js +0 -2
  379. package/docs/type.min.js.map +0 -1
  380. package/docs-src/components/datatable.pug +0 -327
  381. package/docs-src/components/selection.js +0 -9
  382. package/docs-src/components/selection.pug +0 -77
  383. package/docs-src/core/color.pug +0 -201
  384. package/docs-src/core/overlay.js +0 -4
  385. package/docs-src/core/ripple.js +0 -4
  386. package/docs-src/index.pug +0 -9
  387. package/docs-src/pwa/_dialogs.pug +0 -15
  388. package/docs-src/pwa/pwa-prerender.js +0 -3
  389. package/docs-src/pwa/pwa.js +0 -182
  390. package/docs-src/pwa/pwa.scss +0 -25
  391. package/docs-src/spec.scss +0 -1
  392. package/docs-src/themes/theme-colored-fallbacks.scss +0 -14
  393. package/docs-src/themes/theme-colored.scss +0 -14
  394. package/docs-src/themes/theme-default-fallbacks.scss +0 -14
  395. package/docs-src/themes/theme-default.scss +0 -14
  396. package/index.js +0 -51
  397. package/index.scss +0 -2
  398. 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
- @import '../../core/_elevation.scss';
6
- @import '../../core/_motion.scss';
7
- @import '../../core/_platform.scss';
8
- @import '../../core/_breakpoint.scss';
9
- @import '../../core/_type.scss';
10
- @import './_mixins.scss';
11
-
12
- $mdw-layout__scrim-color: rgba(0, 0, 0, 0.50) !default;
13
- $mdw-layout__sheet-min-width: dp(256) !default;
14
- $mdw-layout__sheet-max-width__mini: dp(72) !default;
15
-
16
- $mdw-layout__fab-size: dp(56) !default;
17
- $mdw-layout__fab-cut-size: dp(72) !default;
18
- $mdw-layout__fab-cut-delay: 100ms !default;
19
-
20
- $mdw-layout__top-row: 1 !default;
21
- $mdw-layout__banner-row: 2 !default;
22
- $mdw-layout__content-row: 3 !default;
23
- $mdw-layout__bottom-row: 4 !default;
24
-
25
- $mdw-layout__navdrawer-column: 1 !default;
26
- $mdw-layout__content-column: 2 !default;
27
- $mdw-layout__sidesheet-column: 3 !default;
28
- $mdw-layout__viewport-end-column: 4 !default;
29
-
30
- $mdw-layout__body-overflow-y: hidden !default;
31
- $mdw-layout__body-overflow-y__sticky: auto !default;
32
- $mdw-layout__content-overflow-y: auto !default;
33
- $mdw-layout__content-overflow-y__sticky: visible !default;
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: 100vh;
39
- height: 100vh;
40
- min-width: 100vw;
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-rules('body');
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 oversived grid-items
58
- grid-template-columns: auto minmax(0, 1fr) auto;
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: $mdw-layout__body-overflow-y;
67
+ overflow-y: $bodyOverflowY;
68
+ -webkit-overflow-scrolling: touch;
65
69
 
66
- height: 100vh;
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: $mdw-motion__simple-duration;
73
- transition-timing-function: $mdw-motion__standard-easing;
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 mdw-layout__grid-column($mdw-layout__content-column);
80
- @include mdw-layout__grid-row($mdw-layout__top-row);
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: $mdw-motion__expand-duration;
106
+ transition-duration: motion.$expandDuration;
91
107
  transition-property: transform, margin-top;
92
- transition-timing-function: $mdw-motion__decelerate-easing;
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
- .mdw-layout[mdw-ios][mdw-standalone] & {
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: $mdw-motion__fade-out-duration;
130
- transition-property: background-color;
131
- transition-timing-function: $mdw-motion__accelerate-easing;
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 mdw-layout__grid-row($mdw-layout__top-row, $mdw-layout__bottom-row);
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
- @mixin mdw-breakpoint__xsmall-window {
183
+ @include breakpoint.isXSmallWindow() {
161
184
  max-width: calc(100vw - #{dp(64)}); // Tablet or Desktop
162
185
  }
163
- width: $mdw-layout__sheet-min-width;
186
+ width: $sheetMinWidth;
164
187
 
165
- transition-duration: $mdw-motion__expand-duration;
188
+ transition-duration: motion.$expandDuration;
166
189
  transition-property: width, max-width, transform;
167
- transition-timing-function: $mdw-motion__decelerate-easing;
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: mdwElevation(0);
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 mdw-layout__grid-column($mdw-layout__navdrawer-column);
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 mdw-layout__grid-column($mdw-layout__sidesheet-column);
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 mdw-layout__modal($side) {
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: $mdw-motion__collapse-duration;
260
+ transition-duration: motion.$collapseDuration;
237
261
  transition-property: max-width, transform, visibility;
238
- transition-timing-function: $mdw-motion__accelerate-easing;
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: $mdw-motion__expand-duration;
301
+ transition-duration: motion.$expandDuration;
277
302
  transition-property: max-width, transform;
278
- transition-timing-function: $mdw-motion__decelerate-easing;
303
+ transition-timing-function: motion.$decelerateEasing;
279
304
 
280
305
  transform: translateX(0);
281
306
  visibility: visible;
282
307
 
283
- box-shadow: mdwElevation(16);
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: $mdw-layout__scrim-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 mdw-layout__grid-row($mdw-layout__banner-row);
304
- @include mdw-layout__grid-column($mdw-layout__content-column);
329
+ @include gridRow($rowBanner);
330
+ @include gridColumn($columnContent);
305
331
  z-index: 0;
306
332
  }
307
333
 
308
334
  .mdw-layout__content {
309
- @include mdw-layout__grid-row($mdw-layout__content-row);
310
- @include mdw-layout__grid-column($mdw-layout__content-column);
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: $mdw-layout__content-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 mdw-layout__grid-row($mdw-layout__bottom-row);
329
- @include mdw-layout__grid-column($mdw-layout__content-column);
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: $mdw-motion__expand-duration;
367
+ transition-duration: motion.$expandDuration;
341
368
  transition-property: transform;
342
- transition-timing-function: $mdw-motion__decelerate-easing;
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 / 2);
403
+ padding-top: dp(24 * 0.5);
377
404
  padding-right: 0;
378
- padding-bottom: dp(24 / 2);
379
- padding-left: dp(24 / 2);
380
- @include mdw-breakpoint__16dp-margin {
381
- padding-top: dp(16 / 2);
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 / 2);
384
- padding-left: dp(16 / 2);
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 / 2);
396
- padding-right: dp(24 / 2);
397
- padding-bottom: dp(24 / 2);
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 mdw-breakpoint__16dp-margin {
400
- padding-top: dp(16 / 2);
401
- padding-right: dp(16 / 2);
402
- padding-bottom: dp(16 / 2);
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 mdw-breakpoint__16dp-margin {
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: $mdw-motion__collapse-duration;
464
+ transition-duration: motion.$collapseDuration;
438
465
  transition-property: transform;
439
- transition-timing-function: $mdw-motion__accelerate-easing;
466
+ transition-timing-function: motion.$accelerateEasing;
440
467
 
441
468
  transform: scale(0);
442
469
  }
443
470
 
444
471
  .mdw-layout__bottomnav {
445
- @include mdw-layout__grid-column($mdw-layout__content-column);
446
- @include mdw-layout__grid-row($mdw-layout__bottom-row);
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: mdwElevation(4);
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: mdwElevation(0);
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 mdw-breakpoint__16dp-margin {
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: $mdw-motion__shape-change-duration;
535
+ transition-duration: motion.$shapeChangeDuration;
503
536
  transition-property: transform;
504
- transition-timing-function: $mdw-motion__standard-easing;
537
+ transition-timing-function: motion.$standardEasing;
505
538
 
506
- transform: translateX(100%) translateX(-($mdw-layout__fab-size / 2));
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: -$mdw-layout__fab-cut-size / 2;
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: $mdw-layout__fab-cut-size;
565
+ left: $fabCutSize;
533
566
  }
534
567
 
535
568
  & > svg {
536
- left: -$mdw-layout__fab-cut-size / 2;
569
+ left: -$fabCutSize * 0.5;
537
570
 
538
- width: $mdw-layout__fab-cut-size;
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: $mdw-layout__fab-cut-delay;
546
- transition-duration: $mdw-motion__collapse-duration;
578
+ transition-delay: $fabCutDelay;
579
+ transition-duration: motion.$collapseDuration;
547
580
  transition-property: transform;
548
- transition-timing-function: $mdw-motion__accelerate-easing;
581
+ transition-timing-function: motion.$accelerateEasing;
549
582
 
550
583
  // Closed
551
584
  transform: scale(0);
552
585
  }
553
586
 
554
- @include mdw-breakpoint__xsmall-window {
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: $mdw-motion__collapse-duration;
596
+ transition-duration: motion.$collapseDuration;
564
597
  transition-property: transform;
565
- transition-timing-function: $mdw-motion__accelerate-easing;
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: mdwElevation(0);
607
+ box-shadow: elevation.boxShadow(0);
575
608
  }
576
609
  }
577
610
  }
578
611
 
579
- @include mdw-breakpoint__small-window {
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: $mdw-motion__collapse-duration;
621
+ transition-duration: motion.$collapseDuration;
589
622
  transition-property: transform;
590
- transition-timing-function: $mdw-motion__accelerate-easing;
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: mdwElevation(0);
632
+ box-shadow: elevation.boxShadow(0);
600
633
  }
601
634
  }
602
635
  }
603
636
 
604
- @include mdw-breakpoint__small-window__max {
637
+ @include breakpoint.maxSmallWindow {
605
638
  .mdw-layout__appbar[mdw-bottom] {
606
- @include mdw-layout__grid-row($mdw-layout__bottom-row);
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: mdwElevation(8);
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(#{$mdw-layout__fab-size / 2});
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: mdwElevation(8, true);
657
+ filter: elevation.filter(8);
625
658
 
626
- box-shadow: mdwElevation(0);
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: $mdw-motion__expand-duration;
638
- transition-timing-function: $mdw-motion__decelerate-easing;
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: $mdw-motion__collapse-duration;
686
+ transition-duration: motion.$collapseDuration;
654
687
  transition-property: transform;
655
- transition-timing-function: $mdw-motion__accelerate-easing;
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: mdwElevation(0);
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 / 2);
679
- @include mdw-breakpoint__16dp-margin {
680
- padding: dp(16 / 2);
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 mdw-breakpoint__16dp-margin {
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: #{$mdw-layout__fab-size + dp(24)};
726
+ padding-bottom: #{$fabSize + dp(24)};
697
727
  }
698
728
 
699
729
  &[aria-hidden="false"] .mdw-fab {
700
- transition-duration: $mdw-motion__expand-duration;
701
- transition-timing-function: $mdw-motion__decelerate-easing;
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: $mdw-layout__fab-cut-delay;
738
- transition-duration: $mdw-motion__expand-duration;
739
- transition-timing-function: $mdw-motion__decelerate-easing;
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(-$mdw-layout__fab-size / 2);
783
+ transform: translateY(-$fabSize * 0.5);
754
784
  }
755
785
  }
756
786
  }
757
787
 
758
- @include mdw-breakpoint__medium-window__min {
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: $mdw-layout__body-overflow-y;
824
+ overflow-y: $bodyOverflowY;
795
825
 
796
826
  & > .mdw-layout__content {
797
- overflow-y: $mdw-layout__content-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: $mdw-motion__expand-duration;
804
- transition-timing-function: $mdw-motion__decelerate-easing;
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: #{$mdw-layout__fab-size + dp(24)};
840
+ padding-bottom: #{$fabSize + dp(24)};
811
841
  }
812
842
  }
813
843
 
814
844
  .mdw-layout__fab[mdw-desktop="appbar"] {
815
- @include mdw-layout__grid-row($mdw-layout__top-row);
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: $mdw-motion__expand-duration;
823
- transition-timing-function: $mdw-motion__decelerate-easing;
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 mdw-layout__grid-row($mdw-layout__banner-row, $mdw-layout__bottom-row);
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 mdw-layout__grid-column($mdw-layout__navdrawer-column, $mdw-layout__content-column);
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 mdw-layout__grid-column($mdw-layout__content-column, $mdw-layout__sidesheet-column);
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 mdw-layout__grid-column($mdw-layout__navdrawer-column, $mdw-layout__sidesheet-column);
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 mdw-layout__grid-row($mdw-layout__content-row, $mdw-layout__bottom-row);
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 mdw-layout__grid-column($mdw-layout__navdrawer-column, $mdw-layout__content-column);
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 mdw-layout__grid-column($mdw-layout__content-column, $mdw-layout__sidesheet-column);
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 mdw-layout__grid-column($mdw-layout__navdrawer-column, $mdw-layout__sidesheet-column);
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: mdwElevation(8);
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: $mdw-motion__collapse-duration;
962
+ transition-duration: motion.$collapseDuration;
933
963
  transition-property: width, max-width, margin, transform, visibility;
934
- transition-timing-function: $mdw-motion__accelerate-easing;
964
+ transition-timing-function: motion.$accelerateEasing;
935
965
 
936
966
  visibility: hidden;
937
967
 
938
968
  .mdw-layout__sheet-content {
939
- box-shadow: mdwElevation(0);
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: $mdw-layout__sheet-max-width__mini;
946
- width: $mdw-layout__sheet-max-width__mini;
975
+ max-width: $sheetMaxWidthMini;
976
+ width: $sheetMaxWidthMini;
947
977
 
948
- transition-duration: $mdw-motion__collapse-duration;
949
- transition-timing-function: $mdw-motion__accelerate-easing;
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: $mdw-layout__sheet-max-width__mini;
956
- width: $mdw-layout__sheet-max-width__mini;
985
+ max-width: $sheetMaxWidthMini;
986
+ width: $sheetMaxWidthMini;
957
987
 
958
- transition-duration: $mdw-motion__collapse-duration;
959
- transition-timing-function: $mdw-motion__accelerate-easing;
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: mdwElevation(0);
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: $mdw-layout__body-overflow-y__sticky;
1006
+ overflow-y: $bodyOverflowYSticky;
977
1007
 
978
1008
  & > .mdw-layout__content {
979
- overflow-y: $mdw-layout__content-overflow-y__sticky;
1009
+ overflow-y: $contentOverflowYSticky;
980
1010
  }
981
1011
  }
982
1012
  }