@shortfuse/materialdesignweb 0.2.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/.browserslistrc +2 -1
  2. package/.eslintrc.json +188 -30
  3. package/.stylelintrc.json +643 -2
  4. package/.vscode/launch.json +20 -5
  5. package/.vscode/settings.json +3 -0
  6. package/CHANGELOG.md +36 -0
  7. package/README.md +82 -2
  8. package/adapters/datatable/column.js +176 -0
  9. package/adapters/datatable/index.js +253 -437
  10. package/adapters/dom/index.js +586 -0
  11. package/adapters/list/index.js +36 -113
  12. package/adapters/search/index.js +153 -180
  13. package/components/appbar/_spec.scss +165 -0
  14. package/components/appbar/_theme.scss +0 -0
  15. package/components/appbar/index.scss +2 -0
  16. package/components/banner/_spec.scss +83 -0
  17. package/components/banner/_theme.scss +0 -0
  18. package/components/banner/index.scss +2 -0
  19. package/components/bottomnav/README.md +4 -4
  20. package/components/bottomnav/_spec.scss +149 -0
  21. package/components/bottomnav/_theme.scss +0 -0
  22. package/components/bottomnav/index.js +100 -120
  23. package/components/bottomnav/index.scss +2 -0
  24. package/components/bottomnav/item.js +88 -0
  25. package/components/button/README.md +16 -22
  26. package/components/button/_spec.scss +162 -0
  27. package/components/button/_theme.scss +42 -0
  28. package/components/button/index.eta +32 -0
  29. package/components/button/index.js +37 -48
  30. package/components/button/index.pug +18 -0
  31. package/components/button/index.scss +2 -0
  32. package/components/card/_spec.scss +241 -0
  33. package/components/card/_theme.scss +0 -0
  34. package/components/card/index.scss +2 -0
  35. package/components/chip/_spec.scss +111 -0
  36. package/components/chip/_theme.scss +105 -0
  37. package/components/chip/index.js +23 -0
  38. package/components/chip/index.scss +2 -0
  39. package/components/chip/item.js +20 -0
  40. package/components/datatable/_spec.scss +225 -0
  41. package/components/datatable/_theme.scss +128 -0
  42. package/components/datatable/cell.js +44 -0
  43. package/components/datatable/columnheader.js +46 -0
  44. package/components/datatable/index.js +339 -443
  45. package/components/datatable/index.scss +2 -0
  46. package/components/datatable/row.js +48 -0
  47. package/components/datatable/rowheader.js +18 -0
  48. package/components/dialog/_spec.scss +203 -0
  49. package/components/dialog/_theme.scss +7 -0
  50. package/components/dialog/index.js +512 -437
  51. package/components/dialog/index.scss +2 -0
  52. package/components/divider/_spec.scss +11 -0
  53. package/components/divider/_theme.scss +0 -0
  54. package/components/divider/index.scss +2 -0
  55. package/components/elevation/_spec.scss +9 -0
  56. package/components/elevation/_theme.scss +0 -0
  57. package/components/elevation/index.scss +2 -0
  58. package/components/fab/{style.scss → _spec.scss} +104 -79
  59. package/components/fab/_theme.scss +0 -0
  60. package/components/fab/index.js +85 -79
  61. package/components/fab/index.scss +2 -0
  62. package/components/grid/_spec.scss +169 -0
  63. package/components/grid/_theme.scss +0 -0
  64. package/components/grid/index.scss +2 -0
  65. package/components/layout/_mixins.scss +11 -0
  66. package/components/layout/_spec.scss +916 -0
  67. package/components/layout/_theme.scss +19 -0
  68. package/components/layout/index.js +454 -0
  69. package/components/layout/index.scss +2 -0
  70. package/components/list/_spec.scss +363 -0
  71. package/components/list/_theme.scss +102 -0
  72. package/components/list/content.js +106 -0
  73. package/components/list/index.js +234 -79
  74. package/components/list/index.scss +2 -0
  75. package/components/list/item.js +167 -0
  76. package/components/list/secondary.js +45 -0
  77. package/components/menu/_spec.scss +329 -0
  78. package/components/menu/_theme.scss +0 -0
  79. package/components/menu/index.js +636 -651
  80. package/components/menu/index.scss +2 -0
  81. package/components/menu/item.js +231 -0
  82. package/components/progress/_spec.scss +156 -0
  83. package/components/progress/_theme.scss +0 -0
  84. package/components/progress/index.js +29 -13
  85. package/components/progress/index.scss +2 -0
  86. package/components/selection/_spec.scss +376 -0
  87. package/components/selection/_theme.scss +134 -0
  88. package/components/selection/index.eta +60 -0
  89. package/components/selection/index.js +70 -0
  90. package/components/selection/index.pug +30 -0
  91. package/components/selection/index.scss +2 -0
  92. package/components/selection/input.js +54 -0
  93. package/components/selection/radiogroup.js +40 -0
  94. package/components/slider/{style.scss → _spec.scss} +31 -34
  95. package/components/slider/_theme.scss +0 -0
  96. package/components/slider/index.scss +2 -0
  97. package/components/snackbar/_spec.scss +150 -0
  98. package/components/snackbar/_theme.scss +0 -0
  99. package/components/snackbar/index.js +293 -206
  100. package/components/snackbar/index.scss +2 -0
  101. package/components/tab/_spec.scss +220 -0
  102. package/components/tab/_theme.scss +0 -0
  103. package/components/tab/content.js +210 -0
  104. package/components/tab/index.js +229 -213
  105. package/components/tab/index.scss +2 -0
  106. package/components/tab/item.js +88 -0
  107. package/components/tab/list.js +196 -0
  108. package/components/tab/panel.js +54 -0
  109. package/components/textfield/README.md +4 -4
  110. package/components/textfield/_spec.scss +763 -0
  111. package/components/textfield/_theme.scss +264 -0
  112. package/components/textfield/index.eta +74 -0
  113. package/components/textfield/index.js +132 -138
  114. package/components/textfield/index.pug +30 -0
  115. package/components/textfield/index.scss +2 -0
  116. package/components/tooltip/_spec.scss +185 -0
  117. package/components/tooltip/_theme.scss +0 -0
  118. package/components/tooltip/index.scss +2 -0
  119. package/components/type/_spec.scss +227 -0
  120. package/components/type/_theme.scss +0 -0
  121. package/components/type/index.scss +2 -0
  122. package/core/_breakpoint.scss +189 -0
  123. package/core/_elevation.scss +78 -0
  124. package/core/_length.scss +8 -0
  125. package/core/_motion.scss +31 -0
  126. package/core/_platform.scss +12 -0
  127. package/core/_type.scss +128 -0
  128. package/core/aria/attributes.js +141 -0
  129. package/core/aria/button.js +49 -0
  130. package/core/aria/keyboard.js +92 -0
  131. package/core/aria/rovingtabindex.js +175 -0
  132. package/core/aria/tab.js +59 -0
  133. package/core/document/index.js +39 -0
  134. package/core/dom.js +180 -0
  135. package/core/overlay/_spec.scss +28 -0
  136. package/core/overlay/_theme.scss +147 -0
  137. package/core/overlay/index.js +95 -0
  138. package/core/overlay/index.scss +2 -0
  139. package/core/ripple/_spec.scss +196 -0
  140. package/core/ripple/_theme.scss +20 -0
  141. package/core/ripple/index.js +286 -0
  142. package/core/ripple/index.scss +2 -0
  143. package/core/theme/_aliases.scss +15 -0
  144. package/core/theme/_config.scss +8 -0
  145. package/core/theme/_functions.scss +22 -0
  146. package/{components/theming/palettes.scss → core/theme/_palettes.scss} +173 -151
  147. package/core/theme/_spec.scss +0 -0
  148. package/core/theme/_theme.scss +268 -0
  149. package/core/theme/index.js +50 -0
  150. package/core/theme/index.scss +4 -0
  151. package/core/throttler.js +42 -0
  152. package/core/transition/index.js +465 -0
  153. package/docs/_flex.scss +28 -0
  154. package/docs/_menuoptions.js +183 -0
  155. package/docs/_partials/_androidnavbar.eta +5 -0
  156. package/docs/_partials/_androidstatusbar.eta +13 -0
  157. package/docs/_partials/_appbar.eta +27 -0
  158. package/docs/_partials/_buttontest.eta +31 -0
  159. package/docs/_partials/_header.eta +146 -0
  160. package/docs/_partials/_navlistitem.eta +16 -0
  161. package/docs/_partials/_target.eta +1 -0
  162. package/docs/_sample-utils.js +88 -0
  163. package/docs/{src/storage.js → _storage.js} +0 -0
  164. package/docs/docs.scss +331 -0
  165. package/docs/framework.scss +26 -0
  166. package/docs/index.eta +12 -0
  167. package/docs/index.js +7 -0
  168. package/docs/pages/appbar.eta +108 -0
  169. package/docs/pages/appbar.js +0 -0
  170. package/docs/pages/bottomnav.eta +188 -0
  171. package/docs/pages/bottomnav.js +118 -0
  172. package/docs/pages/button.eta +124 -0
  173. package/docs/pages/button.js +224 -0
  174. package/docs/pages/card.eta +90 -0
  175. package/docs/pages/card.js +175 -0
  176. package/docs/pages/chip.eta +122 -0
  177. package/docs/pages/chip.js +80 -0
  178. package/docs/pages/color.eta +143 -0
  179. package/docs/pages/color.js +261 -0
  180. package/docs/pages/datatable.eta +323 -0
  181. package/docs/pages/datatable.js +160 -0
  182. package/docs/pages/dialog.eta +184 -0
  183. package/docs/{src/components → pages}/dialog.js +35 -48
  184. package/docs/pages/dom.eta +26 -0
  185. package/docs/pages/dom.js +140 -0
  186. package/docs/pages/elevation.eta +35 -0
  187. package/docs/pages/elevation.js +0 -0
  188. package/docs/pages/fab.eta +99 -0
  189. package/docs/{src/components → pages}/fab.js +6 -13
  190. package/docs/pages/grid.eta +135 -0
  191. package/docs/pages/grid.js +128 -0
  192. package/docs/pages/layout.eta +8 -0
  193. package/docs/pages/layout.js +0 -0
  194. package/docs/pages/list.eta +465 -0
  195. package/docs/pages/list.js +8 -0
  196. package/docs/pages/menu.eta +274 -0
  197. package/docs/{src/components → pages}/menu.js +26 -42
  198. package/docs/pages/overlay.eta +69 -0
  199. package/docs/pages/overlay.js +3 -0
  200. package/docs/pages/progress.eta +23 -0
  201. package/docs/{src/components → pages}/progress.js +2 -4
  202. package/docs/pages/ripple.eta +27 -0
  203. package/docs/pages/ripple.js +3 -0
  204. package/docs/pages/search.eta +242 -0
  205. package/docs/pages/search.js +226 -0
  206. package/docs/pages/selection.eta +107 -0
  207. package/docs/pages/selection.js +12 -0
  208. package/docs/pages/slider.eta +23 -0
  209. package/docs/pages/slider.js +0 -0
  210. package/docs/pages/snackbar.eta +83 -0
  211. package/docs/{src/components → pages}/snackbar.js +31 -36
  212. package/docs/pages/tab.eta +407 -0
  213. package/docs/pages/tab.js +152 -0
  214. package/docs/pages/textfield.eta +487 -0
  215. package/docs/{src/components → pages}/textfield.js +41 -45
  216. package/docs/pages/tooltip.eta +92 -0
  217. package/docs/pages/tooltip.js +0 -0
  218. package/docs/pages/transition.eta +117 -0
  219. package/docs/pages/transition.js +52 -0
  220. package/docs/pages/type.eta +31 -0
  221. package/docs/pages/type.js +0 -0
  222. package/docs/postrender.js +41 -0
  223. package/docs/prerender.js +16 -0
  224. package/docs/pwa/_dialogs.eta +143 -0
  225. package/docs/pwa/_menus.eta +16 -0
  226. package/docs/pwa/pwa-prerender.js +3 -0
  227. package/docs/pwa/pwa.eta +478 -0
  228. package/docs/pwa/pwa.js +298 -0
  229. package/docs/pwa/pwa.scss +31 -0
  230. package/docs/themes/theme-colored.scss +15 -0
  231. package/docs/themes/theme-default.scss +3 -0
  232. package/index.scss +27 -0
  233. package/jsconfig.json +8 -2
  234. package/package.json +54 -27
  235. package/scripts/deploy-docs.sh +9 -0
  236. package/templates/index.eta +2 -0
  237. package/templates/index.pug +3 -0
  238. package/tsconfig.json +16 -0
  239. package/utils/function.js +3 -0
  240. package/webpack.config.js +224 -68
  241. package/_index.scss +0 -4
  242. package/components/all-components.scss +0 -21
  243. package/components/bottomnav/style.scss +0 -190
  244. package/components/bottomnav/theming.scss +0 -76
  245. package/components/button/style.scss +0 -315
  246. package/components/button/theming.scss +0 -134
  247. package/components/card/style.scss +0 -175
  248. package/components/card/theming.scss +0 -43
  249. package/components/common/dom.js +0 -51
  250. package/components/common/functions.scss +0 -174
  251. package/components/common/mixins.scss +0 -122
  252. package/components/common/motion.scss +0 -36
  253. package/components/common/type.scss +0 -104
  254. package/components/common/variables.scss +0 -46
  255. package/components/datatable/style.scss +0 -257
  256. package/components/datatable/theming.scss +0 -119
  257. package/components/dialog/style.scss +0 -159
  258. package/components/dialog/theming.scss +0 -29
  259. package/components/divider/style.scss +0 -7
  260. package/components/divider/theming.scss +0 -20
  261. package/components/elevation/style.scss +0 -32
  262. package/components/layout/style.scss +0 -223
  263. package/components/list/style.scss +0 -358
  264. package/components/list/theming.scss +0 -83
  265. package/components/menu/style.scss +0 -280
  266. package/components/menu/theming.scss +0 -80
  267. package/components/navdrawer/index.js +0 -200
  268. package/components/navdrawer/style.scss +0 -595
  269. package/components/navdrawer/theming.scss +0 -62
  270. package/components/progress/style.scss +0 -136
  271. package/components/ripple/index.js +0 -63
  272. package/components/ripple/ripple.scss +0 -122
  273. package/components/selection/style.scss +0 -320
  274. package/components/selection/theming.scss +0 -98
  275. package/components/snackbar/style.scss +0 -212
  276. package/components/switch/style.scss +0 -3
  277. package/components/tab/style.scss +0 -275
  278. package/components/tab/theming.scss +0 -34
  279. package/components/template/theming.scss +0 -31
  280. package/components/textfield/style.scss +0 -795
  281. package/components/textfield/theming.scss +0 -256
  282. package/components/theming/globals.scss +0 -25
  283. package/components/theming/theming.scss +0 -559
  284. package/components/toolbar/style.scss +0 -190
  285. package/components/toolbar/theming.scss +0 -32
  286. package/components/tooltip/style.scss +0 -135
  287. package/components/type/style.scss +0 -167
  288. package/components/type/theming.scss +0 -25
  289. package/docs/bottomnav.html +0 -1
  290. package/docs/bottomnav.min.js +0 -2
  291. package/docs/bottomnav.min.js.map +0 -1
  292. package/docs/button.html +0 -1
  293. package/docs/button.min.js +0 -2
  294. package/docs/button.min.js.map +0 -1
  295. package/docs/card.html +0 -1
  296. package/docs/card.min.js +0 -2
  297. package/docs/card.min.js.map +0 -1
  298. package/docs/components.min.css +0 -1
  299. package/docs/components.min.js +0 -2
  300. package/docs/components.min.js.map +0 -1
  301. package/docs/datatable.html +0 -1
  302. package/docs/datatable.min.js +0 -2
  303. package/docs/datatable.min.js.map +0 -1
  304. package/docs/dialog.html +0 -1
  305. package/docs/dialog.min.js +0 -2
  306. package/docs/dialog.min.js.map +0 -1
  307. package/docs/docs.min.css +0 -1
  308. package/docs/docs.min.js +0 -2
  309. package/docs/docs.min.js.map +0 -1
  310. package/docs/elevation.html +0 -1
  311. package/docs/elevation.min.js +0 -2
  312. package/docs/elevation.min.js.map +0 -1
  313. package/docs/fab.html +0 -1
  314. package/docs/fab.min.js +0 -2
  315. package/docs/fab.min.js.map +0 -1
  316. package/docs/index.html +0 -1
  317. package/docs/index.min.js +0 -2
  318. package/docs/index.min.js.map +0 -1
  319. package/docs/layout.html +0 -1
  320. package/docs/layout.min.js +0 -2
  321. package/docs/layout.min.js.map +0 -1
  322. package/docs/list.html +0 -1
  323. package/docs/list.min.js +0 -2
  324. package/docs/list.min.js.map +0 -1
  325. package/docs/menu.html +0 -1
  326. package/docs/menu.min.js +0 -2
  327. package/docs/menu.min.js.map +0 -1
  328. package/docs/navdrawer.html +0 -1
  329. package/docs/navdrawer.min.js +0 -2
  330. package/docs/navdrawer.min.js.map +0 -1
  331. package/docs/prerender.min.js +0 -2
  332. package/docs/prerender.min.js.map +0 -1
  333. package/docs/progress.html +0 -1
  334. package/docs/progress.min.js +0 -2
  335. package/docs/progress.min.js.map +0 -1
  336. package/docs/search.html +0 -1
  337. package/docs/search.min.js +0 -2
  338. package/docs/search.min.js.map +0 -1
  339. package/docs/selection.html +0 -1
  340. package/docs/selection.min.js +0 -2
  341. package/docs/selection.min.js.map +0 -1
  342. package/docs/slider.html +0 -1
  343. package/docs/slider.min.js +0 -2
  344. package/docs/slider.min.js.map +0 -1
  345. package/docs/snackbar.html +0 -1
  346. package/docs/snackbar.min.js +0 -2
  347. package/docs/snackbar.min.js.map +0 -1
  348. package/docs/src/components/bottomnav.js +0 -16
  349. package/docs/src/components/bottomnav.pug +0 -112
  350. package/docs/src/components/button.js +0 -156
  351. package/docs/src/components/button.pug +0 -194
  352. package/docs/src/components/card.js +0 -136
  353. package/docs/src/components/card.pug +0 -133
  354. package/docs/src/components/datatable.js +0 -183
  355. package/docs/src/components/datatable.pug +0 -324
  356. package/docs/src/components/dialog.pug +0 -138
  357. package/docs/src/components/elevation.js +0 -3
  358. package/docs/src/components/elevation.pug +0 -17
  359. package/docs/src/components/fab.pug +0 -84
  360. package/docs/src/components/layout.js +0 -116
  361. package/docs/src/components/layout.pug +0 -104
  362. package/docs/src/components/list.js +0 -15
  363. package/docs/src/components/list.pug +0 -293
  364. package/docs/src/components/menu.pug +0 -292
  365. package/docs/src/components/navdrawer.js +0 -112
  366. package/docs/src/components/navdrawer.pug +0 -113
  367. package/docs/src/components/progress.pug +0 -17
  368. package/docs/src/components/search.js +0 -206
  369. package/docs/src/components/search.pug +0 -149
  370. package/docs/src/components/selection.js +0 -6
  371. package/docs/src/components/selection.pug +0 -116
  372. package/docs/src/components/slider.js +0 -3
  373. package/docs/src/components/slider.pug +0 -19
  374. package/docs/src/components/snackbar.pug +0 -145
  375. package/docs/src/components/tab.js +0 -137
  376. package/docs/src/components/tab.pug +0 -329
  377. package/docs/src/components/textfield.pug +0 -416
  378. package/docs/src/components/toolbar.js +0 -6
  379. package/docs/src/components/toolbar.pug +0 -86
  380. package/docs/src/components/tooltip.js +0 -6
  381. package/docs/src/components/tooltip.pug +0 -76
  382. package/docs/src/components/type.js +0 -6
  383. package/docs/src/components/type.pug +0 -34
  384. package/docs/src/components.scss +0 -1
  385. package/docs/src/docs.scss +0 -284
  386. package/docs/src/index.js +0 -3
  387. package/docs/src/index.pug +0 -6
  388. package/docs/src/menuoptions.js +0 -136
  389. package/docs/src/mixins.pug +0 -139
  390. package/docs/src/prerender.js +0 -26
  391. package/docs/src/sample-utils.js +0 -108
  392. package/docs/src/targetHandler.js +0 -50
  393. package/docs/src/theming.ie11.scss +0 -18
  394. package/docs/src/theming.scss +0 -18
  395. package/docs/tab.html +0 -1
  396. package/docs/tab.min.js +0 -2
  397. package/docs/tab.min.js.map +0 -1
  398. package/docs/textfield.html +0 -2
  399. package/docs/textfield.min.js +0 -2
  400. package/docs/textfield.min.js.map +0 -1
  401. package/docs/theming.ie11.min.css +0 -1
  402. package/docs/theming.ie11.min.js +0 -2
  403. package/docs/theming.ie11.min.js.map +0 -1
  404. package/docs/theming.min.css +0 -1
  405. package/docs/theming.min.js +0 -2
  406. package/docs/theming.min.js.map +0 -1
  407. package/docs/toolbar.html +0 -1
  408. package/docs/toolbar.min.js +0 -2
  409. package/docs/toolbar.min.js.map +0 -1
  410. package/docs/tooltip.html +0 -1
  411. package/docs/tooltip.min.js +0 -2
  412. package/docs/tooltip.min.js.map +0 -1
  413. package/docs/type.html +0 -1
  414. package/docs/type.min.js +0 -2
  415. package/docs/type.min.js.map +0 -1
  416. package/index.js +0 -16
@@ -1,190 +0,0 @@
1
- // https://material.io/guidelines/layout/structure.html#structure-app-bar
2
- // https://material.io/guidelines/components/toolbars.html
3
-
4
- @import '../common/functions.scss';
5
- @import '../common/variables.scss';
6
- @import '../common/motion.scss';
7
- @import '../common/mixins.scss';
8
- @import '../common//type.scss';
9
-
10
- $toolbar__height: 64;
11
- $toolbar__height-dense: 48;
12
- $toolbar__height-mobile: 56;
13
- $toolbar__height-mobile-landscape: 48;
14
- $toolbar__height-prominent: 128;
15
- $toolbar__height-prominent-dense: 96;
16
- $toolbar__icon-height: 40;
17
-
18
- .mdw-toolbar {
19
- position: relative;
20
- display:flex;
21
- flex-direction: column;
22
- box-shadow: elevation(4);
23
- z-index: 4;
24
- &[mdw-app-bar] {
25
- html[mdw-ios][mdw-standalone] & {
26
- padding-top: 20px;
27
- padding-top: constant(safe-area-inset-top);
28
- padding-top: env(safe-area-inset-top);
29
- }
30
- }
31
- transition-timing-function: $motion-easing-standard;
32
- transition-duration: $motion-duration-desktop-default;
33
- @include allHandsets {
34
- transition-duration: $motion-duration-mobile-default;
35
- }
36
- @include allTablets {
37
- transition-duration: $motion-duration-tablet-default;
38
- }
39
- }
40
-
41
- .mdw-toolbar__action {
42
- display: flex;
43
- flex-direction: row;
44
- min-height: dp($toolbar__height);
45
- justify-content: space-between;
46
- .mdw-toolbar[mdw-prominent] > & {
47
- min-height: dp($toolbar__height-prominent);
48
- }
49
- .mdw-toolbar[mdw-dense] > & {
50
- min-height: dp($toolbar__height-dense);
51
- }
52
- .mdw-toolbar[mdw-dense][mdw-prominent] > & {
53
- min-height: dp($toolbar__height-prominent-dense);
54
- @include allHandsetsAndTablets {
55
- min-height: dp($toolbar__height-prominent);
56
- }
57
- }
58
- .mdw-toolbar[mdw-dense] > &,
59
- & {
60
- @include allHandsetsAndTablets {
61
- min-height: dp($toolbar__height-mobile);
62
- }
63
- @include landscapeHandsets {
64
- min-height: dp($toolbar__height-mobile-landscape);
65
- }
66
- }
67
- transition-property: min-height;
68
- transition-timing-function: inherit;
69
- transition-duration: inherit;
70
- }
71
-
72
- .mdw-toolbar__content {
73
- margin-left: dp(80);
74
- margin-right: dp(24);
75
- @include gutter16dp {
76
- margin-left: dp(72);
77
- margin-right: dp(16);
78
- }
79
- flex-grow: 1;
80
- flex-direction: column;
81
- display: flex;
82
- }
83
-
84
- .mdw-toolbar__title {
85
- flex-grow: 1;
86
- overflow-x: hidden;
87
- white-space: nowrap;
88
- text-overflow: ellipsis;
89
- margin: 0 dp(16);
90
- height: auto;
91
- align-self: flex-end;
92
- justify-content: space-around;
93
- &[mdw-centered] {
94
- flex-grow: 0;
95
- }
96
- @include type-rules('h6');
97
- @include baseline-bottom(24);
98
-
99
- .mdw-toolbar[mdw-dense] & {
100
- @include baseline-bottom(16);
101
- }
102
- .mdw-toolbar[mdw-dense] &,
103
- & {
104
- @include allHandsetsAndTablets {
105
- @include baseline-bottom(20);
106
- }
107
- @include landscapeHandsets {
108
- @include baseline-bottom(16);
109
- }
110
- }
111
-
112
- .mdw-toolbar[mdw-prominent] & {
113
- white-space: normal;
114
- @include type-rules('h5');
115
- @include baseline-bottom(28);
116
- }
117
- &[mdw-custom]::after {
118
- display: none;
119
- }
120
-
121
- // Animation
122
- transition-property: font, letter-spacing;
123
- transition-timing-function: inherit;
124
- transition-duration: inherit;
125
- }
126
-
127
- .mdw-toolbar__start {
128
- order: -1;
129
- margin-left: dp(8);
130
- padding: 0 dp(8);
131
- @include gutter16dp {
132
- margin-left: 0;
133
- }
134
- }
135
-
136
- .mdw-toolbar__end {
137
- order: 1;
138
- margin-left: 0;
139
- margin-right: dp(12);
140
- @include gutter16dp {
141
- margin-left: 0;
142
- margin-right: dp(4);
143
- }
144
- [dir=rtl] & {
145
- margin-left: dp(12);
146
- margin-right: 0;
147
- @include gutter16dp {
148
- margin-left: dp(4);
149
- margin-right: 0;
150
- }
151
- }
152
- }
153
-
154
-
155
- .mdw-toolbar__start,
156
- .mdw-toolbar__end {
157
- display: flex;
158
- flex-direction: row;
159
- align-items: flex-start;
160
- transition-property: margin-top;
161
- margin-top: dp(($toolbar__height - $toolbar__icon-height) / 2);
162
- .mdw-toolbar[mdw-dense] & {
163
- margin-top: dp(($toolbar__height-dense - $toolbar__icon-height) / 2);
164
- }
165
- &,
166
- .mdw-toolbar[mdw-dense] & {
167
- @include allHandsetsAndTablets {
168
- margin-top: dp(($toolbar__height-mobile - $toolbar__icon-height) / 2);
169
- }
170
- @include landscapeHandsets {
171
- margin-top: dp(($toolbar__height-mobile-landscape - $toolbar__icon-height) / 2);
172
- }
173
- }
174
- }
175
-
176
- .mdw-toolbar__start .mdw-button {
177
- margin: 0;
178
- }
179
-
180
- .mdw-toolbar__end .mdw-button {
181
- margin: 0 dp(4);
182
- &[mdw-more-button] {
183
- margin-left: 0;
184
- margin-right: dp(-2);
185
- [dir=rtl] & {
186
- margin-left: dp(-2);
187
- margin-right: 0;
188
- }
189
- }
190
- }
@@ -1,32 +0,0 @@
1
- @import '../common/functions.scss';
2
- @import '../common/mixins.scss';
3
-
4
- $toolbarColors: (
5
- text-color: ((#000, 0.87), (#fff, 1.00)),
6
- background: (('background', '100', 1.00), ('background', '900', 1.00))
7
- );
8
-
9
-
10
- @function toolbarThemeValue($key, $type, $theme) {
11
- @return themeValue('toolbar', $toolbarColors, $key, $type, $theme);
12
- }
13
-
14
- @mixin toolbarThemeVariables($color, $lightness) {
15
- @include themeVariables('toolbar', $toolbarColors, $color, $lightness);
16
- }
17
-
18
- @mixin toolbarContrastRules($type: 'var', $theme: null) {
19
- @at-root {
20
- #{&}.mdw-toolbar {
21
- .mdw-toolbar__content,
22
- .mdw-toolbar__title,
23
- .mdw-toolbar__start,
24
- .mdw-toolbar__end {
25
- color: toolbarThemeValue("text-color", $type, $theme);
26
- }
27
- &:not([mdw-theme-fill]) {
28
- background-color: toolbarThemeValue("background", $type, $theme);
29
- }
30
- }
31
- }
32
- }
@@ -1,135 +0,0 @@
1
- // https://material.io/design/components/tooltips.html#spec
2
-
3
- $tooltip__margin__desktop: dp(14);
4
- $tooltip__margin__mobile: dp(24);
5
- $tooltip__background-color: #616161; // material-grey-700
6
-
7
- @import '../common/type.scss';
8
-
9
- .mdw-tooltip__wrapper {
10
- position: relative;
11
- overflow: visible;
12
- }
13
-
14
- .mdw-tooltip {
15
-
16
- position: absolute;
17
- top: 100%;
18
- left: 50%;
19
- width: auto;
20
- padding-left: dp(8);
21
- padding-right: dp(8);
22
- min-height: dp(24);
23
- transform: translateX(-50%) translateY($tooltip__margin__desktop);
24
-
25
- display: flex;
26
- flex-direction: column;
27
- align-items: center;
28
- justify-content: center;
29
-
30
- @include type-rules('caption');
31
-
32
- background-color: $tooltip__background-color;
33
- border-radius: dp(4);
34
- color: white;
35
- cursor: none;
36
- white-space: nowrap;
37
- pointer-events: none;
38
- z-index: 8;
39
-
40
- opacity: 0;
41
- transition-property: opacity;
42
- transition-duration: 150ms;
43
- transition-timing-function: $motion-easing-deceleration;
44
-
45
- .mdw-tooltip__target:hover > &,
46
- .mdw-tooltip__target:focus > &,
47
- .mdw-tooltip__wrapper > .mdw-tooltip__target:hover ~ &,
48
- .mdw-tooltip__wrapper > .mdw-tooltip__target:not([tabindex="-1"]):focus ~ & {
49
- opacity: 0.9;
50
- transition-timing-function: $motion-easing-acceleration;
51
- }
52
-
53
- &[mdw-position="start"],
54
- &[mdw-position="end"],
55
- &[mdw-position="left"],
56
- &[mdw-position="right"] {
57
- left: 0;
58
- top: 50%;
59
- }
60
-
61
- &[mdw-position="start"],
62
- &[mdw-position="left"],
63
- [dir=rtl] &[mdw-position="end"] {
64
- transform: translateY(-50%) translateX(-100%) translateX(-$tooltip__margin__desktop);
65
- }
66
-
67
- &[mdw-position="end"],
68
- &[mdw-position="right"],
69
- [dir=rtl] &[mdw-position="start"] {
70
- transform: translateY(-50%) translateX(100%) translateX($tooltip__margin__desktop);
71
- }
72
-
73
- &[mdw-position="top"] {
74
- top: 0;
75
- transform: translateX(-50%) translateY(-100%) translateY(-$tooltip__margin__desktop);
76
- }
77
-
78
- }
79
-
80
- // Button position fix
81
- .mdw-tooltip__wrapper > .mdw-button[mdw-icon] ~ .mdw-tooltip {
82
- margin-top: -8px;
83
- &[mdw-position="top"] {
84
- margin-top: 8px;
85
- }
86
- }
87
-
88
- // Menu flicker fix
89
- .mdw-menu__wrapper > .mdw-menu:target ~ .mdw-tooltip,
90
- .mdw-menu__wrapper > .mdw-menu[mdw-show]:not([mdw-hide]) ~ .mdw-tooltip {
91
- opacity: 0;
92
- transition-delay: 0;
93
- }
94
-
95
- @media (any-pointer: coarse) {
96
- .mdw-tooltip {
97
- transition-delay: 1.5s;
98
- font-size: sp(14);
99
- min-height: dp(32);
100
- padding-left: dp(16);
101
- padding-right: dp(16);
102
- transform: translateX(-50%) translateY($tooltip__margin__mobile);
103
-
104
- &[mdw-position="start"],
105
- &[mdw-position="left"],
106
- [dir=rtl] &[mdw-position="end"] {
107
- transform: translateY(-50%) translateX(-100%) translateX(-$tooltip__margin__mobile);
108
- }
109
-
110
- &[mdw-position="end"],
111
- &[mdw-position="right"],
112
- [dir=rtl] &[mdw-position="start"] {
113
- transform: translateY(-50%) translateX(100%) translateX($tooltip__margin__mobile);
114
- }
115
-
116
- &[mdw-position="top"] {
117
- transform: translateX(-50%) translateY(-100%) translateY(-$tooltip__margin__mobile);
118
- }
119
-
120
- // Don't change opacity unless active
121
- .mdw-tooltip__target:hover:not(:active) > &,
122
- .mdw-tooltip__target:focus:not(:active) > &,
123
- .mdw-tooltip__wrapper > .mdw-tooltip__target:hover:not(:active) ~ &,
124
- .mdw-tooltip__wrapper > .mdw-tooltip__target:not([tabindex="-1"]):focus:not(:active) ~ & {
125
- opacity: 0;
126
- }
127
-
128
- .mdw-tooltip__target:active > &,
129
- .mdw-tooltip__wrapper > .mdw-tooltip__target:active ~ .mdw-tooltip {
130
- opacity: 0.9;
131
- transition-timing-function: $motion-easing-acceleration;
132
- }
133
- }
134
-
135
- }
@@ -1,167 +0,0 @@
1
- // https://material.io/guidelines/style/typography.html
2
-
3
- @import '../common//type.scss';
4
- @import '../common/functions.scss';
5
-
6
- // Line-heights calculated from Roboto
7
-
8
- h1.mdw-type,
9
- h2.mdw-type,
10
- h3.mdw-type,
11
- h4.mdw-type,
12
- h5.mdw-type,
13
- h6.mdw-type,
14
- p.mdw-type {
15
- margin: 0;
16
- }
17
-
18
- p.mdw-type {
19
- hyphens: auto;
20
- -webkit-hyphens: auto;
21
- -ms-hyphens: auto;
22
- }
23
-
24
- h1.mdw-type {
25
- @include type-rules('h1');
26
- }
27
-
28
- h2.mdw-type {
29
- @include type-rules('h2');
30
- }
31
-
32
- h3.mdw-type {
33
- @include type-rules('h3');
34
- }
35
-
36
- h4.mdw-type {
37
- @include type-rules('h4');
38
- }
39
-
40
- h5.mdw-type {
41
- @include type-rules('h5');
42
- }
43
-
44
- h6.mdw-type {
45
- @include type-rules('h6');
46
- }
47
-
48
- .mdw-type[mdw-style="subtitle"] {
49
- @include type-rules('subtitle');
50
- }
51
-
52
- .mdw-type[mdw-style="subtitle-2"] {
53
- @include type-rules('subtitle-2');
54
- }
55
-
56
- body.mdw-type,
57
- p.mdw-type,
58
- .mdw-type[mdw-style="body"] {
59
- @include type-rules('body');
60
- }
61
-
62
- .mdw-type[mdw-style="body-2"] {
63
- @include type-rules('body-2');
64
- }
65
-
66
- .mdw-type[mdw-style="button"] {
67
- @include type-rules('button');
68
- }
69
-
70
- .mdw-type[mdw-style="caption"] {
71
- @include type-rules('caption');
72
- }
73
-
74
- .mdw-type[mdw-style="overline"] {
75
- @include type-rules('overline');
76
- }
77
-
78
- // MD-2014 Typography
79
-
80
-
81
- .mdw-type[mdw-style|="display"] {
82
- font-weight: $font-weight-regular;
83
- font-size: sp(34);
84
- line-height: dp(40);
85
- }
86
- .mdw-type[mdw-style="display-4"] {
87
- font-size: sp(112);
88
- line-height: normal;
89
- font-weight: $font-weight-light;
90
- white-space: nowrap;
91
- }
92
- .mdw-type[mdw-style="display-3"] {
93
- font-size: sp(56);
94
- line-height: normal;
95
- white-space: nowrap;
96
- }
97
- .mdw-type[mdw-style="display-2"] {
98
- font-size: sp(45);
99
- line-height: dp(48);
100
- }
101
- .mdw-type[mdw-style="headline"] {
102
- font-size: sp(24);
103
- line-height: dp(32);
104
- font-weight: $font-weight-regular;
105
- }
106
- .mdw-type[mdw-style="title"] {
107
- font-size: sp(20);
108
- font-weight: $font-weight-medium;
109
- white-space: nowrap;
110
- }
111
- .mdw-type[mdw-style|="subheading"] {
112
- font-size: sp(15);
113
- @include allHandsetsAndTablets() {
114
- font-size: sp(16);
115
- }
116
- font-weight: $font-weight-regular;
117
- line-height: dp(24);
118
- }
119
- .mdw-type[mdw-style="subheading-2"] {
120
- line-height: dp(28);
121
- @include allHandsetsAndTablets() {
122
- line-height: dp(28);
123
- }
124
- }
125
-
126
- .mdw-type[mdw-baseline-top]::before {
127
- content: '';
128
- display: inline-block;
129
- }
130
-
131
- .mdw-type[mdw-baseline-next],
132
- .mdw-type[mdw-baseline-bottom] {
133
- &::after {
134
- content: '';
135
- display: inline-block;
136
- }
137
- }
138
-
139
- .mdw-type[mdw-baseline-next] {
140
- & + .mdw-type::before {
141
- content: '';
142
- display: inline-block;
143
- }
144
- }
145
-
146
- // 4dp baselines
147
- @each $bl in (4, 8, 10, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92) {
148
- .mdw-type[mdw-baseline-top="#{$bl}"] {
149
- &::before {
150
- height: dp($bl);
151
- }
152
- }
153
- .mdw-type[mdw-baseline-bottom="#{$bl}"] {
154
- &::after {
155
- vertical-align: dp(-$bl);
156
- }
157
- }
158
- .mdw-type[mdw-baseline-next="#{$bl}"] {
159
- margin-bottom: dp(-$bl);
160
- &::after {
161
- vertical-align: dp(-$bl);
162
- }
163
- & + .mdw-type::before {
164
- height: dp($bl);
165
- }
166
- }
167
- }
@@ -1,25 +0,0 @@
1
- @import '../common/functions.scss';
2
- @import '../common/mixins.scss';
3
-
4
- $typeColors: (
5
- primary-text-color: ((#000, 0.87), (#fff, 1.00)),
6
- secondary-text-color: ((#000, 0.54), (#fff, 0.70)),
7
- );
8
-
9
- @function typeThemeValue($key, $type, $theme) {
10
- @return themeValue('type', $typeColors, $key, $type, $theme);
11
- }
12
-
13
- @mixin typeThemeVariables($color, $lightness) {
14
- @include themeVariables('type', $typeColors, $color, $lightness);
15
- }
16
-
17
- @mixin typeContrastRules($type: 'var', $theme: null) {
18
- .mdw-type:not([mdw-theme-color]) {
19
- color: typeThemeValue("primary-text-color", $type, $theme);
20
- &[mdw-style|="display"],
21
- &[mdw-style="caption"] {
22
- color: typeThemeValue("secondary-text-color", $type, $theme);
23
- }
24
- }
25
- }
@@ -1 +0,0 @@
1
- <!DOCTYPE html><html lang="en"><head><title>Material Design Web</title><meta charset="utf-8"><meta content="IE=edge" http-equiv="X-UA-Compatible"><meta content="" name="description"><meta content="width=device-width, initial-scale=1, viewport-fit=cover" name="viewport"><meta name="theme-color" content="#E91E63"><meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"><meta name="apple-mobile-web-app-capable" content="yes"><link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Roboto:300,400,500,700"><link rel="stylesheet" href="docs.min.css"><link rel="stylesheet" href="components.min.css"><link rel="stylesheet" href="theming.min.css"><link rel="stylesheet" href="theming.ie11.min.css" media="screen and (-ms-high-contrast: active), (-ms-high-contrast: none)"><script src="prerender.min.js"></script></head><body class="mdw-type"><div class="mdw-navdrawer" id="docs-navdrawer"><a class="mdw-navdrawer__scrim" href="#"></a><div class="mdw-navdrawer__toolbar"><div class="mdw-toolbar" mdw-theme-fill="accent-500 dark" mdw-app-bar><div class="mdw-toolbar__action"><div class="mdw-toolbar__start"><div class="mdw-tooltip__wrapper"><a class="mdw-tooltip__target mdw-button material-icons" mdw-icon href="#docs-navdrawer">menu</a><div class="mdw-tooltip">Menu</div></div></div><div class="mdw-toolbar__title">bottomnav</div><div class="mdw-toolbar__end" id="docs-menu-buttons"><div class="mdw-tooltip__wrapper"><div class="mdw-tooltip__target mdw-button docs-rtl" mdw-inactive>RTL</div><div class="mdw-tooltip">Right-to-Left</div></div><div class="mdw-tooltip__wrapper"><div class="mdw-tooltip__target mdw-button material-icons" mdw-icon mdw-inactive>brightness_3</div><div class="mdw-tooltip">Dark Mode</div></div><div class="mdw-tooltip__wrapper"><div class="mdw-tooltip__target mdw-button material-icons" mdw-icon mdw-inactive>format_size</div><div class="mdw-tooltip">Large Font</div></div></div></div></div></div><div class="mdw-navdrawer__drawer"><div class="mdw-list"><a class="mdw-list__item" href="index.html" mdw-theme-color="primary"><div class="mdw-list__text">Home</div></a><div class="mdw-list__subheader">Components</div><a class="mdw-list__item" mdw-selected href="bottomnav.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">call_to_action</div><div class="mdw-list__text">Bottom Navigation</div></a><a class="mdw-list__item" href="button.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">crop_landscape</div><div class="mdw-list__text">Button</div></a><a class="mdw-list__item" href="card.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">crop_square</div><div class="mdw-list__text">Card</div></a><a class="mdw-list__item" href="dialog.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">select_all</div><div class="mdw-list__text">Dialog</div></a><a class="mdw-list__item" href="datatable.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">format_align_justify</div><div class="mdw-list__text">Data Table</div></a><a class="mdw-list__item" href="elevation.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">layers</div><div class="mdw-list__text">Elevation</div></a><a class="mdw-list__item" href="fab.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">add_circle</div><div class="mdw-list__text">Floating Action Button</div></a><a class="mdw-list__item" href="layout.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">view_compact</div><div class="mdw-list__text">Layout</div></a><a class="mdw-list__item" href="list.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">view_list</div><div class="mdw-list__text">List</div></a><a class="mdw-list__item" href="menu.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">picture_in_picture</div><div class="mdw-list__text">Menu</div></a><a class="mdw-list__item" href="navdrawer.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">menu</div><div class="mdw-list__text">Navigation Drawer</div></a><a class="mdw-list__item" href="progress.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">timelapse</div><div class="mdw-list__text">Progress</div></a><a class="mdw-list__item" href="search.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">search</div><div class="mdw-list__text">Search</div></a><a class="mdw-list__item" href="selection.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">toggle_on</div><div class="mdw-list__text">Selection</div></a><a class="mdw-list__item" href="slider.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">tune</div><div class="mdw-list__text">Slider</div></a><a class="mdw-list__item" href="snackbar.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">video_label</div><div class="mdw-list__text">Snackbar</div></a><a class="mdw-list__item" href="tab.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">tab</div><div class="mdw-list__text">Tab</div></a><a class="mdw-list__item" href="textfield.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">text_fields</div><div class="mdw-list__text">Text Field</div></a><a class="mdw-list__item" href="toolbar.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">web_asset</div><div class="mdw-list__text">Toolbar</div></a><a class="mdw-list__item" href="tooltip.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">info</div><div class="mdw-list__text">Tooltip</div></a><a class="mdw-list__item" href="type.html" mdw-theme-color="accent"><div class="mdw-list__icon material-icons">font_download</div><div class="mdw-list__text">Typography</div></a></div></div><div class="mdw-navdrawer__content" style="padding-bottom:24px"><div id="horizontalLine"></div><div id="verticalLineLeft"></div><div id="verticalLineRight"></div><div class="comparison clipped-300"><div class="render mdw-theme-bottomnav"><div class="content display-flex"><div class="flex-1"><ul><li>CSS-Only</li><li>Keyboard support</li><li>Radio buttons</li><li>Badges</li></ul></div><form class="mdw-bottomnav" mdw-theme-color="primary"><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="bottomnav" value="recents"><div class="mdw-bottomnav__icon material-icons">history</div><div class="mdw-bottomnav__label">Recents</div></label><label class="mdw-bottomnav__item" mdw-badge=""><input class="mdw-bottomnav__input" type="radio" name="bottomnav" value="favorites" checked><div class="mdw-bottomnav__icon material-icons">favorite</div><div class="mdw-bottomnav__label">Favorites</div></label><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="bottomnav" value="nearby"><div class="mdw-bottomnav__icon material-icons">near_me</div><div class="mdw-bottomnav__label">Nearby</div></label></form></div><div class="androidnavbar"><i class="material-icons back-button">&#xE3C8;</i><i class="material-icons">&#xE836;</i><i class="material-icons">&#xE835;</i></div></div><div class="target" style="background-image: url(https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B3321sZLoP_HZjN1eld5MjRXb2s/components-bottomnavigation-usage1.png)"></div></div><div class="comparison clipped-300"><div class="render mdw-theme-bottomnav"><div class="content display-flex"><div class="flex-1"><ul><li>CSS-Only</li><li>Keyboard support</li><li>Disappearing Labels</li><li>Radio buttons</li><li>Badges</li></ul></div><form class="mdw-bottomnav" mdw-theme-fill="primary-700 dark" mdw-shifting><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="movies" id="value1"><label class="mdw-bottomnav__item" for="value1"><div class="mdw-bottomnav__icon material-icons">tv</div><div class="mdw-bottomnav__label">Movies</div></label><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="music" id="value2" checked><label class="mdw-bottomnav__item" for="value2" mdw-badge><div class="mdw-bottomnav__icon material-icons">music_note</div><div class="mdw-bottomnav__label">Music</div></label><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="books" id="value3"><label class="mdw-bottomnav__item" for="value3" mdw-badge="88"><div class="mdw-bottomnav__icon material-icons">book</div><div class="mdw-bottomnav__label">Books</div></label><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="newsstand" id="value4"><label class="mdw-bottomnav__item" for="value4" mdw-badge="888+"><div class="mdw-bottomnav__icon material-icons">assignment</div><div class="mdw-bottomnav__label">Newsstand</div></label></form></div><div class="androidnavbar"><i class="material-icons back-button">&#xE3C8;</i><i class="material-icons">&#xE836;</i><i class="material-icons">&#xE835;</i></div></div><div class="target" style="background-image: url(https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B3321sZLoP_HZHA1UVAyRFpMVDQ/components-bottomnavigation-usage5.png)"></div></div><div class="comparison clipped-300"><div class="render mdw-theme-bottomnav"><div class="content display-flex"><div class="flex-1"><ul><li>CSS-Only</li><li>Keyboard support</li><li>Disappearing Labels</li><li>ID-less Radio buttons</li></ul></div><form class="mdw-bottomnav" mdw-theme-fill="primary-700 dark" mdw-shifting><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="movies"><div class="mdw-bottomnav__icon material-icons">tv</div><div class="mdw-bottomnav__label">Movies</div></label><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="music" checked><div class="mdw-bottomnav__icon material-icons">music_note</div><div class="mdw-bottomnav__label">Music</div></label><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="books"><div class="mdw-bottomnav__icon material-icons">book</div><div class="mdw-bottomnav__label">Books</div></label><label class="mdw-bottomnav__item"><input class="mdw-bottomnav__input" type="radio" name="shiftingbottomnav" value="newsstand"><div class="mdw-bottomnav__icon material-icons">assignment</div><div class="mdw-bottomnav__label">Newsstand</div></label></form></div><div class="androidnavbar"><i class="material-icons back-button">&#xE3C8;</i><i class="material-icons">&#xE836;</i><i class="material-icons">&#xE835;</i></div></div><div class="target" style="background-image: url(https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B3321sZLoP_HZHA1UVAyRFpMVDQ/components-bottomnavigation-usage5.png)"></div></div><div class="comparison clipped-300 js"><div class="render mdw-theme-bottomnav"><div class="content display-flex"><div class="flex-1"><ul><li>Javascript-based</li><li>No radio buttons</li><li>Badges</li></ul></div><div class="mdw-bottomnav" mdw-theme-color="primary"><div class="mdw-bottomnav__item" mdw-badge><div class="mdw-bottomnav__icon material-icons">history</div><div class="mdw-bottomnav__label">Recents</div></div><div class="mdw-bottomnav__item" mdw-selected><div class="mdw-bottomnav__icon material-icons">favorite</div><div class="mdw-bottomnav__label">Favorites</div></div><div class="mdw-bottomnav__item" mdw-badge="12"><div class="mdw-bottomnav__icon material-icons">near_me</div><div class="mdw-bottomnav__label">Nearby</div></div></div></div><div class="androidnavbar"><i class="material-icons back-button">&#xE3C8;</i><i class="material-icons">&#xE836;</i><i class="material-icons">&#xE835;</i></div></div><div class="target" style="background-image: url(https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B3321sZLoP_HZHA1UVAyRFpMVDQ/components-bottomnavigation-usage5.png)"></div></div></div></div><script src="bottomnav.min.js"></script></body></html>
@@ -1,2 +0,0 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=23)}({0:function(e,t,n){"use strict";function r(e){return window.localStorage?localStorage.getItem(e):null}function o(e,t){window.localStorage&&localStorage.setItem(e,t)}function i(e){window.localStorage&&localStorage.removeItem(e)}n.d(t,"a",function(){return r}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return i})},1:function(e,t,n){"use strict";function r(e,t){var n=e.getElementsByClassName(t)[0];return n&&n.parentElement!==e?null:n}function o(e,t,n){var r;for(r=!1===n?e.parentElement:e;null!=r&&!r.classList.contains(t);)r=r.parentElement;return r}function i(){return document.documentElement.hasAttribute("dir")&&"rtl"===document.documentElement.getAttribute("dir").toLowerCase()}function c(e,t){var n=document.createEvent("Event");return n.initEvent(t,!0,!0),e.dispatchEvent(n)}n.d(t,"c",function(){return r}),n.d(t,"b",function(){return o}),n.d(t,"d",function(){return i}),n.d(t,"a",function(){return c}),n.d(t,"e",function(){return u});var u=window.requestAnimationFrame||function(e){return setTimeout(e,17)}},2:function(e,t,n){"use strict";n.d(t,"c",function(){return c}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return a}),n.d(t,"d",function(){return l});var r=n(0),o="black dark",i="white light";function c(e,t){e?(document.documentElement.setAttribute("dir","rtl"),t&&t.removeAttribute("mdw-inactive"),Object(r.c)("rtlmode","true")):(document.documentElement.removeAttribute("dir"),t&&t.setAttribute("mdw-inactive",""),Object(r.b)("rtlmode"))}function u(e,t){e?(document.documentElement.setAttribute("mdw-theme-fill",o),t&&t.removeAttribute("mdw-inactive")):(document.documentElement.setAttribute("mdw-theme-fill",i),t&&t.setAttribute("mdw-inactive","")),Object(r.c)("darkmode",e?"true":"false")}function a(e,t){e?(document.documentElement.style.setProperty("font-size",e),t&&t.removeAttribute("mdw-inactive"),Object(r.c)("fontsize",e)):(document.documentElement.style.removeProperty("font-size"),t&&t.setAttribute("mdw-inactive",""),Object(r.b)("fontsize"))}function l(){var e=document.getElementById("docs-menu-buttons").getElementsByClassName("mdw-button"),t=e[0],n=e[1],i=e[2];!function(e){"true"===Object(r.a)("rtlmode")&&c(!0,e),e.addEventListener("click",function(){"rtl"===document.documentElement.getAttribute("dir")?c(!1,e):c(!0,e)})}(t),function(e){"true"===Object(r.a)("darkmode")&&u(!0,e),e.addEventListener("click",function(){document.documentElement.getAttribute("mdw-theme-fill")===o?u(!1,e):u(!0,e)})}(n),function(e){a(Object(r.a)("fontsize"),e),e.addEventListener("click",function(){document.documentElement.style.getPropertyValue("font-size")?a(null,e):a("125%",e)})}(i)}},23:function(e,t,n){n(79),e.exports=n(24)},24:function(e,t,n){e.exports=n.p+"bottomnav.html"},3:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(1);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return function(e,t,n){n&&o(e,n)}(e,0,[{key:"attach",value:function(t){var n=Object(r.c)(t,"mdw-ripple");n||((n=document.createElement("div")).classList.add("mdw-ripple"),t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n));var o=Object(r.c)(n,"mdw-ripple__inner");o||((o=document.createElement("div")).classList.add("mdw-ripple__inner"),n.appendChild(o)),t.setAttribute("mdw-ripple",""),n.addEventListener("click",e.onClick)}},{key:"onClick",value:function(e){var t=e.currentTarget,n=Object(r.c)(t,"mdw-ripple__inner");if(n){if(!e.pointerType&&!e.detail)return n.style.removeProperty("left"),void n.style.removeProperty("top");n.style.setProperty("left","".concat(e.offsetX,"px")),n.style.setProperty("top","".concat(e.offsetY,"px"))}}},{key:"detach",value:function(t){var n=Object(r.c)(t,"mdw-ripple");n&&t.removeChild(n),t.removeAttribute("mdw-ripple"),t.removeEventListener("click",e.onClick)}}]),e}()},6:function(e,t,n){"use strict";var r={},o=0,i=0;function c(e){document.getElementById("horizontalLine").style.top="".concat(e.clientY,"px"),document.getElementById("verticalLineLeft").style.left="".concat(e.layerX,"px"),document.getElementById("verticalLineRight").style.left="".concat(e.clientX,"px")}Object.defineProperty(r,"vOffset",{enumerable:!0,configurable:!1,get:function(){return o},set:function(e){o=e,document.getElementById("verticalLineLeft").style.left="".concat(e,"px"),document.getElementById("verticalLineRight").style.left="".concat(e,"px")}}),Object.defineProperty(r,"hOffset",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){i=e,document.getElementById("horizontalLine").style.top="".concat(e,"px")}}),t.a=function(){for(var e=document.getElementsByClassName("target"),t=0;t<e.length;t+=1)e[t].addEventListener("click",c)}},79:function(e,t,n){"use strict";n.r(t);var r=n(6),o=n(3),i=n(1);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var l=function(){function e(){c(this,e)}return a(e,null,[{key:"attach",value:function(e){o.a.attach(e)}},{key:"detach",value:function(e){o.a.detach(e)}}]),e}(),m=function(){function e(){c(this,e)}return a(e,null,[{key:"attach",value:function(t){for(var n=t.getElementsByClassName("mdw-bottomnav__item"),r=t.getElementsByClassName("mdw-bottomnav__input"),o=0;o<n.length;o+=1){var i=n.item(o);l.attach(i),i.addEventListener("click",e.onItemClicked)}for(var c=0;c<r.length;c+=1)r.item(c).addEventListener("change",e.onInputChanged)}},{key:"detach",value:function(t){for(var n=t.getElementsByClassName("mdw-bottomnav__item"),r=t.getElementsByClassName("mdw-bottomnav__input"),o=0;o<n.length;o+=1){var i=n.item(o);l.detach(i),i.removeEventListener("click",e.onItemClicked)}for(var c=0;c<r.length;c+=1)r.item(c).removeEventListener("change",e.onInputChanged)}},{key:"onInputChanged",value:function(t){var n,r=t.target;if(r.parentElement.classList.contains("mdw-bottomnav__item")&&(n=r.parentElement),r.id&&(n=document.querySelector('label.mdw-bottomnav__item[for="'.concat(r.id,'"]'))),(!n.hasAttribute("mdw-selected")||!r.checked)&&(n.hasAttribute("mdw-selected")||r.checked)){var o=Object(i.b)(r,"mdw-bottomnav");o&&e.removeSelection(o),n.setAttribute("mdw-selected","")}}},{key:"removeSelection",value:function(e){for(var t=e.getElementsByClassName("mdw-bottomnav__item"),n=0;n<t.length;n+=1){var r=t.item(n);if(r.hasAttribute("mdw-selected"))return r.removeAttribute("mdw-selected"),!0}return!1}},{key:"onItemClicked",value:function(t){var n=Object(i.b)(t.target,"mdw-bottomnav__item");if(!n.hasAttribute("mdw-selected")&&!n.hasAttribute("disabled")){var r,o=Object(i.b)(n,"mdw-bottomnav");if(o&&e.removeSelection(o),n.setAttribute("mdw-selected",""),n instanceof HTMLLabelElement&&n.hasAttribute("for")){var c=n.getAttribute("for");c&&(r=document.getElementById(c))}else r=n.getElementsByClassName("mdw-bottomnav__input")[0];if(r instanceof HTMLInputElement)r.checked=!0;else if(r)throw new Error("Unexpected inputElement type")}}}]),e}(),d=n(2);!function(){for(var e=document.querySelectorAll(".js .mdw-bottomnav"),t=0;t<e.length;t+=1)m.attach(e.item(t))}(),Object(d.d)(),Object(r.a)()}});
2
- //# sourceMappingURL=bottomnav.min.js.map