material 0.5.1 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/package.json +4 -4
  2. package/src/control/textfield.js +1 -1
  3. package/src/form/controller.js +1 -1
  4. package/src/list/filter.js +3 -3
  5. package/src/skin/material/container/dialog.sass +1 -13
  6. package/dist/tracks.svg +0 -10
  7. package/src/skin/material.bak/base/body.sass +0 -52
  8. package/src/skin/material.bak/base/elevation.sass +0 -50
  9. package/src/skin/material.bak/base/grid.sass +0 -63
  10. package/src/skin/material.bak/base/typo.sass +0 -107
  11. package/src/skin/material.bak/button/action.sass +0 -89
  12. package/src/skin/material.bak/button/button.sass +0 -183
  13. package/src/skin/material.bak/button/file.sass +0 -24
  14. package/src/skin/material.bak/button/floating.sass +0 -113
  15. package/src/skin/material.bak/button/raised.sass +0 -101
  16. package/src/skin/material.bak/button/stroked.sass +0 -71
  17. package/src/skin/material.bak/component/component.sass +0 -7
  18. package/src/skin/material.bak/component/divider.sass +0 -17
  19. package/src/skin/material.bak/component/image.sass +0 -6
  20. package/src/skin/material.bak/component/label.sass +0 -2
  21. package/src/skin/material.bak/component/progress.sass +0 -138
  22. package/src/skin/material.bak/component/subheader.sass +0 -3
  23. package/src/skin/material.bak/component/text.sass +0 -85
  24. package/src/skin/material.bak/container/appbar.sass +0 -167
  25. package/src/skin/material.bak/container/banner.sass +0 -38
  26. package/src/skin/material.bak/container/card.sass +0 -18
  27. package/src/skin/material.bak/container/container.sass +0 -1
  28. package/src/skin/material.bak/container/dialog.sass +0 -184
  29. package/src/skin/material.bak/container/drawer.sass +0 -159
  30. package/src/skin/material.bak/container/drawernew.sass +0 -159
  31. package/src/skin/material.bak/container/menu.sass +0 -58
  32. package/src/skin/material.bak/container/snackbar.sass +0 -18
  33. package/src/skin/material.bak/container/tabs.sass +0 -75
  34. package/src/skin/material.bak/container/toolbar.sass +0 -161
  35. package/src/skin/material.bak/control/button.sass +0 -125
  36. package/src/skin/material.bak/control/checkbox.sass +0 -105
  37. package/src/skin/material.bak/control/dialog.sass +0 -0
  38. package/src/skin/material.bak/control/search.sass +0 -40
  39. package/src/skin/material.bak/control/selecter.sass +0 -128
  40. package/src/skin/material.bak/control/slider.sass +0 -181
  41. package/src/skin/material.bak/control/switch.sass +0 -284
  42. package/src/skin/material.bak/control/switcher.sass +0 -35
  43. package/src/skin/material.bak/control/textfield.sass +0 -126
  44. package/src/skin/material.bak/control/tooltip.sass +0 -36
  45. package/src/skin/material.bak/icon/back.svg +0 -5
  46. package/src/skin/material.bak/icon/cancel.svg +0 -1
  47. package/src/skin/material.bak/icon/checkbox.svg +0 -4
  48. package/src/skin/material.bak/icon/forward.svg +0 -5
  49. package/src/skin/material.bak/icon/menu.svg +0 -4
  50. package/src/skin/material.bak/icon/pin.svg +0 -4
  51. package/src/skin/material.bak/layout/layout.sass +0 -69
  52. package/src/skin/material.bak/layout/resizer.sass +0 -69
  53. package/src/skin/material.bak/material.css +0 -2042
  54. package/src/skin/material.bak/material.css.map +0 -7
  55. package/src/skin/material.bak/material.sass +0 -65
  56. package/src/skin/material.bak/module/ripple.sass +0 -9
  57. package/src/skin/material.bak/theme/default.sass +0 -50
  58. package/src/skin/material.bak/theme/ocean.sass +0 -29
  59. package/src/skin/material.bak/theme/theme.sass +0 -3
  60. package/src/skin/material.bak/view/calendar.sass +0 -193
  61. package/src/skin/material.bak/view/form.sass +0 -15
  62. package/src/skin/material.bak/view/grid.sass +0 -116
  63. package/src/skin/material.bak/view/list.sass +0 -89
  64. package/src/skin/material.bak/view/listview.sass +0 -195
  65. package/src/skin/material.bak/view/map.sass +0 -6
  66. package/src/skin/material.bak/view/page.sass +0 -4
  67. package/src/skin/material.bak/view/tabview-bak.sass +0 -40
  68. package/src/skin/material.bak/view/tabview.sass +0 -55
  69. package/src/skin/material.bak/view/tree.sass +0 -73
  70. package/src/skin/material.bak/view/view.sass +0 -7
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "material",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "A lightweight implementation of Material Design Components - ES6",
5
5
  "main": "index.js",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/alkaloid/material.git"
8
+ "url": "git@gitlab.com:alkaloid/material.git"
9
9
  },
10
10
  "author": "Jérôme Vial <jerome.vial@gmail.com>",
11
11
  "license": "MIT",
12
12
  "bugs": {
13
- "url": "https://github.com/alkaloid/material/issues"
13
+ "url": "https://gitlab.com/alkaloid/material/issues"
14
14
  },
15
- "homepage": "https://github.com/alkaloid/material",
15
+ "homepage": "https://gitlab.com/alkaloid/material",
16
16
  "keywords": [
17
17
  "lightweight material design component es6 es2015 vanilla javascript"
18
18
  ],
@@ -93,7 +93,7 @@ class Text {
93
93
  }
94
94
 
95
95
  onInput (ev) {
96
- console.log('onInput', this.value, this.input.value)
96
+ // console.log('onInput', this.value, this.input.value)
97
97
 
98
98
  this.emit('change', ev)
99
99
  }
@@ -39,7 +39,7 @@ export default {
39
39
  },
40
40
 
41
41
  changeMode (mode) {
42
- console.log('changeMode', mode)
42
+ // console.log('changeMode', mode)
43
43
 
44
44
  if (mode === 'update' && this.enableControls) {
45
45
  this.enableControls()
@@ -21,12 +21,12 @@ export default {
21
21
  },
22
22
 
23
23
  getFilter () {
24
- // console.log('getFilter')
24
+ console.log('getFilter')
25
25
  var filter = null
26
26
  for (var name in this.filter) {
27
27
  if (this.filter.hasOwnProperty(name)) {
28
- // console.log('--', typeof this.filter[name].get(), this.filter[name].get())
29
- if (this.filter[name].get() !== '' && this.filter[name].get() !== []) {
28
+ console.log('--', typeof this.filter[name].get(), this.filter[name].get())
29
+ if (this.filter[name].get() !== ''/* && this.filter[name].get() !== [] */) {
30
30
  if (filter) {
31
31
  filter = filter + '&' + name + '=' + this.filter[name].get()
32
32
  } else {
@@ -43,18 +43,6 @@
43
43
  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)
44
44
  transform: translateY(150px) scale(0.8)
45
45
 
46
-
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
46
  .material-dialog
59
47
  position: fixed
60
48
  top: 0
@@ -143,7 +131,7 @@
143
131
  // justify-content: flex-end;
144
132
  padding: 8px
145
133
 
146
- .material-buttion
134
+ .material-button
147
135
  margin: 0 0 0 8px
148
136
 
149
137
  &.dialog-show
package/dist/tracks.svg DELETED
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
- <title>album-24px</title>
4
- <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
5
- <g id="album-24px">
6
- <polygon id="Path" points="0 0 24 0 24 24 0 24"></polygon>
7
- <path d="M12,2 C6.48,2 2,6.48 2,12 C2,17.52 6.48,22 12,22 C17.52,22 22,17.52 22,12 C22,6.48 17.52,2 12,2 Z M12,16.5 C9.51,16.5 7.5,14.49 7.5,12 C7.5,9.51 9.51,7.5 12,7.5 C14.49,7.5 16.5,9.51 16.5,12 C16.5,14.49 14.49,16.5 12,16.5 Z M12,11 C11.45,11 11,11.45 11,12 C11,12.55 11.45,13 12,13 C12.55,13 13,12.55 13,12 C13,11.45 12.55,11 12,11 Z" id="Shape" fill="#FFFFFF" fill-rule="nonzero"></path>
8
- </g>
9
- </g>
10
- </svg>
@@ -1,52 +0,0 @@
1
-
2
- // HTML Tags General Defintion
3
- html
4
- font-size: 100%
5
- line-height: 1.15
6
- width: 100%
7
- height: 100%
8
-
9
- body
10
- color: rgba(0, 0, 0, 0.67)
11
- font-family: Roboto, arial, serif
12
- font-size: 100%
13
- // position: relative
14
- // display: block
15
- // height: 100%
16
- // width: 100%
17
- // overflow: hidden
18
- margin: 0
19
- padding: 0
20
- // user-select: none
21
-
22
- input,
23
- textarea,
24
- keygen,
25
- select,
26
- button
27
- font-size: 1em
28
- font-family: Roboto, arial, serif
29
- color: rgb(51, 51, 51)
30
-
31
- p
32
- line-height: 20px
33
- padding-top: 6px
34
- margin-bottom: 14px
35
- letter-spacing: 0
36
- font-weight: 400
37
-
38
- // get rid of outline
39
- select,
40
- input,
41
- textarea,
42
- button
43
- outline: none
44
- &:hover
45
- outline: none
46
-
47
- // set all container boder-box
48
- *
49
- box-sizing: border-box
50
-
51
- a
52
- color: rgba(0, 0, 0, 0.7)
@@ -1,50 +0,0 @@
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)
@@ -1,63 +0,0 @@
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))
@@ -1,107 +0,0 @@
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
@@ -1,89 +0,0 @@
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
-
@@ -1,183 +0,0 @@
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)
@@ -1,24 +0,0 @@
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