@materializecss/materialize 2.2.1 → 2.3.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 (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -94
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +9624 -8820
  5. package/dist/css/materialize.min.css +6 -8
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -7926
  8. package/dist/js/materialize.d.ts +2552 -2491
  9. package/dist/js/materialize.js +8375 -7931
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -7898
  12. package/package.json +95 -79
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -370
  14. package/sass/{components/_global.scss → _global.scss} +490 -558
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -170
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -103
  18. package/sass/{components/_typography.scss → _typography.scss} +59 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +57 -56
  20. package/sass/components/forms/_forms.scss +19 -24
  21. package/sass/materialize.scss +48 -47
  22. package/sass/mixins.module.scss +168 -0
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_buttons.scss +0 -455
  25. package/sass/components/_cards.scss +0 -210
  26. package/sass/components/_carousel.scss +0 -95
  27. package/sass/components/_chips.scss +0 -148
  28. package/sass/components/_collapsible.scss +0 -80
  29. package/sass/components/_collection.scss +0 -115
  30. package/sass/components/_color-classes.scss +0 -32
  31. package/sass/components/_datepicker.scss +0 -216
  32. package/sass/components/_dropdown.scss +0 -78
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -43
  35. package/sass/components/_modal.scss +0 -68
  36. package/sass/components/_navbar.scss +0 -231
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_preloader.scss +0 -418
  39. package/sass/components/_pulse.scss +0 -35
  40. package/sass/components/_sidenav.scss +0 -249
  41. package/sass/components/_slider.scss +0 -121
  42. package/sass/components/_tabs.scss +0 -155
  43. package/sass/components/_timepicker.scss +0 -279
  44. package/sass/components/_toast.scss +0 -65
  45. package/sass/components/_tooltip.scss +0 -48
  46. package/sass/components/_transitions.scss +0 -13
  47. package/sass/components/colors.module.scss +0 -74
  48. package/sass/components/forms/_checkboxes.scss +0 -200
  49. package/sass/components/forms/_file-input.scss +0 -43
  50. package/sass/components/forms/_input-fields.scss +0 -350
  51. package/sass/components/forms/_radio-buttons.scss +0 -112
  52. package/sass/components/forms/_range.scss +0 -153
  53. package/sass/components/forms/_select.scss +0 -195
  54. package/sass/components/forms/_switches.scss +0 -122
  55. package/sass/components/theme.module.scss +0 -140
  56. package/sass/components/tokens.module.scss +0 -272
  57. package/sass/components/typography.module.scss +0 -150
@@ -1,455 +0,0 @@
1
- .btn, .btn-floating, .btn-large, .btn-small, .btn-flat {
2
- --btn-height: 40px;
3
- --btn-font-size-icon: 16px;
4
- --btn-padding: 24px;
5
- --btn-padding-icon: 16px;
6
- --btn-gap-icon: 8px;
7
- --btn-border-radius: 4px;
8
- --btn-font-size: 14px;
9
-
10
- height: var(--btn-height);
11
- border: none;
12
- border-radius: var(--btn-border-radius);
13
- padding-left: var(--btn-padding);
14
- padding-right: var(--btn-padding);
15
- font-size: var(--btn-font-size);
16
- font-weight: 500;
17
- text-decoration: none;
18
- display: inline-flex;
19
- align-items: center;
20
- cursor: pointer;
21
- -webkit-tap-highlight-color: transparent; // Gets rid of tap active state
22
- white-space: nowrap;
23
- outline: 0;
24
- user-select: none;
25
- transition: background-color .2s ease-out;
26
- }
27
-
28
- // Icon
29
- .btn.icon-left, .btn.icon-right {
30
- position: relative;
31
- }
32
-
33
- .btn.icon-left {
34
- padding-left: calc(var(--btn-padding-icon) + var(--btn-font-size-icon) + var(--btn-gap-icon));
35
- }
36
-
37
- .btn.icon-right {
38
- padding-right: calc(var(--btn-padding-icon) + var(--btn-font-size-icon) + var(--btn-gap-icon));
39
- }
40
-
41
- .btn.icon-left i, .btn.icon-right i {
42
- position: absolute;
43
- font-size: var(--btn-font-size-icon);
44
- }
45
-
46
- .btn.icon-left i {
47
- left: var(--btn-padding-icon);
48
- }
49
-
50
- .btn.icon-right i {
51
- right: var(--btn-padding-icon);
52
- }
53
-
54
- //------------------ Enabled
55
-
56
- .btn.filled {
57
- color: var(--md-sys-color-on-primary);
58
- background-color: var(--md-sys-color-primary);
59
- }
60
-
61
- .btn.tonal {
62
- color: var(--md-sys-color-on-secondary-container);
63
- background-color: var(--md-sys-color-secondary-container);
64
- }
65
-
66
- .btn.elevated {
67
- color: var(--md-sys-color-on-secondary-container);
68
- background-color: var(--md-sys-color-secondary-container);
69
- @extend .z-depth-1;
70
- }
71
-
72
- .btn.outlined {
73
- background-color: transparent;
74
- color: var(--md-sys-color-primary);
75
- border: 1px solid var(--md-sys-color-outline);
76
- }
77
-
78
- .btn.text, .btn-flat {
79
- @extend .z-depth-0;
80
- color: var(--md-sys-color-primary);
81
- background-color: transparent;
82
- }
83
-
84
- //------------------ Disabled
85
-
86
- .btn.disabled, .btn-floating.disabled, .btn-large.disabled, .btn-small.disabled, .btn-flat.disabled,
87
- .btn:disabled, .btn-floating:disabled, .btn-large:disabled, .btn-small:disabled, .btn-flat:disabled,
88
- .btn[disabled], .btn-floating[disabled], .btn-large[disabled], .btn-small[disabled], .btn-flat[disabled] {
89
- @extend .z-depth-0;
90
- color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 76%);
91
- background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 24%);
92
- pointer-events: none;
93
- box-shadow: none;
94
- cursor: default;
95
- }
96
-
97
- //------------------ Hover
98
-
99
- .btn.elevated:hover {
100
- @extend .z-depth-2;
101
- color: var(--md-sys-color-primary);
102
- background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 16%);
103
- }
104
-
105
- .btn.filled:hover {
106
- @extend .z-depth-1;
107
- color: var(--md-sys-color-on-primary);
108
- background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 16%);
109
- }
110
-
111
- .btn.tonal:hover {
112
- @extend .z-depth-1;
113
- color: var(--md-sys-color-on-secondary-container);
114
- background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 16%);
115
- }
116
-
117
- .btn.outlined:hover {
118
- color: var(--md-sys-color-primary);
119
- background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 16%);
120
- }
121
-
122
- .btn.text:hover {
123
- color: var(--md-sys-color-primary);
124
- background-color: color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
125
- }
126
-
127
- //------------------ Focus
128
-
129
- .btn:focus.elevated {
130
- @extend .z-depth-1;
131
- color: var(--md-sys-color-primary);
132
- background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-primary) 20%);
133
- }
134
-
135
- .btn:focus.filled {
136
- @extend .z-depth-0;
137
- color: var(--md-sys-color-on-primary);
138
- background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 20%);
139
- }
140
-
141
- .btn:focus.tonal {
142
- @extend .z-depth-0;
143
- color: var(--md-sys-color-on-secondary-container);
144
- background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 20%);
145
- }
146
-
147
- .btn:focus.outlined {
148
- color: var(--md-sys-color-primary);
149
- background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 20%);
150
- border: 1px solid var(--md-sys-color-primary);
151
- }
152
-
153
- .btn:focus.text {
154
- color: var(--md-sys-color-primary);
155
- background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 20%);
156
- }
157
-
158
- // Focus with Keyboard
159
- .btn:focus-visible {
160
- &.filled,
161
- &.elevated,
162
- &.tonal,
163
- &.outlined,
164
- &.text {
165
- outline: 3px solid var(--md-sys-color-secondary);
166
- outline-offset: 2px;
167
- }
168
- }
169
-
170
- //----------
171
-
172
- // .btn-floating {
173
- // border-radius: 16px;
174
- // width: unset;
175
- // display: grid;
176
- // grid-auto-flow: column;
177
- // align-items: center;
178
- // padding: 16px !important;
179
- // padding-right: 24px !important; /* only with icon */
180
- // gap: 8px;
181
- // }
182
- // .btn-floating.btn-large {
183
- // width: unset;
184
- // }
185
- // .btn-large {
186
- // font-size: 14px;
187
- // }
188
- //-----
189
- // Floating button
190
- .btn-floating {
191
- &:hover {
192
- @extend .z-depth-1-half;
193
- background-color: color-mix(in srgb, var(--md-sys-color-primary-container), var(--md-sys-color-on-primary-container) 16%);
194
- }
195
-
196
- &:focus {
197
- background-color: $button-floating-background-focus;
198
- @extend .z-depth-1-half;
199
- }
200
-
201
- &:before {
202
- border-radius: 0;
203
- }
204
-
205
- &.btn-large {
206
- &.halfway-fab {
207
- bottom: -56px * 0.5;
208
- }
209
-
210
- width: 56px;
211
- height: 56px;
212
- padding: 0;
213
- // font-size:
214
- // i {
215
- // // line-height: 56px;
216
- // }
217
- }
218
-
219
- &.btn-small {
220
- --btn-small-height: calc(0.75 * var(--btn-height));
221
-
222
- &.halfway-fab {
223
- bottom: calc(var(--btn-small-height) * -0.5);
224
- }
225
-
226
- width: var(--btn-small-height);
227
- height: var(--btn-small-height);
228
- // i {
229
- // line-height: $button-floating-small-size;
230
- // }
231
- }
232
-
233
- &.halfway-fab {
234
- &.left {
235
- right: auto;
236
- left: 24px;
237
- }
238
-
239
- position: absolute;
240
- right: 24px;
241
- bottom: -$button-floating-size * 0.5;
242
- }
243
-
244
- // FIXES
245
- // width: unset;
246
- // padding: 16px !important;
247
- // padding-right: 24px !important; /* only with icon */
248
- // gap: 8px;
249
- width: $button-floating-size;
250
- height: $button-floating-size;
251
- color: var(--md-sys-color-on-primary-container);
252
- background-color: var(--md-sys-color-primary-container);
253
- border-radius: $button-floating-radius;
254
- padding: 0;
255
- display: grid;
256
- grid-auto-flow: column;
257
- align-items: center;
258
- position: relative;
259
- overflow: hidden;
260
- z-index: 1;
261
- @extend .z-depth-1;
262
- transition: background-color .3s;
263
- cursor: pointer;
264
- vertical-align: middle;
265
-
266
- i {
267
- color: $button-floating-color;
268
- font-size: 1.6rem;
269
- width: inherit;
270
- display: inline-block;
271
- text-align: center;
272
- }
273
- }
274
-
275
- // button fix
276
- button.btn-floating {
277
- border: none;
278
- }
279
-
280
- // Fixed Action Button
281
- .fixed-action-btn {
282
- &.active {
283
- ul {
284
- visibility: visible;
285
- padding-left: 0;
286
- list-style-type: none;
287
- }
288
- }
289
-
290
- // Directions
291
- &.direction-left,
292
- &.direction-right {
293
- padding: 0 0 0 15px;
294
-
295
- ul {
296
- text-align: right;
297
- right: 64px;
298
- top: 50%;
299
- transform: translateY(-50%);
300
- height: 100%;
301
- left: auto;
302
- /*width 100% only goes to width of button container */
303
- width: 500px;
304
-
305
- li {
306
- display: inline-block;
307
- margin: 7.5px 15px 0 0;
308
- }
309
- }
310
- }
311
-
312
- &.direction-right {
313
- padding: 0 15px 0 0;
314
-
315
- ul {
316
- text-align: left;
317
- direction: rtl;
318
- left: 64px;
319
- right: auto;
320
-
321
- li {
322
- margin: 7.5px 0 0 15px;
323
- }
324
- }
325
- }
326
-
327
- &.direction-bottom {
328
- padding: 0 0 15px 0;
329
-
330
- ul {
331
- top: 64px;
332
- bottom: auto;
333
- display: flex;
334
- flex-direction: column-reverse;
335
-
336
- li {
337
- margin: 15px 0 0 0;
338
- }
339
- }
340
- }
341
-
342
- &.toolbar {
343
- &.active {
344
- & > a i {
345
- opacity: 0;
346
- }
347
- }
348
-
349
- padding: 0;
350
- height: 56px;
351
-
352
- ul {
353
- display: flex;
354
- top: 0;
355
- bottom: 0;
356
- z-index: 1;
357
-
358
- li {
359
- flex: 1;
360
- display: inline-block;
361
- margin: 0;
362
- height: 100%;
363
- transition: none;
364
-
365
- a {
366
- display: block;
367
- overflow: hidden;
368
- position: relative;
369
- width: 100%;
370
- height: 100%;
371
- background-color: transparent;
372
- box-shadow: none;
373
- color: $button-floating-color;
374
- line-height: 56px;
375
- z-index: 1;
376
-
377
- i {
378
- line-height: inherit;
379
- }
380
- }
381
- }
382
- }
383
- }
384
-
385
- position: fixed;
386
- right: 23px;
387
- bottom: 23px;
388
- padding-top: 15px;
389
- margin-bottom: 0;
390
- z-index: 997;
391
-
392
- ul {
393
- left: 0;
394
- right: 0;
395
- text-align: center;
396
- position: absolute;
397
- bottom: 64px;
398
- margin: 0;
399
- visibility: hidden;
400
-
401
- li {
402
- margin-bottom: 15px;
403
- }
404
-
405
- a.btn-floating {
406
- opacity: 0;
407
- }
408
- }
409
-
410
- .fab-backdrop {
411
- position: absolute;
412
- top: 0;
413
- left: 0;
414
- z-index: -1;
415
- width: $button-floating-size;
416
- height: $button-floating-size;
417
- background-color: $button-floating-background;
418
- border-radius: $button-floating-radius;
419
- transform: scale(0);
420
- }
421
- }
422
-
423
- //--- Helper classes (for all)
424
-
425
- // Large button
426
- .btn-large {
427
- @extend .btn;
428
- height: calc(1.5 * var(--btn-height));
429
- font-size: 18px;
430
- padding: 0 28px;
431
-
432
- i {
433
- font-size: 1.6rem;
434
- }
435
- }
436
-
437
- // Small button
438
- .btn-small {
439
- @extend .btn;
440
- height: calc(0.75 * var(--btn-height));
441
- font-size: 13px;
442
-
443
- i {
444
- font-size: 1.2rem;
445
- }
446
- }
447
-
448
- // Block button
449
- .btn-block {
450
- display: block;
451
- }
452
-
453
- .btn.rounded {
454
- border-radius: 99999px;
455
- }
@@ -1,210 +0,0 @@
1
- .card-panel {
2
- transition: box-shadow .25s;
3
- padding: 24px;
4
- margin: $element-top-margin 0 $element-bottom-margin 0;
5
- border-radius: 12px;
6
- @extend .z-depth-1;
7
- background-color: var(--md-sys-color-surface);
8
- }
9
-
10
- .card {
11
- overflow: hidden;
12
- position: relative;
13
- //margin: $element-top-margin 0 $element-bottom-margin 0;
14
- background-color: var(--md-sys-color-surface);
15
- transition: box-shadow .25s;
16
- border-radius: 12px;
17
- @extend .z-depth-1;
18
-
19
- .card-title {
20
- font-size: 24px;
21
- font-weight: 300;
22
- }
23
-
24
- // Card Sizes
25
- &.small, &.medium, &.large {
26
- position: relative;
27
-
28
- .card-image {
29
- max-height: 60%;
30
- overflow: hidden;
31
- }
32
-
33
- .card-image + .card-content {
34
- max-height: 40%;
35
- }
36
-
37
- .card-content {
38
- max-height: 100%;
39
- overflow: hidden;
40
- }
41
-
42
- .card-action {
43
- position: absolute;
44
- bottom: 0;
45
- left: 0;
46
- right: 0;
47
- }
48
- }
49
-
50
- &.small {
51
- height: 300px;
52
- }
53
-
54
- &.medium {
55
- height: 400px;
56
- }
57
-
58
- &.large {
59
- height: 500px;
60
- }
61
-
62
- // Horizontal Cards
63
- &.horizontal {
64
- &.small, &.medium, &.large {
65
- .card-image {
66
- height: 100%;
67
- max-height: none;
68
- overflow: visible;
69
-
70
- img {
71
- height: 100%;
72
- }
73
- }
74
- }
75
-
76
- display: flex;
77
-
78
- .card-image {
79
- max-width: 50%;
80
-
81
- img {
82
- border-radius: 2px 0 0 2px;
83
- max-width: 100%;
84
- width: auto;
85
- }
86
- }
87
-
88
- .card-stacked {
89
- display: flex;
90
- flex-direction: column;
91
- flex: 1;
92
- position: relative;
93
-
94
- .card-content {
95
- flex-grow: 1;
96
- }
97
- }
98
- }
99
-
100
- // Sticky Action Section
101
- &.sticky-action {
102
- .card-action {
103
- z-index: 2;
104
- }
105
-
106
- .card-reveal {
107
- z-index: 1;
108
- padding-bottom: 64px;
109
- }
110
- }
111
-
112
- .card-image {
113
- position: relative;
114
-
115
- // Image background for content
116
- img {
117
- display: block;
118
- border-radius: 2px 2px 0 0;
119
- position: relative;
120
- left: 0;
121
- right: 0;
122
- top: 0;
123
- bottom: 0;
124
- width: 100%;
125
- }
126
-
127
- .card-title {
128
- color: var(--md-sys-color-surface);
129
- position: absolute;
130
- bottom: 0;
131
- left: 0;
132
- max-width: 100%;
133
- padding: 24px;
134
- }
135
-
136
- .activator {
137
- position: absolute;
138
- left: 0;
139
- right: 0;
140
- top:0;
141
- bottom: 0;
142
- cursor: pointer;
143
- }
144
- }
145
-
146
- .card-content {
147
- padding: 24px;
148
- border-radius: 0 0 2px 2px;
149
-
150
- p {
151
- margin: 0;
152
- }
153
-
154
- .card-title {
155
- display: block;
156
- line-height: 32px;
157
- margin-bottom: 8px;
158
-
159
- i {
160
- line-height: 32px;
161
- }
162
-
163
- &.activator {
164
- cursor: pointer;
165
- }
166
- }
167
- }
168
-
169
- .card-action {
170
- &:last-child {
171
- border-radius: 0 0 2px 2px;
172
- }
173
-
174
- border-top: 1px solid var(--md-sys-color-outline-variant);
175
- position: relative;
176
- background-color: inherit;
177
-
178
- a {
179
- padding: 16px 24px;
180
- display: inline-block;
181
- }
182
-
183
- a:not(.btn):not(.btn-large):not(.btn-floating) {
184
- color: var(--md-sys-color-primary);
185
- transition: color .3s ease;
186
-
187
- &:hover {
188
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
189
- }
190
- }
191
- }
192
-
193
- .card-reveal {
194
- padding: 24px;
195
- position: absolute;
196
- background-color: var(--md-sys-color-surface);
197
- width: 100%;
198
- overflow-y: auto;
199
- left: 0;
200
- top: 100%;
201
- height: 100%;
202
- z-index: 3;
203
- display: none;
204
-
205
- .card-title {
206
- cursor: pointer;
207
- display: block;
208
- }
209
- }
210
- }