@materializecss/materialize 2.0.1-alpha → 2.0.2-alpha
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/Gruntfile.js +5 -2
- package/dist/css/materialize.css +90 -86
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +2797 -2705
- package/dist/js/materialize.min.js +2 -8967
- package/dist/js/materialize.min.js.map +1 -1
- package/package.json +1 -1
- package/sass/components/_collapsible.scss +0 -41
- package/sass/components/_global.scss +3 -2
- package/sass/components/_icons-material-design.scss +2 -1
- package/sass/components/_navbar.scss +6 -3
- package/sass/components/_sidenav.scss +66 -37
- package/sass/components/_theme_variables.scss +2 -2
- package/sass/components/_typography.scss +2 -2
- package/sass/components/forms/_input-fields.scss +4 -10
- package/sass/materialize.scss +0 -4
- package/src/autocomplete.ts +188 -94
- package/src/buttons.ts +225 -260
- package/src/cards.ts +5 -6
- package/src/carousel.ts +611 -542
- package/src/characterCounter.ts +50 -21
- package/src/chips.ts +152 -63
- package/src/collapsible.ts +97 -32
- package/src/component.ts +99 -10
- package/src/datepicker.ts +905 -726
- package/src/dropdown.ts +576 -484
- package/src/edges.ts +4 -4
- package/src/forms.ts +17 -14
- package/src/global.ts +55 -324
- package/src/materialbox.ts +354 -298
- package/src/modal.ts +296 -211
- package/src/parallax.ts +129 -105
- package/src/pushpin.ts +148 -103
- package/src/range.ts +166 -150
- package/src/scrollspy.ts +214 -174
- package/src/select.ts +434 -398
- package/src/sidenav.ts +447 -381
- package/src/slider.ts +421 -362
- package/src/tabs.ts +276 -222
- package/src/tapTarget.ts +246 -213
- package/src/timepicker.ts +738 -614
- package/src/toasts.ts +254 -230
- package/src/tooltip.ts +315 -252
- package/src/utils.ts +271 -0
- package/src/waves.ts +10 -10
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Builds Materialize distribution packages",
|
|
4
4
|
"author": "Alvin Wang, Alan Chang",
|
|
5
5
|
"homepage": "https://materializecss.github.io/materialize/",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.2-alpha",
|
|
7
7
|
"main": "dist/js/materialize.js",
|
|
8
8
|
"style": "dist/css/materialize.css",
|
|
9
9
|
"sass": "sass/materialize.scss",
|
|
@@ -43,47 +43,6 @@
|
|
|
43
43
|
background-color: $collapsible-bg-color;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// Sidenav collapsible styling
|
|
47
|
-
.sidenav,
|
|
48
|
-
.sidenav.sidenav-fixed {
|
|
49
|
-
|
|
50
|
-
.collapsible {
|
|
51
|
-
border: none;
|
|
52
|
-
box-shadow: none;
|
|
53
|
-
|
|
54
|
-
li {
|
|
55
|
-
padding: 0;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
> li:hover,
|
|
60
|
-
> li.active {
|
|
61
|
-
background-color: transparent;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.collapsible-header {
|
|
65
|
-
background-color: transparent;
|
|
66
|
-
border: none;
|
|
67
|
-
line-height: inherit;
|
|
68
|
-
height: inherit;
|
|
69
|
-
padding: 0 $sidenav-padding;
|
|
70
|
-
|
|
71
|
-
i {
|
|
72
|
-
line-height: inherit;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.collapsible-body {
|
|
77
|
-
border: 0;
|
|
78
|
-
background-color: $collapsible-bg-color;
|
|
79
|
-
|
|
80
|
-
li a {
|
|
81
|
-
padding: 0 (7.5px + $sidenav-padding) 0 (15px + $sidenav-padding);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
|
|
87
46
|
// Popout Collapsible
|
|
88
47
|
|
|
89
48
|
.collapsible.popout {
|
|
@@ -210,7 +210,8 @@ video.responsive-video {
|
|
|
210
210
|
|
|
211
211
|
i,
|
|
212
212
|
[class^="mdi-"], [class*="mdi-"],
|
|
213
|
-
i.material-icons
|
|
213
|
+
i.material-icons, i.material-symbols-outlined,
|
|
214
|
+
i.material-symbols-rounded, i.material-symbols-sharp {
|
|
214
215
|
display: block;
|
|
215
216
|
float: left;
|
|
216
217
|
font-size: 24px;
|
|
@@ -221,7 +222,7 @@ video.responsive-video {
|
|
|
221
222
|
color: $font-on-primary-color-medium;
|
|
222
223
|
vertical-align: top;
|
|
223
224
|
display: inline-block;
|
|
224
|
-
font-family: 'Material Icons';
|
|
225
|
+
font-family: 'Material Symbols Outlined', 'Material Symbols Rounded', 'Material Symbols Sharp', 'Material Icons';
|
|
225
226
|
font-weight: normal;
|
|
226
227
|
font-style: normal;
|
|
227
228
|
font-size: 25px;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* This is needed for some mobile phones to display the Google Icon font properly */
|
|
2
|
-
.material-icons
|
|
2
|
+
.material-icons, .material-symbols-outlined,
|
|
3
|
+
.material-symbols-rounded, .material-symbols-sharp {
|
|
3
4
|
text-rendering: optimizeLegibility;
|
|
4
5
|
font-feature-settings: 'liga';
|
|
5
6
|
}
|
|
@@ -27,7 +27,8 @@ nav {
|
|
|
27
27
|
|
|
28
28
|
i,
|
|
29
29
|
[class^="mdi-"], [class*="mdi-"],
|
|
30
|
-
i.material-icons
|
|
30
|
+
i.material-icons, i.material-symbols-outlined,
|
|
31
|
+
i.material-symbols-rounded, i.material-symbols-sharp {
|
|
31
32
|
display: block;
|
|
32
33
|
font-size: 24px;
|
|
33
34
|
height: $navbar-height-mobile;
|
|
@@ -97,7 +98,8 @@ nav {
|
|
|
97
98
|
|
|
98
99
|
i,
|
|
99
100
|
[class^="mdi-"], [class*="mdi-"],
|
|
100
|
-
i.material-icons
|
|
101
|
+
i.material-icons, i.material-symbols-outlined,
|
|
102
|
+
i.material-symbols-rounded, i.material-symbols-sharp {
|
|
101
103
|
float: left;
|
|
102
104
|
margin-right: 15px;
|
|
103
105
|
}
|
|
@@ -145,7 +147,8 @@ nav {
|
|
|
145
147
|
margin-right: 15px;
|
|
146
148
|
display: inline-block;
|
|
147
149
|
|
|
148
|
-
& > .material-icons
|
|
150
|
+
& > .material-icons, & > .material-symbols-outlined,
|
|
151
|
+
& > .material-symbols-rounded, & > .material-symbols-sharp {
|
|
149
152
|
height: inherit;
|
|
150
153
|
line-height: inherit;
|
|
151
154
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* This should be an UL-Element*/
|
|
1
2
|
.sidenav {
|
|
2
3
|
position: fixed;
|
|
3
4
|
width: $sidenav-width;
|
|
@@ -6,13 +7,14 @@
|
|
|
6
7
|
margin: 0;
|
|
7
8
|
transform: translateX(-100%);
|
|
8
9
|
height: 100vh;
|
|
9
|
-
padding
|
|
10
|
+
padding: 0;
|
|
10
11
|
background-color: $sidenav-bg-color;
|
|
11
12
|
z-index: 999;
|
|
12
13
|
overflow-y: auto;
|
|
13
14
|
will-change: transform;
|
|
14
15
|
backface-visibility: hidden;
|
|
15
|
-
transform: translateX(-105%);
|
|
16
|
+
transform: translateX(-105%);
|
|
17
|
+
user-select: none;
|
|
16
18
|
|
|
17
19
|
@extend .z-depth-1;
|
|
18
20
|
|
|
@@ -28,26 +30,49 @@
|
|
|
28
30
|
margin: 0;
|
|
29
31
|
}
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
/* Hover only on top row */
|
|
34
|
+
a:hover {
|
|
35
|
+
background-color: $button-flat-hover-background-color;
|
|
36
|
+
}
|
|
37
|
+
a:focus {
|
|
38
|
+
background-color: $button-flat-focus-background-color;
|
|
39
|
+
}
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
li.active > a:not(.collapsible-header) {
|
|
42
|
+
color: $font-on-primary-color-main;
|
|
43
|
+
background-color: $primary-color;
|
|
42
44
|
}
|
|
43
45
|
|
|
46
|
+
.collapsible-body > ul { padding-left: 10px; }
|
|
47
|
+
|
|
48
|
+
li {
|
|
49
|
+
list-style: none;
|
|
50
|
+
display: grid;
|
|
51
|
+
align-content: center;
|
|
52
|
+
}
|
|
44
53
|
li > a {
|
|
45
|
-
|
|
54
|
+
/* https://stackoverflow.com/questions/5848090/full-width-hover-background-for-nested-lists */
|
|
55
|
+
//padding-left: calc(100% + $sidenav-padding);
|
|
56
|
+
//margin-left: -100%;
|
|
57
|
+
margin: 0 12px;
|
|
58
|
+
padding: 0 $sidenav-padding;
|
|
59
|
+
//padding-left: $sidenav-padding;
|
|
60
|
+
|
|
61
|
+
// Truncate too long text
|
|
62
|
+
/*
|
|
63
|
+
min-width: 0;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
text-overflow: ellipsis;
|
|
67
|
+
*/
|
|
68
|
+
|
|
69
|
+
display: flex;
|
|
70
|
+
height: $sidenav-item-height;
|
|
46
71
|
font-size: $sidenav-font-size;
|
|
47
72
|
font-weight: 500;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
73
|
+
align-items: center;
|
|
74
|
+
overflow: hidden;
|
|
75
|
+
border-radius: 100px;
|
|
51
76
|
|
|
52
77
|
&:not(.btn):not(.btn-flat):not(.btn-large):not(.btn-floating) {
|
|
53
78
|
color: $sidenav-font-color;
|
|
@@ -57,28 +82,21 @@
|
|
|
57
82
|
margin: 10px 15px;
|
|
58
83
|
}
|
|
59
84
|
|
|
60
|
-
|
|
61
|
-
& >
|
|
62
|
-
& >
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
line-height: $sidenav-line-height;
|
|
66
|
-
margin: 0 ($sidenav-padding * 2) 0 0;
|
|
67
|
-
width: $sidenav-item-height * 0.5;
|
|
85
|
+
/* TODO: Use special class in future like "mw-icon" */
|
|
86
|
+
& > .material-icons, & > .material-symbols-outlined,
|
|
87
|
+
& > .material-symbols-rounded, & > .material-symbols-sharp {
|
|
88
|
+
display: inline-flex;
|
|
89
|
+
vertical-align: middle;
|
|
68
90
|
color: $sidenav-icon-color;
|
|
91
|
+
margin-right: 12px;
|
|
69
92
|
}
|
|
70
93
|
}
|
|
71
94
|
|
|
72
|
-
|
|
73
95
|
.divider {
|
|
74
96
|
margin: ($sidenav-padding * 0.5) 0 0 0;
|
|
75
97
|
}
|
|
76
98
|
|
|
77
99
|
.subheader {
|
|
78
|
-
&:hover {
|
|
79
|
-
background-color: transparent;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
100
|
cursor: initial;
|
|
83
101
|
pointer-events: none;
|
|
84
102
|
color: $sidenav-subheader-color;
|
|
@@ -87,6 +105,7 @@
|
|
|
87
105
|
line-height: $sidenav-line-height;
|
|
88
106
|
}
|
|
89
107
|
|
|
108
|
+
// Remove this? is very custom
|
|
90
109
|
.user-view {
|
|
91
110
|
position: relative;
|
|
92
111
|
padding: ($sidenav-padding * 2) ($sidenav-padding * 2) 0;
|
|
@@ -138,14 +157,12 @@
|
|
|
138
157
|
}
|
|
139
158
|
}
|
|
140
159
|
|
|
141
|
-
|
|
142
160
|
// Touch interaction
|
|
143
161
|
.drag-target {
|
|
144
162
|
// Right Align
|
|
145
163
|
&.right-aligned {
|
|
146
164
|
right: 0;
|
|
147
165
|
}
|
|
148
|
-
|
|
149
166
|
height: 100%;
|
|
150
167
|
position: fixed;
|
|
151
168
|
top: 0;
|
|
@@ -153,7 +170,6 @@
|
|
|
153
170
|
z-index: 998;
|
|
154
171
|
}
|
|
155
172
|
|
|
156
|
-
|
|
157
173
|
// Fixed Sidenav shown
|
|
158
174
|
.sidenav.sidenav-fixed {
|
|
159
175
|
// Right Align
|
|
@@ -161,7 +177,6 @@
|
|
|
161
177
|
right: 0;
|
|
162
178
|
left: auto;
|
|
163
179
|
}
|
|
164
|
-
|
|
165
180
|
left: 0;
|
|
166
181
|
transform: translateX(0);
|
|
167
182
|
position: fixed;
|
|
@@ -177,26 +192,24 @@
|
|
|
177
192
|
transform: translateX(105%);
|
|
178
193
|
}
|
|
179
194
|
}
|
|
180
|
-
|
|
181
195
|
> a {
|
|
182
196
|
padding: 0 $sidenav-padding;
|
|
183
197
|
}
|
|
184
|
-
|
|
185
198
|
.user-view {
|
|
186
199
|
padding: $sidenav-padding $sidenav-padding 0;
|
|
187
200
|
}
|
|
188
201
|
}
|
|
189
202
|
}
|
|
190
203
|
|
|
191
|
-
|
|
204
|
+
/*
|
|
192
205
|
.sidenav .collapsible-body > ul:not(.collapsible) > li.active,
|
|
193
206
|
.sidenav.sidenav-fixed .collapsible-body > ul:not(.collapsible) > li.active {
|
|
194
207
|
background-color: $primary-color;
|
|
195
|
-
|
|
196
208
|
a:not(.btn) {
|
|
197
209
|
color: $font-on-primary-color-main;
|
|
198
210
|
}
|
|
199
211
|
}
|
|
212
|
+
*/
|
|
200
213
|
|
|
201
214
|
.sidenav .collapsible-body {
|
|
202
215
|
padding: 0;
|
|
@@ -213,3 +226,19 @@
|
|
|
213
226
|
z-index: 997;
|
|
214
227
|
display: none;
|
|
215
228
|
}
|
|
229
|
+
|
|
230
|
+
// Sidenav collapsible styling (Taken from Collapsible.scss)
|
|
231
|
+
.sidenav,
|
|
232
|
+
.sidenav.sidenav-fixed {
|
|
233
|
+
.collapsible {
|
|
234
|
+
border: none;
|
|
235
|
+
box-shadow: none;
|
|
236
|
+
}
|
|
237
|
+
.collapsible-header {
|
|
238
|
+
border: none;
|
|
239
|
+
}
|
|
240
|
+
.collapsible-body {
|
|
241
|
+
border: none;
|
|
242
|
+
background-color: $collapsible-bg-color;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
:root {
|
|
1
|
+
:root, :host {
|
|
2
2
|
--surface-color: #f3f6fc;
|
|
3
3
|
--background-color: #ffffff;
|
|
4
4
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--md_sys_color_on-surface: 28, 27, 31;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
:root[theme='dark'] {
|
|
56
|
+
:root[theme='dark'], :host[theme='dark'] {
|
|
57
57
|
--background-color: #121212;
|
|
58
58
|
--surface-color: #242424;
|
|
59
59
|
|
|
@@ -6,7 +6,7 @@ a {
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
html{
|
|
9
|
-
line-height: 1.5;
|
|
9
|
+
// line-height: 1.5;
|
|
10
10
|
|
|
11
11
|
@media only screen and (min-width: 0) {
|
|
12
12
|
font-size: 14px;
|
|
@@ -24,6 +24,7 @@ html{
|
|
|
24
24
|
font-weight: normal;
|
|
25
25
|
color: $text-color;
|
|
26
26
|
}
|
|
27
|
+
|
|
27
28
|
h1, h2, h3, h4, h5, h6 {
|
|
28
29
|
font-weight: 400;
|
|
29
30
|
line-height: 1.3;
|
|
@@ -45,7 +46,6 @@ small { font-size: 75%; }
|
|
|
45
46
|
.light { font-weight: 300; }
|
|
46
47
|
.thin { font-weight: 200; }
|
|
47
48
|
|
|
48
|
-
|
|
49
49
|
.flow-text{
|
|
50
50
|
$i: 0;
|
|
51
51
|
@while $i <= $intervals {
|
|
@@ -89,6 +89,7 @@ textarea.materialize-textarea {
|
|
|
89
89
|
color: $input-focus-color;
|
|
90
90
|
}
|
|
91
91
|
&:focus:not([readonly]) + label,
|
|
92
|
+
&:not([placeholder=' ']) + label,
|
|
92
93
|
&:not(:placeholder-shown) + label {
|
|
93
94
|
//font-size: 12px; // md.sys.typescale.body-small.size
|
|
94
95
|
// https://stackoverflow.com/questions/34717492/css-transition-font-size-avoid-jittering-wiggling
|
|
@@ -187,6 +188,7 @@ textarea.materialize-textarea {
|
|
|
187
188
|
color: $input-focus-color;
|
|
188
189
|
}
|
|
189
190
|
&:focus:not([readonly]) + label,
|
|
191
|
+
&:not([placeholder=' ']) + label,
|
|
190
192
|
&:not(:placeholder-shown) + label {
|
|
191
193
|
top: -8px;
|
|
192
194
|
left: 16px;
|
|
@@ -271,15 +273,6 @@ textarea.materialize-textarea {
|
|
|
271
273
|
transform: none;
|
|
272
274
|
left: 1rem;
|
|
273
275
|
}
|
|
274
|
-
& ~ .mdi-navigation-close,
|
|
275
|
-
& ~ .material-icons {
|
|
276
|
-
position: absolute;
|
|
277
|
-
top: 0;
|
|
278
|
-
right: 1rem;
|
|
279
|
-
color: transparent;
|
|
280
|
-
cursor: pointer;
|
|
281
|
-
font-size: $input-icon-size;
|
|
282
|
-
}
|
|
283
276
|
}
|
|
284
277
|
*/
|
|
285
278
|
|
|
@@ -291,9 +284,10 @@ textarea {
|
|
|
291
284
|
background-color: transparent;
|
|
292
285
|
|
|
293
286
|
&.materialize-textarea {
|
|
287
|
+
padding-top: 26px !important;
|
|
288
|
+
padding-bottom: 4px !important;
|
|
294
289
|
line-height: normal;
|
|
295
290
|
overflow-y: hidden; /* prevents scroll bar flash */
|
|
296
|
-
padding: .8rem 0 .8rem 0; /* prevents text jump on Enter keypress */
|
|
297
291
|
resize: none;
|
|
298
292
|
min-height: $input-height;
|
|
299
293
|
box-sizing: border-box;
|
package/sass/materialize.scss
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
|
|
3
2
|
// Color
|
|
4
3
|
@import "components/color-variables";
|
|
5
4
|
@import "components/color-classes";
|
|
6
|
-
|
|
7
5
|
// Variables;
|
|
8
6
|
@import "components/variables";
|
|
9
|
-
|
|
10
7
|
// Reset
|
|
11
8
|
@import "components/normalize";
|
|
12
|
-
|
|
13
9
|
// components
|
|
14
10
|
@import "components/global";
|
|
15
11
|
@import "components/collection";
|