@materializecss/materialize 1.2.0 → 1.2.1

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 (82) hide show
  1. package/Gruntfile.js +722 -712
  2. package/LICENSE +21 -21
  3. package/README.md +91 -91
  4. package/dist/css/materialize.css +68 -135
  5. package/dist/css/materialize.min.css +12 -12
  6. package/dist/js/materialize.js +1112 -1112
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +403 -403
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/js/anime.min.js +34 -34
  11. package/js/autocomplete.js +479 -479
  12. package/js/buttons.js +354 -354
  13. package/js/cards.js +40 -40
  14. package/js/carousel.js +732 -732
  15. package/js/cash.js +960 -960
  16. package/js/characterCounter.js +136 -136
  17. package/js/chips.js +486 -486
  18. package/js/collapsible.js +275 -275
  19. package/js/component.js +44 -44
  20. package/js/datepicker.js +983 -983
  21. package/js/dropdown.js +669 -669
  22. package/js/forms.js +285 -285
  23. package/js/global.js +428 -428
  24. package/js/materialbox.js +453 -453
  25. package/js/modal.js +382 -382
  26. package/js/parallax.js +138 -138
  27. package/js/pushpin.js +148 -148
  28. package/js/range.js +263 -263
  29. package/js/scrollspy.js +295 -295
  30. package/js/select.js +391 -391
  31. package/js/sidenav.js +583 -583
  32. package/js/slider.js +359 -359
  33. package/js/tabs.js +402 -402
  34. package/js/tapTarget.js +315 -315
  35. package/js/timepicker.js +712 -712
  36. package/js/toasts.js +325 -325
  37. package/js/tooltip.js +320 -320
  38. package/js/waves.js +614 -614
  39. package/package.json +87 -84
  40. package/sass/_style.scss +929 -929
  41. package/sass/components/_badges.scss +55 -55
  42. package/sass/components/_buttons.scss +322 -322
  43. package/sass/components/_cards.scss +195 -195
  44. package/sass/components/_carousel.scss +90 -90
  45. package/sass/components/_chips.scss +96 -96
  46. package/sass/components/_collapsible.scss +91 -91
  47. package/sass/components/_collection.scss +106 -106
  48. package/sass/components/_color-classes.scss +32 -32
  49. package/sass/components/_color-variables.scss +370 -370
  50. package/sass/components/_datepicker.scss +191 -191
  51. package/sass/components/_dropdown.scss +84 -84
  52. package/sass/components/_global.scss +646 -646
  53. package/sass/components/_grid.scss +158 -158
  54. package/sass/components/_icons-material-design.scss +5 -5
  55. package/sass/components/_materialbox.scss +42 -42
  56. package/sass/components/_modal.scss +97 -97
  57. package/sass/components/_navbar.scss +208 -208
  58. package/sass/components/_normalize.scss +447 -447
  59. package/sass/components/_preloader.scss +334 -334
  60. package/sass/components/_pulse.scss +34 -34
  61. package/sass/components/_sidenav.scss +214 -214
  62. package/sass/components/_slider.scss +91 -91
  63. package/sass/components/_table_of_contents.scss +33 -33
  64. package/sass/components/_tabs.scss +99 -99
  65. package/sass/components/_tapTarget.scss +103 -103
  66. package/sass/components/_timepicker.scss +199 -199
  67. package/sass/components/_toast.scss +58 -58
  68. package/sass/components/_tooltip.scss +32 -32
  69. package/sass/components/_transitions.scss +12 -12
  70. package/sass/components/_typography.scss +62 -62
  71. package/sass/components/_variables.scss +352 -352
  72. package/sass/components/_waves.scss +187 -187
  73. package/sass/components/forms/_checkboxes.scss +200 -200
  74. package/sass/components/forms/_file-input.scss +44 -44
  75. package/sass/components/forms/_forms.scss +22 -22
  76. package/sass/components/forms/_input-fields.scss +388 -388
  77. package/sass/components/forms/_radio-buttons.scss +115 -115
  78. package/sass/components/forms/_range.scss +161 -161
  79. package/sass/components/forms/_select.scss +199 -199
  80. package/sass/components/forms/_switches.scss +91 -91
  81. package/sass/ghpages-materialize.scss +7 -7
  82. package/sass/materialize.scss +42 -42
@@ -1,322 +1,322 @@
1
- // shared styles
2
- .btn,
3
- .btn-flat {
4
- border: $button-border;
5
- border-radius: $button-radius;
6
- display: inline-block;
7
- height: $button-height;
8
- line-height: $button-height;
9
- padding: $button-padding;
10
- text-transform: uppercase;
11
- vertical-align: middle;
12
- -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
13
- }
14
-
15
- // Disabled shared style
16
- .btn.disabled,
17
- .btn-floating.disabled,
18
- .btn-large.disabled,
19
- .btn-small.disabled,
20
- .btn-flat.disabled,
21
- .btn:disabled,
22
- .btn-floating:disabled,
23
- .btn-large:disabled,
24
- .btn-small:disabled,
25
- .btn-flat:disabled,
26
- .btn[disabled],
27
- .btn-floating[disabled],
28
- .btn-large[disabled],
29
- .btn-small[disabled],
30
- .btn-flat[disabled] {
31
- pointer-events: none;
32
- background-color: $button-disabled-background !important;
33
- box-shadow: none;
34
- color: $button-disabled-color !important;
35
- cursor: default;
36
- &:hover {
37
- background-color: $button-disabled-background !important;
38
- color: $button-disabled-color !important;
39
- }
40
- }
41
-
42
- // Shared icon styles
43
- .btn,
44
- .btn-floating,
45
- .btn-large,
46
- .btn-small,
47
- .btn-flat {
48
- font-size: $button-font-size;
49
- outline: 0;
50
- i {
51
- font-size: $button-icon-font-size;
52
- line-height: inherit;
53
- }
54
- }
55
-
56
- // Shared focus button style
57
- .btn,
58
- .btn-floating {
59
- &:focus {
60
- background-color: darken($button-raised-background, 10%);
61
- }
62
- }
63
-
64
- // Raised Button
65
- .btn {
66
- text-decoration: none;
67
- color: $button-raised-color;
68
- background-color: $button-raised-background;
69
- text-align: center;
70
- letter-spacing: .5px;
71
- @extend .z-depth-1;
72
- transition: background-color .2s ease-out;
73
- cursor: pointer;
74
- &:hover {
75
- background-color: $button-raised-background-hover;
76
- @extend .z-depth-1-half;
77
- }
78
- }
79
-
80
- // Floating button
81
- .btn-floating {
82
- &:hover {
83
- background-color: $button-floating-background-hover;
84
- @extend .z-depth-1-half;
85
- }
86
- &:before {
87
- border-radius: 0;
88
- }
89
- &.btn-large {
90
- &.halfway-fab {
91
- bottom: -$button-floating-large-size * 0.5;
92
- }
93
- width: $button-floating-large-size;
94
- height: $button-floating-large-size;
95
- padding: 0;
96
- i {
97
- line-height: $button-floating-large-size;
98
- }
99
- }
100
-
101
- &.btn-small {
102
- &.halfway-fab {
103
- bottom: -$button-floating-small-size * 0.5;
104
- }
105
- width: $button-floating-small-size;
106
- height: $button-floating-small-size;
107
- i {
108
- line-height: $button-floating-small-size;
109
- }
110
- }
111
-
112
- &.halfway-fab {
113
- &.left {
114
- right: auto;
115
- left: 24px;
116
- }
117
- position: absolute;
118
- right: 24px;
119
- bottom: -$button-floating-size * 0.5;
120
- }
121
- display: inline-block;
122
- color: $button-floating-color;
123
- position: relative;
124
- overflow: hidden;
125
- z-index: 1;
126
- width: $button-floating-size;
127
- height: $button-floating-size;
128
- line-height: $button-floating-size;
129
- padding: 0;
130
- background-color: $button-floating-background;
131
- border-radius: $button-floating-radius;
132
- @extend .z-depth-1;
133
- transition: background-color .3s;
134
- cursor: pointer;
135
- vertical-align: middle;
136
- i {
137
- width: inherit;
138
- display: inline-block;
139
- text-align: center;
140
- color: $button-floating-color;
141
- font-size: $button-large-icon-font-size;
142
- line-height: $button-floating-size;
143
- }
144
- }
145
-
146
- // button fix
147
- button.btn-floating {
148
- border: $button-border;
149
- }
150
-
151
- // Fixed Action Button
152
- .fixed-action-btn {
153
- &.active {
154
- ul {
155
- visibility: visible;
156
- }
157
- }
158
-
159
- // Directions
160
- &.direction-left,
161
- &.direction-right {
162
- padding: 0 0 0 15px;
163
- ul {
164
- text-align: right;
165
- right: 64px;
166
- top: 50%;
167
- transform: translateY(-50%);
168
- height: 100%;
169
- left: auto;
170
- /*width 100% only goes to width of button container */
171
- width: 500px;
172
- li {
173
- display: inline-block;
174
- margin: 7.5px 15px 0 0;
175
- }
176
- }
177
- }
178
- &.direction-right {
179
- padding: 0 15px 0 0;
180
- ul {
181
- text-align: left;
182
- direction: rtl;
183
- left: 64px;
184
- right: auto;
185
- li {
186
- margin: 7.5px 0 0 15px;
187
- }
188
- }
189
- }
190
- &.direction-bottom {
191
- padding: 0 0 15px 0;
192
- ul {
193
- top: 64px;
194
- bottom: auto;
195
- display: flex;
196
- flex-direction: column-reverse;
197
- li {
198
- margin: 15px 0 0 0;
199
- }
200
- }
201
- }
202
- &.toolbar {
203
- &.active {
204
- &>a i {
205
- opacity: 0;
206
- }
207
- }
208
- padding: 0;
209
- height: $button-floating-large-size;
210
- ul {
211
- display: flex;
212
- top: 0;
213
- bottom: 0;
214
- z-index: 1;
215
- li {
216
- flex: 1;
217
- display: inline-block;
218
- margin: 0;
219
- height: 100%;
220
- transition: none;
221
- a {
222
- display: block;
223
- overflow: hidden;
224
- position: relative;
225
- width: 100%;
226
- height: 100%;
227
- background-color: transparent;
228
- box-shadow: none;
229
- color: #fff;
230
- line-height: $button-floating-large-size;
231
- z-index: 1;
232
- i {
233
- line-height: inherit;
234
- }
235
- }
236
- }
237
- }
238
- }
239
- position: fixed;
240
- right: 23px;
241
- bottom: 23px;
242
- padding-top: 15px;
243
- margin-bottom: 0;
244
- z-index: 997;
245
- ul {
246
- left: 0;
247
- right: 0;
248
- text-align: center;
249
- position: absolute;
250
- bottom: 64px;
251
- margin: 0;
252
- visibility: hidden;
253
- li {
254
- margin-bottom: 15px;
255
- }
256
- a.btn-floating {
257
- opacity: 0;
258
- }
259
- }
260
- .fab-backdrop {
261
- position: absolute;
262
- top: 0;
263
- left: 0;
264
- z-index: -1;
265
- width: $button-floating-size;
266
- height: $button-floating-size;
267
- background-color: $button-floating-background;
268
- border-radius: $button-floating-radius;
269
- transform: scale(0);
270
- }
271
- }
272
-
273
- // Flat button
274
- .btn-flat {
275
- box-shadow: none;
276
- background-color: transparent;
277
- color: $button-flat-color;
278
- cursor: pointer;
279
- transition: background-color .2s;
280
- &:focus,
281
- &:hover {
282
- box-shadow: none;
283
- }
284
- &:focus {
285
- background-color: rgba(0, 0, 0, .1);
286
- }
287
- &.disabled,
288
- &.btn-flat[disabled] {
289
- background-color: transparent !important;
290
- color: $button-flat-disabled-color !important;
291
- cursor: default;
292
- }
293
- }
294
-
295
- // Large button
296
- .btn-large {
297
- @extend .btn;
298
- height: $button-large-height;
299
- line-height: $button-large-height;
300
- font-size: $button-large-font-size;
301
- padding: 0 28px;
302
-
303
- i {
304
- font-size: $button-large-icon-font-size;
305
- }
306
- }
307
-
308
- // Small button
309
- .btn-small {
310
- @extend .btn;
311
- height: $button-small-height;
312
- line-height: $button-small-height;
313
- font-size: $button-small-font-size;
314
- i {
315
- font-size: $button-small-icon-font-size;
316
- }
317
- }
318
-
319
- // Block button
320
- .btn-block {
321
- display: block;
322
- }
1
+ // shared styles
2
+ .btn,
3
+ .btn-flat {
4
+ border: $button-border;
5
+ border-radius: $button-radius;
6
+ display: inline-block;
7
+ height: $button-height;
8
+ line-height: $button-height;
9
+ padding: $button-padding;
10
+ text-transform: uppercase;
11
+ vertical-align: middle;
12
+ -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
13
+ }
14
+
15
+ // Disabled shared style
16
+ .btn.disabled,
17
+ .btn-floating.disabled,
18
+ .btn-large.disabled,
19
+ .btn-small.disabled,
20
+ .btn-flat.disabled,
21
+ .btn:disabled,
22
+ .btn-floating:disabled,
23
+ .btn-large:disabled,
24
+ .btn-small:disabled,
25
+ .btn-flat:disabled,
26
+ .btn[disabled],
27
+ .btn-floating[disabled],
28
+ .btn-large[disabled],
29
+ .btn-small[disabled],
30
+ .btn-flat[disabled] {
31
+ pointer-events: none;
32
+ background-color: $button-disabled-background !important;
33
+ box-shadow: none;
34
+ color: $button-disabled-color !important;
35
+ cursor: default;
36
+ &:hover {
37
+ background-color: $button-disabled-background !important;
38
+ color: $button-disabled-color !important;
39
+ }
40
+ }
41
+
42
+ // Shared icon styles
43
+ .btn,
44
+ .btn-floating,
45
+ .btn-large,
46
+ .btn-small,
47
+ .btn-flat {
48
+ font-size: $button-font-size;
49
+ outline: 0;
50
+ i {
51
+ font-size: $button-icon-font-size;
52
+ line-height: inherit;
53
+ }
54
+ }
55
+
56
+ // Shared focus button style
57
+ .btn,
58
+ .btn-floating {
59
+ &:focus {
60
+ background-color: darken($button-raised-background, 10%);
61
+ }
62
+ }
63
+
64
+ // Raised Button
65
+ .btn {
66
+ text-decoration: none;
67
+ color: $button-raised-color;
68
+ background-color: $button-raised-background;
69
+ text-align: center;
70
+ letter-spacing: .5px;
71
+ @extend .z-depth-1;
72
+ transition: background-color .2s ease-out;
73
+ cursor: pointer;
74
+ &:hover {
75
+ background-color: $button-raised-background-hover;
76
+ @extend .z-depth-1-half;
77
+ }
78
+ }
79
+
80
+ // Floating button
81
+ .btn-floating {
82
+ &:hover {
83
+ background-color: $button-floating-background-hover;
84
+ @extend .z-depth-1-half;
85
+ }
86
+ &:before {
87
+ border-radius: 0;
88
+ }
89
+ &.btn-large {
90
+ &.halfway-fab {
91
+ bottom: -$button-floating-large-size * 0.5;
92
+ }
93
+ width: $button-floating-large-size;
94
+ height: $button-floating-large-size;
95
+ padding: 0;
96
+ i {
97
+ line-height: $button-floating-large-size;
98
+ }
99
+ }
100
+
101
+ &.btn-small {
102
+ &.halfway-fab {
103
+ bottom: -$button-floating-small-size * 0.5;
104
+ }
105
+ width: $button-floating-small-size;
106
+ height: $button-floating-small-size;
107
+ i {
108
+ line-height: $button-floating-small-size;
109
+ }
110
+ }
111
+
112
+ &.halfway-fab {
113
+ &.left {
114
+ right: auto;
115
+ left: 24px;
116
+ }
117
+ position: absolute;
118
+ right: 24px;
119
+ bottom: -$button-floating-size * 0.5;
120
+ }
121
+ display: inline-block;
122
+ color: $button-floating-color;
123
+ position: relative;
124
+ overflow: hidden;
125
+ z-index: 1;
126
+ width: $button-floating-size;
127
+ height: $button-floating-size;
128
+ line-height: $button-floating-size;
129
+ padding: 0;
130
+ background-color: $button-floating-background;
131
+ border-radius: $button-floating-radius;
132
+ @extend .z-depth-1;
133
+ transition: background-color .3s;
134
+ cursor: pointer;
135
+ vertical-align: middle;
136
+ i {
137
+ width: inherit;
138
+ display: inline-block;
139
+ text-align: center;
140
+ color: $button-floating-color;
141
+ font-size: $button-large-icon-font-size;
142
+ line-height: $button-floating-size;
143
+ }
144
+ }
145
+
146
+ // button fix
147
+ button.btn-floating {
148
+ border: $button-border;
149
+ }
150
+
151
+ // Fixed Action Button
152
+ .fixed-action-btn {
153
+ &.active {
154
+ ul {
155
+ visibility: visible;
156
+ }
157
+ }
158
+
159
+ // Directions
160
+ &.direction-left,
161
+ &.direction-right {
162
+ padding: 0 0 0 15px;
163
+ ul {
164
+ text-align: right;
165
+ right: 64px;
166
+ top: 50%;
167
+ transform: translateY(-50%);
168
+ height: 100%;
169
+ left: auto;
170
+ /*width 100% only goes to width of button container */
171
+ width: 500px;
172
+ li {
173
+ display: inline-block;
174
+ margin: 7.5px 15px 0 0;
175
+ }
176
+ }
177
+ }
178
+ &.direction-right {
179
+ padding: 0 15px 0 0;
180
+ ul {
181
+ text-align: left;
182
+ direction: rtl;
183
+ left: 64px;
184
+ right: auto;
185
+ li {
186
+ margin: 7.5px 0 0 15px;
187
+ }
188
+ }
189
+ }
190
+ &.direction-bottom {
191
+ padding: 0 0 15px 0;
192
+ ul {
193
+ top: 64px;
194
+ bottom: auto;
195
+ display: flex;
196
+ flex-direction: column-reverse;
197
+ li {
198
+ margin: 15px 0 0 0;
199
+ }
200
+ }
201
+ }
202
+ &.toolbar {
203
+ &.active {
204
+ &>a i {
205
+ opacity: 0;
206
+ }
207
+ }
208
+ padding: 0;
209
+ height: $button-floating-large-size;
210
+ ul {
211
+ display: flex;
212
+ top: 0;
213
+ bottom: 0;
214
+ z-index: 1;
215
+ li {
216
+ flex: 1;
217
+ display: inline-block;
218
+ margin: 0;
219
+ height: 100%;
220
+ transition: none;
221
+ a {
222
+ display: block;
223
+ overflow: hidden;
224
+ position: relative;
225
+ width: 100%;
226
+ height: 100%;
227
+ background-color: transparent;
228
+ box-shadow: none;
229
+ color: #fff;
230
+ line-height: $button-floating-large-size;
231
+ z-index: 1;
232
+ i {
233
+ line-height: inherit;
234
+ }
235
+ }
236
+ }
237
+ }
238
+ }
239
+ position: fixed;
240
+ right: 23px;
241
+ bottom: 23px;
242
+ padding-top: 15px;
243
+ margin-bottom: 0;
244
+ z-index: 997;
245
+ ul {
246
+ left: 0;
247
+ right: 0;
248
+ text-align: center;
249
+ position: absolute;
250
+ bottom: 64px;
251
+ margin: 0;
252
+ visibility: hidden;
253
+ li {
254
+ margin-bottom: 15px;
255
+ }
256
+ a.btn-floating {
257
+ opacity: 0;
258
+ }
259
+ }
260
+ .fab-backdrop {
261
+ position: absolute;
262
+ top: 0;
263
+ left: 0;
264
+ z-index: -1;
265
+ width: $button-floating-size;
266
+ height: $button-floating-size;
267
+ background-color: $button-floating-background;
268
+ border-radius: $button-floating-radius;
269
+ transform: scale(0);
270
+ }
271
+ }
272
+
273
+ // Flat button
274
+ .btn-flat {
275
+ box-shadow: none;
276
+ background-color: transparent;
277
+ color: $button-flat-color;
278
+ cursor: pointer;
279
+ transition: background-color .2s;
280
+ &:focus,
281
+ &:hover {
282
+ box-shadow: none;
283
+ }
284
+ &:focus {
285
+ background-color: rgba(0, 0, 0, .1);
286
+ }
287
+ &.disabled,
288
+ &.btn-flat[disabled] {
289
+ background-color: transparent !important;
290
+ color: $button-flat-disabled-color !important;
291
+ cursor: default;
292
+ }
293
+ }
294
+
295
+ // Large button
296
+ .btn-large {
297
+ @extend .btn;
298
+ height: $button-large-height;
299
+ line-height: $button-large-height;
300
+ font-size: $button-large-font-size;
301
+ padding: 0 28px;
302
+
303
+ i {
304
+ font-size: $button-large-icon-font-size;
305
+ }
306
+ }
307
+
308
+ // Small button
309
+ .btn-small {
310
+ @extend .btn;
311
+ height: $button-small-height;
312
+ line-height: $button-small-height;
313
+ font-size: $button-small-font-size;
314
+ i {
315
+ font-size: $button-small-icon-font-size;
316
+ }
317
+ }
318
+
319
+ // Block button
320
+ .btn-block {
321
+ display: block;
322
+ }