material 0.4.3 → 0.5.1
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/dist/tracks.svg +10 -0
- package/package.json +4 -4
- package/src/appbar.js +1 -2
- package/src/control/button.js +127 -44
- package/src/control/button.new.js +190 -0
- package/src/control/dialog.js +174 -0
- package/src/control/{upload.js → file.js} +33 -8
- package/src/control/link.js +61 -0
- package/src/control/list.js +77 -0
- package/src/control/loading.js +128 -0
- package/src/control/module/addclass.js +16 -0
- package/src/control/module/attributes.js +3 -1
- package/src/control/search.js +98 -0
- package/src/control/select.js +80 -22
- package/src/control/selecter.js +246 -0
- package/src/control/switch.js +272 -0
- package/src/control/switcher.js +245 -0
- package/src/control/text.js +18 -3
- package/src/control/textfield.js +89 -15
- package/src/field/image.js +9 -3
- package/src/form/build.js +28 -4
- package/src/form/cancel.js +7 -3
- package/src/form/controller.js +90 -0
- package/src/form/create.js +11 -7
- package/src/form/data.js +82 -0
- package/src/form/delete.js +2 -1
- package/src/form/fetch.js +5 -3
- package/src/form/render.js +11 -9
- package/src/form/set.js +27 -12
- package/src/form/submit.js +11 -37
- package/src/form/update.js +35 -16
- package/src/layout.js +25 -21
- package/src/list/add.js +34 -0
- package/src/list/build.js +96 -12
- package/src/list/click.js +10 -5
- package/src/list/collection.js +187 -0
- package/src/list/create.js +21 -11
- package/src/list/display.js +78 -0
- package/src/list/empty.js +4 -1
- package/src/list/filter.js +114 -0
- package/src/list/load.js +2 -2
- package/src/list/remove.js +17 -4
- package/src/list/render.js +32 -9
- package/src/list/request.js +182 -0
- package/src/list/search.js +118 -35
- package/src/list/select.js +151 -30
- package/src/list/status.js +10 -3
- package/src/list/update.js +49 -8
- package/src/list/virtual.js +195 -127
- package/src/map/build.js +103 -0
- package/src/map/countries.js +114 -0
- package/src/map/display.js +135 -0
- package/src/map/focus.js +39 -0
- package/src/map/init.js +24 -0
- package/src/map/label.js +0 -0
- package/src/map/mode.js +44 -0
- package/src/map/mouse.js +65 -0
- package/src/map/select.js +68 -0
- package/src/map/set.js +71 -0
- package/src/map/viewport.js +46 -0
- package/src/map.js +71 -0
- package/src/module/attach.js +9 -2
- package/src/module/mediator.js +56 -0
- package/src/module/object.js +17 -1
- package/src/module/observer.js +1 -1
- package/src/module/passive.js +17 -0
- package/src/module/remove.js +74 -0
- package/src/module/scrollbar.js +48 -0
- package/src/module/smoothscroll.js +20 -0
- package/src/module/viewport.js +20 -0
- package/src/selector.js +239 -0
- package/src/skin/material/base/body.sass +3 -0
- package/src/skin/material/button/file.sass +1 -1
- package/src/skin/material/container/container.sass +1 -1
- package/src/skin/material/container/dialog.sass +57 -1
- package/src/skin/material/container/drawer.sass +3 -3
- package/src/skin/material/control/button.sass +125 -0
- package/src/skin/material/control/dialog.sass +0 -0
- package/src/skin/material/control/progress.sass +136 -0
- package/src/skin/material/control/search.sass +40 -0
- package/src/skin/material/control/selecter.sass +131 -0
- package/src/skin/material/control/selector.sass +38 -0
- package/src/skin/material/control/slider.sass +2 -2
- package/src/skin/material/control/switch.sass +146 -3
- package/src/skin/material/control/switcher.sass +41 -0
- package/src/skin/material/control/textfield.sass +2 -1
- package/src/skin/material/icon/cancel.svg +1 -0
- package/src/skin/material/material.sass +3 -0
- package/src/skin/material/view/list.sass +81 -188
- package/src/skin/material/view/listview.sass +187 -96
- package/src/skin/material/view/tabview.sass +6 -4
- package/src/skin/material.bak/base/body.sass +52 -0
- package/src/skin/material.bak/base/elevation.sass +50 -0
- package/src/skin/material.bak/base/grid.sass +63 -0
- package/src/skin/material.bak/base/typo.sass +107 -0
- package/src/skin/material.bak/button/action.sass +89 -0
- package/src/skin/material.bak/button/button.sass +183 -0
- package/src/skin/material.bak/button/file.sass +24 -0
- package/src/skin/material.bak/button/floating.sass +113 -0
- package/src/skin/material.bak/button/raised.sass +101 -0
- package/src/skin/material.bak/button/stroked.sass +71 -0
- package/src/skin/material.bak/component/component.sass +7 -0
- package/src/skin/material.bak/component/divider.sass +17 -0
- package/src/skin/material.bak/component/image.sass +6 -0
- package/src/skin/material.bak/component/label.sass +2 -0
- package/src/skin/material.bak/component/progress.sass +138 -0
- package/src/skin/material.bak/component/subheader.sass +3 -0
- package/src/skin/material.bak/component/text.sass +85 -0
- package/src/skin/material.bak/container/appbar.sass +167 -0
- package/src/skin/material.bak/container/banner.sass +38 -0
- package/src/skin/material.bak/container/card.sass +18 -0
- package/src/skin/material.bak/container/container.sass +1 -0
- package/src/skin/material.bak/container/dialog.sass +184 -0
- package/src/skin/material.bak/container/drawer.sass +159 -0
- package/src/skin/material.bak/container/drawernew.sass +159 -0
- package/src/skin/material.bak/container/menu.sass +58 -0
- package/src/skin/material.bak/container/snackbar.sass +18 -0
- package/src/skin/material.bak/container/tabs.sass +75 -0
- package/src/skin/material.bak/container/toolbar.sass +161 -0
- package/src/skin/material.bak/control/button.sass +125 -0
- package/src/skin/material.bak/control/checkbox.sass +105 -0
- package/src/skin/material.bak/control/dialog.sass +0 -0
- package/src/skin/material.bak/control/search.sass +40 -0
- package/src/skin/material.bak/control/selecter.sass +128 -0
- package/src/skin/material.bak/control/slider.sass +181 -0
- package/src/skin/material.bak/control/switch.sass +284 -0
- package/src/skin/material.bak/control/switcher.sass +35 -0
- package/src/skin/material.bak/control/textfield.sass +126 -0
- package/src/skin/material.bak/control/tooltip.sass +36 -0
- package/src/skin/material.bak/icon/back.svg +5 -0
- package/src/skin/material.bak/icon/cancel.svg +1 -0
- package/src/skin/material.bak/icon/checkbox.svg +4 -0
- package/src/skin/material.bak/icon/forward.svg +5 -0
- package/src/skin/material.bak/icon/menu.svg +4 -0
- package/src/skin/material.bak/icon/pin.svg +4 -0
- package/src/skin/material.bak/layout/layout.sass +69 -0
- package/src/skin/material.bak/layout/resizer.sass +69 -0
- package/src/skin/material.bak/material.css +2042 -0
- package/src/skin/material.bak/material.css.map +7 -0
- package/src/skin/material.bak/material.sass +65 -0
- package/src/skin/material.bak/module/ripple.sass +9 -0
- package/src/skin/material.bak/theme/default.sass +50 -0
- package/src/skin/material.bak/theme/ocean.sass +29 -0
- package/src/skin/material.bak/theme/theme.sass +3 -0
- package/src/skin/material.bak/view/calendar.sass +193 -0
- package/src/skin/material.bak/view/form.sass +15 -0
- package/src/skin/material.bak/view/grid.sass +116 -0
- package/src/skin/material.bak/view/list.sass +89 -0
- package/src/skin/material.bak/view/listview.sass +195 -0
- package/src/skin/material.bak/view/map.sass +6 -0
- package/src/skin/material.bak/view/page.sass +4 -0
- package/src/skin/material.bak/view/tabview-bak.sass +40 -0
- package/src/skin/material.bak/view/tabview.sass +55 -0
- package/src/skin/material.bak/view/tree.sass +73 -0
- package/src/skin/material.bak/view/view.sass +7 -0
- package/src/switch.js +1 -1
- package/src/tabs/setup.js +0 -0
- package/src/tabview.js +64 -14
- package/src/tooltip.js +23 -5
- package/src/view/build.js +13 -1
- package/src/view/display.js +63 -2
- package/src/form/clean.js +0 -6
- package/src/form/controls.js +0 -56
- package/src/form/mode.js +0 -8
- package/src/form/setup.js +0 -5
- package/src/list/fetch.js +0 -66
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
.elevation-z0
|
|
2
|
+
box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12)
|
|
3
|
+
.elevation-z1
|
|
4
|
+
box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12)
|
|
5
|
+
.elevation-z2
|
|
6
|
+
box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)
|
|
7
|
+
.elevation-z3
|
|
8
|
+
box-shadow: 0px 3px 3px -2px rgba(0, 0, 0, 0.2), 0px 3px 4px 0px rgba(0, 0, 0, 0.14), 0px 1px 8px 0px rgba(0, 0, 0, 0.12)
|
|
9
|
+
.elevation-z4
|
|
10
|
+
box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12)
|
|
11
|
+
.elevation-z5
|
|
12
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 5px 8px 0px rgba(0, 0, 0, 0.14), 0px 1px 14px 0px rgba(0, 0, 0, 0.12)
|
|
13
|
+
.elevation-z6
|
|
14
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)
|
|
15
|
+
.elevation-z7
|
|
16
|
+
box-shadow: 0px 4px 5px -2px rgba(0, 0, 0, 0.2), 0px 7px 10px 1px rgba(0, 0, 0, 0.14), 0px 2px 16px 1px rgba(0, 0, 0, 0.12)
|
|
17
|
+
.elevation-z8
|
|
18
|
+
box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12)
|
|
19
|
+
.elevation-z9
|
|
20
|
+
box-shadow: 0px 5px 6px -3px rgba(0, 0, 0, 0.2), 0px 9px 12px 1px rgba(0, 0, 0, 0.14), 0px 3px 16px 2px rgba(0, 0, 0, 0.12)
|
|
21
|
+
.elevation-z10
|
|
22
|
+
box-shadow: 0px 6px 6px -3px rgba(0, 0, 0, 0.2), 0px 10px 14px 1px rgba(0, 0, 0, 0.14), 0px 4px 18px 3px rgba(0, 0, 0, 0.12)
|
|
23
|
+
.elevation-z11
|
|
24
|
+
box-shadow: 0px 6px 7px -4px rgba(0, 0, 0, 0.2), 0px 11px 15px 1px rgba(0, 0, 0, 0.14), 0px 4px 20px 3px rgba(0, 0, 0, 0.12)
|
|
25
|
+
.elevation-z12
|
|
26
|
+
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)
|
|
27
|
+
.elevation-z13
|
|
28
|
+
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 13px 19px 2px rgba(0, 0, 0, 0.14), 0px 5px 24px 4px rgba(0, 0, 0, 0.12)
|
|
29
|
+
.elevation-z14
|
|
30
|
+
box-shadow: 0px 7px 9px -4px rgba(0, 0, 0, 0.2), 0px 14px 21px 2px rgba(0, 0, 0, 0.14), 0px 5px 26px 4px rgba(0, 0, 0, 0.12)
|
|
31
|
+
.elevation-z15
|
|
32
|
+
box-shadow: 0px 8px 9px -5px rgba(0, 0, 0, 0.2), 0px 15px 22px 2px rgba(0, 0, 0, 0.14), 0px 6px 28px 5px rgba(0, 0, 0, 0.12)
|
|
33
|
+
.elevation-z16
|
|
34
|
+
box-shadow: 0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12)
|
|
35
|
+
.elevation-z17
|
|
36
|
+
box-shadow: 0px 8px 11px -5px rgba(0, 0, 0, 0.2), 0px 17px 26px 2px rgba(0, 0, 0, 0.14), 0px 6px 32px 5px rgba(0, 0, 0, 0.12)
|
|
37
|
+
.elevation-z18
|
|
38
|
+
box-shadow: 0px 9px 11px -5px rgba(0, 0, 0, 0.2), 0px 18px 28px 2px rgba(0, 0, 0, 0.14), 0px 7px 34px 6px rgba(0, 0, 0, 0.12)
|
|
39
|
+
.elevation-z19
|
|
40
|
+
box-shadow: 0px 9px 12px -6px rgba(0, 0, 0, 0.2), 0px 19px 29px 2px rgba(0, 0, 0, 0.14), 0px 7px 36px 6px rgba(0, 0, 0, 0.12)
|
|
41
|
+
.elevation-z20
|
|
42
|
+
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 20px 31px 3px rgba(0, 0, 0, 0.14), 0px 8px 38px 7px rgba(0, 0, 0, 0.12)
|
|
43
|
+
.elevation-z21
|
|
44
|
+
box-shadow: 0px 10px 13px -6px rgba(0, 0, 0, 0.2), 0px 21px 33px 3px rgba(0, 0, 0, 0.14), 0px 8px 40px 7px rgba(0, 0, 0, 0.12)
|
|
45
|
+
.elevation-z22
|
|
46
|
+
box-shadow: 0px 10px 14px -6px rgba(0, 0, 0, 0.2), 0px 22px 35px 3px rgba(0, 0, 0, 0.14), 0px 8px 42px 7px rgba(0, 0, 0, 0.12)
|
|
47
|
+
.elevation-z23
|
|
48
|
+
box-shadow: 0px 11px 14px -7px rgba(0, 0, 0, 0.2), 0px 23px 36px 3px rgba(0, 0, 0, 0.14), 0px 9px 44px 8px rgba(0, 0, 0, 0.12)
|
|
49
|
+
.elevation-z24
|
|
50
|
+
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12)
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/////////////////
|
|
2
|
+
// Semantic.gs // for SCSS: http://sass-lang.com/
|
|
3
|
+
/////////////////
|
|
4
|
+
|
|
5
|
+
// Defaults which you can freely override
|
|
6
|
+
$column-width: 60px
|
|
7
|
+
$gutter-width: 20px
|
|
8
|
+
$columns: 12
|
|
9
|
+
|
|
10
|
+
// Utility function — you should never need to modify this
|
|
11
|
+
@function gridsystem-width($columns:$columns)
|
|
12
|
+
@return ($column-width * $columns) + ($gutter-width * $columns)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// Set $total-width to 100% for a fluid layout
|
|
16
|
+
$total-width: gridsystem-width($columns)
|
|
17
|
+
|
|
18
|
+
// Uncomment these two lines and the star-hack width/margin lines below to enable sub-pixel fix for IE6 & 7. See http://tylertate.com/blog/2012/01/05/subpixel-rounding.html
|
|
19
|
+
// $min-width: 999999
|
|
20
|
+
// $correction: 0.5 / $min-width * 100
|
|
21
|
+
|
|
22
|
+
// The micro clearfix http://nicolasgallagher.com/micro-clearfix-hack/
|
|
23
|
+
@mixin clearfix()
|
|
24
|
+
*zoom:1
|
|
25
|
+
|
|
26
|
+
&:before,
|
|
27
|
+
&:after
|
|
28
|
+
content:""
|
|
29
|
+
display:table
|
|
30
|
+
|
|
31
|
+
&:after
|
|
32
|
+
clear:both
|
|
33
|
+
|
|
34
|
+
//////////
|
|
35
|
+
// GRID //
|
|
36
|
+
//////////
|
|
37
|
+
|
|
38
|
+
body
|
|
39
|
+
width: 100%
|
|
40
|
+
@include clearfix()
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
@mixin row($columns:$columns)
|
|
44
|
+
display: block
|
|
45
|
+
width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns))
|
|
46
|
+
margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1)
|
|
47
|
+
// *width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns))-$correction
|
|
48
|
+
// *margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1)-$correction
|
|
49
|
+
@include clearfix()
|
|
50
|
+
|
|
51
|
+
@mixin column($x,$columns:$columns)
|
|
52
|
+
display: inline
|
|
53
|
+
float: left
|
|
54
|
+
width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns))
|
|
55
|
+
margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns))
|
|
56
|
+
// *width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns))-$correction
|
|
57
|
+
// *margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns))-$correction
|
|
58
|
+
|
|
59
|
+
@mixin push($offset:1)
|
|
60
|
+
margin-left: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns))
|
|
61
|
+
|
|
62
|
+
@mixin pull($offset:1)
|
|
63
|
+
margin-right: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns))
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.material-text
|
|
2
|
+
&.type-display4
|
|
3
|
+
font-size: 7rem
|
|
4
|
+
font-weight: 300
|
|
5
|
+
letter-spacing: -0.04em
|
|
6
|
+
line-height: 7rem
|
|
7
|
+
|
|
8
|
+
&.type-display3
|
|
9
|
+
font-size: 3.5rem
|
|
10
|
+
font-weight: 400
|
|
11
|
+
letter-spacing: -0.02em
|
|
12
|
+
line-height: 3.5rem
|
|
13
|
+
|
|
14
|
+
&.type-display2
|
|
15
|
+
font-size: 2.813rem
|
|
16
|
+
font-weight: 400
|
|
17
|
+
letter-spacing: normal
|
|
18
|
+
line-height: 3rem
|
|
19
|
+
|
|
20
|
+
&.type-display1
|
|
21
|
+
font-size: 2.125rem
|
|
22
|
+
font-weight: 400
|
|
23
|
+
letter-spacing: normal
|
|
24
|
+
line-height: 2.5rem
|
|
25
|
+
|
|
26
|
+
&.type-headline
|
|
27
|
+
font-size: 1.5rem
|
|
28
|
+
font-weight: 400
|
|
29
|
+
letter-spacing: normal
|
|
30
|
+
line-height: 2rem
|
|
31
|
+
|
|
32
|
+
&.type-title
|
|
33
|
+
font-size: 1.25rem
|
|
34
|
+
font-weight: 500
|
|
35
|
+
letter-spacing: 0.02em
|
|
36
|
+
line-height: 2rem
|
|
37
|
+
|
|
38
|
+
&.type-subheading2
|
|
39
|
+
font-size: 1rem
|
|
40
|
+
font-weight: 400
|
|
41
|
+
letter-spacing: 0.04em
|
|
42
|
+
line-height: 1.75rem
|
|
43
|
+
|
|
44
|
+
&.type-subheading1
|
|
45
|
+
font-size: 0.938rem
|
|
46
|
+
font-weight: 400
|
|
47
|
+
letter-spacing: 0.04em
|
|
48
|
+
line-height: 1.5rem
|
|
49
|
+
|
|
50
|
+
&.type-body1
|
|
51
|
+
font-size: 0.875rem
|
|
52
|
+
font-weight: 400
|
|
53
|
+
letter-spacing: 0.04em
|
|
54
|
+
line-height: 1.25rem
|
|
55
|
+
|
|
56
|
+
&.type-body2
|
|
57
|
+
font-size: 0.875rem
|
|
58
|
+
font-weight: 500
|
|
59
|
+
letter-spacing: 0.04em
|
|
60
|
+
line-height: 1.5rem
|
|
61
|
+
|
|
62
|
+
&.type-caption
|
|
63
|
+
font-size: 0.75rem
|
|
64
|
+
font-weight: 400
|
|
65
|
+
letter-spacing: 0.08em
|
|
66
|
+
line-height: 1.25rem
|
|
67
|
+
|
|
68
|
+
&.type-button
|
|
69
|
+
font-size: 14px
|
|
70
|
+
font-weight: 500
|
|
71
|
+
|
|
72
|
+
// margin-bottom: 30px;
|
|
73
|
+
margin-left: 8px
|
|
74
|
+
|
|
75
|
+
&.style-adjust
|
|
76
|
+
&.type-display4
|
|
77
|
+
margin: -1rem 0 3.5rem -0.085em
|
|
78
|
+
|
|
79
|
+
&.type-display3
|
|
80
|
+
margin: -8px 0 64px -0.07em
|
|
81
|
+
|
|
82
|
+
&.type-display2
|
|
83
|
+
margin: -0.5rem 0 4rem -0.07em
|
|
84
|
+
|
|
85
|
+
&.type-display1
|
|
86
|
+
margin: -0.5rem 0 4rem -0.07em
|
|
87
|
+
|
|
88
|
+
&.type-headline
|
|
89
|
+
margin: -0.5rem 0 1rem -0.06em
|
|
90
|
+
|
|
91
|
+
&.type-title
|
|
92
|
+
margin: -0.5rem 0 1rem -0.05em
|
|
93
|
+
|
|
94
|
+
&.type-subheading2
|
|
95
|
+
margin: -0.5rem 0 1rem -0.06em
|
|
96
|
+
|
|
97
|
+
&.type-subheading1
|
|
98
|
+
margin: -0.313rem 0 0.813rem -0.06em
|
|
99
|
+
|
|
100
|
+
&.type-body1
|
|
101
|
+
margin: -0.25rem 0 0.75rem 0
|
|
102
|
+
|
|
103
|
+
&.type-body2
|
|
104
|
+
margin: -0.25rem 0 0.75rem 0
|
|
105
|
+
|
|
106
|
+
&.type-caption
|
|
107
|
+
line-height: 1.25rem
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
|
|
2
|
+
// type action
|
|
3
|
+
.material-button.type-action
|
|
4
|
+
min-width: 36px
|
|
5
|
+
transition: box-shadow .2s
|
|
6
|
+
box-shadow: none
|
|
7
|
+
border-radius: 50%
|
|
8
|
+
padding: 6px
|
|
9
|
+
.button-icon
|
|
10
|
+
padding: 0
|
|
11
|
+
height: 24px
|
|
12
|
+
width: 24px
|
|
13
|
+
margin-left: 0
|
|
14
|
+
svg
|
|
15
|
+
fill: $default-color-text
|
|
16
|
+
|
|
17
|
+
// styles
|
|
18
|
+
.material-button.type-action
|
|
19
|
+
&.style-dense,
|
|
20
|
+
&.style-compact
|
|
21
|
+
height: 32px
|
|
22
|
+
width: 32px
|
|
23
|
+
min-width: 32px
|
|
24
|
+
border-radius: 50%
|
|
25
|
+
.button-icon
|
|
26
|
+
width: 20px
|
|
27
|
+
height: 20px
|
|
28
|
+
svg
|
|
29
|
+
width: 20px
|
|
30
|
+
height: 20px
|
|
31
|
+
viewbox: 0 0 20 20
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
// states
|
|
35
|
+
.material-button.type-action
|
|
36
|
+
&:hover
|
|
37
|
+
//background-color: #E0E0E0;
|
|
38
|
+
|
|
39
|
+
&:focus
|
|
40
|
+
//background-color: darken(rgba(255, 255, 255, 0.95), 5%)
|
|
41
|
+
|
|
42
|
+
.material-ripple
|
|
43
|
+
//background-color: rgba(255, 255, 255, 1)
|
|
44
|
+
|
|
45
|
+
// color
|
|
46
|
+
.material-button.type-action
|
|
47
|
+
&.primary-color
|
|
48
|
+
background-color: $primary-color
|
|
49
|
+
color: $primary-color-text
|
|
50
|
+
.button-icon
|
|
51
|
+
svg
|
|
52
|
+
fill: $primary-color-text
|
|
53
|
+
&:focus
|
|
54
|
+
background-color: lighten($primary-color, 10%)
|
|
55
|
+
color: $primary-color-text
|
|
56
|
+
&.secondary-color
|
|
57
|
+
background-color: $secondary-color
|
|
58
|
+
color: $secondary-color-text
|
|
59
|
+
.button-icon
|
|
60
|
+
svg
|
|
61
|
+
fill: $secondary-color-text
|
|
62
|
+
&:focus
|
|
63
|
+
background-color: lighten($secondary-color, 5%)
|
|
64
|
+
color: $secondary-color-text
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// theme
|
|
68
|
+
.dark-mode .material-button.type-action,
|
|
69
|
+
.material-button.type-action.dark-mode
|
|
70
|
+
|
|
71
|
+
//background-color: rgba(255, 255, 255, 0.95)
|
|
72
|
+
color: $primary-color-text-dark
|
|
73
|
+
|
|
74
|
+
&.primary-color
|
|
75
|
+
background-color: $primary-color-dark
|
|
76
|
+
color: $primary-color-text-dark
|
|
77
|
+
.button-icon
|
|
78
|
+
svg
|
|
79
|
+
fill: $primary-color-text-dark
|
|
80
|
+
&.secondary-color
|
|
81
|
+
background-color: $secondary-color-dark
|
|
82
|
+
color: $secondary-color-text-dark
|
|
83
|
+
.button-icon
|
|
84
|
+
svg
|
|
85
|
+
fill: $secondary-color-text-dark
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
.material-button
|
|
2
|
+
display: flex
|
|
3
|
+
-webkit-font-smoothing: antialiased
|
|
4
|
+
white-space: nowrap
|
|
5
|
+
position: relative
|
|
6
|
+
vertical-align: middle
|
|
7
|
+
cursor: default
|
|
8
|
+
height: 36px
|
|
9
|
+
padding: 6px 8px 6px 8px
|
|
10
|
+
margin: 0 8px
|
|
11
|
+
border: none
|
|
12
|
+
border-radius: 2px
|
|
13
|
+
overflow: hidden
|
|
14
|
+
background-color: transparent
|
|
15
|
+
> *
|
|
16
|
+
pointer-events: none
|
|
17
|
+
|
|
18
|
+
.button-icon
|
|
19
|
+
flex: none
|
|
20
|
+
pointer-events: none
|
|
21
|
+
z-index: 2
|
|
22
|
+
display: inline-block
|
|
23
|
+
width: 24px
|
|
24
|
+
height: 24px
|
|
25
|
+
padding: 0 8px
|
|
26
|
+
vertical-align: bottom
|
|
27
|
+
padding: 0
|
|
28
|
+
background-repeat: no-repeat
|
|
29
|
+
background-position: center center
|
|
30
|
+
svg
|
|
31
|
+
fill: $default-color-text
|
|
32
|
+
|
|
33
|
+
.button-label
|
|
34
|
+
flex: 1
|
|
35
|
+
order: 2
|
|
36
|
+
pointer-events: none
|
|
37
|
+
font-size: 0.875rem
|
|
38
|
+
font-weight: 600
|
|
39
|
+
line-height: 1.1rem
|
|
40
|
+
display: inline-block
|
|
41
|
+
z-index: 2
|
|
42
|
+
text-transform: uppercase
|
|
43
|
+
padding: 3px 8px 3px 8px
|
|
44
|
+
margin: 0
|
|
45
|
+
|
|
46
|
+
.material-ripple
|
|
47
|
+
opacity: 1
|
|
48
|
+
pointer-events: none
|
|
49
|
+
z-index: 1
|
|
50
|
+
position: absolute
|
|
51
|
+
background-color: rgba(0, 0, 0, 0.1)
|
|
52
|
+
height: 5px
|
|
53
|
+
width: 5px
|
|
54
|
+
border-radius: 50%
|
|
55
|
+
|
|
56
|
+
&.iconend
|
|
57
|
+
.button-icon
|
|
58
|
+
order: 2
|
|
59
|
+
.button-label
|
|
60
|
+
order: 1
|
|
61
|
+
|
|
62
|
+
// states
|
|
63
|
+
.material-button
|
|
64
|
+
&.is-disabled
|
|
65
|
+
pointer-events: none
|
|
66
|
+
opacity: .3
|
|
67
|
+
|
|
68
|
+
&:focus
|
|
69
|
+
//transition-delay: .2s
|
|
70
|
+
transition-duration: .3s
|
|
71
|
+
background-color: rgba($default-color-text, 0.05)
|
|
72
|
+
&:hover
|
|
73
|
+
background-color: rgba($default-color-text, 0.05)
|
|
74
|
+
|
|
75
|
+
&:active
|
|
76
|
+
transition-duration: .2s
|
|
77
|
+
&:focus
|
|
78
|
+
//transition-delay: .2s
|
|
79
|
+
|
|
80
|
+
&:hover
|
|
81
|
+
transition-duration: .2s
|
|
82
|
+
background-color: rgba($default-color-text, 0.03)
|
|
83
|
+
|
|
84
|
+
&:disabled
|
|
85
|
+
pointer-events: none
|
|
86
|
+
opacity: .3
|
|
87
|
+
|
|
88
|
+
// styles
|
|
89
|
+
.material-button
|
|
90
|
+
&.style-compact
|
|
91
|
+
> .button-label
|
|
92
|
+
padding-left: 0
|
|
93
|
+
padding-right: 0
|
|
94
|
+
|
|
95
|
+
&.style-dense
|
|
96
|
+
height: 32px
|
|
97
|
+
> .button-label
|
|
98
|
+
font-size: 0.8125rem
|
|
99
|
+
padding-top: 2px
|
|
100
|
+
padding-bottom: 2px
|
|
101
|
+
|
|
102
|
+
// color
|
|
103
|
+
.material-button
|
|
104
|
+
&.primary-color
|
|
105
|
+
color: $primary-color
|
|
106
|
+
&:focus
|
|
107
|
+
background-color: rgba($primary-color, .1)
|
|
108
|
+
&:hover
|
|
109
|
+
background-color: rgba($primary-color, .1)
|
|
110
|
+
&:hover
|
|
111
|
+
background-color: rgba($primary-color, .05)
|
|
112
|
+
|
|
113
|
+
.button-icon
|
|
114
|
+
svg
|
|
115
|
+
fill: $primary-color
|
|
116
|
+
|
|
117
|
+
.material-ripple
|
|
118
|
+
background-color: rgba($primary-color, .1)
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
&.secondary-color
|
|
123
|
+
color: $secondary-color
|
|
124
|
+
.button-icon
|
|
125
|
+
svg
|
|
126
|
+
fill: $secondary-color
|
|
127
|
+
.material-ripple
|
|
128
|
+
background-color: rgba($secondary-color, .1)
|
|
129
|
+
&:focus
|
|
130
|
+
background-color: rgba($secondary-color, .10)
|
|
131
|
+
&:hover
|
|
132
|
+
background-color: rgba($secondary-color, .10)
|
|
133
|
+
&:hover
|
|
134
|
+
background-color: rgba($secondary-color, .05)
|
|
135
|
+
|
|
136
|
+
// theme
|
|
137
|
+
.dark-mode .material-button,
|
|
138
|
+
.material-button.dark-mode
|
|
139
|
+
color: $default-color-text-dark
|
|
140
|
+
.button-icon
|
|
141
|
+
svg
|
|
142
|
+
fill: $default-color-text-dark
|
|
143
|
+
.material-ripple
|
|
144
|
+
background-color: rgba($default-color-text-dark, .1)
|
|
145
|
+
&:focus
|
|
146
|
+
//background-color: rgba($default-color-text-dark, .1)
|
|
147
|
+
&:hover
|
|
148
|
+
//background-color: rgba($default-color-text-dark, .1)
|
|
149
|
+
&:hover
|
|
150
|
+
background-color: rgba($default-color-text-dark, .05)
|
|
151
|
+
|
|
152
|
+
// primary color
|
|
153
|
+
&.primary-color
|
|
154
|
+
//background-color: $primary-color;
|
|
155
|
+
color: $primary-color-dark
|
|
156
|
+
.button-icon
|
|
157
|
+
svg
|
|
158
|
+
fill: $primary-color-dark
|
|
159
|
+
.material-ripple
|
|
160
|
+
background-color: rgba($primary-color-dark, .3)
|
|
161
|
+
&:focus
|
|
162
|
+
background-color: rgba($primary-color-dark, .2)
|
|
163
|
+
&:hover
|
|
164
|
+
background-color: rgba($primary-color-dark, .2)
|
|
165
|
+
&:hover
|
|
166
|
+
background-color: rgba($primary-color-dark, .1)
|
|
167
|
+
|
|
168
|
+
// secondary color
|
|
169
|
+
&.secondary-color
|
|
170
|
+
color: $secondary-color-dark
|
|
171
|
+
.button-icon
|
|
172
|
+
svg
|
|
173
|
+
fill: $secondary-color-dark
|
|
174
|
+
.material-ripple
|
|
175
|
+
background-color: rgba($secondary-color-dark, .3)
|
|
176
|
+
|
|
177
|
+
&:focus
|
|
178
|
+
background-color: rgba($secondary-color-dark, .2)
|
|
179
|
+
&:hover
|
|
180
|
+
background-color: rgba($secondary-color-dark, .2)
|
|
181
|
+
|
|
182
|
+
&:hover
|
|
183
|
+
background-color: rgba($secondary-color-dark, .1)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
|
|
2
|
+
// type file
|
|
3
|
+
.material-button.type-file
|
|
4
|
+
overflow: hidden
|
|
5
|
+
position: relative
|
|
6
|
+
vertical-align: middle
|
|
7
|
+
|
|
8
|
+
input[type=file]
|
|
9
|
+
z-index: 20
|
|
10
|
+
position: absolute
|
|
11
|
+
height: 48px
|
|
12
|
+
width: 48px
|
|
13
|
+
top: 0
|
|
14
|
+
right: 0
|
|
15
|
+
margin: 0
|
|
16
|
+
padding: 0
|
|
17
|
+
font-size: 10px
|
|
18
|
+
cursor: pointer
|
|
19
|
+
opacity: 0
|
|
20
|
+
filter: alpha(opacity = 0)
|
|
21
|
+
|
|
22
|
+
.button-icon
|
|
23
|
+
z-index: 1
|
|
24
|
+
padding-right: 6px
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
|
|
2
|
+
// type floating
|
|
3
|
+
.material-button.type-floating
|
|
4
|
+
min-width: 56px
|
|
5
|
+
min-height: 56px
|
|
6
|
+
transition: box-shadow .2s
|
|
7
|
+
border-radius: 28px
|
|
8
|
+
padding: 6px
|
|
9
|
+
box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12)
|
|
10
|
+
.button-label
|
|
11
|
+
display: none
|
|
12
|
+
.button-icon
|
|
13
|
+
padding: 0
|
|
14
|
+
height: 24px
|
|
15
|
+
width: 24px
|
|
16
|
+
margin-left: 0
|
|
17
|
+
svg
|
|
18
|
+
fill: $default-color-text
|
|
19
|
+
.material-ripple
|
|
20
|
+
opacity: .1
|
|
21
|
+
background-color: rgba(0, 0, 0, 1)
|
|
22
|
+
|
|
23
|
+
// states
|
|
24
|
+
.material-button.type-floating
|
|
25
|
+
background-color: rgba(0, 0, 0, 0.05)
|
|
26
|
+
&:focus
|
|
27
|
+
background-color: rgba(0, 0, 0, 0.15)
|
|
28
|
+
&:hover
|
|
29
|
+
background-color: rgba(0, 0, 0, 0.15)
|
|
30
|
+
&:hover
|
|
31
|
+
background-color: rgba(0, 0, 0, 0.1)
|
|
32
|
+
&:active
|
|
33
|
+
box-shadow: 0px 7px 8px -4px rgba(0, 0, 0, 0.2), 0px 12px 17px 2px rgba(0, 0, 0, 0.14), 0px 5px 22px 4px rgba(0, 0, 0, 0.12)
|
|
34
|
+
|
|
35
|
+
// color
|
|
36
|
+
.material-button.type-floating
|
|
37
|
+
&.primary-color
|
|
38
|
+
background-color: $primary-color
|
|
39
|
+
color: $primary-color-text
|
|
40
|
+
.button-icon
|
|
41
|
+
svg
|
|
42
|
+
fill: $primary-color-text
|
|
43
|
+
.material-ripple
|
|
44
|
+
opacity: .3
|
|
45
|
+
background-color: $default-color-dark
|
|
46
|
+
|
|
47
|
+
&:focus
|
|
48
|
+
background-color: lighten($primary-color, 15%)
|
|
49
|
+
&:hover
|
|
50
|
+
background-color: lighten($primary-color, 15%)
|
|
51
|
+
&:hover
|
|
52
|
+
background-color: lighten($primary-color, 7%)
|
|
53
|
+
|
|
54
|
+
&.secondary-color
|
|
55
|
+
background-color: $secondary-color
|
|
56
|
+
color: $secondary-color-text
|
|
57
|
+
.button-icon
|
|
58
|
+
svg
|
|
59
|
+
fill: $secondary-color-text
|
|
60
|
+
.material-ripple
|
|
61
|
+
opacity: .3
|
|
62
|
+
background-color: $default-color-dark
|
|
63
|
+
&:focus
|
|
64
|
+
background-color: lighten($secondary-color, 10%)
|
|
65
|
+
&:hover
|
|
66
|
+
background-color: lighten($secondary-color, 10%)
|
|
67
|
+
&:hover
|
|
68
|
+
background-color: lighten($secondary-color, 5%)
|
|
69
|
+
|
|
70
|
+
// theme
|
|
71
|
+
.dark-mode .material-button.type-floating,
|
|
72
|
+
.material-button.type-floating.dark-mode
|
|
73
|
+
.material-ripple
|
|
74
|
+
opacity: .1
|
|
75
|
+
background-color: rgba(255, 255, 255, 1)
|
|
76
|
+
background-color: rgba(255, 255, 255, 0.1)
|
|
77
|
+
&:focus
|
|
78
|
+
background-color: rgba(255, 255, 255, 0.2)
|
|
79
|
+
&:hover
|
|
80
|
+
background-color: rgba(255, 255, 255, 0.2)
|
|
81
|
+
&:hover
|
|
82
|
+
background-color: rgba(255, 255, 255, 0.15)
|
|
83
|
+
//background-color: rgba(255, 255, 255, 0.95)
|
|
84
|
+
color: $primary-color-text-dark
|
|
85
|
+
.button-icon
|
|
86
|
+
svg
|
|
87
|
+
fill: $primary-color-text-dark
|
|
88
|
+
&.primary-color
|
|
89
|
+
background-color: $primary-color-dark
|
|
90
|
+
color: $primary-color-text-dark
|
|
91
|
+
.button-icon
|
|
92
|
+
svg
|
|
93
|
+
fill: $primary-color-text-dark
|
|
94
|
+
&:focus
|
|
95
|
+
background-color: lighten($primary-color, 15%)
|
|
96
|
+
&:hover
|
|
97
|
+
background-color: lighten($primary-color, 15%)
|
|
98
|
+
&:hover
|
|
99
|
+
background-color: lighten($primary-color, 7%)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
&.secondary-color
|
|
103
|
+
background-color: $secondary-color-dark
|
|
104
|
+
color: $secondary-color-text-dark
|
|
105
|
+
.button-icon
|
|
106
|
+
svg
|
|
107
|
+
fill: $secondary-color-text-dark
|
|
108
|
+
&:focus
|
|
109
|
+
background-color: lighten($secondary-color, 10%)
|
|
110
|
+
&:hover
|
|
111
|
+
background-color: lighten($secondary-color, 10%)
|
|
112
|
+
&:hover
|
|
113
|
+
background-color: lighten($secondary-color, 5%)
|