@shortfuse/materialdesignweb 0.0.9 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.browserslistrc +3 -0
- package/.eslintrc.json +146 -27
- package/.stylelintrc.json +598 -2
- package/.vscode/launch.json +20 -5
- package/.vscode/settings.json +3 -0
- package/.vscode/tasks.json +19 -10
- package/CHANGELOG.md +24 -0
- package/README.md +84 -2
- package/adapters/datatable/column.js +203 -0
- package/adapters/datatable/index.js +972 -0
- package/adapters/dom/index.js +601 -0
- package/adapters/list/index.js +69 -0
- package/adapters/search/index.js +521 -0
- package/components/appbar/_spec.scss +225 -0
- package/components/appbar/_theme.scss +0 -0
- package/components/appbar/index.scss +2 -0
- package/components/banner/_spec.scss +118 -0
- package/components/banner/_theme.scss +0 -0
- package/components/banner/index.scss +2 -0
- package/components/bottomnav/README.md +85 -0
- package/components/bottomnav/_spec.scss +157 -0
- package/components/bottomnav/_theme.scss +0 -0
- package/components/bottomnav/index.js +122 -0
- package/components/bottomnav/index.scss +2 -0
- package/components/bottomnav/item.js +89 -0
- package/components/{core/button → button}/README.md +16 -22
- package/components/button/_spec.scss +161 -0
- package/components/button/_theme.scss +65 -0
- package/components/button/index.eta +32 -0
- package/components/button/index.js +43 -0
- package/components/button/index.pug +18 -0
- package/components/button/index.scss +2 -0
- package/components/card/_spec.scss +249 -0
- package/components/card/_theme.scss +0 -0
- package/components/card/index.scss +2 -0
- package/components/chip/_spec.scss +134 -0
- package/components/chip/_theme.scss +177 -0
- package/components/chip/index.js +21 -0
- package/components/chip/index.scss +2 -0
- package/components/chip/item.js +20 -0
- package/components/datatable/_spec.scss +288 -0
- package/components/datatable/_theme.scss +154 -0
- package/components/datatable/cell.js +45 -0
- package/components/datatable/columnheader.js +47 -0
- package/components/datatable/index.js +388 -0
- package/components/datatable/index.scss +2 -0
- package/components/datatable/row.js +49 -0
- package/components/datatable/rowheader.js +18 -0
- package/components/dialog/_spec.scss +213 -0
- package/components/dialog/_theme.scss +0 -0
- package/components/dialog/index.js +627 -0
- package/components/dialog/index.scss +2 -0
- package/components/divider/_spec.scss +13 -0
- package/components/divider/_theme.scss +0 -0
- package/components/divider/index.scss +2 -0
- package/components/elevation/_spec.scss +9 -0
- package/components/elevation/_theme.scss +0 -0
- package/components/elevation/index.scss +2 -0
- package/components/fab/_spec.scss +222 -0
- package/components/fab/_theme.scss +0 -0
- package/components/fab/index.js +103 -0
- package/components/fab/index.scss +2 -0
- package/components/grid/_spec.scss +312 -0
- package/components/grid/_theme.scss +0 -0
- package/components/grid/index.scss +2 -0
- package/components/layout/_mixins.scss +33 -0
- package/components/layout/_spec.scss +1012 -0
- package/components/layout/_theme.scss +44 -0
- package/components/layout/index.js +464 -0
- package/components/layout/index.scss +2 -0
- package/components/list/_spec.scss +397 -0
- package/components/list/_theme.scss +111 -0
- package/components/list/content.js +110 -0
- package/components/list/index.js +260 -0
- package/components/list/index.scss +2 -0
- package/components/list/item.js +170 -0
- package/components/list/secondary.js +46 -0
- package/components/menu/_spec.scss +362 -0
- package/components/menu/_theme.scss +0 -0
- package/components/menu/index.js +721 -0
- package/components/menu/index.scss +2 -0
- package/components/menu/item.js +239 -0
- package/components/{core/progress/style.scss → progress/_spec.scss} +36 -25
- package/components/progress/_theme.scss +0 -0
- package/components/progress/index.js +36 -0
- package/components/progress/index.scss +2 -0
- package/components/selection/_spec.scss +386 -0
- package/components/selection/_theme.scss +166 -0
- package/components/selection/index.eta +60 -0
- package/components/selection/index.js +76 -0
- package/components/selection/index.pug +30 -0
- package/components/selection/index.scss +2 -0
- package/components/selection/input.js +56 -0
- package/components/selection/radiogroup.js +47 -0
- package/components/slider/_spec.scss +64 -0
- package/components/slider/_theme.scss +0 -0
- package/components/slider/index.scss +2 -0
- package/components/snackbar/_spec.scss +195 -0
- package/components/snackbar/_theme.scss +0 -0
- package/components/snackbar/index.js +344 -0
- package/components/snackbar/index.scss +2 -0
- package/components/tab/_spec.scss +235 -0
- package/components/tab/_theme.scss +0 -0
- package/components/tab/content.js +205 -0
- package/components/tab/index.js +260 -0
- package/components/tab/index.scss +2 -0
- package/components/tab/item.js +89 -0
- package/components/tab/list.js +210 -0
- package/components/tab/panel.js +54 -0
- package/components/template/_theme.scss +27 -0
- package/components/{core/textfield → textfield}/README.md +70 -50
- package/components/textfield/_mixins.scss +52 -0
- package/components/textfield/_spec.scss +809 -0
- package/components/textfield/_theme.scss +299 -0
- package/components/textfield/index.eta +74 -0
- package/components/textfield/index.js +168 -0
- package/components/textfield/index.pug +30 -0
- package/components/textfield/index.scss +2 -0
- package/components/tooltip/_spec.scss +188 -0
- package/components/tooltip/_theme.scss +0 -0
- package/components/tooltip/index.scss +2 -0
- package/components/type/_spec.scss +224 -0
- package/components/type/_theme.scss +0 -0
- package/components/type/index.scss +2 -0
- package/core/_breakpoint.scss +189 -0
- package/core/_elevation.scss +38 -0
- package/core/_length.scss +9 -0
- package/core/_motion.scss +31 -0
- package/core/_platform.scss +34 -0
- package/core/_type.scss +127 -0
- package/core/aria/attributes.js +141 -0
- package/core/aria/button.js +50 -0
- package/core/aria/keyboard.js +93 -0
- package/core/aria/rovingtabindex.js +178 -0
- package/core/aria/tab.js +60 -0
- package/core/color/_spec.scss +0 -0
- package/core/color/_theme.scss +390 -0
- package/core/color/index.scss +2 -0
- package/core/document/index.js +39 -0
- package/core/dom.js +271 -0
- package/core/overlay/_spec.scss +31 -0
- package/core/overlay/_theme.scss +171 -0
- package/core/overlay/index.js +108 -0
- package/core/overlay/index.scss +2 -0
- package/core/ripple/_spec.scss +197 -0
- package/core/ripple/_theme.scss +40 -0
- package/core/ripple/index.js +294 -0
- package/core/ripple/index.scss +2 -0
- package/core/theme/_config.scss +2 -0
- package/core/theme/_mixins.scss +172 -0
- package/{components/theming/palettes.scss → core/theme/_palettes.scss} +173 -150
- package/core/theme/_variables.scss +24 -0
- package/core/theme/index.js +50 -0
- package/core/throttler.js +42 -0
- package/core/transition/index.js +468 -0
- package/docs/_flex.scss +22 -0
- package/docs/_menuoptions.js +183 -0
- package/docs/_mixins.pug +155 -0
- package/docs/_partials/_androidnavbar.eta +5 -0
- package/docs/_partials/_androidstatusbar.eta +13 -0
- package/docs/_partials/_appbar.eta +29 -0
- package/docs/_partials/_buttontest.eta +31 -0
- package/docs/_partials/_header.eta +149 -0
- package/docs/_partials/_navlistitem.eta +16 -0
- package/docs/_partials/_target.eta +1 -0
- package/docs/_sample-utils.js +93 -0
- package/docs/_storage.js +33 -0
- package/docs/docs.scss +295 -0
- package/docs/index.eta +16 -0
- package/docs/index.js +0 -0
- package/docs/pages/appbar.eta +114 -0
- package/docs/pages/appbar.js +0 -0
- package/docs/pages/appbar.pug +78 -0
- package/docs/pages/bottomnav.eta +188 -0
- package/docs/pages/bottomnav.js +115 -0
- package/docs/pages/bottomnav.pug +137 -0
- package/docs/pages/button.eta +124 -0
- package/docs/pages/button.js +224 -0
- package/docs/pages/button.pug +121 -0
- package/docs/pages/card.eta +90 -0
- package/docs/pages/card.js +177 -0
- package/docs/pages/card.pug +74 -0
- package/docs/pages/chip.eta +122 -0
- package/docs/pages/chip.js +82 -0
- package/docs/pages/chip.pug +91 -0
- package/docs/pages/color.eta +143 -0
- package/docs/pages/color.js +262 -0
- package/docs/pages/color.pug +121 -0
- package/docs/pages/datatable.eta +323 -0
- package/docs/pages/datatable.js +164 -0
- package/docs/pages/datatable.pug +283 -0
- package/docs/pages/dialog.eta +186 -0
- package/docs/pages/dialog.js +177 -0
- package/docs/pages/dialog.pug +132 -0
- package/docs/pages/dom.eta +26 -0
- package/docs/pages/dom.js +143 -0
- package/docs/pages/dom.pug +22 -0
- package/docs/pages/elevation.eta +35 -0
- package/docs/pages/elevation.js +0 -0
- package/docs/pages/elevation.pug +25 -0
- package/docs/pages/fab.eta +99 -0
- package/docs/pages/fab.js +44 -0
- package/docs/pages/fab.pug +66 -0
- package/docs/pages/grid.eta +135 -0
- package/docs/pages/grid.js +128 -0
- package/docs/pages/grid.pug +95 -0
- package/docs/pages/layout.eta +8 -0
- package/docs/pages/layout.js +0 -0
- package/docs/pages/layout.pug +7 -0
- package/docs/pages/list.eta +465 -0
- package/docs/pages/list.js +9 -0
- package/docs/pages/list.pug +326 -0
- package/docs/pages/menu.eta +276 -0
- package/docs/pages/menu.js +217 -0
- package/docs/pages/menu.pug +205 -0
- package/docs/pages/overlay.eta +69 -0
- package/docs/pages/overlay.js +4 -0
- package/docs/pages/overlay.pug +55 -0
- package/docs/pages/progress.eta +23 -0
- package/docs/pages/progress.js +12 -0
- package/docs/pages/progress.pug +16 -0
- package/docs/pages/ripple.eta +27 -0
- package/docs/pages/ripple.js +4 -0
- package/docs/pages/ripple.pug +21 -0
- package/docs/pages/search.eta +246 -0
- package/docs/pages/search.js +243 -0
- package/docs/pages/search.pug +165 -0
- package/docs/pages/selection.eta +111 -0
- package/docs/pages/selection.js +13 -0
- package/docs/pages/selection.pug +74 -0
- package/docs/pages/slider.eta +23 -0
- package/docs/pages/slider.js +0 -0
- package/docs/pages/slider.pug +17 -0
- package/docs/pages/snackbar.eta +83 -0
- package/docs/pages/snackbar.js +158 -0
- package/docs/pages/snackbar.pug +60 -0
- package/docs/pages/tab.eta +421 -0
- package/docs/pages/tab.js +151 -0
- package/docs/pages/tab.pug +304 -0
- package/docs/pages/textfield.eta +486 -0
- package/docs/pages/textfield.js +254 -0
- package/docs/pages/textfield.pug +360 -0
- package/docs/pages/tooltip.eta +94 -0
- package/docs/pages/tooltip.js +0 -0
- package/docs/pages/tooltip.pug +78 -0
- package/docs/pages/transition.eta +117 -0
- package/docs/pages/transition.js +54 -0
- package/docs/pages/transition.pug +76 -0
- package/docs/pages/type.eta +31 -0
- package/docs/pages/type.js +0 -0
- package/docs/pages/type.pug +29 -0
- package/docs/postrender.js +39 -0
- package/docs/prerender.js +16 -0
- package/docs/pwa/_dialogs.eta +143 -0
- package/docs/pwa/_dialogs.pug +96 -0
- package/docs/pwa/_menus.eta +16 -0
- package/docs/pwa/_menus.pug +11 -0
- package/docs/pwa/pwa-prerender.js +3 -0
- package/docs/pwa/pwa.eta +480 -0
- package/docs/pwa/pwa.js +306 -0
- package/docs/pwa/pwa.pug +325 -0
- package/docs/pwa/pwa.scss +26 -0
- package/docs/spec.scss +26 -0
- package/docs/themes/_component-themes.scss +26 -0
- package/docs/themes/theme-colored-fallbacks.scss +17 -0
- package/docs/themes/theme-colored.scss +17 -0
- package/docs/themes/theme-default-fallbacks.scss +17 -0
- package/docs/themes/theme-default.scss +17 -0
- package/jsconfig.json +4 -2
- package/package.json +43 -28
- package/scripts/deploy-docs.sh +9 -0
- package/templates/index.eta +2 -0
- package/templates/index.pug +3 -0
- package/utils/function.js +3 -0
- package/webpack.config.cjs +257 -0
- package/components/_index.scss +0 -4
- package/components/all-components.scss +0 -14
- package/components/common/functions.scss +0 -173
- package/components/common/mixins.scss +0 -107
- package/components/common/motion.scss +0 -36
- package/components/common/ripple.scss +0 -92
- package/components/common/variables.scss +0 -48
- package/components/complex/dialog/style.scss +0 -159
- package/components/complex/dialog/theming.scss +0 -29
- package/components/complex/navdrawer/style.scss +0 -477
- package/components/complex/navdrawer/theming.scss +0 -58
- package/components/complex/search/index.js +0 -492
- package/components/core/bottomnav/README.md +0 -85
- package/components/core/bottomnav/index.js +0 -140
- package/components/core/bottomnav/style.scss +0 -173
- package/components/core/bottomnav/theming.scss +0 -42
- package/components/core/button/index.js +0 -52
- package/components/core/button/style.scss +0 -283
- package/components/core/button/theming.scss +0 -131
- package/components/core/list/index.js +0 -94
- package/components/core/list/style.scss +0 -269
- package/components/core/list/theming.scss +0 -74
- package/components/core/menu/index.js +0 -127
- package/components/core/menu/style.scss +0 -239
- package/components/core/menu/theming.scss +0 -55
- package/components/core/progress/index.js +0 -33
- package/components/core/selection/style.scss +0 -249
- package/components/core/selection/theming.scss +0 -49
- package/components/core/switch/style.scss +0 -3
- package/components/core/tab/index.js +0 -174
- package/components/core/tab/style.scss +0 -202
- package/components/core/tab/theming.scss +0 -43
- package/components/core/textfield/index.js +0 -169
- package/components/core/textfield/style.scss +0 -672
- package/components/core/textfield/theming.scss +0 -262
- package/components/core/toolbar/style.scss +0 -109
- package/components/core/toolbar/theming.scss +0 -28
- package/components/core/tooltip/style.scss +0 -127
- package/components/core/type/style.scss +0 -133
- package/components/core/type/theming.scss +0 -25
- package/components/index.js +0 -24
- package/components/template/theming.scss +0 -31
- package/components/theming/theming.scss +0 -504
- package/docs/bottomnav.html +0 -171
- package/docs/bottomnav.min.js +0 -383
- package/docs/button.html +0 -322
- package/docs/button.min.js +0 -251
- package/docs/components.min.css +0 -1
- package/docs/components.min.js +0 -83
- package/docs/dialog.html +0 -103
- package/docs/dialog.min.js +0 -160
- package/docs/docs.min.css +0 -1
- package/docs/docs.min.js +0 -83
- package/docs/index.html +0 -55
- package/docs/index.min.js +0 -83
- package/docs/list.html +0 -442
- package/docs/list.min.js +0 -312
- package/docs/menu.html +0 -185
- package/docs/menu.min.js +0 -370
- package/docs/navdrawer.html +0 -199
- package/docs/navdrawer.min.js +0 -244
- package/docs/progress.html +0 -75
- package/docs/progress.min.js +0 -162
- package/docs/search.html +0 -230
- package/docs/search.min.js +0 -1202
- package/docs/selection.html +0 -188
- package/docs/selection.min.js +0 -160
- package/docs/src/complex/dialog.js +0 -3
- package/docs/src/complex/dialog.pug +0 -44
- package/docs/src/complex/navdrawer.js +0 -82
- package/docs/src/complex/navdrawer.pug +0 -109
- package/docs/src/complex/search.js +0 -207
- package/docs/src/complex/search.pug +0 -143
- package/docs/src/components.scss +0 -1
- package/docs/src/core/bottomnav.js +0 -22
- package/docs/src/core/bottomnav.pug +0 -93
- package/docs/src/core/button.js +0 -16
- package/docs/src/core/button.pug +0 -73
- package/docs/src/core/list.js +0 -21
- package/docs/src/core/list.pug +0 -246
- package/docs/src/core/menu.js +0 -33
- package/docs/src/core/menu.pug +0 -108
- package/docs/src/core/progress.js +0 -11
- package/docs/src/core/progress.pug +0 -17
- package/docs/src/core/selection.js +0 -4
- package/docs/src/core/selection.pug +0 -92
- package/docs/src/core/tab.js +0 -21
- package/docs/src/core/tab.pug +0 -180
- package/docs/src/core/textfield.js +0 -15
- package/docs/src/core/textfield.pug +0 -274
- package/docs/src/core/toolbar.js +0 -4
- package/docs/src/core/toolbar.pug +0 -79
- package/docs/src/core/tooltip.js +0 -4
- package/docs/src/core/tooltip.pug +0 -76
- package/docs/src/core/type.js +0 -4
- package/docs/src/core/type.pug +0 -36
- package/docs/src/docs.scss +0 -200
- package/docs/src/index.pug +0 -5
- package/docs/src/mixins.pug +0 -72
- package/docs/src/targetHandler.js +0 -50
- package/docs/src/theming.ie11.scss +0 -35
- package/docs/src/theming.scss +0 -36
- package/docs/tab.html +0 -301
- package/docs/tab.min.js +0 -397
- package/docs/textfield.html +0 -476
- package/docs/textfield.min.js +0 -381
- package/docs/theming.ie11.min.css +0 -1
- package/docs/theming.ie11.min.js +0 -83
- package/docs/theming.min.css +0 -1
- package/docs/theming.min.js +0 -83
- package/docs/toolbar.html +0 -213
- package/docs/toolbar.min.js +0 -160
- package/docs/tooltip.html +0 -138
- package/docs/tooltip.min.js +0 -160
- package/docs/type.html +0 -94
- package/docs/type.min.js +0 -160
- package/webpack.config.js +0 -176
package/docs/src/core/type.pug
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
include ../mixins.pug
|
|
2
|
-
|
|
3
|
-
+header()
|
|
4
|
-
+navdrawer("type")
|
|
5
|
-
#horizontalLine
|
|
6
|
-
#verticalLineLeft
|
|
7
|
-
#verticalLineRight
|
|
8
|
-
.comparison.type-comparison
|
|
9
|
-
.content(mdw-theme-fill="background-50 light")
|
|
10
|
-
.mdw-type(mdw-style="display-4") Display 4
|
|
11
|
-
.mdw-type(mdw-style="display-3") Display 3
|
|
12
|
-
.mdw-type(mdw-style="display-2") Display 2
|
|
13
|
-
.mdw-type(mdw-style="display-1") Display 1
|
|
14
|
-
.mdw-type(mdw-style="headline") Headline
|
|
15
|
-
.mdw-type(mdw-style="title") Title
|
|
16
|
-
.mdw-type(mdw-style="subheading") Subheading
|
|
17
|
-
.mdw-type(mdw-style="body-2") Body 2
|
|
18
|
-
.mdw-type(mdw-style="body-1") Body 1
|
|
19
|
-
.mdw-type(mdw-style="caption") Caption
|
|
20
|
-
.mdw-type(mdw-style="button") Button
|
|
21
|
-
+target('https://storage.googleapis.com/material-design/publish/material_v_12/assets/0Bzhp5Z4wHba3alhXZ2pPWGk3Zjg/style-typography-styles-scale.png')
|
|
22
|
-
|
|
23
|
-
.comparison.type-comparison-2
|
|
24
|
-
.render
|
|
25
|
-
div(mdw-theme-fill="background-50 light")
|
|
26
|
-
div(style="width:300px;height:208px;margin-left:40px")
|
|
27
|
-
.mdw-type(mdw-style="subheading-2") The Hatter was the first to break the silence. 'What day of the month is it?' he said, turning to Alice: he had taken his watch out of his pocket, and was looking at it uneasily, shaking it every now and then, and holding it to his ear.
|
|
28
|
-
div(style="height:8px")
|
|
29
|
-
div(style="width:300px;height:208px;margin-left:40px")
|
|
30
|
-
.mdw-type(mdw-style="display-2") Others have failed, I will not
|
|
31
|
-
.mdw-type(mdw-style="subheading-1" style="width:260px") Science, my boy, is made up of mistakes, but they are mistakes which it is useful to make, because they lead little by little to the truth.
|
|
32
|
-
div
|
|
33
|
-
div(style="margin-top:12px")
|
|
34
|
-
+target('https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B6Okdz75tqQsSDJtU2ZnVDZhTGM/style-typography-styles-lineheight3.png')
|
|
35
|
-
+target('https://storage.googleapis.com/material-design/publish/material_v_12/assets/0Bzhp5Z4wHba3S0hlSFBQRVE0QlU/style-typography-styles-lineheight2.png')
|
|
36
|
-
script(src='type.min.js')
|
package/docs/src/docs.scss
DELETED
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
html {
|
|
2
|
-
font-family: Roboto, sans-serif;
|
|
3
|
-
height: 100%;
|
|
4
|
-
|
|
5
|
-
// Prefer iOS Dynamic Type for accessibility support
|
|
6
|
-
font: -apple-system-body;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
// Material Icon incorrectly changes RTL direction
|
|
10
|
-
.material-icons {
|
|
11
|
-
direction: inherit;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
body {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: row;
|
|
18
|
-
margin: 0;
|
|
19
|
-
height: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.nav {
|
|
23
|
-
min-width: 150px;
|
|
24
|
-
max-width: 150px;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.comparison {
|
|
28
|
-
display: flex;
|
|
29
|
-
flex-direction: row;
|
|
30
|
-
position: relative;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.androidstatusbar {
|
|
34
|
-
z-index: 1;
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
flex-direction: row-reverse;
|
|
38
|
-
height: 24px;
|
|
39
|
-
padding: 0 8px;
|
|
40
|
-
color: rgba(255, 255, 255, .87);
|
|
41
|
-
font-size: 14px;
|
|
42
|
-
.material-icons {
|
|
43
|
-
font-size: 18px;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.content {
|
|
48
|
-
flex: 1;
|
|
49
|
-
overflow-y: auto;
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.render {
|
|
54
|
-
max-width: 360px;
|
|
55
|
-
max-height: 640px;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.render,
|
|
59
|
-
.target {
|
|
60
|
-
position: relative;
|
|
61
|
-
margin: 8px;
|
|
62
|
-
min-width: 360px;
|
|
63
|
-
height: 640px;
|
|
64
|
-
background-size: cover;
|
|
65
|
-
background-repeat: no-repeat;
|
|
66
|
-
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
.clipped & {
|
|
70
|
-
max-height: 190px;
|
|
71
|
-
}
|
|
72
|
-
.clipped-236 & {
|
|
73
|
-
max-height: 236px;
|
|
74
|
-
}
|
|
75
|
-
.clipped-300 & {
|
|
76
|
-
max-height: 300px;
|
|
77
|
-
}
|
|
78
|
-
.clipped-304 & {
|
|
79
|
-
max-height: 304px;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
.horizontal-controls {
|
|
85
|
-
display:inline-flex;
|
|
86
|
-
width:100%;
|
|
87
|
-
& > :not(:last-child) {
|
|
88
|
-
margin-right: 16px;
|
|
89
|
-
margin-left: 0;
|
|
90
|
-
}
|
|
91
|
-
[dir=rtl] & > :not(:last-child) {
|
|
92
|
-
margin-left: 16px;
|
|
93
|
-
margin-right: 0;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.display-flex {
|
|
98
|
-
display: flex;
|
|
99
|
-
}
|
|
100
|
-
[flex-column] {
|
|
101
|
-
flex-direction: column;
|
|
102
|
-
}
|
|
103
|
-
[flex-justify-content="center"] {
|
|
104
|
-
justify-content: center;
|
|
105
|
-
}
|
|
106
|
-
[flex-align-items="center"] {
|
|
107
|
-
align-items: center;
|
|
108
|
-
}
|
|
109
|
-
.flex-wrap {
|
|
110
|
-
flex-wrap: wrap;
|
|
111
|
-
}
|
|
112
|
-
.flex-1 {
|
|
113
|
-
flex: 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.androidnavbar {
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-direction: row;
|
|
119
|
-
justify-content: space-around;
|
|
120
|
-
align-items: center;
|
|
121
|
-
min-height: 48px;
|
|
122
|
-
height: 48px;
|
|
123
|
-
padding: 0 30px;
|
|
124
|
-
background-color: black;
|
|
125
|
-
color: rgba(255, 255, 255, 1);
|
|
126
|
-
.material-icons {
|
|
127
|
-
font-size: 20px;
|
|
128
|
-
}
|
|
129
|
-
.material-icons.back-button {
|
|
130
|
-
transform: rotate(90deg);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
#horizontalLine {
|
|
136
|
-
position: fixed;
|
|
137
|
-
width: 100%;
|
|
138
|
-
background-color: #0FF;
|
|
139
|
-
height: 1px;
|
|
140
|
-
left: 0px;
|
|
141
|
-
z-index: 25;
|
|
142
|
-
pointer-events: none;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.custom-no-results-indicator {
|
|
146
|
-
margin: 8px;
|
|
147
|
-
min-height: 48px;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
#verticalLineLeft,
|
|
151
|
-
#verticalLineRight {
|
|
152
|
-
height: 100%;
|
|
153
|
-
background-color: #0FF;
|
|
154
|
-
width: 1px;
|
|
155
|
-
top: 0px;
|
|
156
|
-
z-index: 25;
|
|
157
|
-
pointer-events: none;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
#verticalLineLeft {
|
|
161
|
-
position: absolute;
|
|
162
|
-
margin-left: 8px;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
#verticalLineRight {
|
|
166
|
-
position: fixed;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
#Vintage50Input {
|
|
171
|
-
font-size: sp(34);
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.type-comparison {
|
|
175
|
-
.content {
|
|
176
|
-
margin: 8px;
|
|
177
|
-
align-items: flex-start;
|
|
178
|
-
flex-direction: column;
|
|
179
|
-
display: flex;
|
|
180
|
-
}
|
|
181
|
-
.target {
|
|
182
|
-
margin-top: 42px;
|
|
183
|
-
background-position-x: -200px;
|
|
184
|
-
width: 760px;
|
|
185
|
-
height: 568px;
|
|
186
|
-
}
|
|
187
|
-
.mdw-type {
|
|
188
|
-
position: relative; // For tooltip position
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
.type-comparison-2 {
|
|
192
|
-
.target {
|
|
193
|
-
width: 760px;
|
|
194
|
-
height: 208px;
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.mdw-navdrawer#docs-navdrawer > .mdw-navdrawer__drawer {
|
|
199
|
-
min-width: 200px;
|
|
200
|
-
}
|
package/docs/src/index.pug
DELETED
package/docs/src/mixins.pug
DELETED
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
mixin androidstatusbar(fillColor)
|
|
2
|
-
.androidstatusbar(mdw-theme-fill=fillColor)
|
|
3
|
-
div 12:30
|
|
4
|
-
i.material-icons(style="letter-spacing:2px") 
|
|
5
|
-
mixin toolbar(fillColor, start, end)
|
|
6
|
-
.mdw-toolbar(mdw-theme-fill=fillColor)
|
|
7
|
-
.mdw-toolbar__action
|
|
8
|
-
.mdw-toolbar__start
|
|
9
|
-
each icon in start
|
|
10
|
-
.mdw-button(mdw-icon).material-icons= icon
|
|
11
|
-
.mdw-toolbar__title
|
|
12
|
-
block
|
|
13
|
-
.mdw-toolbar__end
|
|
14
|
-
each icon in end
|
|
15
|
-
.mdw-button(mdw-icon mdw-more-button=(icon === 'more_vert')).material-icons= icon
|
|
16
|
-
mixin androidnavbar
|
|
17
|
-
.androidnavbar
|
|
18
|
-
i.material-icons.back-button 
|
|
19
|
-
i.material-icons 
|
|
20
|
-
i.material-icons 
|
|
21
|
-
mixin target(url)
|
|
22
|
-
.target(style=`background-image: url(${url})`)
|
|
23
|
-
|
|
24
|
-
mixin header()
|
|
25
|
-
doctype html
|
|
26
|
-
html(lang='en')
|
|
27
|
-
head
|
|
28
|
-
title Material Design Web
|
|
29
|
-
meta(charset='utf-8')
|
|
30
|
-
meta(content='IE=edge', http-equiv='X-UA-Compatible')
|
|
31
|
-
meta(content='', name='description')
|
|
32
|
-
meta(content="width=device-width initial-scale=1", name='viewport')
|
|
33
|
-
link(rel='stylesheet' href="https://fonts.googleapis.com/icon?family=Material+Icons")
|
|
34
|
-
link(rel='stylesheet' href='//fonts.googleapis.com/css?family=Roboto:300,400,500,700')
|
|
35
|
-
link(rel='stylesheet' href='docs.min.css')
|
|
36
|
-
link(rel='stylesheet' href='components.min.css')
|
|
37
|
-
link(rel='stylesheet' href='theming.min.css')
|
|
38
|
-
link(rel='stylesheet' href='theming.ie11.min.css' media="screen and (-ms-high-contrast: active), (-ms-high-contrast: none)")
|
|
39
|
-
body(mdw-theme-fill="white light")
|
|
40
|
-
block
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- var corecomponents = ["bottomnav", "button", "list", "menu", "progress", "selection", "tab", "textfield", "toolbar", "type"]
|
|
45
|
-
- var complexcomponents = ["dialog", "navdrawer", "search"]
|
|
46
|
-
|
|
47
|
-
mixin navdrawer(selected)
|
|
48
|
-
.mdw-navdrawer#docs-navdrawer(mdw-theme-fill="background-100 light" mdw-floating="card")
|
|
49
|
-
a.mdw-navdrawer__scrim(href="#")
|
|
50
|
-
.mdw-navdrawer__toolbar
|
|
51
|
-
.mdw-toolbar(mdw-theme-fill="accent-500 dark")
|
|
52
|
-
.mdw-toolbar__action
|
|
53
|
-
.mdw-toolbar__start
|
|
54
|
-
.mdw-tooltip__wrapper
|
|
55
|
-
a.mdw-button(mdw-icon href="#docs-navdrawer").material-icons menu
|
|
56
|
-
.mdw-tooltip Menu
|
|
57
|
-
.mdw-toolbar__title=selected
|
|
58
|
-
.mdw-navdrawer__drawer
|
|
59
|
-
.mdw-list
|
|
60
|
-
a.mdw-list__item(selected=selected=='Home' href='index.html' mdw-theme-color="primary")
|
|
61
|
-
.mdw-list__text Home
|
|
62
|
-
.mdw-list__subheader Core
|
|
63
|
-
each item in corecomponents
|
|
64
|
-
a.mdw-list__item(selected=selected==item href=`${item}.html` mdw-theme-color="primary")
|
|
65
|
-
.mdw-list__text=item
|
|
66
|
-
.mdw-list__subheader Complex
|
|
67
|
-
each item in complexcomponents
|
|
68
|
-
a.mdw-list__item(selected=(selected==item) href=`${item}.html` mdw-theme-color="accent")
|
|
69
|
-
.mdw-list__text=item
|
|
70
|
-
.mdw-navdrawer__content
|
|
71
|
-
block
|
|
72
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const crosshairs = {
|
|
2
|
-
};
|
|
3
|
-
let vOffset = 0;
|
|
4
|
-
let hOffset = 0;
|
|
5
|
-
|
|
6
|
-
Object.defineProperty(crosshairs, 'vOffset', {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
configurable: false,
|
|
9
|
-
get() {
|
|
10
|
-
return vOffset;
|
|
11
|
-
},
|
|
12
|
-
set(val) {
|
|
13
|
-
vOffset = val;
|
|
14
|
-
document.getElementById('verticalLineLeft').style.left = `${val}px`;
|
|
15
|
-
document.getElementById('verticalLineRight').style.left = `${val}px`;
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
Object.defineProperty(crosshairs, 'hOffset', {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: false,
|
|
23
|
-
get() {
|
|
24
|
-
return hOffset;
|
|
25
|
-
},
|
|
26
|
-
set(val) {
|
|
27
|
-
hOffset = val;
|
|
28
|
-
document.getElementById('horizontalLine').style.top = `${val}px`;
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @param {MouseEvent} event
|
|
34
|
-
* @return {void}
|
|
35
|
-
*/
|
|
36
|
-
function onTemplateImageClick(event) {
|
|
37
|
-
document.getElementById('horizontalLine').style.top = `${event.clientY}px`;
|
|
38
|
-
document.getElementById('verticalLineLeft').style.left = `${event.layerX}px`;
|
|
39
|
-
document.getElementById('verticalLineRight').style.left = `${event.clientX}px`;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** @return {void} */
|
|
43
|
-
function setupImageTargets() {
|
|
44
|
-
const targets = document.getElementsByClassName('target');
|
|
45
|
-
for (let i = 0; i < targets.length; i += 1) {
|
|
46
|
-
targets[i].addEventListener('click', onTemplateImageClick);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export default setupImageTargets;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
@import "../../components/theming/theming.scss";
|
|
2
|
-
$themes: (
|
|
3
|
-
"default": ('indigo', 'pink', 'red'),
|
|
4
|
-
"textfield": ('deeppurple', 'amber', 'red'),
|
|
5
|
-
"toolbar": ('blue', 'pink', 'red'),
|
|
6
|
-
"bottomnav": ('teal', 'brown', 'red'),
|
|
7
|
-
"list": ('teal', 'cyan', 'pink'),
|
|
8
|
-
"selection": ('blue', 'teal', 'red'),
|
|
9
|
-
"tab": ('cyan', 'yellow', 'red')
|
|
10
|
-
);
|
|
11
|
-
$colors: ('cyan', 'red', 'green','lightblue', 'purple');
|
|
12
|
-
$components: (
|
|
13
|
-
'bottomnav',
|
|
14
|
-
'button',
|
|
15
|
-
'list',
|
|
16
|
-
'menu',
|
|
17
|
-
'progress',
|
|
18
|
-
'selection',
|
|
19
|
-
'tab',
|
|
20
|
-
'textfield',
|
|
21
|
-
'toolbar',
|
|
22
|
-
'tooltip',
|
|
23
|
-
'type',
|
|
24
|
-
'dialog',
|
|
25
|
-
'navdrawer',
|
|
26
|
-
'search'
|
|
27
|
-
);
|
|
28
|
-
$config: (
|
|
29
|
-
theme-components: $components,
|
|
30
|
-
themes: $themes,
|
|
31
|
-
explicit-colors: $colors,
|
|
32
|
-
ie11-support: 'only',
|
|
33
|
-
ie11-media-wrap: 'no'
|
|
34
|
-
);
|
|
35
|
-
@include buildMDWThemes($config);
|
package/docs/src/theming.scss
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
@import "../../components/theming/theming.scss";
|
|
2
|
-
$themes: (
|
|
3
|
-
"default": ('indigo', 'pink', 'red'),
|
|
4
|
-
"textfield": ('deeppurple', 'amber', 'red'),
|
|
5
|
-
"toolbar": ('blue', 'pink', 'red'),
|
|
6
|
-
"bottomnav": ('teal', 'brown', 'red'),
|
|
7
|
-
"list": ('teal', 'cyan', 'pink'),
|
|
8
|
-
"selection": ('blue', 'teal', 'red'),
|
|
9
|
-
"tab": ('cyan', 'yellow', 'red')
|
|
10
|
-
);
|
|
11
|
-
$colors: ('cyan', 'red', 'green','lightblue', 'purple');
|
|
12
|
-
|
|
13
|
-
$components: (
|
|
14
|
-
'bottomnav',
|
|
15
|
-
'button',
|
|
16
|
-
'list',
|
|
17
|
-
'menu',
|
|
18
|
-
'progress',
|
|
19
|
-
'selection',
|
|
20
|
-
'tab',
|
|
21
|
-
'textfield',
|
|
22
|
-
'toolbar',
|
|
23
|
-
'tooltip',
|
|
24
|
-
'type',
|
|
25
|
-
'dialog',
|
|
26
|
-
'navdrawer',
|
|
27
|
-
'search'
|
|
28
|
-
);
|
|
29
|
-
$mdw-config: (
|
|
30
|
-
theme-components: $components,
|
|
31
|
-
themes: $themes,
|
|
32
|
-
automatic-contrast: 'no',
|
|
33
|
-
explicit-colors: $colors,
|
|
34
|
-
ie11-support: 'no'
|
|
35
|
-
);
|
|
36
|
-
@include buildMDWThemes($mdw-config);
|