@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,121 +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
- cursor: pointer;
107
- background-color: var(--md-sys-color-shadow-light);
108
-
109
- transition: background-color .3s;
110
- border-radius: 50%;
111
- border-width: 0;
112
-
113
- &.active {
114
- background-color: var(--md-sys-color-primary);
115
- }
116
-
117
- width: 100%;
118
- height: 100%;
119
- }
120
- }
121
- }
@@ -1,155 +0,0 @@
1
- .tabs {
2
- padding-left: 0;
3
- list-style-type: none;
4
-
5
- &.tabs-transparent {
6
- background-color: transparent;
7
-
8
- .tab a {
9
- color: var(--font-on-primary-color-medium);
10
- }
11
-
12
- .tab.disabled a,
13
- .tab.disabled a:hover,
14
- .tab.disabled a:focus {
15
- color: rgba(255, 255, 255, 0.38);
16
- }
17
-
18
- .tab a:hover {
19
- background-color: rgba(0, 0, 0, 0.04);
20
- }
21
-
22
- .tab a.active,
23
- .tab a:focus {
24
- background-color: transparent;
25
- }
26
-
27
- .tab a:hover,
28
- .tab a.active,
29
- .tab a:focus {
30
- color: var(--md-sys-color-on-primary);
31
- }
32
-
33
- .indicator {
34
- background-color: var(--md-sys-color-on-primary);
35
- }
36
- }
37
-
38
- &.tabs-fixed-width {
39
- display: flex;
40
- .tab {
41
- flex-grow: 1;
42
- }
43
- }
44
-
45
- position: relative;
46
- overflow-x: auto;
47
- overflow-y: hidden;
48
- width: 100%;
49
- background-color: var(--md-sys-color-surface);
50
- margin: 0 auto;
51
- white-space: nowrap;
52
-
53
- .tab {
54
- padding-left: 0;
55
- list-style-type: none;
56
- display: inline-block;
57
- text-align: center;
58
- line-height: 48px;
59
- padding: 0;
60
- margin: 0;
61
-
62
- i.material-icons {
63
- position: relative;
64
- top: 8px;
65
- vertical-align: middle;
66
- }
67
-
68
- span {
69
- height: 24px;
70
- line-height: 20px;
71
- }
72
-
73
- a {
74
- &.active {
75
- background-color: transparent;
76
- }
77
-
78
- &.active,
79
- &:focus,
80
- &:hover {
81
- color: var(--md-sys-color-primary);
82
- }
83
-
84
- &:hover {
85
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
86
- }
87
-
88
- &:focus,
89
- &.active {
90
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
91
- outline: none;
92
- }
93
-
94
- color: var(--md-sys-color-on-surface-variant);
95
- display: flex;
96
- flex-direction: column;
97
- width: 100%;
98
- height: 100%;
99
- min-height: 48px; //needed for only-icons tabs
100
- padding: 0 24px;
101
- font-size: 14px;
102
- text-overflow: ellipsis;
103
- overflow: hidden;
104
- transition: color .28s ease, background-color .28s ease;
105
- }
106
-
107
- &.disabled a,
108
- &.disabled a:hover {
109
- &:not(:focus) {
110
- background-color: transparent;
111
- }
112
- color: var(--md-sys-color-on-surface);
113
- cursor: default;
114
- background-color: transparent;
115
- }
116
- }
117
-
118
- .indicator {
119
- position: absolute;
120
- bottom: 0;
121
- height: 3px;
122
- background-color: var(--md-sys-color-primary);
123
- will-change: left, right;
124
- border-radius: 3px 3px 0 0;
125
- }
126
-
127
- &.tabs-horizontal .tab {
128
- height: 48px;
129
-
130
- a {
131
- display: block;
132
- }
133
-
134
- i.material-icons {
135
- padding: 0 4px;
136
- position: relative;
137
- top: -2px;
138
- vertical-align: middle;
139
- }
140
- }
141
- }
142
-
143
- /* Fixed Sidenav hide on smaller */
144
-
145
- @media #{$medium-and-down} {
146
- .tabs {
147
- display: flex;
148
- .tab {
149
- flex-grow: 1;
150
- a {
151
- padding: 0 12px;
152
- }
153
- }
154
- }
155
- }
@@ -1,279 +0,0 @@
1
- /* Timepicker Containers */
2
- .timepicker-modal {
3
- max-width: 325px;
4
- max-height: none;
5
- }
6
-
7
- .timepicker-container.modal-content {
8
- display: flex;
9
- flex-direction: column;
10
- padding: 0;
11
- }
12
-
13
- .text-primary {
14
- color: var(--md-sys-color-on-primary);
15
- }
16
-
17
-
18
- /* Clock Digital Display */
19
- .timepicker-digital-display {
20
- width: auto;
21
- flex: 1 auto;
22
- background-color: var(--md-sys-color-primary);;
23
- padding: 2rem .67rem .67rem .67rem;
24
- font-weight: 300;
25
- }
26
-
27
- .timepicker-text-container {
28
- font-size: 4rem;
29
- text-align: left;
30
- color: var(--font-on-primary-color-medium);
31
- font-weight: 400;
32
- position: relative;
33
- user-select: none;
34
- padding: 1rem 1rem 1.5rem 1rem;
35
-
36
- input[type=text]{
37
- height: 4rem;
38
- color: var(--md-sys-color-secondary);
39
- border-bottom: 0px;
40
- font-size: 4rem;
41
- direction: ltr;
42
- }
43
- }
44
-
45
- .timepicker-display-column {
46
- display: inline-flex;
47
- }
48
-
49
- .timepicker-input-hours-wrapper,
50
- .timepicker-input-minutes-wrapper {
51
- width: 6.9rem;
52
- height: 5.2rem;
53
- }
54
-
55
- .timepicker-input-hours,
56
- .timepicker-input-minutes,
57
- .timepicker-span-am-pm div {
58
- cursor: pointer;
59
- }
60
-
61
- input[type=text].timepicker-input-hours,
62
- input[type=text].timepicker-input-minutes {
63
- height: 100%;
64
- padding: .8rem;
65
- border: 0;
66
- text-align: center;
67
- }
68
-
69
- .timepicker-input-divider-wrapper {
70
- width: 1.6rem;
71
- text-align: center;
72
- }
73
-
74
- input[type=text].text-primary {
75
- color: var(--md-sys-color-on-background);
76
- }
77
-
78
- .timepicker-display-am-pm {
79
- font-size: 1.3rem;
80
- position: absolute;
81
- top: 1rem;
82
- right: 1rem;
83
- font-weight: 400;
84
- }
85
-
86
- .timepicker-span-am-pm {
87
- height: 5.2rem;
88
- max-width: 3.5rem;
89
- }
90
-
91
- .timepicker-modal .am-btn,
92
- .timepicker-modal .pm-btn {
93
- width: 3.6rem;
94
- height: 50%;
95
- padding-left: calc(var(--btn-padding) / 1.6);
96
- padding-right: calc(var(--btn-padding) / 1.6);
97
- line-height: 2rem;
98
- vertical-align: middle;
99
- text-align: center;
100
- background-color: transparent;
101
- border: 1px solid var(--md-sys-color-outline);
102
- }
103
-
104
- .timepicker-modal .am-btn {
105
- border-bottom-right-radius: 0;
106
- border-bottom-left-radius: 0;
107
- }
108
-
109
- .timepicker-modal .pm-btn {
110
- border-top: 0;
111
- border-top-left-radius: 0;
112
- border-top-right-radius: 0;
113
- }
114
-
115
- /* Analog Clock Display */
116
- .timepicker-analog-display {
117
- flex: 2.5 auto;
118
- padding: .67rem;
119
- background-color: var(--md-sys-color-surface);
120
- }
121
-
122
- .timepicker-plate {
123
- background-color: rgba(0, 0, 0, 0.09);
124
- border-radius: 50%;
125
- width: 260px;
126
- height: 260px;
127
- overflow: visible;
128
- position: relative;
129
- margin: 2rem 1.6rem 1.6rem 1.6rem;
130
- user-select: none;
131
- }
132
-
133
- .timepicker-canvas,
134
- .timepicker-dial {
135
- position: absolute;
136
- left: 0;
137
- right: 0;
138
- top: 0;
139
- bottom: 0;
140
- }
141
-
142
- .timepicker-minutes {
143
- visibility: hidden;
144
- }
145
-
146
- .timepicker-tick {
147
- border-radius: 50%;
148
- color: var(--md-sys-color-on-background);
149
- line-height: 40px;
150
- text-align: center;
151
- width: 40px;
152
- height: 40px;
153
- position: absolute;
154
- cursor: pointer;
155
- font-size: 15px;
156
- }
157
-
158
- .timepicker-tick.active,
159
- .timepicker-tick:hover {
160
- background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
161
- }
162
-
163
- .timepicker-dial {
164
- transition: transform 350ms, opacity 350ms;
165
- }
166
-
167
- .timepicker-dial-out {
168
- &.timepicker-hours {
169
- transform: scale(1.1, 1.1);
170
- }
171
-
172
- &.timepicker-minutes {
173
- transform: scale(.8, .8);
174
- }
175
-
176
- opacity: 0;
177
- }
178
-
179
- .timepicker-canvas {
180
- transition: opacity 175ms;
181
-
182
- line {
183
- stroke: var(--md-sys-color-primary);
184
- stroke-width: 4;
185
- stroke-linecap: round;
186
- }
187
- }
188
-
189
- .timepicker-canvas-out {
190
- opacity: 0.25;
191
- }
192
-
193
- .timepicker-canvas-bearing {
194
- stroke: none;
195
- fill: var(--md-sys-color-primary);
196
- }
197
-
198
- .timepicker-canvas-bg {
199
- stroke: none;
200
- fill: var(--md-sys-color-primary);
201
- }
202
-
203
-
204
- /* Footer */
205
- .timepicker-footer {
206
- margin: 0 auto;
207
- padding: 5px 1rem;
208
- display: flex;
209
- justify-content: space-between;
210
- }
211
-
212
- .timepicker-clear {
213
- color: var(--md-sys-color-error);
214
- }
215
-
216
- .timepicker-close {
217
- color: var(--md-sys-color-primary);
218
- }
219
-
220
- .timepicker-clear,
221
- .timepicker-close {
222
- padding: 0 20px;
223
- }
224
-
225
- /* Media Queries */
226
- @media #{$large-and-up} {
227
- .timepicker-modal {
228
- width: auto;
229
- max-width: 620px;
230
- }
231
-
232
- .timepicker-container.modal-content {
233
- flex-direction: row;
234
- }
235
-
236
- .timepicker-digital-display {
237
- padding: .67rem;
238
- }
239
-
240
- .timepicker-text-container {
241
- top: 31%;
242
- text-align: center;
243
- }
244
-
245
- .timepicker-display-am-pm {
246
- position: relative;
247
- top: auto;
248
- right: auto;
249
- text-align: center;
250
- margin-top: 1.2rem;
251
- }
252
-
253
- .timepicker-span-am-pm {
254
- max-width: unset;
255
- }
256
-
257
- .timepicker-modal .am-btn,
258
- .timepicker-modal .pm-btn {
259
- width: auto;
260
- padding-left: var(--btn-padding);
261
- padding-right: var(--btn-padding);
262
- border-radius: var(--btn-border-radius);
263
- border: 1px solid var(--md-sys-color-outline);
264
- line-height: inherit;
265
- vertical-align: top;
266
- text-align: inherit;
267
- }
268
-
269
- .timepicker-modal .am-btn {
270
- border-top-right-radius: 0;
271
- border-bottom-right-radius: 0;
272
- }
273
-
274
- .timepicker-modal .pm-btn {
275
- border-left: 0;
276
- border-bottom-left-radius: 0;
277
- border-top-left-radius: 0;
278
- }
279
- }
@@ -1,65 +0,0 @@
1
- #toast-container {
2
- display:block;
3
- position: fixed;
4
- z-index: 10000;
5
-
6
- @media #{$small-and-down} {
7
- min-width: 100%;
8
- bottom: 0%;
9
- }
10
- @media #{$medium-only} {
11
- left: 5%;
12
- bottom: 7%;
13
- max-width: 90%;
14
- }
15
- @media #{$large-and-up} {
16
- top: 10%;
17
- right: 7%;
18
- max-width: 86%;
19
- }
20
- }
21
-
22
- .toast {
23
- @extend .z-depth-3;
24
- border-radius: 4px;
25
- top: 35px;
26
- width: auto;
27
- margin-top: 10px;
28
- position: relative;
29
- max-width: 100%;
30
- height: auto;
31
- min-height: 48px;
32
-
33
- //line-height: 1.5em;
34
- //padding: 10px 25px;
35
- padding-left: 16px;
36
- padding-right: 12px;
37
-
38
- font-size: 14px;
39
- font-weight: 500;
40
- line-height: 20px;
41
-
42
- color: var(--md-sys-color-inverse-on-surface);
43
- background-color: var(--md-sys-color-inverse-surface);
44
-
45
- display: flex;
46
- align-items: center;
47
- justify-content: space-between;
48
- cursor: default;
49
-
50
- .toast-action {
51
- color: var(--md-sys-color-inverse-primary);
52
- font-weight: 500;
53
- margin-right: -25px;
54
- margin-left: 3rem;
55
- }
56
-
57
- &.rounded{
58
- border-radius: 24px;
59
- }
60
-
61
- @media #{$small-and-down} {
62
- width: 100%;
63
- border-radius: 0;
64
- }
65
- }
@@ -1,48 +0,0 @@
1
- .material-tooltip {
2
- padding: 0 8px;
3
- border-radius: 4px;
4
-
5
- color: var(--md-sys-color-inverse-on-surface);
6
- background-color: var(--md-sys-color-inverse-surface);
7
-
8
- font-family: var(--md-sys-typescale-body-small-font-family-name);
9
- font-size: var(--md-sys-typescale-body-small-font-size);
10
- line-height: var(--md-sys-typescale-body-small-line-height);
11
- font-weight: var(--md-sys-typescale-body-small-font-weight);
12
-
13
- min-height: 24px;
14
- opacity: 0;
15
-
16
- padding-top: 6px;
17
- padding-bottom: 6px;
18
-
19
- font-size: 12px;
20
- line-height: 16px;
21
- font-weight: 400;
22
- letter-spacing: 0.4px;
23
-
24
- position: absolute;
25
- max-width: 300px;
26
- overflow: hidden;
27
- left: 0;
28
- top: 0;
29
- pointer-events: none;
30
-
31
- display: flex;
32
- align-items: center;
33
-
34
- visibility: hidden;
35
- z-index: 2000;
36
- }
37
-
38
- .backdrop {
39
- position: absolute;
40
- opacity: 0;
41
- height: 7px;
42
- width: 14px;
43
- border-radius: 0 0 50% 50%;
44
- background-color: var(--md-sys-color-inverse-surface);
45
- z-index: -1;
46
- transform-origin: 50% 0;
47
- visibility: hidden;
48
- }
@@ -1,13 +0,0 @@
1
- // Scale transition
2
- .scale-transition {
3
- &.scale-out {
4
- transform: scale(0);
5
- transition: transform .2s !important;
6
- }
7
-
8
- &.scale-in {
9
- transform: scale(1);
10
- }
11
-
12
- transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
13
- }