material 0.9.26 → 0.9.28

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 (54) hide show
  1. package/package.json +1 -1
  2. package/src/skin/material/_variables.scss +30 -0
  3. package/src/skin/material/base/body.scss +14 -33
  4. package/src/skin/material/base/elevation.scss +0 -1
  5. package/src/skin/material/base/grid.scss +7 -11
  6. package/src/skin/material/base/typo.scss +22 -23
  7. package/src/skin/material/button/action.scss +13 -37
  8. package/src/skin/material/button/button.scss +50 -66
  9. package/src/skin/material/button/file.scss +1 -1
  10. package/src/skin/material/button/floating.scss +36 -34
  11. package/src/skin/material/button/raised.scss +36 -34
  12. package/src/skin/material/button/stroked.scss +25 -28
  13. package/src/skin/material/component/component.scss +3 -5
  14. package/src/skin/material/component/divider.scss +0 -1
  15. package/src/skin/material/component/image.scss +0 -1
  16. package/src/skin/material/component/label.scss +0 -1
  17. package/src/skin/material/component/progress.scss +38 -43
  18. package/src/skin/material/component/subheader.scss +0 -1
  19. package/src/skin/material/component/text.scss +14 -15
  20. package/src/skin/material/container/appbar.scss +24 -35
  21. package/src/skin/material/container/banner.scss +1 -2
  22. package/src/skin/material/container/card.scss +0 -1
  23. package/src/skin/material/container/dialog.scss +33 -66
  24. package/src/skin/material/container/drawer.scss +14 -23
  25. package/src/skin/material/container/menu.scss +5 -8
  26. package/src/skin/material/container/tabs.scss +6 -6
  27. package/src/skin/material/container/toolbar.scss +19 -46
  28. package/src/skin/material/control/button.scss +43 -42
  29. package/src/skin/material/control/checkbox.scss +17 -23
  30. package/src/skin/material/control/colorpicker.scss +9 -11
  31. package/src/skin/material/control/menu.scss +2 -6
  32. package/src/skin/material/control/progress.scss +38 -41
  33. package/src/skin/material/control/search.scss +12 -11
  34. package/src/skin/material/control/selecter.scss +5 -7
  35. package/src/skin/material/control/selector.scss +0 -2
  36. package/src/skin/material/control/slider.scss +33 -51
  37. package/src/skin/material/control/snackbar.scss +1 -4
  38. package/src/skin/material/control/switch.scss +44 -75
  39. package/src/skin/material/control/switcher.scss +0 -1
  40. package/src/skin/material/control/textfield.scss +33 -53
  41. package/src/skin/material/control/tooltip.scss +1 -3
  42. package/src/skin/material/layout/layout.scss +17 -21
  43. package/src/skin/material/layout/resizer.scss +16 -36
  44. package/src/skin/material/module/ripple.scss +0 -1
  45. package/src/skin/material/view/calendar.scss +13 -18
  46. package/src/skin/material/view/form.scss +1 -2
  47. package/src/skin/material/view/grid.scss +7 -8
  48. package/src/skin/material/view/list.scss +6 -8
  49. package/src/skin/material/view/listview.scss +10 -17
  50. package/src/skin/material/view/map.scss +0 -1
  51. package/src/skin/material/view/page.scss +0 -1
  52. package/src/skin/material/view/tabview-bak.scss +0 -1
  53. package/src/skin/material/view/tabview.scss +2 -4
  54. package/src/skin/material/view/tree.scss +6 -7
@@ -1,3 +1,4 @@
1
+
1
2
  .switch {
2
3
  display: block;
3
4
  position: relative;
@@ -9,19 +10,11 @@
9
10
  flew-direction: horizontal;
10
11
  flex-wrap: nowrap;
11
12
 
12
- //overflow: hidden;
13
- //border-bottom: 1px solid rgba(100, 100, 100, 0.1);
14
13
  input {
15
14
  position: absolute;
16
15
  left: -10000px;
17
-
18
- &:active {
19
- /* empty */
20
- }
21
- //background-color: #D6E5E4;
22
- //transition: .1s;
23
-
24
16
  }
17
+
25
18
  .switch-label {
26
19
  flex: 1;
27
20
  order: 2;
@@ -31,8 +24,8 @@
31
24
  padding: 14px 0;
32
25
  margin: 0px 2px 0px 16px;
33
26
  overflow: hidden;
34
-
35
27
  }
28
+
36
29
  .switch-control {
37
30
  order: 1;
38
31
  cursor: pointer;
@@ -40,7 +33,7 @@
40
33
  height: 48px;
41
34
  padding: 17px 7px;
42
35
  border-radius: 50%;
43
- transition: .3s;
36
+ transition: 0.3s;
44
37
 
45
38
  .switch-track {
46
39
  cursor: pointer;
@@ -63,7 +56,9 @@
63
56
  margin: 0;
64
57
  border-radius: 50%;
65
58
  background-color: rgba(241, 241, 241, 1);
66
- box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
59
+ box-shadow:
60
+ 0 2px 2px 0 rgba(0, 0, 0, 0.24),
61
+ 0 0 2px 0 rgba(0, 0, 0, 0.12);
67
62
  transition: 0.2s cubic-bezier(0.46, 0, 0.24, 1);
68
63
 
69
64
  &::after {
@@ -72,39 +67,30 @@
72
67
  left: -14px;
73
68
  width: 48px;
74
69
  height: 48px;
75
-
76
- // -webkit-transform: scale(0);
77
- // transform: scale(0);
78
- // -webkit-transition: background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
79
- // transition: background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
80
- // transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1);
81
- // transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
82
70
  border-radius: 24px;
83
71
  content: "";
84
-
85
- //opacity: .2;
86
- transition: .2s;
87
-
72
+ transition: 0.2s;
88
73
  }
89
74
  }
90
75
  }
91
76
  }
77
+
92
78
  &.is-checked {
93
79
  .switch-track {
94
- background-color: rgba($secondary-color, .3);
80
+ background-color: rgba($secondary-color, 0.3);
95
81
 
96
82
  .switch-knob {
97
83
  background-color: $secondary-color;
98
84
  left: 15px;
99
-
100
85
  }
101
86
  }
102
87
  }
88
+
103
89
  &.is-focused {
104
90
  .switch-track {
105
91
  .switch-knob {
106
92
  &::after {
107
- transition: .2s;
93
+ transition: 0.2s;
108
94
  position: absolute;
109
95
  top: -14px;
110
96
  left: -14px;
@@ -113,16 +99,16 @@
113
99
  border-radius: 24px;
114
100
  background-color: rgba(0, 0, 0, 0.05);
115
101
  content: "";
116
-
117
102
  }
118
103
  }
119
104
  }
120
105
  }
106
+
121
107
  &.is-disabled {
122
108
  .switch-label {
123
- opacity: .5;
124
-
109
+ opacity: 0.5;
125
110
  }
111
+
126
112
  .switch-control {
127
113
  order: 3;
128
114
  cursor: pointer;
@@ -130,42 +116,40 @@
130
116
  height: 48px;
131
117
  padding: 17px 7px;
132
118
 
133
- //border-radius: 50%;
134
- //transition: .1s;
135
119
  .switch-track {
136
120
  background-color: rgba(34, 31, 31, 0.1);
137
121
 
138
122
  .switch-knob {
139
123
  background-color: rgb(189, 189, 189);
140
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12), 0 0 1px 0 rgba(0, 0, 0, 0.06);
141
-
124
+ box-shadow:
125
+ 0 1px 1px 0 rgba(0, 0, 0, 0.12),
126
+ 0 0 1px 0 rgba(0, 0, 0, 0.06);
142
127
  }
143
128
  }
144
129
  }
145
130
  }
146
131
  }
132
+
147
133
  .dark-mode {
148
134
  .material-switch {
149
135
  .switch-control {
150
136
  .switch-track {
151
137
  background-color: rgba(255, 255, 255, 0.5);
152
-
153
138
  }
154
139
  }
140
+
155
141
  &.is-checked {
156
142
  .switch-track {
157
- background-color: rgba($secondary-color, .3);
158
-
143
+ background-color: rgba($secondary-color, 0.3);
159
144
  }
160
145
  }
146
+
161
147
  &.is-focused {
162
148
  .switch-control {
163
149
  .switch-track {
164
150
  .switch-knob {
165
151
  &::after {
166
152
  background-color: rgba(255, 255, 255, 0.05);
167
-
168
-
169
153
  }
170
154
  }
171
155
  }
@@ -173,6 +157,7 @@
173
157
  }
174
158
  }
175
159
  }
160
+
176
161
  .material-switch {
177
162
  display: block;
178
163
  position: relative;
@@ -184,19 +169,11 @@
184
169
  flew-direction: horizontal;
185
170
  flex-wrap: nowrap;
186
171
 
187
- //overflow: hidden;
188
- //border-bottom: 1px solid rgba(100, 100, 100, 0.1);
189
172
  input {
190
173
  position: absolute;
191
174
  left: -10000px;
192
-
193
- &:active {
194
- /* empty */
195
- }
196
- //background-color: #D6E5E4;
197
- //transition: .1s;
198
-
199
175
  }
176
+
200
177
  .switch-label {
201
178
  flex: 1;
202
179
  order: 2;
@@ -206,8 +183,8 @@
206
183
  padding: 14px 0;
207
184
  margin: 0px 2px 0px 16px;
208
185
  overflow: hidden;
209
-
210
186
  }
187
+
211
188
  .switch-control {
212
189
  order: 1;
213
190
  cursor: pointer;
@@ -215,7 +192,7 @@
215
192
  height: 48px;
216
193
  padding: 17px 7px;
217
194
  border-radius: 50%;
218
- transition: .3s;
195
+ transition: 0.3s;
219
196
 
220
197
  .switch-track {
221
198
  cursor: pointer;
@@ -238,7 +215,9 @@
238
215
  margin: 0;
239
216
  border-radius: 50%;
240
217
  background-color: rgba(241, 241, 241, 1);
241
- box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
218
+ box-shadow:
219
+ 0 2px 2px 0 rgba(0, 0, 0, 0.24),
220
+ 0 0 2px 0 rgba(0, 0, 0, 0.12);
242
221
  transition: 0.2s cubic-bezier(0.46, 0, 0.24, 1);
243
222
 
244
223
  &::after {
@@ -247,39 +226,30 @@
247
226
  left: -14px;
248
227
  width: 48px;
249
228
  height: 48px;
250
-
251
- // -webkit-transform: scale(0);
252
- // transform: scale(0);
253
- // -webkit-transition: background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
254
- // transition: background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
255
- // transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1);
256
- // transition: transform 90ms cubic-bezier(0.4, 0, 0.2, 1), background-color 90ms cubic-bezier(0.4, 0, 0.2, 1), -webkit-transform 90ms cubic-bezier(0.4, 0, 0.2, 1);
257
229
  border-radius: 24px;
258
230
  content: "";
259
-
260
- //opacity: .2;
261
- transition: .2s;
262
-
231
+ transition: 0.2s;
263
232
  }
264
233
  }
265
234
  }
266
235
  }
236
+
267
237
  &.is-checked {
268
238
  .switch-track {
269
- background-color: rgba($secondary-color, .3);
239
+ background-color: rgba($secondary-color, 0.3);
270
240
 
271
241
  .switch-knob {
272
242
  background-color: $secondary-color;
273
243
  left: 15px;
274
-
275
244
  }
276
245
  }
277
246
  }
247
+
278
248
  &.is-focused {
279
249
  .switch-track {
280
250
  .switch-knob {
281
251
  &::after {
282
- transition: .2s;
252
+ transition: 0.2s;
283
253
  position: absolute;
284
254
  top: -14px;
285
255
  left: -14px;
@@ -288,16 +258,16 @@
288
258
  border-radius: 24px;
289
259
  background-color: rgba(0, 0, 0, 0.05);
290
260
  content: "";
291
-
292
261
  }
293
262
  }
294
263
  }
295
264
  }
265
+
296
266
  &.is-disabled {
297
267
  .switch-label {
298
- opacity: .5;
299
-
268
+ opacity: 0.5;
300
269
  }
270
+
301
271
  .switch-control {
302
272
  order: 3;
303
273
  cursor: pointer;
@@ -305,41 +275,40 @@
305
275
  height: 48px;
306
276
  padding: 17px 7px;
307
277
 
308
- //border-radius: 50%;
309
- //transition: .1s;
310
278
  .switch-track {
311
279
  background-color: rgba(34, 31, 31, 0.1);
312
280
 
313
281
  .switch-knob {
314
282
  background-color: rgb(189, 189, 189);
315
- box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12), 0 0 1px 0 rgba(0, 0, 0, 0.06);
316
-
283
+ box-shadow:
284
+ 0 1px 1px 0 rgba(0, 0, 0, 0.12),
285
+ 0 0 1px 0 rgba(0, 0, 0, 0.06);
317
286
  }
318
287
  }
319
288
  }
320
289
  }
321
290
  }
291
+
322
292
  .dark-mode {
323
293
  .material-switch {
324
294
  .switch-control {
325
295
  .switch-track {
326
296
  background-color: rgba(255, 255, 255, 0.5);
327
-
328
297
  }
329
298
  }
299
+
330
300
  &.is-checked {
331
301
  .switch-track {
332
- background-color: rgba($secondary-color, .3);
333
-
302
+ background-color: rgba($secondary-color, 0.3);
334
303
  }
335
304
  }
305
+
336
306
  &.is-focused {
337
307
  .switch-control {
338
308
  .switch-track {
339
309
  .switch-knob {
340
310
  &::after {
341
311
  background-color: rgba(255, 255, 255, 0.05);
342
-
343
312
  }
344
313
  }
345
314
  }
@@ -41,7 +41,6 @@
41
41
  // background-color: #4891F4
42
42
  background-color: white;
43
43
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);
44
-
45
44
  }
46
45
  }
47
46
  }
@@ -1,3 +1,4 @@
1
+
1
2
  .material-textfield {
2
3
  display: block;
3
4
  position: relative;
@@ -6,13 +7,13 @@
6
7
  margin-bottom: 16px;
7
8
  vertical-align: top;
8
9
  .textfield-label {
9
- transition: .2s;
10
+ transition: 0.2s;
10
11
  color: rgba(0, 0, 0, 0.3);
11
12
  position: absolute;
12
- font-size: .7em;
13
+ font-size: 0.7em;
13
14
  top: -2px;
14
-
15
15
  }
16
+
16
17
  .textfield-underline {
17
18
  position: absolute;
18
19
  opacity: 0;
@@ -20,49 +21,47 @@
20
21
  bottom: 0px;
21
22
  height: 2px;
22
23
  width: 2px;
23
- background-color: #4891F4;
24
- transition: .1s;
25
-
24
+ background-color: #4891f4;
25
+ transition: 0.1s;
26
26
  }
27
+
27
28
  &.textfield-error {
28
29
  .textfield-label {
29
- color: #F44336;
30
- color: #D6392C;
31
-
30
+ color: #f44336;
31
+ color: #d6392c;
32
32
  }
33
- textarea, {
34
- /* empty */
35
- }
36
- input {
37
- border-bottom: 1px solid #F44336;
38
33
 
34
+ textarea,
35
+ input {
36
+ border-bottom: 1px solid #f44336;
39
37
  }
40
38
  }
39
+
41
40
  &.hide {
42
41
  display: none;
43
-
44
- // states
45
42
  }
46
43
  }
44
+
45
+ // states
47
46
  .material-textfield {
48
47
  &.is-focused {
49
48
  .textfield-label {
50
- transition: .2s;
51
-
49
+ transition: 0.2s;
52
50
  }
51
+
53
52
  .textfield-underline {
54
53
  opacity: 1;
55
54
  display: block;
56
55
  width: 100%;
57
56
  left: 0;
58
- transition: .1s;
57
+ transition: 0.1s;
59
58
  background-color: $primary-color;
60
-
61
59
  }
62
60
  }
61
+
63
62
  &.is-empty {
64
63
  .textfield-label {
65
- transition: .2s;
64
+ transition: 0.2s;
66
65
  pointer-events: none;
67
66
  position: absolute;
68
67
  top: 20px;
@@ -70,31 +69,27 @@
70
69
  display: block;
71
70
  font-size: 1em;
72
71
  padding: 0 2px 0 0;
73
-
74
72
  }
73
+
75
74
  &.is-focused {
76
75
  .textfield-label {
77
- transition: .2s;
78
- font-size: .7em;
76
+ transition: 0.2s;
77
+ font-size: 0.7em;
79
78
  top: -2px;
80
-
81
79
  }
82
80
  }
81
+
83
82
  .textfield-input {
84
83
  float: none;
85
84
  width: 100%;
86
85
  border: none;
87
86
  margin: 0;
88
-
89
- // margin-top: 13px;
90
87
  background-color: transparent;
91
88
  border-radius: 0;
92
89
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
93
-
94
- //outline:none;
95
-
96
90
  }
97
91
  }
92
+
98
93
  .textfield-input {
99
94
  float: none;
100
95
  width: 100%;
@@ -105,55 +100,40 @@
105
100
  border-radius: 0;
106
101
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
107
102
 
108
- //outline:none;
109
103
  &:hover {
110
104
  cursor: default;
111
-
112
- //background-color: rgba(100, 100, 100, .06);
113
-
114
105
  }
106
+
115
107
  &:focus {
116
108
  cursor: text;
117
-
118
109
  }
119
110
  }
120
- input[readonly], {
121
- /* empty */
122
- }
111
+
112
+ input[readonly],
123
113
  textarea[readonly] {
124
- //color: #9A9A9A;
125
- //color: rgba(0, 0, 0, 1);
126
- //background-color: rgba(255,255,255,1);
127
114
  border-bottom: 1px solid transparent;
128
115
 
129
116
  &:hover {
130
117
  cursor: default;
131
-
132
- //background-color: rgba(255,255,255,1);
133
-
134
- }
135
- &:focus, {
136
- /* empty */
137
118
  }
119
+
120
+ &:focus,
138
121
  &:active {
139
122
  cursor: text;
140
123
  border-bottom: 1px solid transparent !important;
141
-
142
- //background-color: rgba(255,255,255,1);
143
-
144
124
  }
145
125
  }
146
126
  }
127
+
147
128
  .dark-mode {
148
129
  .material-textfield {
149
130
  .textfield-label {
150
- transition: .2s;
131
+ transition: 0.2s;
151
132
  color: rgba(255, 255, 255, 0.3);
152
-
153
133
  }
134
+
154
135
  .textfield-input {
155
136
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
156
-
157
137
  }
158
138
  }
159
139
  }
@@ -29,14 +29,12 @@
29
29
  background-position: center;
30
30
  background-size: contain;
31
31
  background-repeat: no-repeat;
32
-
33
-
34
32
  }
35
33
  }
36
34
  }
35
+
37
36
  @media only screen and (max-width: 640px) {
38
37
  .tooltip {
39
38
  display: none;
40
-
41
39
  }
42
40
  }
@@ -1,6 +1,4 @@
1
1
  .material-layout {
2
- /* empty */
3
- }
4
2
  // overflow: hidden;
5
3
  // padding: 0;
6
4
  // margin: 0;
@@ -10,10 +8,9 @@
10
8
  // bottom: 0;
11
9
  // left: 0;
12
10
  // right: 0;
13
-
14
- .flex-row, {
15
- /* empty */
16
11
  }
12
+
13
+ .flex-row,
17
14
  .flex-raw {
18
15
  display: flex;
19
16
  flex-direction: row;
@@ -21,9 +18,9 @@
21
18
 
22
19
  > .ui-container {
23
20
  height: inherit;
24
-
25
21
  }
26
22
  }
23
+
27
24
  .flex-column {
28
25
  display: flex;
29
26
  flex-direction: column;
@@ -31,62 +28,61 @@
31
28
 
32
29
  > .material-container {
33
30
  width: inherit;
34
-
35
31
  }
36
32
  }
33
+
37
34
  .display-absolute {
38
35
  display: absolute;
39
-
40
36
  }
37
+
41
38
  .flex-none {
42
39
  flex: none;
43
-
44
40
  }
41
+
45
42
  .flex-1 {
46
43
  flex: 1;
47
-
48
44
  }
45
+
49
46
  .flex-2 {
50
47
  flex: 2;
51
-
52
48
  }
49
+
53
50
  .flex-3 {
54
51
  flex: 3;
55
-
56
52
  }
53
+
57
54
  .flex-4 {
58
55
  flex: 4;
59
-
60
56
  }
57
+
61
58
  .flex-5 {
62
59
  flex: 5;
63
-
64
60
  }
61
+
65
62
  .flex-6 {
66
63
  flex: 6;
67
-
68
64
  }
65
+
69
66
  .flex-7 {
70
67
  flex: 7;
71
-
72
68
  }
69
+
73
70
  .flex-8 {
74
71
  flex: 8;
75
-
76
72
  }
73
+
77
74
  .flex-9 {
78
75
  flex: 9;
79
-
80
76
  }
77
+
81
78
  .flex-10 {
82
79
  flex: 10;
83
-
84
80
  }
81
+
85
82
  .flex-11 {
86
83
  flex: 11;
87
-
88
84
  }
85
+
89
86
  .flex-12 {
90
87
  flex: 12;
91
-
92
88
  }