material 0.9.26 → 0.9.27

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 (53) hide show
  1. package/package.json +1 -1
  2. package/src/skin/material/base/body.scss +14 -33
  3. package/src/skin/material/base/elevation.scss +0 -1
  4. package/src/skin/material/base/grid.scss +7 -11
  5. package/src/skin/material/base/typo.scss +22 -23
  6. package/src/skin/material/button/action.scss +5 -17
  7. package/src/skin/material/button/button.scss +17 -23
  8. package/src/skin/material/button/file.scss +1 -1
  9. package/src/skin/material/button/floating.scss +4 -8
  10. package/src/skin/material/button/raised.scss +4 -8
  11. package/src/skin/material/button/stroked.scss +6 -11
  12. package/src/skin/material/component/component.scss +2 -5
  13. package/src/skin/material/component/divider.scss +0 -1
  14. package/src/skin/material/component/image.scss +0 -1
  15. package/src/skin/material/component/label.scss +0 -1
  16. package/src/skin/material/component/progress.scss +22 -32
  17. package/src/skin/material/component/subheader.scss +0 -1
  18. package/src/skin/material/component/text.scss +13 -14
  19. package/src/skin/material/container/appbar.scss +11 -24
  20. package/src/skin/material/container/banner.scss +1 -2
  21. package/src/skin/material/container/card.scss +0 -1
  22. package/src/skin/material/container/dialog.scss +12 -16
  23. package/src/skin/material/container/drawer.scss +14 -23
  24. package/src/skin/material/container/menu.scss +5 -8
  25. package/src/skin/material/container/tabs.scss +2 -3
  26. package/src/skin/material/container/toolbar.scss +10 -24
  27. package/src/skin/material/control/button.scss +15 -18
  28. package/src/skin/material/control/checkbox.scss +12 -15
  29. package/src/skin/material/control/colorpicker.scss +9 -11
  30. package/src/skin/material/control/menu.scss +2 -6
  31. package/src/skin/material/control/progress.scss +22 -30
  32. package/src/skin/material/control/search.scss +1 -2
  33. package/src/skin/material/control/selecter.scss +5 -7
  34. package/src/skin/material/control/selector.scss +0 -2
  35. package/src/skin/material/control/slider.scss +19 -21
  36. package/src/skin/material/control/snackbar.scss +1 -4
  37. package/src/skin/material/control/switch.scss +21 -25
  38. package/src/skin/material/control/switcher.scss +0 -1
  39. package/src/skin/material/control/textfield.scss +17 -24
  40. package/src/skin/material/control/tooltip.scss +1 -3
  41. package/src/skin/material/layout/layout.scss +17 -21
  42. package/src/skin/material/layout/resizer.scss +16 -36
  43. package/src/skin/material/module/ripple.scss +0 -1
  44. package/src/skin/material/view/calendar.scss +13 -18
  45. package/src/skin/material/view/form.scss +1 -2
  46. package/src/skin/material/view/grid.scss +7 -8
  47. package/src/skin/material/view/list.scss +6 -8
  48. package/src/skin/material/view/listview.scss +10 -17
  49. package/src/skin/material/view/map.scss +0 -1
  50. package/src/skin/material/view/page.scss +0 -1
  51. package/src/skin/material/view/tabview-bak.scss +0 -1
  52. package/src/skin/material/view/tabview.scss +2 -4
  53. package/src/skin/material/view/tree.scss +6 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "material",
3
- "version": "0.9.26",
3
+ "version": "0.9.27",
4
4
  "description": "A lightweight implementation of Material Design Components for the web - ES6",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -5,13 +5,11 @@ html {
5
5
  line-height: 1.15;
6
6
  width: 100%;
7
7
  height: 100%;
8
-
9
8
  }
9
+
10
10
  body {
11
11
  color: rgba(0, 0, 0, 0.67);
12
- font-family: Roboto, arial, serif {
13
- /* empty */
14
- }
12
+ font-family: Roboto, arial, serif;
15
13
  font-size: 100%;
16
14
  // position: relative
17
15
  // display: block
@@ -21,28 +19,18 @@ body {
21
19
  margin: 0;
22
20
  padding: 0;
23
21
  // user-select: none
24
-
25
- }
26
- input, {
27
- /* empty */
28
- }
29
- textarea, {
30
- /* empty */
31
- }
32
- keygen, {
33
- /* empty */
34
- }
35
- select, {
36
- /* empty */
37
22
  }
23
+
24
+ input,
25
+ textarea,
26
+ keygen,
27
+ select,
38
28
  button {
39
29
  font-size: 1em;
40
- font-family: Roboto, arial, serif {
41
- /* empty */
42
- }
30
+ font-family: Roboto, arial, serif;
43
31
  color: rgb(51, 51, 51);
44
-
45
32
  }
33
+
46
34
  p {
47
35
  line-height: 20px;
48
36
  padding-top: 6px;
@@ -52,22 +40,16 @@ p {
52
40
 
53
41
  // get rid of outline
54
42
  }
55
- select, {
56
- /* empty */
57
- }
58
- input, {
59
- /* empty */
60
- }
61
- textarea, {
62
- /* empty */
63
- }
43
+ select,
44
+ input,
45
+ textarea,
64
46
  button {
65
47
  outline: none;
66
48
  &:hover {
67
49
  outline: none;
68
-
69
50
  }
70
51
  }
52
+
71
53
  button {
72
54
  user-select: none;
73
55
 
@@ -75,9 +57,8 @@ button {
75
57
  }
76
58
  * {
77
59
  box-sizing: border-box;
78
-
79
60
  }
61
+
80
62
  a {
81
63
  color: rgba(0, 0, 0, 0.7);
82
-
83
64
  }
@@ -72,5 +72,4 @@
72
72
  }
73
73
  .elevation-z24 {
74
74
  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);
75
-
76
75
  }
@@ -24,29 +24,26 @@ $total-width: gridsystem-width($columns);
24
24
  @mixin clearfix() {
25
25
  *zoom:1;
26
26
 
27
- &:before, {
28
- /* empty */
29
- }
27
+ &:before,
30
28
  &:after {
31
29
  content:"";
32
30
  display:table;
33
-
34
31
  }
32
+
35
33
  &:after {
36
34
  clear:both;
37
35
 
38
36
  //////////
39
37
  // GRID //
40
38
  //////////
41
-
42
39
  }
43
40
  }
41
+
44
42
  body {
45
43
  width: 100%;
46
44
  @include clearfix();
47
-
48
-
49
45
  }
46
+
50
47
  @mixin row($columns:$columns) {
51
48
  display: block;
52
49
  width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns));
@@ -54,8 +51,8 @@ body {
54
51
  // *width: $total-width*(($gutter-width + gridsystem-width($columns))/gridsystem-width($columns))-$correction
55
52
  // *margin: 0 $total-width*((($gutter-width*.5)/gridsystem-width($columns))*-1)-$correction
56
53
  @include clearfix();
57
-
58
54
  }
55
+
59
56
  @mixin column($x,$columns:$columns) {
60
57
  display: inline;
61
58
  float: left;
@@ -63,13 +60,12 @@ body {
63
60
  margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns));
64
61
  // *width: $total-width*(((($gutter-width+$column-width)*$x)-$gutter-width) / gridsystem-width($columns))-$correction
65
62
  // *margin: 0 $total-width*(($gutter-width*.5)/gridsystem-width($columns))-$correction
66
-
67
63
  }
64
+
68
65
  @mixin push($offset:1) {
69
66
  margin-left: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
70
-
71
67
  }
68
+
72
69
  @mixin pull($offset:1) {
73
70
  margin-right: $total-width*((($gutter-width+$column-width)*$offset) / gridsystem-width($columns)) + $total-width*(($gutter-width*.5)/gridsystem-width($columns));
74
-
75
71
  }
@@ -4,130 +4,129 @@
4
4
  font-weight: 300;
5
5
  letter-spacing: -0.04em;
6
6
  line-height: 7rem;
7
-
8
7
  }
8
+
9
9
  &.type-display3 {
10
10
  font-size: 3.5rem;
11
11
  font-weight: 400;
12
12
  letter-spacing: -0.02em;
13
13
  line-height: 3.5rem;
14
-
15
14
  }
15
+
16
16
  &.type-display2 {
17
17
  font-size: 2.813rem;
18
18
  font-weight: 400;
19
19
  letter-spacing: normal;
20
20
  line-height: 3rem;
21
-
22
21
  }
22
+
23
23
  &.type-display1 {
24
24
  font-size: 2.125rem;
25
25
  font-weight: 400;
26
26
  letter-spacing: normal;
27
27
  line-height: 2.5rem;
28
-
29
28
  }
29
+
30
30
  &.type-headline {
31
31
  font-size: 1.5rem;
32
32
  font-weight: 400;
33
33
  letter-spacing: normal;
34
34
  line-height: 2rem;
35
-
36
35
  }
36
+
37
37
  &.type-title {
38
38
  font-size: 1.25rem;
39
39
  font-weight: 500;
40
40
  letter-spacing: 0.02em;
41
41
  line-height: 2rem;
42
-
43
42
  }
43
+
44
44
  &.type-subheading2 {
45
45
  font-size: 1rem;
46
46
  font-weight: 400;
47
47
  letter-spacing: 0.04em;
48
48
  line-height: 1.75rem;
49
-
50
49
  }
50
+
51
51
  &.type-subheading1 {
52
52
  font-size: 0.938rem;
53
53
  font-weight: 400;
54
54
  letter-spacing: 0.04em;
55
55
  line-height: 1.5rem;
56
-
57
56
  }
57
+
58
58
  &.type-body1 {
59
59
  font-size: 0.875rem;
60
60
  font-weight: 400;
61
61
  letter-spacing: 0.04em;
62
62
  line-height: 1.25rem;
63
-
64
63
  }
64
+
65
65
  &.type-body2 {
66
66
  font-size: 0.875rem;
67
67
  font-weight: 500;
68
68
  letter-spacing: 0.04em;
69
69
  line-height: 1.5rem;
70
-
71
70
  }
71
+
72
72
  &.type-caption {
73
73
  font-size: 0.75rem;
74
74
  font-weight: 400;
75
75
  letter-spacing: 0.08em;
76
76
  line-height: 1.25rem;
77
-
78
77
  }
78
+
79
79
  &.type-button {
80
80
  font-size: 14px;
81
81
  font-weight: 500;
82
82
 
83
83
  // margin-bottom: 30px;
84
84
  margin-left: 8px;
85
-
86
85
  }
86
+
87
87
  &.style-adjust {
88
88
  &.type-display4 {
89
89
  margin: -1rem 0 3.5rem -0.085em;
90
-
91
90
  }
91
+
92
92
  &.type-display3 {
93
93
  margin: -8px 0 64px -0.07em;
94
-
95
94
  }
95
+
96
96
  &.type-display2 {
97
97
  margin: -0.5rem 0 4rem -0.07em;
98
-
99
98
  }
99
+
100
100
  &.type-display1 {
101
101
  margin: -0.5rem 0 4rem -0.07em;
102
-
103
102
  }
103
+
104
104
  &.type-headline {
105
105
  margin: -0.5rem 0 1rem -0.06em;
106
-
107
106
  }
107
+
108
108
  &.type-title {
109
109
  margin: -0.5rem 0 1rem -0.05em;
110
-
111
110
  }
111
+
112
112
  &.type-subheading2 {
113
113
  margin: -0.5rem 0 1rem -0.06em;
114
-
115
114
  }
115
+
116
116
  &.type-subheading1 {
117
117
  margin: -0.313rem 0 0.813rem -0.06em;
118
-
119
118
  }
119
+
120
120
  &.type-body1 {
121
121
  margin: -0.25rem 0 0.75rem 0;
122
-
123
122
  }
123
+
124
124
  &.type-body2 {
125
125
  margin: -0.25rem 0 0.75rem 0;
126
-
127
126
  }
127
+
128
128
  &.type-caption {
129
129
  line-height: 1.25rem;
130
-
131
130
  }
132
131
  }
133
132
  }
@@ -19,9 +19,7 @@
19
19
  }
20
20
  }
21
21
  .button.type-action {
22
- &.style-dense, {
23
- /* empty */
24
- }
22
+ &.style-dense,
25
23
  &.style-compact {
26
24
  height: 32px;
27
25
  width: 32px;
@@ -43,21 +41,18 @@
43
41
  }
44
42
  .button.type-action {
45
43
  &:hover {
46
- /* empty */
47
- }
48
44
  //background-color: #E0E0E0;
45
+ }
49
46
 
50
47
  &:focus {
51
- /* empty */
52
- }
53
48
  //background-color: darken(rgba(255, 255, 255, 0.95), 5%)
49
+ }
54
50
 
55
51
  .material-ripple {
56
- /* empty */
57
- }
58
52
  //background-color: rgba(255, 255, 255, 1)
59
53
 
60
54
  // color
55
+ }
61
56
  }
62
57
  .button.type-action {
63
58
  &.primary-color {
@@ -90,9 +85,7 @@
90
85
  }
91
86
  }
92
87
  }
93
- .dark-mode .button.type-action, {
94
- /* empty */
95
- }
88
+ .dark-mode .button.type-action,
96
89
  .button.type-action.dark-mode {
97
90
 
98
91
  //background-color: rgba(255, 255, 255, 0.95)
@@ -113,11 +106,6 @@
113
106
  .button-icon {
114
107
  svg {
115
108
  fill: $secondary-color-text-dark;
116
-
117
-
118
-
119
-
120
-
121
109
  }
122
110
  }
123
111
  }
@@ -14,8 +14,8 @@
14
14
  background-color: transparent;
15
15
  > * {
16
16
  pointer-events: none;
17
-
18
17
  }
18
+
19
19
  .button-icon {
20
20
  flex: none;
21
21
  pointer-events: none;
@@ -30,9 +30,9 @@
30
30
  background-position: center center;
31
31
  svg {
32
32
  fill: $default-color-text;
33
-
34
33
  }
35
34
  }
35
+
36
36
  .button-label {
37
37
  flex: 1;
38
38
  order: 2;
@@ -45,8 +45,8 @@
45
45
  text-transform: uppercase;
46
46
  padding: 3px 8px 3px 8px;
47
47
  margin: 0;
48
-
49
48
  }
49
+
50
50
  .material-ripple {
51
51
  opacity: 1;
52
52
  pointer-events: none;
@@ -56,8 +56,8 @@
56
56
  height: 5px;
57
57
  width: 5px;
58
58
  border-radius: 50%;
59
-
60
59
  }
60
+
61
61
  &.iconend {
62
62
  .button-icon {
63
63
  order: 2;
@@ -73,30 +73,29 @@
73
73
  &.is-disabled {
74
74
  pointer-events: none;
75
75
  opacity: .3;
76
-
77
76
  }
77
+
78
78
  &:focus {
79
79
  //transition-delay: .2s
80
80
  transition-duration: .3s;
81
81
  background-color: rgba($default-color-text, 0.05);
82
82
  &:hover {
83
83
  background-color: rgba($default-color-text, 0.05);
84
-
85
84
  }
86
85
  }
86
+
87
87
  &:active {
88
88
  transition-duration: .2s;
89
89
  &:focus {
90
- /* empty */
91
- }
92
90
  //transition-delay: .2s
93
-
91
+ }
94
92
  }
93
+
95
94
  &:hover {
96
95
  transition-duration: .2s;
97
96
  background-color: rgba($default-color-text, 0.03);
98
-
99
97
  }
98
+
100
99
  &:disabled {
101
100
  pointer-events: none;
102
101
  opacity: .3;
@@ -109,9 +108,9 @@
109
108
  > .button-label {
110
109
  padding-left: 0;
111
110
  padding-right: 0;
112
-
113
111
  }
114
112
  }
113
+
115
114
  &.style-dense {
116
115
  height: 32px;
117
116
  > .button-label {
@@ -134,21 +133,19 @@
134
133
  }
135
134
  &:hover {
136
135
  background-color: rgba($primary-color, .05);
137
-
138
136
  }
137
+
139
138
  .button-icon {
140
139
  svg {
141
140
  fill: $primary-color;
142
-
143
141
  }
144
142
  }
143
+
145
144
  .material-ripple {
146
145
  background-color: rgba($primary-color, .1);
147
-
148
-
149
-
150
146
  }
151
147
  }
148
+
152
149
  &.secondary-color {
153
150
  color: $secondary-color;
154
151
  .button-icon {
@@ -172,9 +169,7 @@
172
169
  }
173
170
  }
174
171
  }
175
- .dark-mode .button, {
176
- /* empty */
177
- }
172
+ .dark-mode .button,
178
173
  .button.dark-mode {
179
174
  color: $default-color-text-dark;
180
175
  .button-icon {
@@ -188,9 +183,8 @@
188
183
  &:focus {
189
184
  //background-color: rgba($default-color-text-dark, .1)
190
185
  &:hover {
191
- /* empty */
192
- }
193
186
  //background-color: rgba($default-color-text-dark, .1)
187
+ }
194
188
  }
195
189
  &:hover {
196
190
  background-color: rgba($default-color-text-dark, .05);
@@ -229,15 +223,15 @@
229
223
  }
230
224
  .material-ripple {
231
225
  background-color: rgba($secondary-color-dark, .3);
232
-
233
226
  }
227
+
234
228
  &:focus {
235
229
  background-color: rgba($secondary-color-dark, .2);
236
230
  &:hover {
237
231
  background-color: rgba($secondary-color-dark, .2);
238
-
239
232
  }
240
233
  }
234
+
241
235
  &:hover {
242
236
  background-color: rgba($secondary-color-dark, .1);
243
237
  }
@@ -18,8 +18,8 @@
18
18
  cursor: pointer;
19
19
  opacity: 0;
20
20
  filter: alpha(opacity = 0);
21
-
22
21
  }
22
+
23
23
  .button-icon {
24
24
  z-index: 1;
25
25
  padding-right: 6px;
@@ -55,8 +55,8 @@
55
55
  .material-ripple {
56
56
  opacity: .3;
57
57
  background-color: $default-color-dark;
58
-
59
58
  }
59
+
60
60
  &:focus {
61
61
  background-color: lighten($primary-color, 15%);
62
62
  &:hover {
@@ -65,9 +65,9 @@
65
65
  }
66
66
  &:hover {
67
67
  background-color: lighten($primary-color, 7%);
68
-
69
68
  }
70
69
  }
70
+
71
71
  &.secondary-color {
72
72
  background-color: $secondary-color;
73
73
  color: $secondary-color-text;
@@ -93,9 +93,7 @@
93
93
  }
94
94
  }
95
95
  }
96
- .dark-mode .button.type-floating, {
97
- /* empty */
98
- }
96
+ .dark-mode .button.type-floating,
99
97
  .button.type-floating.dark-mode {
100
98
  .material-ripple {
101
99
  opacity: .1;
@@ -134,10 +132,9 @@
134
132
  }
135
133
  &:hover {
136
134
  background-color: lighten($primary-color, 7%);
137
-
138
-
139
135
  }
140
136
  }
137
+
141
138
  &.secondary-color {
142
139
  background-color: $secondary-color-dark;
143
140
  color: $secondary-color-text-dark;
@@ -154,7 +151,6 @@
154
151
  }
155
152
  &:hover {
156
153
  background-color: lighten($secondary-color, 5%);
157
-
158
154
  }
159
155
  }
160
156
  }
@@ -40,8 +40,8 @@
40
40
  .material-ripple {
41
41
  opacity: .3;
42
42
  background-color: $default-color-dark;
43
-
44
43
  }
44
+
45
45
  &:focus {
46
46
  background-color: lighten($primary-color, 15%);
47
47
  &:hover {
@@ -50,9 +50,9 @@
50
50
  }
51
51
  &:hover {
52
52
  background-color: lighten($primary-color, 7%);
53
-
54
53
  }
55
54
  }
55
+
56
56
  &.secondary-color {
57
57
  background-color: $secondary-color;
58
58
  color: $secondary-color-text;
@@ -78,9 +78,7 @@
78
78
  }
79
79
  }
80
80
  }
81
- .dark-mode .button.type-raised, {
82
- /* empty */
83
- }
81
+ .dark-mode .button.type-raised,
84
82
  .button.type-raised.dark-mode {
85
83
  .material-ripple {
86
84
  opacity: .1;
@@ -119,10 +117,9 @@
119
117
  }
120
118
  &:hover {
121
119
  background-color: lighten($primary-color, 7%);
122
-
123
-
124
120
  }
125
121
  }
122
+
126
123
  &.secondary-color {
127
124
  background-color: $secondary-color-dark;
128
125
  color: $secondary-color-text-dark;
@@ -139,7 +136,6 @@
139
136
  }
140
137
  &:hover {
141
138
  background-color: lighten($secondary-color, 5%);
142
-
143
139
  }
144
140
  }
145
141
  }
@@ -12,9 +12,8 @@
12
12
  }
13
13
  .button.type-stroked {
14
14
  &:hover {
15
- /* empty */
16
- }
17
15
  //background-color: #E0E0E0;
16
+ }
18
17
  &:focus {
19
18
  background-color: darken(rgba(255, 255, 255, 0.95), 5%);
20
19
  &:active {
@@ -41,19 +40,19 @@
41
40
  color: $primary-color-text;
42
41
  &:active {
43
42
  background-color: $primary-color;
44
-
45
43
  }
46
44
  }
47
45
  }
46
+
48
47
  &.secondary-color {
49
48
  background-color: $secondary-color;
50
49
  color: $secondary-color-text;
51
50
  .button-icon {
52
51
  svg {
53
52
  fill: $secondary-color-text;
54
-
55
53
  }
56
54
  }
55
+
57
56
  &:focus {
58
57
  background-color: lighten($secondary-color, 5%);
59
58
  color: $secondary-color-text;
@@ -65,9 +64,7 @@
65
64
  }
66
65
  }
67
66
  }
68
- .dark-mode .button.type-stroked, {
69
- /* empty */
70
- }
67
+ .dark-mode .button.type-stroked,
71
68
  .button.type-stroked.dark-mode {
72
69
 
73
70
  //background-color: rgba(255, 255, 255, 0.95)
@@ -75,27 +72,25 @@
75
72
  .button-icon {
76
73
  svg {
77
74
  fill: $primary-color-text-dark;
78
-
79
75
  }
80
76
  }
77
+
81
78
  &.primary-color {
82
79
  background-color: $primary-color-dark;
83
80
  color: $primary-color-text-dark;
84
81
  .button-icon {
85
82
  svg {
86
83
  fill: $primary-color-text-dark;
87
-
88
84
  }
89
85
  }
90
86
  }
87
+
91
88
  &.secondary-color {
92
89
  background-color: $secondary-color-dark;
93
90
  color: $secondary-color-text-dark;
94
91
  .button-icon {
95
92
  svg {
96
93
  fill: $secondary-color-text-dark;
97
-
98
-
99
94
  }
100
95
  }
101
96
  }
@@ -1,11 +1,8 @@
1
1
  .material-component {
2
2
  background-color: $background-color;
3
-
4
-
5
- }
6
- .dark-mode .material-component, {
7
- /* empty */
8
3
  }
4
+
5
+ .dark-mode .material-component,
9
6
  .material-component.dark-mode {
10
7
  background-color: $background-color-dark;
11
8
  }