material 0.9.25 → 0.9.26

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 (118) hide show
  1. package/package.json +1 -1
  2. package/src/skin/material/base/body.scss +83 -0
  3. package/src/skin/material/base/{elevation.sass → elevation.scss} +76 -50
  4. package/src/skin/material/base/{grid.sass → grid.scss} +44 -32
  5. package/src/skin/material/base/typo.scss +133 -0
  6. package/src/skin/material/button/action.scss +124 -0
  7. package/src/skin/material/button/button.scss +245 -0
  8. package/src/skin/material/button/file.scss +27 -0
  9. package/src/skin/material/button/floating.scss +160 -0
  10. package/src/skin/material/button/raised.scss +145 -0
  11. package/src/skin/material/button/stroked.scss +102 -0
  12. package/src/skin/material/component/component.scss +11 -0
  13. package/src/skin/material/component/divider.scss +22 -0
  14. package/src/skin/material/component/image.scss +9 -0
  15. package/src/skin/material/component/label.scss +4 -0
  16. package/src/skin/material/component/navigation.scss +15 -0
  17. package/src/skin/material/component/progress.scss +176 -0
  18. package/src/skin/material/component/subheader.scss +5 -0
  19. package/src/skin/material/component/text.scss +101 -0
  20. package/src/skin/material/container/appbar.scss +215 -0
  21. package/src/skin/material/container/banner.scss +44 -0
  22. package/src/skin/material/container/card.scss +23 -0
  23. package/src/skin/material/container/container.scss +2 -0
  24. package/src/skin/material/container/dialog.scss +196 -0
  25. package/src/skin/material/container/drawer.scss +185 -0
  26. package/src/skin/material/container/menu.scss +69 -0
  27. package/src/skin/material/container/snackbar.scss +21 -0
  28. package/src/skin/material/container/tabs.scss +94 -0
  29. package/src/skin/material/container/toolbar.scss +207 -0
  30. package/src/skin/material/control/button.scss +172 -0
  31. package/src/skin/material/control/checkbox.scss +134 -0
  32. package/src/skin/material/control/colorpicker.scss +220 -0
  33. package/src/skin/material/control/menu.scss +25 -0
  34. package/src/skin/material/control/progress.scss +174 -0
  35. package/src/skin/material/control/search.scss +50 -0
  36. package/src/skin/material/control/selecter.scss +152 -0
  37. package/src/skin/material/control/selector.scss +46 -0
  38. package/src/skin/material/control/slider.scss +221 -0
  39. package/src/skin/material/control/snackbar.scss +77 -0
  40. package/src/skin/material/control/switch.scss +349 -0
  41. package/src/skin/material/control/switcher.scss +48 -0
  42. package/src/skin/material/control/textfield.scss +159 -0
  43. package/src/skin/material/control/tooltip.scss +42 -0
  44. package/src/skin/material/layout/layout.scss +92 -0
  45. package/src/skin/material/layout/resizer.scss +97 -0
  46. package/src/skin/material/material.scss +67 -0
  47. package/src/skin/material/module/ripple.scss +11 -0
  48. package/src/skin/material/theme/{default.sass → default.scss} +18 -17
  49. package/src/skin/material/theme/ocean.scss +30 -0
  50. package/src/skin/material/theme/theme.scss +4 -0
  51. package/src/skin/material/view/calendar.scss +219 -0
  52. package/src/skin/material/view/form.scss +21 -0
  53. package/src/skin/material/view/grid.scss +134 -0
  54. package/src/skin/material/view/list.scss +107 -0
  55. package/src/skin/material/view/listview.scss +221 -0
  56. package/src/skin/material/view/map.scss +8 -0
  57. package/src/skin/material/view/page.scss +5 -0
  58. package/src/skin/material/view/tabview-bak.scss +49 -0
  59. package/src/skin/material/view/tabview.scss +65 -0
  60. package/src/skin/material/view/tree.scss +85 -0
  61. package/src/skin/material/view/{view.sass → view.scss} +1 -0
  62. package/src/skin/material/base/body.sass +0 -55
  63. package/src/skin/material/base/typo.sass +0 -107
  64. package/src/skin/material/button/action.sass +0 -89
  65. package/src/skin/material/button/button.sass +0 -183
  66. package/src/skin/material/button/file.sass +0 -24
  67. package/src/skin/material/button/floating.sass +0 -113
  68. package/src/skin/material/button/raised.sass +0 -101
  69. package/src/skin/material/button/stroked.sass +0 -71
  70. package/src/skin/material/component/component.sass +0 -7
  71. package/src/skin/material/component/divider.sass +0 -17
  72. package/src/skin/material/component/image.sass +0 -6
  73. package/src/skin/material/component/label.sass +0 -2
  74. package/src/skin/material/component/navigation.sass +0 -13
  75. package/src/skin/material/component/progress.sass +0 -138
  76. package/src/skin/material/component/subheader.sass +0 -3
  77. package/src/skin/material/component/text.sass +0 -85
  78. package/src/skin/material/container/appbar.sass +0 -167
  79. package/src/skin/material/container/banner.sass +0 -38
  80. package/src/skin/material/container/card.sass +0 -19
  81. package/src/skin/material/container/dialog.sass +0 -172
  82. package/src/skin/material/container/drawer.sass +0 -159
  83. package/src/skin/material/container/menu.sass +0 -58
  84. package/src/skin/material/container/snackbar.sass +0 -18
  85. package/src/skin/material/container/tabs.sass +0 -75
  86. package/src/skin/material/container/toolbar.sass +0 -161
  87. package/src/skin/material/control/button.sass +0 -135
  88. package/src/skin/material/control/checkbox.sass +0 -105
  89. package/src/skin/material/control/colorpicker.sass +0 -188
  90. package/src/skin/material/control/dialog.sass +0 -0
  91. package/src/skin/material/control/menu.sass +0 -18
  92. package/src/skin/material/control/progress.sass +0 -136
  93. package/src/skin/material/control/search.sass +0 -40
  94. package/src/skin/material/control/selecter.sass +0 -131
  95. package/src/skin/material/control/selector.sass +0 -38
  96. package/src/skin/material/control/slider.sass +0 -181
  97. package/src/skin/material/control/snackbar.sass +0 -65
  98. package/src/skin/material/control/switch.sass +0 -284
  99. package/src/skin/material/control/switcher.sass +0 -41
  100. package/src/skin/material/control/textfield.sass +0 -126
  101. package/src/skin/material/control/tooltip.sass +0 -36
  102. package/src/skin/material/layout/layout.sass +0 -69
  103. package/src/skin/material/layout/resizer.sass +0 -69
  104. package/src/skin/material/material.sass +0 -66
  105. package/src/skin/material/module/ripple.sass +0 -9
  106. package/src/skin/material/theme/ocean.sass +0 -29
  107. package/src/skin/material/theme/theme.sass +0 -3
  108. package/src/skin/material/view/calendar.sass +0 -193
  109. package/src/skin/material/view/form.sass +0 -15
  110. package/src/skin/material/view/grid.sass +0 -116
  111. package/src/skin/material/view/list.sass +0 -87
  112. package/src/skin/material/view/listview.sass +0 -195
  113. package/src/skin/material/view/map.sass +0 -6
  114. package/src/skin/material/view/page.sass +0 -4
  115. package/src/skin/material/view/tabview-bak.sass +0 -40
  116. package/src/skin/material/view/tabview.sass +0 -55
  117. package/src/skin/material/view/tree.sass +0 -73
  118. /package/src/skin/material/{container/container.sass → control/dialog.scss} +0 -0
@@ -0,0 +1,4 @@
1
+ .material-label {
2
+ line-height: 1.3rem;
3
+
4
+ }
@@ -0,0 +1,15 @@
1
+ .navigation {
2
+ flex: none;
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 12px;
6
+ margin: 0;
7
+ overflow: hidden;
8
+ background-color: #3a3a3a;
9
+ transition: 0.1s linear width;
10
+ &.type-rail {
11
+ display: flex;
12
+ flex-direction: column;
13
+ width: 80px;
14
+ }
15
+ }
@@ -0,0 +1,176 @@
1
+ // Here is where the magic happens
2
+
3
+
4
+ .material-progress {
5
+ width: 100%;
6
+ height: 4px;
7
+ background-color: lighten($primary-color, 30%);
8
+ .bar {
9
+ width: 0%;
10
+ height: 100%;
11
+ background-color: $primary-color;
12
+ transition: width 3s;
13
+
14
+ }
15
+ }
16
+ .material-progress.type-indeterminate {
17
+ position: relative;
18
+ height: 4px;
19
+ display: block;
20
+ width: 100%;
21
+ background-color: lighten($primary-color, 30%);
22
+ overflow: hidden;
23
+ .determinate {
24
+ position: absolute;
25
+ background-color: inherit;
26
+ top: 0;
27
+ bottom: 0;
28
+ background-color: $primary-color;
29
+ transition: width .3s linear;
30
+ }
31
+ .bar {
32
+ background-color: $primary-color;
33
+ &:before {
34
+ content: '';
35
+ position: absolute;
36
+ background-color: inherit;
37
+ top: 0;
38
+ left: 0;
39
+ bottom: 0;
40
+ will-change: left, right {
41
+ /* empty */
42
+ }
43
+ -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
44
+ animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
45
+ }
46
+ &:after {
47
+ content: '';
48
+ position: absolute;
49
+ background-color: inherit;
50
+ top: 0;
51
+ left: 0;
52
+ bottom: 0;
53
+ will-change: left, right {
54
+ /* empty */
55
+ }
56
+ -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
57
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
58
+ -webkit-animation-delay: 1.15s;
59
+ animation-delay: 1.15s;
60
+
61
+ }
62
+ }
63
+ }
64
+ @-webkit-keyframes indeterminate {
65
+ 0% {
66
+ left: -35%;
67
+ right: 100%;
68
+
69
+ }
70
+ 60% {
71
+ left: 100%;
72
+ right: -90%;
73
+
74
+ }
75
+ 100% {
76
+ left: 100%;
77
+ right: -90%;
78
+
79
+
80
+ }
81
+ }
82
+ @keyframes indeterminate {
83
+ 0% {
84
+ left: -35%;
85
+ right: 100%;
86
+
87
+ }
88
+ 60% {
89
+ left: 100%;
90
+ right: -90%;
91
+
92
+ }
93
+ 100% {
94
+ left: 100%;
95
+ right: -90%;
96
+
97
+
98
+ }
99
+ }
100
+ @-webkit-keyframes indeterminate-short {
101
+ 0% {
102
+ left: -200%;
103
+ right: 100%;
104
+
105
+ }
106
+ 60% {
107
+ left: 107%;
108
+ right: -8%;
109
+
110
+ }
111
+ 100% {
112
+ left: 107%;
113
+ right: -8%;
114
+
115
+
116
+ }
117
+ }
118
+ @keyframes indeterminate-short {
119
+ 0% {
120
+ left: -200%;
121
+ right: 100%;
122
+
123
+ }
124
+ 60% {
125
+ left: 107%;
126
+ right: -8%;
127
+
128
+ }
129
+ 100% {
130
+ left: 107%;
131
+ right: -8%;
132
+
133
+
134
+
135
+ }
136
+ }
137
+ .material-progress.type-circular {
138
+ .progress {
139
+ animation: rotator 1.4s linear infinite;
140
+
141
+ }
142
+ @keyframes rotator {
143
+ 0% {
144
+ transform: rotate(0deg);
145
+
146
+ }
147
+ 100% {
148
+ transform: rotate(270deg);
149
+
150
+ }
151
+ }
152
+ .path {
153
+ stroke: #4285F4;
154
+ stroke-dasharray: 187;
155
+ stroke-dashoffset: 0;
156
+ transform-origin: center;
157
+ animation: dash 1.4s ease-in-out infinite;
158
+
159
+ }
160
+ @keyframes dash {
161
+ 0% {
162
+ stroke-dashoffset: 187;
163
+
164
+ }
165
+ 50% {
166
+ stroke-dashoffset: 187 / 4;
167
+ transform: rotate(135deg);
168
+
169
+ }
170
+ 100% {
171
+ stroke-dashoffset: 187;
172
+ transform: rotate(450deg);
173
+
174
+ }
175
+ }
176
+ }
@@ -0,0 +1,5 @@
1
+ .component-subheader {
2
+ margin-left: 16px;
3
+ margin-right: 16px;
4
+
5
+ }
@@ -0,0 +1,101 @@
1
+ .material-text {
2
+ // -moz-osx-font-smoothing: grayscale
3
+ // -webkit-font-smoothing: antialiased
4
+
5
+ &.text-display4 {
6
+ font-size: 7rem;
7
+ font-weight: 300;
8
+ letter-spacing: -0.04em;
9
+ line-height: 7rem;
10
+
11
+ }
12
+ &.text-display3 {
13
+ font-size: 3.5rem;
14
+ font-weight: 400;
15
+ letter-spacing: -0.02em;
16
+ line-height: 3.5rem;
17
+
18
+ }
19
+ &.text-display2 {
20
+ font-size: 2.813rem;
21
+ font-weight: 400;
22
+ letter-spacing: normal;
23
+ line-height: 3rem;
24
+
25
+ }
26
+ &.text-display1 {
27
+ font-size: 2.125rem;
28
+ font-weight: 400;
29
+ letter-spacing: normal;
30
+ line-height: 2.5rem;
31
+
32
+ }
33
+ &.text-headline {
34
+ font-size: 1.5rem;
35
+ font-weight: 400;
36
+ letter-spacing: normal;
37
+ line-height: 2rem;
38
+
39
+ }
40
+ &.text-title {
41
+ font-size: 1.25rem;
42
+ font-weight: 500;
43
+ letter-spacing: 0.02em;
44
+ line-height: 2rem;
45
+
46
+ // margin-bottom: 30px;
47
+
48
+ }
49
+ &.text-subheading2 {
50
+ font-size: 1rem;
51
+ font-weight: 400;
52
+ letter-spacing: 0.04em;
53
+ line-height: 1.75rem;
54
+
55
+ }
56
+ &.text-subheading1 {
57
+ font-size: 0.938rem;
58
+ font-weight: 400;
59
+ letter-spacing: 0.04em;
60
+ line-height: 1.5rem;
61
+
62
+ }
63
+ &.text-body2 {
64
+ font-size: 0.875rem;
65
+ font-weight: 500;
66
+ letter-spacing: 0.04em;
67
+ line-height: 1.5rem;
68
+
69
+ }
70
+ &.text-body1 {
71
+ font-size: 0.875rem;
72
+ font-weight: 400;
73
+ letter-spacing: 0.04em;
74
+ line-height: 1.25rem;
75
+
76
+ }
77
+ &.text-caption {
78
+ font-size: 0.75rem;
79
+ font-weight: 400;
80
+ letter-spacing: 0.08em;
81
+ line-height: 1.25rem;
82
+
83
+ }
84
+ &.text-button {
85
+ font-size: 14px;
86
+ font-weight: 500;
87
+ text-transform: uppercase;
88
+
89
+ }
90
+ &.secondary-color {
91
+ color: $secondary-color;
92
+
93
+ }
94
+ &.primary-color {
95
+ color: $primary-color;
96
+
97
+
98
+ // margin-bottom: 30px;
99
+
100
+ }
101
+ }
@@ -0,0 +1,215 @@
1
+ .material-appbar {
2
+ display: flex;
3
+ flex-direction: row;
4
+ height: 64px;
5
+
6
+ position: absolute;
7
+ top: 0;
8
+ left: 0;
9
+ right: 0;
10
+
11
+ z-index: 3;
12
+ flex: none;
13
+ display: flex;
14
+ flex-direction: row;
15
+ flex-wrap: nowrap;
16
+ padding: 14px 16px;
17
+
18
+ &.type-bottom {
19
+ bottom: 0;
20
+ top: inherit;
21
+
22
+ }
23
+ &.type-app {
24
+ z-index: 5;
25
+ padding: 14px 16px;
26
+ position: fixed;
27
+ &.is-flexible {
28
+ position: fixed;
29
+ }
30
+ &.is-scrolled {
31
+ transition: box-shadow .3s;
32
+ box-shadow: 0 0 4px rgba(0, 0, 0, 0.14),0 4px 8px rgba(0, 0, 0, 0.28);
33
+
34
+
35
+ }
36
+ }
37
+ &.is-flexible {
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ right: 0;
42
+ //display: block
43
+
44
+ }
45
+ &.is-fixed {
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ right: 0;
50
+ //display: block
51
+ &.is-scrolled {
52
+ transition: box-shadow .3s;
53
+ box-shadow: 0 0 4px rgba(0, 0, 0, 0.14),0 4px 8px rgba(0, 0, 0, 0.28);
54
+ }
55
+ &.type-bottom {
56
+ bottom: 0;
57
+ top: inherit;
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+ }
66
+ }
67
+ > * {
68
+ &:first-child {
69
+ margin-left: 0;
70
+
71
+ }
72
+ &:last-child {
73
+ margin-right: 0;
74
+
75
+
76
+ }
77
+ }
78
+ .material-text {
79
+ flex: 1;
80
+ display: inline-block;
81
+ font-size: 1.3rem;
82
+ font-weight: 300;
83
+ line-height: 2.3rem;
84
+ color: $primary-color-text;
85
+ padding: 0;
86
+ margin-left: 16px;
87
+ overflow: hidden;
88
+ white-space: nowrap;
89
+ text-overflow: ellipsis;
90
+
91
+ }
92
+ .material-checkbox {
93
+ padding: 0;
94
+ .checkbox-control {
95
+ height: 36px;
96
+ width: 36px;
97
+ margin: 0;
98
+ .checkbox-icon {
99
+ border: 2px solid rgba(255, 255, 255, 0.95);
100
+ }
101
+ }
102
+ .checkbox-label {
103
+ color: $primary-color-text;
104
+ padding: 10px 0 6px;
105
+
106
+
107
+
108
+ }
109
+ }
110
+ .material-button {
111
+ .button-icon {
112
+ svg {
113
+ fill: $primary-color-text;
114
+
115
+
116
+ }
117
+ }
118
+ }
119
+ &.transparent-color {
120
+ background-color: transparent;
121
+ .material-text {
122
+ color: $default-color-text;
123
+ }
124
+ .material-button {
125
+ .button-icon {
126
+ svg {
127
+ fill: $default-color-text;
128
+ }
129
+ }
130
+ }
131
+ .material-checkbox {
132
+ padding: 0;
133
+ .checkbox-control {
134
+ height: 36px;
135
+ width: 36px;
136
+ margin: 0;
137
+ .checkbox-icon {
138
+ border: 2px solid rgba(255, 255, 255, 0.95);
139
+ }
140
+ }
141
+ .checkbox-label {
142
+ color: $default-color-text;
143
+ padding: 10px 0 6px;
144
+
145
+ }
146
+ }
147
+ }
148
+ &.primary-color {
149
+ background-color: $primary-color;
150
+ .material-text {
151
+ color: $primary-color-text;
152
+ }
153
+ .material-button {
154
+ .button-icon {
155
+ svg {
156
+ fill: $primary-color-text;
157
+ }
158
+ }
159
+ }
160
+ .material-checkbox {
161
+ padding: 0;
162
+ .checkbox-control {
163
+ height: 36px;
164
+ width: 36px;
165
+ margin: 0;
166
+ .checkbox-icon {
167
+ border: 2px solid rgba(255, 255, 255, 0.95);
168
+ }
169
+ }
170
+ .checkbox-label {
171
+ color: $primary-color-text;
172
+ padding: 10px 0 6px;
173
+
174
+ }
175
+ }
176
+ }
177
+ &.secondary-color {
178
+ background-color: $secondary-color;
179
+ .material-text {
180
+ color: $secondary-color-text;
181
+ }
182
+ .material-button {
183
+ .button-icon {
184
+ svg {
185
+ fill: $secondary-color-text;
186
+ }
187
+ }
188
+ }
189
+ .material-checkbox {
190
+ padding: 0;
191
+ .checkbox-control {
192
+ height: 36px;
193
+ width: 36px;
194
+ margin: 0;
195
+ .checkbox-icon {
196
+ border: 2px solid rgba(255, 255, 255, 0.95);
197
+ }
198
+ }
199
+ .checkbox-label {
200
+ color: $secondary-color-text;
201
+ padding: 10px 0 6px;
202
+
203
+
204
+
205
+
206
+ // @media only screen and (max-width: 768px)
207
+ // .material-appbar
208
+ // &.type-app
209
+ // padding: 10px 16px
210
+
211
+
212
+ }
213
+ }
214
+ }
215
+ }
@@ -0,0 +1,44 @@
1
+ .material-banner {
2
+
3
+ padding: 20px 16px 16px;
4
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
5
+ background-color: white;
6
+ position: absolute;
7
+ overflow: hidden;
8
+ bottom: 0;
9
+ left: 0;
10
+ right: 0;
11
+ //transform: translateY(0)
12
+ // &.is-fixed
13
+ // position: absolute
14
+ // top: 0
15
+ // left: 0
16
+ // right: 0
17
+ //transition: top .3s
18
+ .material-toolbar {
19
+ padding-top: 16px;
20
+
21
+ }
22
+ }
23
+ .banner-wrapper {
24
+ position: relative;
25
+ overflow: hidden;
26
+ z-index: 4;
27
+ height: 0;
28
+ transition: height .2s;
29
+ &.is-fixed {
30
+ z-index: 4;
31
+ position: absolute;
32
+ top: 0;
33
+ left: 0;
34
+ right: 0;
35
+ }
36
+ &.is-shown {
37
+ transition: height .2s;
38
+ //padding: 0
39
+ //border: none
40
+ //transform: translateY(-150px)
41
+ //
42
+
43
+ }
44
+ }
@@ -0,0 +1,23 @@
1
+ .material-card {
2
+
3
+ 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);
4
+ flex-direction: column;
5
+ -webkit-box-pack: end;
6
+ -ms-flex-pack: end;
7
+ justify-content: flex-end;
8
+ padding: 0;
9
+ -webkit-box-sizing: border-box;
10
+ box-sizing: border-box;
11
+ border-radius: 2px;
12
+ overflow: hidden;
13
+ display: block;
14
+ background-color: rgba(255,255,255,1);
15
+ .material-container {
16
+ padding: 1rem;
17
+ }
18
+ .toolbar-action {
19
+ text-align: right;
20
+ padding: 8px;
21
+
22
+ }
23
+ }