@materializecss/materialize 1.1.0-alpha → 1.1.0

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 (85) hide show
  1. package/Gruntfile.js +115 -132
  2. package/LICENSE +21 -21
  3. package/README.md +97 -97
  4. package/dist/css/materialize.css +8462 -8987
  5. package/dist/css/materialize.min.css +7 -7
  6. package/dist/js/materialize.js +12669 -12791
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +406 -406
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/extras/noUiSlider/nouislider.min.js +0 -0
  11. package/js/anime.min.js +34 -34
  12. package/js/autocomplete.js +479 -479
  13. package/js/buttons.js +354 -354
  14. package/js/cards.js +40 -40
  15. package/js/carousel.js +732 -717
  16. package/js/cash.js +960 -960
  17. package/js/characterCounter.js +136 -136
  18. package/js/chips.js +486 -486
  19. package/js/collapsible.js +275 -275
  20. package/js/component.js +44 -44
  21. package/js/datepicker.js +983 -976
  22. package/js/dropdown.js +669 -668
  23. package/js/forms.js +275 -275
  24. package/js/global.js +424 -424
  25. package/js/materialbox.js +453 -453
  26. package/js/modal.js +382 -382
  27. package/js/parallax.js +138 -138
  28. package/js/pushpin.js +148 -148
  29. package/js/range.js +263 -263
  30. package/js/scrollspy.js +295 -295
  31. package/js/select.js +310 -451
  32. package/js/sidenav.js +583 -583
  33. package/js/slider.js +359 -359
  34. package/js/tabs.js +402 -402
  35. package/js/tapTarget.js +315 -315
  36. package/js/timepicker.js +648 -647
  37. package/js/toasts.js +322 -322
  38. package/js/tooltip.js +320 -320
  39. package/js/waves.js +614 -614
  40. package/package.json +82 -74
  41. package/sass/_style.scss +929 -0
  42. package/sass/components/_badges.scss +55 -55
  43. package/sass/components/_buttons.scss +322 -322
  44. package/sass/components/_cards.scss +195 -195
  45. package/sass/components/_carousel.scss +90 -90
  46. package/sass/components/_chips.scss +96 -96
  47. package/sass/components/_collapsible.scss +91 -91
  48. package/sass/components/_collection.scss +107 -0
  49. package/sass/components/_color-classes.scss +32 -32
  50. package/sass/components/_color-variables.scss +370 -370
  51. package/sass/components/_datepicker.scss +191 -191
  52. package/sass/components/_dropdown.scss +84 -84
  53. package/sass/components/_global.scss +642 -771
  54. package/sass/components/_grid.scss +158 -156
  55. package/sass/components/_icons-material-design.scss +5 -5
  56. package/sass/components/_materialbox.scss +42 -42
  57. package/sass/components/_modal.scss +97 -97
  58. package/sass/components/_navbar.scss +208 -208
  59. package/sass/components/_normalize.scss +447 -447
  60. package/sass/components/_preloader.scss +334 -334
  61. package/sass/components/_pulse.scss +34 -34
  62. package/sass/components/_sidenav.scss +214 -214
  63. package/sass/components/_slider.scss +91 -91
  64. package/sass/components/_table_of_contents.scss +33 -33
  65. package/sass/components/_tabs.scss +99 -99
  66. package/sass/components/_tapTarget.scss +103 -103
  67. package/sass/components/_timepicker.scss +183 -183
  68. package/sass/components/_toast.scss +58 -58
  69. package/sass/components/_tooltip.scss +32 -32
  70. package/sass/components/_transitions.scss +12 -12
  71. package/sass/components/_typography.scss +62 -60
  72. package/sass/components/_variables.scss +352 -349
  73. package/sass/components/_waves.scss +187 -187
  74. package/sass/components/forms/_checkboxes.scss +200 -200
  75. package/sass/components/forms/_file-input.scss +44 -44
  76. package/sass/components/forms/_forms.scss +22 -22
  77. package/sass/components/forms/_input-fields.scss +379 -379
  78. package/sass/components/forms/_radio-buttons.scss +115 -115
  79. package/sass/components/forms/_range.scss +161 -161
  80. package/sass/components/forms/_select.scss +199 -199
  81. package/sass/components/forms/_switches.scss +91 -91
  82. package/sass/ghpages-materialize.scss +7 -0
  83. package/sass/materialize.scss +42 -41
  84. package/CHANGELOG.md +0 -76
  85. package/HISTORY.md +0 -527
@@ -1,379 +1,379 @@
1
- /* Text Inputs + Textarea
2
- ========================================================================== */
3
-
4
- /* Style Placeholders */
5
-
6
- ::placeholder {
7
- color: $placeholder-text-color;
8
- }
9
-
10
- /* Text inputs */
11
-
12
- input:not([type]):not(.browser-default),
13
- input[type=text]:not(.browser-default),
14
- input[type=password]:not(.browser-default),
15
- input[type=email]:not(.browser-default),
16
- input[type=url]:not(.browser-default),
17
- input[type=time]:not(.browser-default),
18
- input[type=date]:not(.browser-default),
19
- input[type=datetime]:not(.browser-default),
20
- input[type=datetime-local]:not(.browser-default),
21
- input[type=tel]:not(.browser-default),
22
- input[type=number]:not(.browser-default),
23
- input[type=search]:not(.browser-default),
24
- textarea.materialize-textarea {
25
-
26
- // General Styles
27
- background-color: transparent;
28
- border: none;
29
- border-bottom: $input-border;
30
- border-radius: 0;
31
- outline: none;
32
- height: $input-height;
33
- width: 100%;
34
- font-size: $input-font-size;
35
- margin: $input-margin;
36
- padding: $input-padding;
37
- box-shadow: none;
38
- box-sizing: content-box;
39
- transition: box-shadow .3s, border .3s;
40
-
41
- // Disabled input style
42
- &:disabled,
43
- &[readonly="readonly"] {
44
- color: $input-disabled-color;
45
- border-bottom: $input-disabled-border;
46
- }
47
-
48
- // Disabled label style
49
- &:disabled+label,
50
- &[readonly="readonly"]+label {
51
- color: $input-disabled-color;
52
- }
53
-
54
- // Focused input style
55
- &:focus:not([readonly]) {
56
- border-bottom: 1px solid $input-focus-color;
57
- box-shadow: 0 1px 0 0 $input-focus-color;
58
- }
59
-
60
- // Focused label style
61
- &:focus:not([readonly])+label {
62
- color: $input-focus-color;
63
- }
64
-
65
- // Hide helper text on data message
66
- &.valid ~ .helper-text[data-success],
67
- &:focus.valid ~ .helper-text[data-success],
68
- &.invalid ~ .helper-text[data-error],
69
- &:focus.invalid ~ .helper-text[data-error] {
70
- @extend %hidden-text;
71
- }
72
-
73
- // Valid Input Style
74
- &.valid,
75
- &:focus.valid {
76
- @extend %valid-input-style;
77
- }
78
-
79
- // Custom Success Message
80
- &.valid ~ .helper-text:after,
81
- &:focus.valid ~ .helper-text:after {
82
- @extend %custom-success-message;
83
- }
84
- &:focus.valid ~ label {
85
- color: $input-success-color;
86
- }
87
-
88
- // Invalid Input Style
89
- &.invalid,
90
- &:focus.invalid {
91
- @extend %invalid-input-style;
92
- }
93
-
94
- // Custom Error message
95
- &.invalid ~ .helper-text:after,
96
- &:focus.invalid ~ .helper-text:after {
97
- @extend %custom-error-message;
98
- }
99
- &:focus.invalid ~ label {
100
- color: $input-error-color;
101
- }
102
-
103
- // Full width label when using validate for error messages
104
- &.validate + label {
105
- width: 100%;
106
- }
107
-
108
- // Form Message Shared Styles
109
- & + label:after {
110
- @extend %input-after-style;
111
- }
112
- }
113
-
114
-
115
- /* Validation Sass Placeholders */
116
- %valid-input-style {
117
- border-bottom: 1px solid $input-success-color;
118
- box-shadow: 0 1px 0 0 $input-success-color;
119
- }
120
- %invalid-input-style {
121
- border-bottom: $input-invalid-border;
122
- box-shadow: 0 1px 0 0 $input-error-color;
123
- }
124
- %hidden-text {
125
- color: transparent;
126
- user-select: none;
127
- pointer-events: none;
128
- }
129
- %custom-success-message {
130
- content: attr(data-success);
131
- color: $input-success-color;
132
- }
133
- %custom-error-message {
134
- content: attr(data-error);
135
- color: $input-error-color;
136
- }
137
- %input-after-style {
138
- display: block;
139
- content: "";
140
- position: absolute;
141
- top: 100%;
142
- left: 0;
143
- opacity: 0;
144
- transition: .2s opacity ease-out, .2s color ease-out;
145
- }
146
-
147
-
148
- // Styling for input field wrapper
149
- .input-field {
150
- // Inline styles
151
- &.inline {
152
- display: inline-block;
153
- vertical-align: middle;
154
- margin-left: 5px;
155
-
156
- input,
157
- .select-dropdown {
158
- margin-bottom: 1rem;
159
- }
160
- }
161
-
162
- // Gutter spacing
163
- &.col {
164
- label {
165
- left: $gutter-width / 2;
166
- }
167
-
168
- .prefix ~ label,
169
- .prefix ~ .validate ~ label,
170
- .suffix ~ label,
171
- .suffix ~ .validate ~ label {
172
- width: calc(100% - 3rem - #{$gutter-width});
173
- }
174
- }
175
-
176
- position: relative;
177
- margin-top: 1rem;
178
- margin-bottom: 1rem;
179
-
180
- & > label {
181
- color: $input-border-color;
182
- position: absolute;
183
- top: 0;
184
- left: 0;
185
- font-size: 1rem;
186
- cursor: text;
187
- transition: transform .2s ease-out, color .2s ease-out;
188
- transform-origin: 0% 100%;
189
- text-align: initial;
190
- transform: translateY(12px);
191
-
192
- &:not(.label-icon).active {
193
- transform: translateY(-14px) scale(.8);
194
- transform-origin: 0 0;
195
- }
196
- }
197
-
198
- // Autofill + date + time inputs
199
- & > input[type]:-webkit-autofill:not(.browser-default):not([type="search"]) + label,
200
- & > input[type=date]:not(.browser-default) + label,
201
- & > input[type=time]:not(.browser-default) + label {
202
- transform: translateY(-14px) scale(.8);
203
- transform-origin: 0 0;
204
- }
205
-
206
- .helper-text {
207
- &::after {
208
- opacity: 1;
209
- position: absolute;
210
- top: 0;
211
- left: 0;
212
- }
213
-
214
- position: relative;
215
- min-height: 18px;
216
- display: block;
217
- font-size: 12px;
218
- color: rgba(0,0,0,.54);
219
- }
220
-
221
- // Prefix Icons
222
- .prefix, .suffix {
223
- position: absolute;
224
- width: $input-height;
225
- font-size: $input-icon-size;
226
- transition: color .2s;
227
- top: ($input-height - $input-icon-size) / 2;
228
-
229
- &.active { color: $input-focus-color; }
230
- }
231
-
232
- .prefix ~ input,
233
- .prefix ~ textarea,
234
- .prefix ~ .select-wrapper,
235
- .prefix ~ label,
236
- .prefix ~ .validate ~ label,
237
- .prefix ~ .helper-text,
238
- .prefix ~ .autocomplete-content {
239
- margin-left: 3rem;
240
- width: 92%;
241
- width: calc(100% - 3rem);
242
- }
243
-
244
- .prefix ~ label { margin-left: 3rem; }
245
-
246
- @media #{$medium-and-down} {
247
- .prefix ~ input,
248
- .suffix ~ input {
249
- width: 86%;
250
- width: calc(100% - 3rem);
251
- }
252
- }
253
-
254
- @media #{$small-and-down} {
255
- .prefix ~ input,
256
- .suffix ~ input {
257
- width: 80%;
258
- width: calc(100% - 3rem);
259
- }
260
- }
261
-
262
-
263
- // Suffix Icons
264
- .suffix {
265
- right: 0;
266
- }
267
-
268
- .suffix ~ input,
269
- .suffix ~ textarea,
270
- .suffix ~ .select-wrapper,
271
- .suffix ~ label,
272
- .suffix ~ .validate ~ label,
273
- .suffix ~ .helper-text,
274
- .suffix ~ .autocomplete-content {
275
- margin-right: 3rem;
276
- width: 92%;
277
- width: calc(100% - 3rem);
278
- }
279
-
280
- .suffix ~ label { margin-right: 3rem; }
281
-
282
- }
283
-
284
- /* Search Field */
285
-
286
- .input-field input[type=search] {
287
- display: block;
288
- line-height: inherit;
289
- transition: .3s background-color;
290
-
291
- .nav-wrapper & {
292
- height: inherit;
293
- padding-left: 4rem;
294
- width: calc(100% - 4rem);
295
- border: 0;
296
- box-shadow: none;
297
- }
298
-
299
- &:focus:not(.browser-default) {
300
- background-color: $input-background;
301
- border: 0;
302
- box-shadow: none;
303
- color: #444;
304
-
305
- & + label i,
306
- & ~ .mdi-navigation-close,
307
- & ~ .material-icons {
308
- color: #444;
309
- }
310
- }
311
-
312
- & + .label-icon {
313
- transform: none;
314
- left: 1rem;
315
- }
316
-
317
- & ~ .mdi-navigation-close,
318
- & ~ .material-icons {
319
- position: absolute;
320
- top: 0;
321
- right: 1rem;
322
- color: transparent;
323
- cursor: pointer;
324
- font-size: $input-icon-size;
325
- transition: .3s color;
326
- }
327
- }
328
-
329
-
330
- /* Textarea */
331
-
332
- // Default textarea
333
- textarea {
334
- width: 100%;
335
- height: $input-height;
336
- background-color: transparent;
337
-
338
- &.materialize-textarea {
339
- line-height: normal;
340
- overflow-y: hidden; /* prevents scroll bar flash */
341
- padding: .8rem 0 .8rem 0; /* prevents text jump on Enter keypress */
342
- resize: none;
343
- min-height: $input-height;
344
- box-sizing: border-box;
345
- }
346
- }
347
-
348
- // For textarea autoresize
349
- .hiddendiv {
350
- visibility: hidden;
351
- white-space: pre-wrap;
352
- word-wrap: break-word;
353
- overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
354
- padding-top: 1.2rem; /* prevents text jump on Enter keypress */
355
-
356
- // Reduces repaints
357
- position: absolute;
358
- top: 0;
359
- z-index: -1;
360
- }
361
-
362
-
363
- /* Autocomplete */
364
- .autocomplete-content {
365
- li {
366
- .highlight { color: #444; }
367
-
368
- img {
369
- height: $dropdown-item-height - 10;
370
- width: $dropdown-item-height - 10;
371
- margin: 5px 15px;
372
- }
373
- }
374
- }
375
-
376
- /* Character Counter */
377
- .character-counter {
378
- min-height: 18px;
379
- }
1
+ /* Text Inputs + Textarea
2
+ ========================================================================== */
3
+
4
+ /* Style Placeholders */
5
+
6
+ ::placeholder {
7
+ color: $placeholder-text-color;
8
+ }
9
+
10
+ /* Text inputs */
11
+
12
+ input:not([type]):not(.browser-default),
13
+ input[type=text]:not(.browser-default),
14
+ input[type=password]:not(.browser-default),
15
+ input[type=email]:not(.browser-default),
16
+ input[type=url]:not(.browser-default),
17
+ input[type=time]:not(.browser-default),
18
+ input[type=date]:not(.browser-default),
19
+ input[type=datetime]:not(.browser-default),
20
+ input[type=datetime-local]:not(.browser-default),
21
+ input[type=tel]:not(.browser-default),
22
+ input[type=number]:not(.browser-default),
23
+ input[type=search]:not(.browser-default),
24
+ textarea.materialize-textarea {
25
+
26
+ // General Styles
27
+ background-color: transparent;
28
+ border: none;
29
+ border-bottom: $input-border;
30
+ border-radius: 0;
31
+ outline: none;
32
+ height: $input-height;
33
+ width: 100%;
34
+ font-size: $input-font-size;
35
+ margin: $input-margin;
36
+ padding: $input-padding;
37
+ box-shadow: none;
38
+ box-sizing: content-box;
39
+ transition: box-shadow .3s, border .3s;
40
+
41
+ // Disabled input style
42
+ &:disabled,
43
+ &[readonly="readonly"] {
44
+ color: $input-disabled-color;
45
+ border-bottom: $input-disabled-border;
46
+ }
47
+
48
+ // Disabled label style
49
+ &:disabled+label,
50
+ &[readonly="readonly"]+label {
51
+ color: $input-disabled-color;
52
+ }
53
+
54
+ // Focused input style
55
+ &:focus:not([readonly]) {
56
+ border-bottom: 1px solid $input-focus-color;
57
+ box-shadow: 0 1px 0 0 $input-focus-color;
58
+ }
59
+
60
+ // Focused label style
61
+ &:focus:not([readonly])+label {
62
+ color: $input-focus-color;
63
+ }
64
+
65
+ // Hide helper text on data message
66
+ &.valid ~ .helper-text[data-success],
67
+ &:focus.valid ~ .helper-text[data-success],
68
+ &.invalid ~ .helper-text[data-error],
69
+ &:focus.invalid ~ .helper-text[data-error] {
70
+ @extend %hidden-text;
71
+ }
72
+
73
+ // Valid Input Style
74
+ &.valid,
75
+ &:focus.valid {
76
+ @extend %valid-input-style;
77
+ }
78
+
79
+ // Custom Success Message
80
+ &.valid ~ .helper-text:after,
81
+ &:focus.valid ~ .helper-text:after {
82
+ @extend %custom-success-message;
83
+ }
84
+ &:focus.valid ~ label {
85
+ color: $input-success-color;
86
+ }
87
+
88
+ // Invalid Input Style
89
+ &.invalid,
90
+ &:focus.invalid {
91
+ @extend %invalid-input-style;
92
+ }
93
+
94
+ // Custom Error message
95
+ &.invalid ~ .helper-text:after,
96
+ &:focus.invalid ~ .helper-text:after {
97
+ @extend %custom-error-message;
98
+ }
99
+ &:focus.invalid ~ label {
100
+ color: $input-error-color;
101
+ }
102
+
103
+ // Full width label when using validate for error messages
104
+ &.validate + label {
105
+ width: 100%;
106
+ }
107
+
108
+ // Form Message Shared Styles
109
+ & + label:after {
110
+ @extend %input-after-style;
111
+ }
112
+ }
113
+
114
+
115
+ /* Validation Sass Placeholders */
116
+ %valid-input-style {
117
+ border-bottom: 1px solid $input-success-color;
118
+ box-shadow: 0 1px 0 0 $input-success-color;
119
+ }
120
+ %invalid-input-style {
121
+ border-bottom: $input-invalid-border;
122
+ box-shadow: 0 1px 0 0 $input-error-color;
123
+ }
124
+ %hidden-text {
125
+ color: transparent;
126
+ user-select: none;
127
+ pointer-events: none;
128
+ }
129
+ %custom-success-message {
130
+ content: attr(data-success);
131
+ color: $input-success-color;
132
+ }
133
+ %custom-error-message {
134
+ content: attr(data-error);
135
+ color: $input-error-color;
136
+ }
137
+ %input-after-style {
138
+ display: block;
139
+ content: "";
140
+ position: absolute;
141
+ top: 100%;
142
+ left: 0;
143
+ opacity: 0;
144
+ transition: .2s opacity ease-out, .2s color ease-out;
145
+ }
146
+
147
+
148
+ // Styling for input field wrapper
149
+ .input-field {
150
+ // Inline styles
151
+ &.inline {
152
+ display: inline-block;
153
+ vertical-align: middle;
154
+ margin-left: 5px;
155
+
156
+ input,
157
+ .select-dropdown {
158
+ margin-bottom: 1rem;
159
+ }
160
+ }
161
+
162
+ // Gutter spacing
163
+ &.col {
164
+ label {
165
+ left: $gutter-width * 0.5;
166
+ }
167
+
168
+ .prefix ~ label,
169
+ .prefix ~ .validate ~ label,
170
+ .suffix ~ label,
171
+ .suffix ~ .validate ~ label {
172
+ width: calc(100% - 3rem - #{$gutter-width});
173
+ }
174
+ }
175
+
176
+ position: relative;
177
+ margin-top: 1rem;
178
+ margin-bottom: 1rem;
179
+
180
+ & > label {
181
+ color: $input-border-color;
182
+ position: absolute;
183
+ top: 0;
184
+ left: 0;
185
+ font-size: 1rem;
186
+ cursor: text;
187
+ transition: transform .2s ease-out, color .2s ease-out;
188
+ transform-origin: 0% 100%;
189
+ text-align: initial;
190
+ transform: translateY(12px);
191
+
192
+ &:not(.label-icon).active {
193
+ transform: translateY(-14px) scale(.8);
194
+ transform-origin: 0 0;
195
+ }
196
+ }
197
+
198
+ // Autofill + date + time inputs
199
+ & > input[type]:-webkit-autofill:not(.browser-default):not([type="search"]) + label,
200
+ & > input[type=date]:not(.browser-default) + label,
201
+ & > input[type=time]:not(.browser-default) + label {
202
+ transform: translateY(-14px) scale(.8);
203
+ transform-origin: 0 0;
204
+ }
205
+
206
+ .helper-text {
207
+ &::after {
208
+ opacity: 1;
209
+ position: absolute;
210
+ top: 0;
211
+ left: 0;
212
+ }
213
+
214
+ position: relative;
215
+ min-height: 18px;
216
+ display: block;
217
+ font-size: 12px;
218
+ color: rgba(0,0,0,.54);
219
+ }
220
+
221
+ // Prefix Icons
222
+ .prefix, .suffix {
223
+ position: absolute;
224
+ width: $input-height;
225
+ font-size: $input-icon-size;
226
+ transition: color .2s;
227
+ top: ($input-height - $input-icon-size) * 0.5;
228
+
229
+ &.active { color: $input-focus-color; }
230
+ }
231
+
232
+ .prefix ~ input,
233
+ .prefix ~ textarea,
234
+ .prefix ~ .select-wrapper,
235
+ .prefix ~ label,
236
+ .prefix ~ .validate ~ label,
237
+ .prefix ~ .helper-text,
238
+ .prefix ~ .autocomplete-content {
239
+ margin-left: 3rem;
240
+ width: 92%;
241
+ width: calc(100% - 3rem);
242
+ }
243
+
244
+ .prefix ~ label { margin-left: 3rem; }
245
+
246
+ @media #{$medium-and-down} {
247
+ .prefix ~ input,
248
+ .suffix ~ input {
249
+ width: 86%;
250
+ width: calc(100% - 3rem);
251
+ }
252
+ }
253
+
254
+ @media #{$small-and-down} {
255
+ .prefix ~ input,
256
+ .suffix ~ input {
257
+ width: 80%;
258
+ width: calc(100% - 3rem);
259
+ }
260
+ }
261
+
262
+
263
+ // Suffix Icons
264
+ .suffix {
265
+ right: 0;
266
+ }
267
+
268
+ .suffix ~ input,
269
+ .suffix ~ textarea,
270
+ .suffix ~ .select-wrapper,
271
+ .suffix ~ label,
272
+ .suffix ~ .validate ~ label,
273
+ .suffix ~ .helper-text,
274
+ .suffix ~ .autocomplete-content {
275
+ margin-right: 3rem;
276
+ width: 92%;
277
+ width: calc(100% - 3rem);
278
+ }
279
+
280
+ .suffix ~ label { margin-right: 3rem; }
281
+
282
+ }
283
+
284
+ /* Search Field */
285
+
286
+ .input-field input[type=search] {
287
+ display: block;
288
+ line-height: inherit;
289
+ transition: .3s background-color;
290
+
291
+ .nav-wrapper & {
292
+ height: inherit;
293
+ padding-left: 4rem;
294
+ width: calc(100% - 4rem);
295
+ border: 0;
296
+ box-shadow: none;
297
+ }
298
+
299
+ &:focus:not(.browser-default) {
300
+ background-color: $input-background;
301
+ border: 0;
302
+ box-shadow: none;
303
+ color: #444;
304
+
305
+ & + label i,
306
+ & ~ .mdi-navigation-close,
307
+ & ~ .material-icons {
308
+ color: #444;
309
+ }
310
+ }
311
+
312
+ & + .label-icon {
313
+ transform: none;
314
+ left: 1rem;
315
+ }
316
+
317
+ & ~ .mdi-navigation-close,
318
+ & ~ .material-icons {
319
+ position: absolute;
320
+ top: 0;
321
+ right: 1rem;
322
+ color: transparent;
323
+ cursor: pointer;
324
+ font-size: $input-icon-size;
325
+ transition: .3s color;
326
+ }
327
+ }
328
+
329
+
330
+ /* Textarea */
331
+
332
+ // Default textarea
333
+ textarea {
334
+ width: 100%;
335
+ height: $input-height;
336
+ background-color: transparent;
337
+
338
+ &.materialize-textarea {
339
+ line-height: normal;
340
+ overflow-y: hidden; /* prevents scroll bar flash */
341
+ padding: .8rem 0 .8rem 0; /* prevents text jump on Enter keypress */
342
+ resize: none;
343
+ min-height: $input-height;
344
+ box-sizing: border-box;
345
+ }
346
+ }
347
+
348
+ // For textarea autoresize
349
+ .hiddendiv {
350
+ visibility: hidden;
351
+ white-space: pre-wrap;
352
+ word-wrap: break-word;
353
+ overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
354
+ padding-top: 1.2rem; /* prevents text jump on Enter keypress */
355
+
356
+ // Reduces repaints
357
+ position: absolute;
358
+ top: 0;
359
+ z-index: -1;
360
+ }
361
+
362
+
363
+ /* Autocomplete */
364
+ .autocomplete-content {
365
+ li {
366
+ .highlight { color: #444; }
367
+
368
+ img {
369
+ height: $dropdown-item-height - 10;
370
+ width: $dropdown-item-height - 10;
371
+ margin: 5px 15px;
372
+ }
373
+ }
374
+ }
375
+
376
+ /* Character Counter */
377
+ .character-counter {
378
+ min-height: 18px;
379
+ }