@materializecss/materialize 2.2.2 → 2.3.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 (58) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -91
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +7988 -9470
  5. package/dist/css/materialize.min.css +6 -6
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -8239
  8. package/dist/js/materialize.d.ts +2552 -2593
  9. package/dist/js/materialize.js +8375 -8244
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -8211
  12. package/package.json +95 -81
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -402
  14. package/sass/{components/_global.scss → _global.scss} +490 -469
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -172
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -102
  18. package/sass/{components/_typography.scss → _typography.scss} +58 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +56 -57
  20. package/sass/components/forms/_forms.scss +19 -18
  21. package/sass/materialize.scss +48 -43
  22. package/sass/{components/mixins.module.scss → mixins.module.scss} +168 -159
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_breadcrumb.scss +0 -27
  25. package/sass/components/_buttons.scss +0 -348
  26. package/sass/components/_cards.scss +0 -229
  27. package/sass/components/_carousel.scss +0 -93
  28. package/sass/components/_chips.scss +0 -140
  29. package/sass/components/_collapsible.scss +0 -83
  30. package/sass/components/_collection.scss +0 -114
  31. package/sass/components/_datepicker.scss +0 -263
  32. package/sass/components/_dropdown.scss +0 -82
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -42
  35. package/sass/components/_modal.scss +0 -75
  36. package/sass/components/_navbar.scss +0 -232
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_pagination.scss +0 -47
  39. package/sass/components/_preloader.scss +0 -420
  40. package/sass/components/_pulse.scss +0 -35
  41. package/sass/components/_sidenav.scss +0 -247
  42. package/sass/components/_slider.scss +0 -119
  43. package/sass/components/_tabs.scss +0 -167
  44. package/sass/components/_timepicker.scss +0 -294
  45. package/sass/components/_toast.scss +0 -68
  46. package/sass/components/_tooltip.scss +0 -40
  47. package/sass/components/_transitions.scss +0 -12
  48. package/sass/components/colors.module.scss +0 -74
  49. package/sass/components/forms/_checkboxes.scss +0 -199
  50. package/sass/components/forms/_file-input.scss +0 -41
  51. package/sass/components/forms/_input-fields.scss +0 -356
  52. package/sass/components/forms/_radio-buttons.scss +0 -112
  53. package/sass/components/forms/_range.scss +0 -158
  54. package/sass/components/forms/_select.scss +0 -103
  55. package/sass/components/forms/_switches.scss +0 -124
  56. package/sass/components/theme.module.scss +0 -140
  57. package/sass/components/tokens.module.scss +0 -272
  58. package/sass/components/typography.module.scss +0 -150
@@ -1,119 +0,0 @@
1
- .slider {
2
- position: relative;
3
- height: 400px;
4
- width: 100%;
5
-
6
- // Fullscreen slider
7
- &.fullscreen {
8
- height: 100%;
9
- width: 100%;
10
- position: absolute;
11
- top: 0;
12
- left: 0;
13
- right: 0;
14
- bottom: 0;
15
-
16
- ul.slides {
17
- padding-left: 0;
18
- list-style-type: none;
19
- height: 100%;
20
- }
21
-
22
- ul.indicators {
23
- padding-left: 0;
24
- list-style-type: none;
25
- z-index: 2;
26
- bottom: 30px;
27
-
28
- .indicator-item {
29
- background-color: rgba(255, 255, 255, 0.45);
30
-
31
- &.active {
32
- background-color: var(--md-ref-palette-primary100);
33
- }
34
- }
35
-
36
- }
37
- }
38
-
39
- .slides {
40
- background-color: var(--md-sys-color-surface);
41
- margin: 0;
42
- height: 400px;
43
- padding-left: 0;
44
- list-style-type: none;
45
-
46
- li {
47
- padding-left: 0;
48
- list-style-type: none;
49
- opacity: 0;
50
- position: absolute;
51
- top: 0;
52
- left: 0;
53
- z-index: 1;
54
- width: 100%;
55
- height: inherit;
56
- overflow: hidden;
57
-
58
- img {
59
- height: 100%;
60
- width: 100%;
61
- background-size: cover;
62
- background-position: center;
63
- }
64
-
65
- .caption {
66
- color: #fff;
67
- position: absolute;
68
- top: 15%;
69
- left: 15%;
70
- width: 70%;
71
- opacity: 0;
72
-
73
- p {
74
- color: rgba(255, 255, 255, 0.75);
75
- }
76
- }
77
-
78
- &.active {
79
- z-index: 2;
80
- }
81
- }
82
- }
83
-
84
- .indicators {
85
- padding-left: 0;
86
- list-style-type: none;
87
- position: absolute;
88
- text-align: center;
89
- left: 0;
90
- right: 0;
91
- bottom: 0;
92
- margin: 0;
93
-
94
- .indicator-item {
95
- display: inline-block;
96
- position: relative;
97
- height: 16px;
98
- width: 16px;
99
- margin: 0 12px;
100
- }
101
-
102
- .indicator-item-btn {
103
- position: absolute;
104
- top: 0;
105
- left: 0;
106
- width: 100%;
107
- height: 100%;
108
- cursor: pointer;
109
- background-color: var(--md-sys-color-shadow-light);
110
- transition: background-color .3s;
111
- border-radius: 50%;
112
- border-width: 0;
113
-
114
- &.active {
115
- background-color: var(--md-sys-color-primary);
116
- }
117
- }
118
- }
119
- }
@@ -1,167 +0,0 @@
1
- @use './variables' as *;
2
-
3
- .tabs {
4
- padding-left: 0;
5
- list-style-type: none;
6
- position: relative;
7
- overflow-x: auto;
8
- overflow-y: hidden;
9
- width: 100%;
10
- background-color: var(--md-sys-color-surface);
11
- margin: 0 auto;
12
- white-space: nowrap;
13
-
14
- &.tabs-transparent {
15
- background-color: transparent;
16
-
17
- .tab a {
18
- color: var(--font-on-primary-color-medium);
19
- }
20
-
21
- .tab.disabled a,
22
- .tab.disabled a:hover,
23
- .tab.disabled a:focus {
24
- color: rgba(255, 255, 255, 0.38);
25
- }
26
-
27
- .tab a:hover {
28
- background-color: rgba(0, 0, 0, 0.04);
29
- }
30
-
31
- .tab a.active,
32
- .tab a:focus {
33
- background-color: transparent;
34
- }
35
-
36
- .tab a:hover,
37
- .tab a.active,
38
- .tab a:focus {
39
- color: var(--md-sys-color-on-primary);
40
- }
41
-
42
- .indicator {
43
- background-color: var(--md-sys-color-on-primary);
44
- }
45
- }
46
-
47
- &.tabs-fixed-width {
48
- display: flex;
49
-
50
- .tab {
51
- flex-grow: 1;
52
- }
53
- }
54
-
55
- .tab {
56
- padding-left: 0;
57
- list-style-type: none;
58
- display: inline-block;
59
- text-align: center;
60
- line-height: 48px;
61
- padding: 0;
62
- margin: 0;
63
-
64
- i.material-icons {
65
- position: relative;
66
- top: 8px;
67
- vertical-align: middle;
68
- }
69
-
70
- span {
71
- height: 24px;
72
- line-height: 20px;
73
- }
74
-
75
- a {
76
- color: var(--md-sys-color-on-surface-variant);
77
- display: flex;
78
- flex-direction: column;
79
- width: 100%;
80
- height: 100%;
81
- min-height: 48px; //needed for only-icons tabs
82
- padding: 0 24px;
83
- font-size: 14px;
84
- text-overflow: ellipsis;
85
- overflow: hidden;
86
- transition: color .28s ease, background-color .28s ease;
87
-
88
- &.active {
89
- background-color: transparent;
90
- }
91
-
92
- &.active,
93
- &:focus,
94
- &:hover {
95
- color: var(--md-sys-color-primary);
96
- }
97
-
98
- &:hover {
99
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
100
- }
101
-
102
- &:focus {
103
- background-color: var(--md-sys-color-primary-container);
104
- }
105
-
106
- &.active {
107
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
108
- }
109
-
110
- &:focus,
111
- &.active {
112
- outline: none;
113
- }
114
- }
115
-
116
- &.disabled a,
117
- &.disabled a:hover {
118
- color: var(--md-sys-color-on-surface);
119
- cursor: default;
120
- background-color: transparent;
121
-
122
- &:not(:focus) {
123
- background-color: transparent;
124
- }
125
- }
126
- }
127
-
128
- .indicator {
129
- position: absolute;
130
- bottom: 0;
131
- height: 3px;
132
- background-color: var(--md-sys-color-primary);
133
- will-change: left, right;
134
- border-radius: 3px 3px 0 0;
135
- }
136
-
137
- &.tabs-horizontal .tab {
138
- height: 48px;
139
-
140
- a {
141
- display: block;
142
- }
143
-
144
- i.material-icons {
145
- padding: 0 4px;
146
- position: relative;
147
- top: -2px;
148
- vertical-align: middle;
149
- }
150
- }
151
- }
152
-
153
- /* Fixed Sidenav hide on smaller */
154
-
155
- @media #{$medium-and-down} {
156
- .tabs {
157
- display: flex;
158
-
159
- .tab {
160
- flex-grow: 1;
161
-
162
- a {
163
- padding: 0 12px;
164
- }
165
- }
166
- }
167
- }
@@ -1,294 +0,0 @@
1
- @use './variables' as *;
2
-
3
- .timepicker-container {
4
- display: flex;
5
- flex-direction: column;
6
- max-width: 325px;
7
- padding: 0;
8
- background-color: var(--md-sys-color-inverse-on-surface);
9
- }
10
-
11
- .text-primary {
12
- color: var(--md-sys-color-on-primary);
13
- }
14
-
15
- /* Clock Digital Display */
16
- .timepicker-digital-display {
17
- width: auto;
18
- flex: 1 auto;
19
- // background-color: var(--md-sys-color-surface);
20
- padding: 2rem .67rem .67rem .67rem;
21
- font-weight: 300;
22
- }
23
-
24
- .timepicker-text-container {
25
- display: flex;
26
- font-size: 4rem;
27
- text-align: left;
28
- color: var(--font-on-primary-color-medium);
29
- font-weight: 400;
30
- /*position: relative;*/
31
- user-select: none;
32
- padding: 1rem 1rem 1.3rem 1rem;
33
-
34
- input[type=text]{
35
- height: 4rem;
36
- color: var(--md-sys-color-secondary);
37
- border-bottom: 0px;
38
- font-size: 4rem;
39
- direction: ltr;
40
- }
41
- }
42
-
43
- .timepicker-display-column {
44
- display: inline-flex;
45
- }
46
-
47
- .timepicker-display-digital-clock {
48
- flex-grow: 1;
49
- display: inline-flex;
50
- }
51
-
52
- .timepicker-input-hours-wrapper,
53
- .timepicker-input-minutes-wrapper {
54
- width: 6.9rem;
55
- height: 5.75rem;
56
- }
57
-
58
- .timepicker-input-hours,
59
- .timepicker-input-minutes,
60
- .timepicker-span-am-pm div {
61
- cursor: pointer;
62
- }
63
-
64
- input[type=text].timepicker-input-hours,
65
- input[type=text].timepicker-input-minutes {
66
- height: 100%;
67
- padding: 1.33rem .8rem;
68
- border: 0;
69
- text-align: center;
70
- color: var(--md-sys-color-on-background);
71
- background-color: var(--md-sys-color-surface-variant);
72
-
73
- &:focus {
74
- background-color: var(--md-sys-color-primary-container);
75
- }
76
- }
77
-
78
- .timepicker-input-divider-wrapper {
79
- width: 1.6rem;
80
- text-align: center;
81
- }
82
-
83
- /*input[type=text].text-primary {
84
- color: var(--md-sys-color-on-background);
85
- }*/
86
-
87
- .timepicker-display-am-pm {
88
- font-size: 1.3rem;
89
- /*position: absolute;
90
- top: 1rem;
91
- right: 1rem;*/
92
- font-weight: 400;
93
- }
94
-
95
- .timepicker-span-am-pm {
96
- height: 5.75rem;
97
- max-width: 3.5rem;
98
- }
99
-
100
- .timepicker-container .am-btn,
101
- .timepicker-container .pm-btn {
102
- width: 3.6rem;
103
- height: 50%;
104
- padding-left: calc(var(--btn-padding) / 1.8);
105
- padding-right: calc(var(--btn-padding) / 1.8);
106
- line-height: 2rem;
107
- vertical-align: middle;
108
- text-align: center;
109
- // background-color: transparent;
110
- border: 1px solid var(--md-sys-color-outline);
111
- }
112
-
113
- .timepicker-container .am-btn {
114
- border-bottom-right-radius: 0;
115
- border-bottom-left-radius: 0;
116
- }
117
-
118
- .timepicker-container .pm-btn {
119
- border-top: 0;
120
- border-top-left-radius: 0;
121
- border-top-right-radius: 0;
122
- }
123
-
124
- /* Analog Clock Display */
125
- .timepicker-analog-display {
126
- flex: 2.5 auto;
127
- padding: .67rem;
128
- // background-color: var(--md-sys-color-surface);
129
- }
130
-
131
- .timepicker-plate {
132
- background-color: var(--md-sys-color-surface-variant);
133
- border-radius: 50%;
134
- width: 260px;
135
- height: 260px;
136
- overflow: visible;
137
- position: relative;
138
- margin: 0 1.6rem 1.6rem 1.6rem;
139
- user-select: none;
140
- }
141
-
142
- .timepicker-canvas,
143
- .timepicker-dial {
144
- position: absolute;
145
- left: 0;
146
- right: 0;
147
- top: 0;
148
- bottom: 0;
149
- }
150
-
151
- .timepicker-minutes {
152
- visibility: hidden;
153
- }
154
-
155
- .timepicker-tick {
156
- border-radius: 50%;
157
- color: var(--md-sys-color-on-background);
158
- line-height: 40px;
159
- text-align: center;
160
- width: 40px;
161
- height: 40px;
162
- position: absolute;
163
- cursor: pointer;
164
- font-size: 15px;
165
- }
166
-
167
- .timepicker-tick.active,
168
- .timepicker-tick:hover {
169
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
170
- }
171
-
172
- .timepicker-dial {
173
- transition: transform 350ms, opacity 350ms;
174
- }
175
-
176
- .timepicker-dial-out {
177
- opacity: 0;
178
-
179
- &.timepicker-hours {
180
- transform: scale(1.1, 1.1);
181
- }
182
-
183
- &.timepicker-minutes {
184
- transform: scale(.8, .8);
185
- }
186
- }
187
-
188
- .timepicker-canvas {
189
- transition: opacity 175ms;
190
-
191
- line {
192
- stroke: var(--md-sys-color-primary);
193
- stroke-width: 4;
194
- stroke-linecap: round;
195
- }
196
- }
197
-
198
- .timepicker-canvas-out {
199
- opacity: 0.25;
200
- }
201
-
202
- .timepicker-canvas-bearing {
203
- stroke: none;
204
- fill: var(--md-sys-color-primary);
205
- }
206
-
207
- .timepicker-canvas-bg {
208
- stroke: none;
209
- fill: var(--md-sys-color-primary);
210
- }
211
-
212
-
213
- /* Footer */
214
- .timepicker-footer {
215
- margin: 0 auto;
216
- padding: 5px 1rem;
217
- display: flex;
218
- justify-content: space-between;
219
- }
220
-
221
- .timepicker-clear {
222
- color: var(--md-sys-color-error);
223
- }
224
-
225
- .timepicker-close {
226
- color: var(--md-sys-color-primary);
227
- }
228
-
229
- .timepicker-clear,
230
- .timepicker-close {
231
- padding: 0 20px;
232
- }
233
-
234
- /* Media Queries */
235
- @media #{$large-and-up} {
236
- .timepicker-container {
237
- width: auto;
238
- max-width: 620px;
239
- }
240
-
241
- .timepicker-container {
242
- flex-direction: row;
243
- }
244
-
245
- .timepicker-digital-display {
246
- padding: .67rem;
247
- }
248
-
249
- .timepicker-text-container {
250
- /*top: 31%;*/
251
- flex-direction: column;
252
- margin-top: 4.8rem;
253
- text-align: center;
254
- }
255
-
256
- .timepicker-display-column {
257
- padding: 0 3%;
258
- }
259
-
260
- .timepicker-display-am-pm {
261
- margin-top: 1.1rem;
262
- }
263
-
264
- .timepicker-span-am-pm {
265
- display: flex;
266
- flex-grow: 1;
267
- max-width: unset;
268
- }
269
-
270
- .timepicker-container .am-btn,
271
- .timepicker-container .pm-btn {
272
- flex-grow: 1;
273
- /*width: auto;*/
274
- padding-left: calc(var(--btn-padding) / .565);
275
- padding-right: calc(var(--btn-padding) / .565);
276
- border-radius: var(--btn-border-radius);
277
- border: 1px solid var(--md-sys-color-outline);
278
- }
279
-
280
- .timepicker-container .am-btn {
281
- border-top-right-radius: 0;
282
- border-bottom-right-radius: 0;
283
- }
284
-
285
- .timepicker-container .pm-btn {
286
- border-left: 0;
287
- border-bottom-left-radius: 0;
288
- border-top-left-radius: 0;
289
- }
290
-
291
- .timepicker-plate {
292
- margin-top: 1.6rem;
293
- }
294
- }
@@ -1,68 +0,0 @@
1
- @use './variables' as *;
2
- @use './global' as *;
3
-
4
- #toast-container {
5
- display:block;
6
- position: fixed;
7
- z-index: 10000;
8
-
9
- @media #{$small-and-down} {
10
- min-width: 100%;
11
- bottom: 0%;
12
- }
13
- @media #{$medium-only} {
14
- left: 5%;
15
- bottom: 7%;
16
- max-width: 90%;
17
- }
18
- @media #{$large-and-up} {
19
- top: 10%;
20
- right: 7%;
21
- max-width: 86%;
22
- }
23
- }
24
-
25
- .toast {
26
- @extend .z-depth-3;
27
- border-radius: 4px;
28
- top: 35px;
29
- width: auto;
30
- margin-top: 10px;
31
- position: relative;
32
- max-width: 100%;
33
- height: auto;
34
- min-height: 48px;
35
-
36
- //line-height: 1.5em;
37
- //padding: 10px 25px;
38
- padding-left: 16px;
39
- padding-right: 12px;
40
-
41
- font-size: 14px;
42
- font-weight: 500;
43
- line-height: 20px;
44
-
45
- color: var(--md-sys-color-inverse-on-surface);
46
- background-color: var(--md-sys-color-inverse-surface);
47
-
48
- display: flex;
49
- align-items: center;
50
- justify-content: space-between;
51
- cursor: default;
52
-
53
- .toast-action {
54
- color: var(--md-sys-color-inverse-primary);
55
- font-weight: 500;
56
- margin-right: -25px;
57
- margin-left: 3rem;
58
- }
59
-
60
- &.rounded{
61
- border-radius: 24px;
62
- }
63
-
64
- @media #{$small-and-down} {
65
- width: 100%;
66
- border-radius: 0;
67
- }
68
- }
@@ -1,40 +0,0 @@
1
- .material-tooltip {
2
- padding: 0 8px;
3
- border-radius: 4px;
4
- color: var(--md-sys-color-inverse-on-surface);
5
- background-color: var(--md-sys-color-inverse-surface);
6
- font-family: var(--md-sys-typescale-body-small-font-family-name);
7
- font-size: var(--md-sys-typescale-body-small-font-size);
8
- line-height: var(--md-sys-typescale-body-small-line-height);
9
- font-weight: var(--md-sys-typescale-body-small-font-weight);
10
- min-height: 24px;
11
- opacity: 0;
12
- padding-top: 6px;
13
- padding-bottom: 6px;
14
- font-size: 12px;
15
- line-height: 16px;
16
- font-weight: 400;
17
- letter-spacing: 0.4px;
18
- position: absolute;
19
- max-width: 300px;
20
- overflow: hidden;
21
- left: 0;
22
- top: 0;
23
- pointer-events: none;
24
- display: flex;
25
- align-items: center;
26
- visibility: hidden;
27
- z-index: 2000;
28
- }
29
-
30
- .backdrop {
31
- position: absolute;
32
- opacity: 0;
33
- height: 7px;
34
- width: 14px;
35
- border-radius: 0 0 50% 50%;
36
- background-color: var(--md-sys-color-inverse-surface);
37
- z-index: -1;
38
- transform-origin: 50% 0;
39
- visibility: hidden;
40
- }
@@ -1,12 +0,0 @@
1
- .scale-transition {
2
- transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
3
-
4
- &.scale-out {
5
- transform: scale(0);
6
- transition: transform .2s !important;
7
- }
8
-
9
- &.scale-in {
10
- transform: scale(1);
11
- }
12
- }