@shortfuse/materialdesignweb 0.4.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.
- package/.browserslistrc +2 -1
- package/.eslintrc.json +59 -8
- package/.stylelintrc.json +94 -49
- package/CHANGELOG.md +12 -0
- package/README.md +1 -3
- package/adapters/datatable/column.js +27 -54
- package/adapters/datatable/index.js +69 -81
- package/adapters/dom/index.js +32 -47
- package/adapters/search/index.js +107 -133
- package/components/appbar/_spec.scss +77 -137
- package/components/banner/_spec.scss +28 -63
- package/components/bottomnav/_spec.scss +46 -54
- package/components/bottomnav/index.js +15 -20
- package/components/bottomnav/item.js +4 -5
- package/components/button/README.md +1 -1
- package/components/button/_spec.scss +43 -42
- package/components/button/_theme.scss +27 -50
- package/components/card/_spec.scss +61 -69
- package/components/chip/_spec.scss +21 -44
- package/components/chip/_theme.scss +79 -151
- package/components/chip/index.js +6 -4
- package/components/datatable/_spec.scss +36 -99
- package/components/datatable/_theme.scss +98 -124
- package/components/datatable/cell.js +1 -2
- package/components/datatable/columnheader.js +1 -2
- package/components/datatable/index.js +33 -47
- package/components/datatable/row.js +4 -5
- package/components/dialog/_spec.scss +53 -63
- package/components/dialog/_theme.scss +7 -0
- package/components/dialog/index.js +62 -88
- package/components/divider/_spec.scss +6 -8
- package/components/elevation/_spec.scss +1 -1
- package/components/fab/_spec.scss +30 -42
- package/components/fab/index.js +4 -8
- package/components/grid/_spec.scss +68 -211
- package/components/layout/_mixins.scss +0 -22
- package/components/layout/_spec.scss +267 -363
- package/components/layout/_theme.scss +10 -35
- package/components/layout/index.js +40 -50
- package/components/list/_spec.scss +57 -91
- package/components/list/_theme.scss +75 -84
- package/components/list/content.js +9 -13
- package/components/list/index.js +34 -38
- package/components/list/item.js +8 -11
- package/components/list/secondary.js +8 -9
- package/components/menu/_spec.scss +134 -167
- package/components/menu/index.js +45 -61
- package/components/menu/item.js +11 -19
- package/components/progress/_spec.scss +43 -34
- package/components/selection/_spec.scss +123 -133
- package/components/selection/_theme.scss +88 -120
- package/components/selection/index.js +9 -15
- package/components/selection/input.js +3 -5
- package/components/selection/radiogroup.js +8 -15
- package/components/slider/_spec.scss +23 -28
- package/components/snackbar/_spec.scss +17 -62
- package/components/snackbar/index.js +15 -21
- package/components/tab/_spec.scss +35 -50
- package/components/tab/content.js +33 -28
- package/components/tab/index.js +30 -33
- package/components/tab/item.js +4 -5
- package/components/tab/list.js +22 -36
- package/components/textfield/README.md +2 -2
- package/components/textfield/_spec.scss +241 -287
- package/components/textfield/_theme.scss +197 -232
- package/components/textfield/index.js +8 -16
- package/components/tooltip/_spec.scss +23 -26
- package/components/type/_spec.scss +19 -16
- package/core/_breakpoint.scss +33 -33
- package/core/_elevation.scss +40 -0
- package/core/_length.scss +0 -1
- package/core/_platform.scss +0 -22
- package/core/_type.scss +7 -6
- package/core/aria/button.js +4 -5
- package/core/aria/keyboard.js +1 -2
- package/core/aria/rovingtabindex.js +14 -17
- package/core/aria/tab.js +1 -2
- package/core/dom.js +18 -109
- package/core/overlay/_spec.scss +5 -8
- package/core/overlay/_theme.scss +126 -150
- package/core/overlay/index.js +19 -32
- package/core/ripple/_spec.scss +16 -17
- package/core/ripple/_theme.scss +13 -33
- package/core/ripple/index.js +36 -44
- package/core/theme/_aliases.scss +15 -0
- package/core/theme/_config.scss +8 -2
- package/core/theme/_functions.scss +22 -0
- package/core/theme/_palettes.scss +0 -1
- package/core/{color → theme}/_spec.scss +0 -0
- package/core/theme/_theme.scss +268 -0
- package/core/theme/index.scss +4 -0
- package/core/transition/index.js +73 -76
- package/docs/_flex.scss +7 -1
- package/docs/_menuoptions.js +2 -2
- package/docs/_partials/_appbar.eta +12 -14
- package/docs/_partials/_header.eta +41 -44
- package/docs/_sample-utils.js +15 -20
- package/docs/docs.scss +123 -87
- package/docs/framework.scss +26 -0
- package/docs/index.eta +2 -6
- package/docs/index.js +7 -0
- package/docs/pages/appbar.eta +22 -28
- package/docs/pages/bottomnav.js +17 -14
- package/docs/pages/button.js +10 -10
- package/docs/pages/card.js +20 -22
- package/docs/pages/chip.js +11 -13
- package/docs/pages/color.js +35 -36
- package/docs/pages/datatable.js +11 -15
- package/docs/pages/dialog.eta +9 -11
- package/docs/pages/dialog.js +6 -9
- package/docs/pages/dom.js +6 -9
- package/docs/pages/elevation.eta +10 -10
- package/docs/pages/fab.js +2 -3
- package/docs/pages/grid.js +5 -5
- package/docs/pages/list.js +1 -2
- package/docs/pages/menu.eta +17 -19
- package/docs/pages/menu.js +7 -11
- package/docs/pages/overlay.js +1 -2
- package/docs/pages/progress.eta +2 -2
- package/docs/pages/progress.js +1 -1
- package/docs/pages/ripple.js +1 -2
- package/docs/pages/search.eta +20 -24
- package/docs/pages/search.js +24 -41
- package/docs/pages/selection.eta +2 -6
- package/docs/pages/selection.js +3 -4
- package/docs/pages/snackbar.js +3 -4
- package/docs/pages/tab.eta +61 -75
- package/docs/pages/tab.js +16 -15
- package/docs/pages/textfield.eta +9 -8
- package/docs/pages/textfield.js +26 -23
- package/docs/pages/tooltip.eta +10 -12
- package/docs/pages/transition.js +5 -7
- package/docs/postrender.js +7 -5
- package/docs/pwa/pwa.eta +14 -16
- package/docs/pwa/pwa.js +19 -27
- package/docs/pwa/pwa.scss +12 -7
- package/docs/themes/theme-colored.scss +9 -11
- package/docs/themes/theme-default.scss +0 -14
- package/index.scss +27 -0
- package/jsconfig.json +7 -3
- package/package.json +26 -15
- package/tsconfig.json +16 -0
- package/{webpack.config.cjs → webpack.config.js} +105 -58
- package/components/template/_theme.scss +0 -27
- package/components/textfield/_mixins.scss +0 -52
- package/core/color/_theme.scss +0 -390
- package/core/color/index.scss +0 -2
- package/core/theme/_mixins.scss +0 -172
- package/core/theme/_variables.scss +0 -24
- package/docs/_mixins.pug +0 -155
- package/docs/pages/appbar.pug +0 -78
- package/docs/pages/bottomnav.pug +0 -137
- package/docs/pages/button.pug +0 -121
- package/docs/pages/card.pug +0 -74
- package/docs/pages/chip.pug +0 -91
- package/docs/pages/color.pug +0 -121
- package/docs/pages/datatable.pug +0 -283
- package/docs/pages/dialog.pug +0 -132
- package/docs/pages/dom.pug +0 -22
- package/docs/pages/elevation.pug +0 -25
- package/docs/pages/fab.pug +0 -66
- package/docs/pages/grid.pug +0 -95
- package/docs/pages/layout.pug +0 -7
- package/docs/pages/list.pug +0 -326
- package/docs/pages/menu.pug +0 -205
- package/docs/pages/overlay.pug +0 -55
- package/docs/pages/progress.pug +0 -16
- package/docs/pages/ripple.pug +0 -21
- package/docs/pages/search.pug +0 -165
- package/docs/pages/selection.pug +0 -74
- package/docs/pages/slider.pug +0 -17
- package/docs/pages/snackbar.pug +0 -60
- package/docs/pages/tab.pug +0 -304
- package/docs/pages/textfield.pug +0 -360
- package/docs/pages/tooltip.pug +0 -78
- package/docs/pages/transition.pug +0 -76
- package/docs/pages/type.pug +0 -29
- package/docs/pwa/_dialogs.pug +0 -96
- package/docs/pwa/_menus.pug +0 -11
- package/docs/pwa/pwa.pug +0 -325
- package/docs/spec.scss +0 -26
- package/docs/themes/_component-themes.scss +0 -26
- package/docs/themes/theme-colored-fallbacks.scss +0 -17
- package/docs/themes/theme-default-fallbacks.scss +0 -17
package/docs/_mixins.pug
DELETED
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
include ../templates/index.pug
|
|
2
|
-
|
|
3
|
-
mixin androidstatusbar(surfaceColor, lightness)
|
|
4
|
-
.androidstatusbar.mdw-theme(
|
|
5
|
-
mdw-surface=(surfaceColor ? surfaceColor : false)
|
|
6
|
-
mdw-light=(lightness=='light' ? '' : false)
|
|
7
|
-
mdw-dark=(lightness=='dark' ? '' : false))
|
|
8
|
-
div 12:30
|
|
9
|
-
i.material-icons(style="letter-spacing:2px;padding:0 2px") 
|
|
10
|
-
|
|
11
|
-
mixin appbar(surfaceColor, lightness, start, end)
|
|
12
|
-
.mdw-appbar.mdw-elevation.mdw-theme(
|
|
13
|
-
style="z-index:4"
|
|
14
|
-
mdw-elevation="4"
|
|
15
|
-
mdw-surface=(surfaceColor ? surfaceColor : false)
|
|
16
|
-
mdw-light=(lightness=='light' ? '' : false)
|
|
17
|
-
mdw-dark=(lightness=='dark' ? '' : false))
|
|
18
|
-
.mdw-appbar__action
|
|
19
|
-
.mdw-appbar__start
|
|
20
|
-
each icon in start
|
|
21
|
-
+mdwButton({ icon:true }).material-icons= icon
|
|
22
|
-
.mdw-appbar__title
|
|
23
|
-
block
|
|
24
|
-
.mdw-appbar__end
|
|
25
|
-
each icon in end
|
|
26
|
-
+mdwButton({ icon:true })(mdw-more-button=(icon === 'more_vert')).material-icons= icon
|
|
27
|
-
mixin androidnavbar
|
|
28
|
-
.androidnavbar
|
|
29
|
-
i.material-icons.back-button 
|
|
30
|
-
i.material-icons 
|
|
31
|
-
i.material-icons 
|
|
32
|
-
mixin target(url)
|
|
33
|
-
.target(style=`background-image: url(${url})`)
|
|
34
|
-
|
|
35
|
-
mixin navListItem(key, icon, name, activatedKey, color="secondary contrast")
|
|
36
|
-
li.mdw-list__item
|
|
37
|
-
a.mdw-list__content.mdw-overlay.mdw-ripple.mdw-theme(
|
|
38
|
-
aria-selected=(activatedKey==key ? 'true' : 'false')
|
|
39
|
-
aria-current=(activatedKey==key ? 'page' : false)
|
|
40
|
-
href=(key + ".html")
|
|
41
|
-
mdw-ink=color
|
|
42
|
-
)
|
|
43
|
-
if (icon)
|
|
44
|
-
.mdw-list__icon.mdw-theme.material-icons(mdw-ink="medium")=icon
|
|
45
|
-
.mdw-list__text
|
|
46
|
-
.mdw-list__text-block=name
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
mixin header(activated)
|
|
50
|
-
doctype html
|
|
51
|
-
html.mdw-layout.mdw-theme(lang='en' mdw-surface="binary" mdw-light)
|
|
52
|
-
head
|
|
53
|
-
title Material Design Web
|
|
54
|
-
meta(charset='utf-8')
|
|
55
|
-
meta(content='IE=edge', http-equiv='X-UA-Compatible')
|
|
56
|
-
meta(content='Material Design Web - CSS/JS Framework', name='description')
|
|
57
|
-
meta(content="width=device-width, initial-scale=1, viewport-fit=cover", name='viewport')
|
|
58
|
-
meta(name="theme-color" content="#C2185B")
|
|
59
|
-
meta(name="apple-mobile-web-app-status-bar-style" content="black-translucent")
|
|
60
|
-
meta(name="apple-mobile-web-app-capable" content="yes")
|
|
61
|
-
link(rel='stylesheet' href="https://fonts.googleapis.com/icon?family=Material+Icons")
|
|
62
|
-
link(rel='stylesheet' href='//fonts.googleapis.com/css?family=Roboto:300,400,500')
|
|
63
|
-
link(rel='stylesheet' href='//fonts.googleapis.com/css?family=Merriweather:300,400,500')
|
|
64
|
-
link(rel='stylesheet' href='docs.min.css')
|
|
65
|
-
link(rel='stylesheet' href='spec.min.css')
|
|
66
|
-
link(rel='stylesheet' href='theme-default.min.css' title="Default Theme")
|
|
67
|
-
link(rel='stylesheet' href='theme-default-fallbacks.min.css' media="all\\0" title="Default Theme")
|
|
68
|
-
link(rel='stylesheet' disabled href='theme-colored.min.css' title="Colored Theme")
|
|
69
|
-
link(rel='stylesheet' disabled href='theme-colored-fallbacks.min.css' media="all\\0" title="Colored Theme")
|
|
70
|
-
script(src='prerender.min.js')
|
|
71
|
-
body.mdw-layout__body.mdw-theme(mdw-surface="background" mdw-sidesheet-toggle="dismissible" mdw-sidesheet-style="modal")
|
|
72
|
-
.mdw-layout__menus
|
|
73
|
-
.mdw-layout__dialogs
|
|
74
|
-
nav#docs-navdrawer.mdw-layout__navdrawer
|
|
75
|
-
.mdw-layout__sheet-content.mdw-theme(mdw-surface="background" mdw-border-ink)
|
|
76
|
-
ul.mdw-list(style="padding-bottom:64px")
|
|
77
|
-
li.mdw-list__item
|
|
78
|
-
a.mdw-list__content.mdw-overlay.mdw-ripple.mdw-theme(
|
|
79
|
-
aria-current=activated=='Home'
|
|
80
|
-
aria-selected=(activatedKey=='Home' ? 'true' : 'false')
|
|
81
|
-
href='index.html'
|
|
82
|
-
mdw-ink="default")
|
|
83
|
-
.mdw-list__text Home
|
|
84
|
-
li.mdw-list__item(aria-expanded="true")
|
|
85
|
-
.mdw-list__content.mdw-list__subheader
|
|
86
|
-
.mdw-list__text.mdw-theme(mdw-ink="medium") Core
|
|
87
|
-
.mdw-list__secondary.mdw-theme.material-icons(mdw-ink="medium") expand_more
|
|
88
|
-
ul.mdw-list
|
|
89
|
-
+navListItem('color', 'compare', 'Color', activated, 'primary contrast')
|
|
90
|
-
+navListItem('overlay', 'tonality', 'Overlay', activated, 'primary contrast')
|
|
91
|
-
+navListItem('ripple', 'center_focus_strong', 'Ripple', activated, 'primary contrast')
|
|
92
|
-
+navListItem('transition', 'open_in_new', 'Transition', activated, 'primary contrast')
|
|
93
|
-
li.mdw-list__item.mdw-theme(aria-expanded="true")
|
|
94
|
-
.mdw-list__content.mdw-list__subheader
|
|
95
|
-
.mdw-list__text.mdw-theme(mdw-ink="medium") Components
|
|
96
|
-
.mdw-list__secondary.mdw-theme.material-icons(mdw-ink="medium") expand_more
|
|
97
|
-
ul.mdw-list
|
|
98
|
-
+navListItem('appbar', 'web_asset', 'App Bar', activated)
|
|
99
|
-
+navListItem('bottomnav', 'call_to_action', 'Bottom Navigation', activated)
|
|
100
|
-
+navListItem('button', 'crop_landscape', 'Button', activated)
|
|
101
|
-
+navListItem('card', 'crop_square', 'Card', activated)
|
|
102
|
-
+navListItem('chip', 'check_circle', 'Chip', activated)
|
|
103
|
-
+navListItem('datatable', 'format_align_justify', 'Data Table', activated)
|
|
104
|
-
+navListItem('dialog', 'select_all', 'Dialog', activated)
|
|
105
|
-
+navListItem('elevation', 'layers', 'Elevation', activated)
|
|
106
|
-
+navListItem('fab', 'add_circle', 'Floating Action Button', activated)
|
|
107
|
-
+navListItem('grid', 'view_compact', 'Grid', activated)
|
|
108
|
-
+navListItem('layout', 'view_quilt', 'Layout', activated)
|
|
109
|
-
+navListItem('list', 'view_list', 'List', activated)
|
|
110
|
-
+navListItem('menu', 'picture_in_picture', 'Menu', activated)
|
|
111
|
-
+navListItem('progress', 'timelapse', 'Progress', activated)
|
|
112
|
-
+navListItem('selection', 'toggle_on', 'Selection', activated)
|
|
113
|
-
+navListItem('slider', 'tune', 'Slider', activated)
|
|
114
|
-
+navListItem('snackbar', 'video_label', 'Snackbar', activated)
|
|
115
|
-
+navListItem('tab', 'tab', 'Tab', activated)
|
|
116
|
-
+navListItem('textfield', 'text_fields', 'Text Field', activated)
|
|
117
|
-
+navListItem('tooltip', 'info', 'Tooltip', activated)
|
|
118
|
-
+navListItem('type', 'font_download', 'Typography', activated)
|
|
119
|
-
li.mdw-list__item(aria-expanded="true")
|
|
120
|
-
.mdw-list__content.mdw-list__subheader
|
|
121
|
-
.mdw-list__text.mdw-theme(mdw-ink="medium") Adapters
|
|
122
|
-
.mdw-list__secondary.mdw-theme.material-icons(mdw-ink="medium") expand_more
|
|
123
|
-
ul.mdw-list
|
|
124
|
-
+navListItem('dom', 'calendar_view_day', 'DOM', activated)
|
|
125
|
-
+navListItem('search', 'search', 'Search', activated)
|
|
126
|
-
a.mdw-layout__scrim(href='#' tabindex="-1")
|
|
127
|
-
.mdw-layout__appbar.mdw-appbar.mdw-theme(mdw-autohide="mobile tablet" mdw-surface="secondary 500" mdw-dark)
|
|
128
|
-
.mdw-layout__appbar-shape
|
|
129
|
-
.mdw-appbar__action
|
|
130
|
-
.mdw-appbar__start
|
|
131
|
-
.mdw-tooltip__wrapper
|
|
132
|
-
+mdwButton({ icon:true }).mdw-tooltip__target.material-icons.mdw-layout__navdrawer-toggle(href="#docs-navdrawer") menu
|
|
133
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark mdw-align="start") Menu
|
|
134
|
-
.mdw-appbar__title=activated
|
|
135
|
-
#docs-menu-buttons.mdw-appbar__end
|
|
136
|
-
.mdw-tooltip__wrapper
|
|
137
|
-
+mdwButton({ icon: true })#altThemeButton.mdw-tooltip__target.material-icons(mdw-overlay-default="medium" mdw-overlay-off="activated" aria-pressed="false") palette
|
|
138
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark mdw-align="end") Alt Theme
|
|
139
|
-
.mdw-tooltip__wrapper
|
|
140
|
-
+mdwButton({ icon: true })#darkModeButton.mdw-tooltip__target.material-icons(mdw-overlay-default="medium" mdw-overlay-off="activated" aria-pressed="false") brightness_3
|
|
141
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark mdw-align="end") Dark Mode
|
|
142
|
-
.mdw-tooltip__wrapper
|
|
143
|
-
+mdwButton({ icon: true })#rtlButton.mdw-tooltip__target.material-icons(mdw-overlay-default="medium" mdw-overlay-off="activated" aria-pressed="false") format_align_right
|
|
144
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark mdw-align="end") Right-to-Left
|
|
145
|
-
.mdw-tooltip__wrapper
|
|
146
|
-
+mdwButton({ icon: true })#largeFontButton.mdw-tooltip__target.material-icons(mdw-overlay-default="medium" mdw-overlay-off="activated" aria-pressed="false") format_size
|
|
147
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark mdw-align="end") 200% Text
|
|
148
|
-
.mdw-layout__fab
|
|
149
|
-
.mdw-layout__snackbar
|
|
150
|
-
.mdw-layout__content
|
|
151
|
-
.mdw-layout__content-page
|
|
152
|
-
block
|
|
153
|
-
script(src='postrender.min.js')
|
|
154
|
-
script(src='entire-framework.min.js')
|
|
155
|
-
script(src='docs.common.min.js')
|
package/docs/pages/appbar.pug
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("appbar")
|
|
4
|
-
.comparison.clipped
|
|
5
|
-
.render
|
|
6
|
-
+androidstatusbar('background 400', 'light')
|
|
7
|
-
+appbar('background 50', 'light', ['menu'], ['search', 'favorite', 'more_vert']) Title
|
|
8
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
9
|
-
|
|
10
|
-
.comparison.clipped
|
|
11
|
-
.render
|
|
12
|
-
+androidstatusbar('black', 'dark')
|
|
13
|
-
+appbar('background 900', 'dark', ['menu'], ['search', 'favorite', 'more_vert']) Title
|
|
14
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
15
|
-
|
|
16
|
-
.comparison.clipped
|
|
17
|
-
.render
|
|
18
|
-
+androidstatusbar('blue 800', 'dark')
|
|
19
|
-
+appbar('blue 700', 'dark', ['menu'], ['search', 'favorite', 'more_vert']) Title
|
|
20
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
21
|
-
|
|
22
|
-
.comparison.clipped-304
|
|
23
|
-
.render
|
|
24
|
-
+androidstatusbar('')
|
|
25
|
-
// Elevation and z-index only for demo
|
|
26
|
-
// Normally handled with .mdw-layout__appbar
|
|
27
|
-
.mdw-appbar.mdw-elevation(mdw-dense mdw-elevation="4" style="z-index:4")
|
|
28
|
-
.mdw-appbar__action
|
|
29
|
-
.mdw-appbar__start
|
|
30
|
-
+mdwButton({ icon: true }).material-icons menu
|
|
31
|
-
.mdw-appbar__title Dense (Desktop)
|
|
32
|
-
.mdw-appbar__end
|
|
33
|
-
+mdwButton({ icon: true }).material-icons more_vert
|
|
34
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
35
|
-
|
|
36
|
-
.comparison.clipped-304
|
|
37
|
-
.render
|
|
38
|
-
+androidstatusbar('')
|
|
39
|
-
.mdw-appbar.mdw-elevation(mdw-prominent mdw-dense mdw-elevation="4" style="z-index:4")
|
|
40
|
-
.mdw-appbar__action
|
|
41
|
-
.mdw-appbar__start
|
|
42
|
-
+mdwButton({ icon: true }).material-icons menu
|
|
43
|
-
.mdw-appbar__title Prominent Dense
|
|
44
|
-
.mdw-appbar__end
|
|
45
|
-
+mdwButton({ icon: true }).material-icons search
|
|
46
|
-
+mdwButton({ icon: true }).material-icons more_vert
|
|
47
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
48
|
-
|
|
49
|
-
.comparison.clipped-304
|
|
50
|
-
.render
|
|
51
|
-
+androidstatusbar('')
|
|
52
|
-
.mdw-appbar.mdw-elevation(mdw-elevation="4" style="z-index:4")
|
|
53
|
-
.mdw-appbar__action
|
|
54
|
-
.mdw-appbar__start
|
|
55
|
-
.mdw-tooltip__wrapper
|
|
56
|
-
+mdwButton({ icon: true }).mdw-tooltip__target.material-icons arrow_back
|
|
57
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark) Back
|
|
58
|
-
.mdw-appbar__end
|
|
59
|
-
.mdw-tooltip__wrapper
|
|
60
|
-
+mdwButton({ icon: true }).mdw-tooltip__target(mdw-more-button).material-icons more_vert
|
|
61
|
-
.mdw-tooltip.mdw-theme(mdw-surface="background 700" mdw-dark) More
|
|
62
|
-
.mdw-appbar__content
|
|
63
|
-
label.mdw-textfield.mdw-theme(mdw-ink="primary contrast" style="font-size: 1.5rem")
|
|
64
|
-
input.mdw-textfield__input(value="Project Properties" placeholder=" ")
|
|
65
|
-
.mdw-textfield__border
|
|
66
|
-
.mdw-textfield__outline-gap
|
|
67
|
-
.mdw-textfield__label Title
|
|
68
|
-
div(style="height:8px")
|
|
69
|
-
label.mdw-textfield.mdw-theme(mdw-ink="primary contrast")
|
|
70
|
-
input.mdw-textfield__input(value="Sync with the team abo" placeholder=" ")
|
|
71
|
-
.mdw-textfield__border
|
|
72
|
-
.mdw-textfield__outline-gap
|
|
73
|
-
.mdw-textfield__label Description
|
|
74
|
-
div(style="height:24px")
|
|
75
|
-
// Spec says 16dp, but it's actually 24dp
|
|
76
|
-
.content.mdw-theme(mdw-surface="background alt")
|
|
77
|
-
|
|
78
|
-
script(src='appbar.min.js')
|
package/docs/pages/bottomnav.pug
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("bottomnav")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
h5.mdw-type(mdw-baseline-next="36") Bottom navigation bars allow movement between primary destinations in an app.
|
|
7
|
-
p.mdw-typeBottom navigation bars display three to five destinations at the bottom of a screen. Each destination is represented by an icon and an optional text label. When a bottom navigation icon is tapped, the user is taken to the top-level navigation destination associated with that icon.
|
|
8
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
9
|
-
.mdw-grid__content.component-sample
|
|
10
|
-
.render-fill
|
|
11
|
-
+androidstatusbar('background 900', 'dark')
|
|
12
|
-
+appbar('background 800', 'dark', [], []) Bottom Navigation
|
|
13
|
-
.content
|
|
14
|
-
nav.mdw-bottomnav
|
|
15
|
-
a.mdw-bottomnav__item.mdw-theme(mdw-ink="primary" aria-selected="true")
|
|
16
|
-
.mdw-bottomnav__icon
|
|
17
|
-
i.material-icons history
|
|
18
|
-
.mdw-bottomnav__label Recents
|
|
19
|
-
a.mdw-bottomnav__item.mdw-theme(mdw-ink="primary" aria-selected="false")
|
|
20
|
-
.mdw-bottomnav__icon
|
|
21
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="")
|
|
22
|
-
i.material-icons favorite
|
|
23
|
-
.mdw-bottomnav__label Favorites
|
|
24
|
-
a.mdw-bottomnav__item.mdw-theme(mdw-ink="primary" aria-selected="false")
|
|
25
|
-
.mdw-bottomnav__icon
|
|
26
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="99+")
|
|
27
|
-
i.material-icons near_me
|
|
28
|
-
.mdw-bottomnav__label Nearby
|
|
29
|
-
+androidnavbar
|
|
30
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
31
|
-
.mdw-type(mdw-style="subtitle") Javascript
|
|
32
|
-
.docs-option-list
|
|
33
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'javascript', value:'required', checked:true}) Required
|
|
34
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'javascript', value:'optional', disabled:true}) Optional
|
|
35
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'javascript', value:'none', disabled:true}) None
|
|
36
|
-
.mdw-type(mdw-style="subtitle") Ink
|
|
37
|
-
.docs-option-list
|
|
38
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'ink', value:'default'}) Default
|
|
39
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'ink', value:'primary', checked:true}) Primary
|
|
40
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'ink', value:'secondary'}) Secondary
|
|
41
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'ink', value:'warn'}) Warn
|
|
42
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'ink', value:'purple'}) Purple
|
|
43
|
-
.mdw-type(mdw-style="subtitle") Surface
|
|
44
|
-
.docs-option-list
|
|
45
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'none', checked:true}) None
|
|
46
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'card'}) Card
|
|
47
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'primary 500 dark'}) Primary 500 (Dark)
|
|
48
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'secondary 100 light'}) Secondary 100 (Light)
|
|
49
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'warn 200 light'}) Warn 200 (Light)
|
|
50
|
-
+mdwSelection({ink:'secondary', type:'radio', name:'surface', value:'green 700 dark'}) Green 700 (Dark)
|
|
51
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
52
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
53
|
-
h6.mdw-type HTML Code
|
|
54
|
-
.mdw-card.mdw-theme.component-code.component-html(mdw-surface="card" mdw-border-ink)
|
|
55
|
-
+mdwButton({ icon: true, ink:'secondary' })#usePug(aria-pressed="false" mdw-overlay-off="activated") PUG
|
|
56
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
57
|
-
h6.mdw-type Javascript Code
|
|
58
|
-
.mdw-card.mdw-theme.component-code.component-js(mdw-surface="card" mdw-border-ink)
|
|
59
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
60
|
-
h6.mdw-type Samples
|
|
61
|
-
.mdw-grid__item.display-flex(mdw-colspan="6")
|
|
62
|
-
.render-fill.mdw-theme(mdw-surface="white" mdw-light)
|
|
63
|
-
+androidstatusbar('')
|
|
64
|
-
+appbar('', '', [], []) Light Theme
|
|
65
|
-
.content(style="padding: 16px 0")
|
|
66
|
-
ul
|
|
67
|
-
li Radio buttons
|
|
68
|
-
li Badges
|
|
69
|
-
nav.mdw-bottomnav.mdw-theme(mdw-ink="primary medium")
|
|
70
|
-
a.mdw-bottomnav__item(aria-selected="true")
|
|
71
|
-
.mdw-bottomnav__icon.material-icons history
|
|
72
|
-
.mdw-bottomnav__label Recents
|
|
73
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
74
|
-
.mdw-bottomnav__icon
|
|
75
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="")
|
|
76
|
-
.material-icons favorite
|
|
77
|
-
.mdw-bottomnav__label Favorites
|
|
78
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
79
|
-
.mdw-bottomnav__icon.material-icons near_me
|
|
80
|
-
.mdw-bottomnav__label Nearby
|
|
81
|
-
+androidnavbar
|
|
82
|
-
.mdw-grid__item.display-flex(mdw-colspan="6")
|
|
83
|
-
.render-fill.js.mdw-theme(mdw-surface="black" mdw-dark)
|
|
84
|
-
+androidstatusbar('')
|
|
85
|
-
+appbar('', '', [], []) Dark Theme
|
|
86
|
-
.content(style="padding: 16px 0")
|
|
87
|
-
ul
|
|
88
|
-
li Disappearing Labels
|
|
89
|
-
li Badges
|
|
90
|
-
li Shifting labels
|
|
91
|
-
nav.mdw-bottomnav(mdw-shifting)
|
|
92
|
-
a.mdw-bottomnav__item
|
|
93
|
-
.mdw-bottomnav__icon.material-icons tv
|
|
94
|
-
.mdw-bottomnav__label Movies
|
|
95
|
-
a.mdw-bottomnav__item(aria-selected="true")
|
|
96
|
-
.mdw-bottomnav__icon
|
|
97
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge)
|
|
98
|
-
.material-icons music_note
|
|
99
|
-
.mdw-bottomnav__label Music
|
|
100
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
101
|
-
.mdw-bottomnav__icon
|
|
102
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="88")
|
|
103
|
-
.material-icons book
|
|
104
|
-
.mdw-bottomnav__label Books
|
|
105
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
106
|
-
.mdw-bottomnav__icon
|
|
107
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="888+")
|
|
108
|
-
.material-icons assignment
|
|
109
|
-
.mdw-bottomnav__label Newsstand
|
|
110
|
-
+androidnavbar
|
|
111
|
-
.mdw-grid__item.display-flex(mdw-colspan="6")
|
|
112
|
-
.render-fill.js.mdw-theme
|
|
113
|
-
+androidstatusbar('')
|
|
114
|
-
+appbar('', '', [], []) Tablet
|
|
115
|
-
.content(style="padding: 16px 0")
|
|
116
|
-
ul
|
|
117
|
-
li Disappearing Labels
|
|
118
|
-
li Badges
|
|
119
|
-
nav.mdw-bottomnav.mdw-theme(mdw-surface="teal 700" mdw-dark mdw-shifting)
|
|
120
|
-
a.mdw-bottomnav__item(aria-selected="true")
|
|
121
|
-
.mdw-bottomnav__icon
|
|
122
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge="4")
|
|
123
|
-
.material-icons tv
|
|
124
|
-
.mdw-bottomnav__label Movies
|
|
125
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
126
|
-
.mdw-bottomnav__icon
|
|
127
|
-
.mdw-bottomnav__badge.mdw-theme(mdw-surface="warn 500" mdw-ink="white" mdw-badge)
|
|
128
|
-
.material-icons music_note
|
|
129
|
-
.mdw-bottomnav__label Music
|
|
130
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
131
|
-
.mdw-bottomnav__icon.material-icons book
|
|
132
|
-
.mdw-bottomnav__label Books
|
|
133
|
-
a.mdw-bottomnav__item(aria-selected="false")
|
|
134
|
-
.mdw-bottomnav__icon.material-icons assignment
|
|
135
|
-
.mdw-bottomnav__label Newsstand
|
|
136
|
-
+androidnavbar
|
|
137
|
-
script(src='bottomnav.min.js')
|
package/docs/pages/button.pug
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
include ../../templates/index.pug
|
|
2
|
-
include ../_mixins.pug
|
|
3
|
-
|
|
4
|
-
mixin button-test
|
|
5
|
-
.display-flex.flex-wrap
|
|
6
|
-
+mdwButton Text
|
|
7
|
-
+mdwButton({ raised:true }) Contained
|
|
8
|
-
+mdwButton({ raised:true, disabled:true }) Disabled
|
|
9
|
-
+mdwButton({ borderInk:'default'}) Outlined
|
|
10
|
-
div(style="height:24px")
|
|
11
|
-
.display-flex.flex-wrap
|
|
12
|
-
+mdwButton({ ink:'primary' }) Text
|
|
13
|
-
+mdwButton({ ink:'primary', raised:true }) Contained
|
|
14
|
-
+mdwButton({ ink:'primary', raised:true, disabled:true }) Disabled
|
|
15
|
-
+mdwButton({ ink:'secondary' }) Secondary
|
|
16
|
-
+mdwButton({ ink:'secondary', borderInk:true }) Outlined
|
|
17
|
-
div(style="height:24px")
|
|
18
|
-
.display-flex.flex-wrap
|
|
19
|
-
+mdwButton({ surface:'primary 500', dark:true }) Text
|
|
20
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true }) Contained
|
|
21
|
-
+mdwButton({ surface:'primary 500', dark:true, raised:true, disabled:true }) Disabled
|
|
22
|
-
+mdwButton({ surface:'secondary 100', light:true, raised:true }) Outlined
|
|
23
|
-
div(style="height:24px")
|
|
24
|
-
.display-flex.flex-wrap
|
|
25
|
-
+mdwButton({ icon:true }).material-icons favorite
|
|
26
|
-
+mdwButton({ ink:"warn", dark:true, icon:true }).material-icons favorite
|
|
27
|
-
+mdwButton({ surface:"warn 500", dark:true, icon:true }).material-icons favorite
|
|
28
|
-
+mdwButton({ surface:"warn 500", dark:true, icon:true, raised:true }).material-icons favorite
|
|
29
|
-
+mdwButton({ surface:"warn 500", dark:true, icon:true, raised:true, disabled:true }).material-icons favorite
|
|
30
|
-
+mdwButton({ icon:true, disabled:true }).material-icons favorite
|
|
31
|
-
|
|
32
|
-
+header("button")
|
|
33
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
34
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
35
|
-
.mdw-grid__content
|
|
36
|
-
h5.mdw-type(mdw-baseline-next="36") Buttons communicate the action that will occur when the user touches them.
|
|
37
|
-
p.mdw-type Material buttons trigger an ink reaction on press. They may display text, imagery, or both.
|
|
38
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
39
|
-
.mdw-grid__content
|
|
40
|
-
.component-sample
|
|
41
|
-
.display-flex
|
|
42
|
-
a.mdw-button.mdw-theme(mdw-ink="secondary") Button
|
|
43
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
44
|
-
.mdw-grid__content
|
|
45
|
-
.mdw-type(mdw-style="subtitle") Javascript
|
|
46
|
-
.docs-option-list
|
|
47
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'required', disabled:true}) Required
|
|
48
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'optional', checked:true}) Optional
|
|
49
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'none'}) None
|
|
50
|
-
.mdw-type(mdw-style="subtitle") Overlay
|
|
51
|
-
.docs-option-list
|
|
52
|
-
+mdwSelection({ink:'secondary', name:'overlay-hover', checked:true}) Hover
|
|
53
|
-
+mdwSelection({ink:'secondary', name:'overlay-focus', checked:true}) Focus
|
|
54
|
-
+mdwSelection({ink:'secondary', name:'overlay-activated', checked:true}) Activated
|
|
55
|
-
.mdw-type(mdw-style="subtitle") Options
|
|
56
|
-
.docs-option-list
|
|
57
|
-
+mdwSelection({ink:'secondary', name:'icon'}) Icon
|
|
58
|
-
+mdwSelection({ink:'secondary', name:'raised'}) Raised
|
|
59
|
-
+mdwSelection({ink:'secondary', name:'ripple', checked:true}) Ripple
|
|
60
|
-
+mdwSelection({ink:'secondary', name:'disabled'}) Disabled
|
|
61
|
-
.mdw-type(mdw-style="subtitle") Outline
|
|
62
|
-
.docs-option-list
|
|
63
|
-
+mdwSelection({ink:'secondary', name:'outline', type:'radio', value:'none', checked:true}) None
|
|
64
|
-
+mdwSelection({ink:'secondary', name:'outline', type:'radio', value:'default'}) Default
|
|
65
|
-
+mdwSelection({ink:'secondary', name:'outline', type:'radio', value:''}) Ink
|
|
66
|
-
.mdw-type(mdw-style="subtitle") Activated Toggle
|
|
67
|
-
.docs-option-list
|
|
68
|
-
+mdwSelection({ink:'secondary', name:'toggle', type:'radio', value:'', checked:true}) None
|
|
69
|
-
+mdwSelection({ink:'secondary', name:'toggle', type:'radio', value:'false'}) Off
|
|
70
|
-
+mdwSelection({ink:'secondary', name:'toggle', type:'radio', value:'true'}) On
|
|
71
|
-
.mdw-type(mdw-style="subtitle") Ink
|
|
72
|
-
.docs-option-list
|
|
73
|
-
+mdwSelection({ink:'secondary', name:'ink', type:'radio', value:'default'}) Default
|
|
74
|
-
+mdwSelection({ink:'secondary', name:'ink', type:'radio', value:'primary'}) Primary
|
|
75
|
-
+mdwSelection({ink:'secondary', name:'ink', type:'radio', value:'secondary', checked:true}) Secondary
|
|
76
|
-
+mdwSelection({ink:'secondary', name:'ink', type:'radio', value:'warn contrast'}) Warn Contrast
|
|
77
|
-
+mdwSelection({ink:'secondary', name:'ink', type:'radio', value:'purple'}) Purple
|
|
78
|
-
.mdw-type(mdw-style="subtitle") Surface
|
|
79
|
-
.docs-option-list
|
|
80
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'none', checked:true}) Default
|
|
81
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'primary 500 dark'}) Primary (Dark)
|
|
82
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'secondary 100 light'}) Secondary (Light)
|
|
83
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'warn 200 light'}) Warn 200 (Light)
|
|
84
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'green 700 dark'}) Green 700 (Dark)
|
|
85
|
-
.mdw-type(mdw-style="subtitle") HTML Element Type
|
|
86
|
-
.docs-option-list
|
|
87
|
-
+mdwSelection({ink:'secondary', name:'htmltype', type:'radio', value:'a', checked:true}) HTMLAnchorElement
|
|
88
|
-
+mdwSelection({ink:'secondary', name:'htmltype', type:'radio', value:'button'}) HTMLButtonElement
|
|
89
|
-
+mdwSelection({ink:'secondary', name:'htmltype', type:'radio', value:'div'}) HTMLDivElement
|
|
90
|
-
.mdw-grid__item(mdw-colspan="100%" style="max-height:0")
|
|
91
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
92
|
-
.mdw-grid__content
|
|
93
|
-
h6.mdw-type HTML Code
|
|
94
|
-
.mdw-card.mdw-theme.component-code.component-html(mdw-surface="card" mdw-border-ink)
|
|
95
|
-
+mdwButton({ icon:true, ink:'secondary' })#usePug(aria-pressed="false" mdw-overlay-off="activated") PUG
|
|
96
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
97
|
-
.mdw-grid__content
|
|
98
|
-
h6.mdw-type Javascript Code
|
|
99
|
-
.mdw-card.mdw-theme.component-code.component-js(mdw-surface="card" mdw-border-ink)
|
|
100
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
101
|
-
.mdw-grid__content
|
|
102
|
-
h6.mdw-type Samples
|
|
103
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
104
|
-
.mdw-grid__content
|
|
105
|
-
.render-fill.mdw-theme
|
|
106
|
-
+androidstatusbar('')
|
|
107
|
-
+appbar('', '', [], []) CSS Only
|
|
108
|
-
.content.mdw-theme(style="padding: 16px 0" mdw-surface="binary")
|
|
109
|
-
div
|
|
110
|
-
+button-test
|
|
111
|
-
+androidnavbar
|
|
112
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
113
|
-
.mdw-grid__content
|
|
114
|
-
.render-fill.js.mdw-theme
|
|
115
|
-
+androidstatusbar('')
|
|
116
|
-
+appbar('', '', [], []) Javascript Version
|
|
117
|
-
.content.mdw-theme(style="padding: 16px 0" mdw-surface="binary")
|
|
118
|
-
div
|
|
119
|
-
+button-test
|
|
120
|
-
+androidnavbar
|
|
121
|
-
script(src='button.min.js')
|
package/docs/pages/card.pug
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
include ../_mixins.pug
|
|
2
|
-
|
|
3
|
-
+header("card")
|
|
4
|
-
.mdw-grid(mdw-margin-top mdw-margin-bottom mdw-stretch)
|
|
5
|
-
.mdw-grid__item(mdw-colspan="100%")
|
|
6
|
-
h5.mdw-type(mdw-baseline-next="36") Cards contain content and actions about a single subject.
|
|
7
|
-
p.mdw-type(mdw-baseline-next="36") Cards are surfaces that display content and actions on a single topic.
|
|
8
|
-
p.mdw-type They should be easy to scan for relevant and actionable information. Elements, like text and images, should be placed on them in a way that clearly indicates hierarchy.
|
|
9
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
10
|
-
.mdw-grid__content.component-sample
|
|
11
|
-
.display-flex
|
|
12
|
-
.mdw-card.mdw-theme(mdw-raised="focus-within" mdw-surface="card" mdw-border-ink)
|
|
13
|
-
+mdwButton().mdw-card__button
|
|
14
|
-
.mdw-card__start
|
|
15
|
-
.mdw-card__thumbnail.material-icons(style="font-size:40px") account_circle
|
|
16
|
-
.mdw-card__end(style="margin:8px 0")
|
|
17
|
-
+mdwButton({ icon: true }).material-icons clear
|
|
18
|
-
h6.mdw-card__header(mdw-two-line) Title goes here
|
|
19
|
-
.mdw-card__subheader Secondary text
|
|
20
|
-
.mdw-card__media(mdw-ratio="16:9")
|
|
21
|
-
img.mdw-card__image(src="https://free-images.com/md/f673/sunset_sky_red_gold_0.jpg")
|
|
22
|
-
.mdw-card__supporting-text Grayhound divisively hello coldly wonderfully marginally far upon excluding.
|
|
23
|
-
.mdw-card__actions
|
|
24
|
-
+mdwButton({ ink:'secondary' }) Action 1
|
|
25
|
-
+mdwButton({ ink:'secondary' }) Action 2
|
|
26
|
-
span
|
|
27
|
-
+mdwButton({ icon: true }).material-icons more_vert
|
|
28
|
-
.mdw-grid__item(mdw-colspan="4")
|
|
29
|
-
.mdw-type(mdw-style="subtitle") Javascript
|
|
30
|
-
.docs-option-list
|
|
31
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'required', disabled:true}) Required
|
|
32
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'optional', disabled:true}) Optional
|
|
33
|
-
+mdwSelection({ink:'secondary', name:'javascript', type:'radio', value:'none', checked:true}) None
|
|
34
|
-
.mdw-type(mdw-style="subtitle") Elevation
|
|
35
|
-
.docs-option-list
|
|
36
|
-
+mdwSelection({ink:'secondary', name:'elevation', type:'radio', value:'auto', checked:true}) Auto
|
|
37
|
-
+mdwSelection({ink:'secondary', name:'elevation', type:'radio', value:'0'}) 0dp
|
|
38
|
-
+mdwSelection({ink:'secondary', name:'elevation', type:'radio', value:'1'}) 1dp
|
|
39
|
-
+mdwSelection({ink:'secondary', name:'elevation', type:'radio', value:'8'}) 8dp
|
|
40
|
-
.mdw-type(mdw-style="subtitle") Raise
|
|
41
|
-
.docs-option-list
|
|
42
|
-
+mdwSelection({ink:'secondary', name:'raise-focus-within', value:'focus-within', checked:true}) On Focus Within
|
|
43
|
-
+mdwSelection({ink:'secondary', name:'raise-hover', value:'hover'}) On Hover
|
|
44
|
-
.mdw-type(mdw-style="subtitle") Media Placement
|
|
45
|
-
.docs-option-list
|
|
46
|
-
+mdwSelection({ink:'secondary', name:'media-placement', type:'radio', value:'none'}) None
|
|
47
|
-
+mdwSelection({ink:'secondary', name:'media-placement', type:'radio', value:'top'}) Top
|
|
48
|
-
+mdwSelection({ink:'secondary', name:'media-placement', type:'radio', value:'middle', checked:true}) Middle
|
|
49
|
-
+mdwSelection({ink:'secondary', name:'media-placement', type:'radio', value:'bottom'}) Bottom
|
|
50
|
-
.mdw-type(mdw-style="subtitle") Media Ratio
|
|
51
|
-
.docs-option-list
|
|
52
|
-
+mdwSelection({ink:'secondary', name:'media-ratio', type:'radio', value:'none'}) None
|
|
53
|
-
+mdwSelection({ink:'secondary', name:'media-ratio', type:'radio', value:'16:9', checked:true}) 16:9
|
|
54
|
-
+mdwSelection({ink:'secondary', name:'media-ratio', type:'radio', value:'3:2'}) 3:2
|
|
55
|
-
+mdwSelection({ink:'secondary', name:'media-ratio', type:'radio', value:'4:3'}) 4:3
|
|
56
|
-
+mdwSelection({ink:'secondary', name:'media-ratio', type:'radio', value:'1:1'}) 1:1
|
|
57
|
-
.mdw-type(mdw-style="subtitle") Actions
|
|
58
|
-
.docs-option-list
|
|
59
|
-
+mdwSelection({ink:'secondary', name:'primary-action', checked:true}) Primary
|
|
60
|
-
+mdwSelection({ink:'secondary', name:'secondary-actions', checked:true}) Secondary
|
|
61
|
-
+mdwSelection({ink:'secondary', name:'close-action', checked:true}) Close
|
|
62
|
-
.mdw-type(mdw-style="subtitle") Surface
|
|
63
|
-
.docs-option-list
|
|
64
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'card'}) Card
|
|
65
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'primary dark', checked:true}) Primary (Dark)
|
|
66
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'secondary 100 light'}) Secondary 100 (Light)
|
|
67
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'warn 200 light'}) Warn 200 (Light)
|
|
68
|
-
+mdwSelection({ink:'secondary', name:'surface', type:'radio', value:'green 700 dark'}) Green 700 (Dark)
|
|
69
|
-
.mdw-grid__item(mdw-colspan="100%" style="max-height:0")
|
|
70
|
-
.mdw-grid__item(mdw-colspan="6")
|
|
71
|
-
h6.mdw-type HTML Code
|
|
72
|
-
.mdw-card.mdw-theme.component-code.component-html(mdw-surface="card")
|
|
73
|
-
+mdwButton({ icon:true, ink:'secondary' })#usePug(aria-pressed="false" mdw-overlay-off="activated") PUG
|
|
74
|
-
script(src='card.min.js')
|