@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,78 +0,0 @@
1
- [popover] {
2
- outline: none;
3
- padding: 0;
4
- border: none;
5
- }
6
-
7
- .dropdown-content {
8
- padding-left: 0;
9
- list-style-type: none;
10
- @extend .z-depth-1;
11
- background-color: var(--md-sys-color-surface);
12
- margin: 0;
13
- display: none;
14
- min-width: 100px;
15
- overflow-y: auto;
16
- opacity: 0;
17
- position: absolute;
18
- left: 0;
19
- top: 0;
20
- z-index: 9999; // TODO: Check if this doesn't break other things
21
- transform-origin: 0 0;
22
- user-select: none;
23
-
24
- li {
25
- &.divider {
26
- min-height: 0;
27
- height: 1px;
28
- }
29
- & > a, & > span {
30
- font-size: 16px;
31
- color: var(--md-sys-color-primary);
32
- display: block;
33
- line-height: 22px;
34
- padding: (($dropdown-item-height - 22) * 0.5) 16px;
35
- }
36
- & > span > label {
37
- top: 1px;
38
- left: 0;
39
- height: 18px;
40
- }
41
- // Icon alignment override
42
- & > a > i {
43
- height: inherit;
44
- line-height: inherit;
45
- float: left;
46
- margin: 0 24px 0 0;
47
- width: 24px;
48
- }
49
- clear: both;
50
- color: var(--md-sys-color-on-background);
51
- cursor: pointer;
52
- min-height: $dropdown-item-height;
53
- line-height: 1.5rem;
54
- width: 100%;
55
- text-align: left;
56
- }
57
- li:not(.disabled):hover, li.active {
58
- background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-on-surface) 8%);
59
- }
60
- }
61
-
62
- body.keyboard-focused {
63
- .dropdown-content li:focus {
64
- background-color: rgba(0, 0, 0, 0.12);
65
- }
66
- }
67
-
68
- // Input field specificity bugfix
69
- .input-field.col .dropdown-content [type="checkbox"] + label {
70
- top: 1px;
71
- left: 0;
72
- height: 18px;
73
- transform: none;
74
- }
75
-
76
- .dropdown-trigger {
77
- cursor: pointer;
78
- }
@@ -1,6 +0,0 @@
1
- /* This is needed for some mobile phones to display the Google Icon font properly */
2
- .material-icons, .material-symbols-outlined,
3
- .material-symbols-rounded, .material-symbols-sharp {
4
- text-rendering: optimizeLegibility;
5
- font-feature-settings: 'liga';
6
- }
@@ -1,43 +0,0 @@
1
- .materialboxed {
2
- &:hover {
3
- &:not(.active) {
4
- opacity: .8;
5
- }
6
- }
7
-
8
- display: block;
9
- cursor: zoom-in;
10
- position: relative;
11
- transition: opacity .4s;
12
- -webkit-backface-visibility: hidden;
13
-
14
- &.active {
15
- cursor: zoom-out;
16
- }
17
- }
18
-
19
- #materialbox-overlay {
20
- position:fixed;
21
- top: 0;
22
- right: 0;
23
- bottom: 0;
24
- left: 0;
25
- background-color: var(--md-sys-color-background);
26
- z-index: 1000;
27
- will-change: opacity;
28
- }
29
-
30
- .materialbox-caption {
31
- position: fixed;
32
- display: none;
33
- color: var(--md-sys-color-on-background);
34
- line-height: 50px;
35
- bottom: 0;
36
- left: 0;
37
- width: 100%;
38
- text-align: center;
39
- padding: 0% 15%;
40
- height: 50px;
41
- z-index: 1000;
42
- -webkit-font-smoothing: antialiased;
43
- }
@@ -1,68 +0,0 @@
1
- // use with dialog html element
2
- .modal {
3
- --modal-footer-divider-height: 1px;
4
- --modal-border-radius: 28px;
5
- --modal-padding: 24px;
6
- --modal-padding-bottom: 16px;
7
-
8
- @extend .z-depth-5;
9
- border: none;
10
- outline: none;
11
- padding: 0;
12
- max-height: 70%;
13
- width: 55%;
14
- border-radius: var(--modal-border-radius);
15
- will-change: top, opacity;
16
-
17
- // Dialog open
18
- &[open] {
19
- display: flex;
20
- flex-direction: column;
21
- }
22
-
23
- // Background
24
- background-color: color-mix(in srgb, var(--md-sys-color-surface), var(--md-sys-color-surface-tint) 17%);
25
-
26
- @media #{$medium-and-down} {
27
- width: 80%;
28
- }
29
-
30
- // custom backdrop blur
31
- &::backdrop {
32
- backdrop-filter: blur(1px);
33
- }
34
-
35
- .modal-header {
36
- padding: var(--modal-padding);
37
- padding-bottom: var(--modal-padding-bottom);
38
- flex-shrink: 0;
39
- }
40
- .modal-content {
41
- padding: 0 var(--modal-padding);
42
- overflow-y: auto;
43
- }
44
- .modal-footer {
45
- border-radius: 0 0 var(--modal-border-radius) var(--modal-border-radius);
46
- padding: var(--modal-padding);
47
- text-align: right;
48
- flex-shrink: 0;
49
- }
50
-
51
- .modal-close {
52
- cursor: pointer;
53
- }
54
-
55
- // todo: remove maybe
56
- h1,h2,h3,h4,h5,h6 {
57
- margin: 0;
58
- }
59
- }
60
-
61
- // Modal Bottom Sheet Style
62
- .modal.bottom-sheet {
63
- margin-bottom: 0;
64
- max-height: 45%;
65
- border-bottom-left-radius: 0;
66
- border-bottom-right-radius: 0;
67
- will-change: bottom, opacity;
68
- }
@@ -1,231 +0,0 @@
1
- // TODO: Make better wrapper class like .navbar
2
- :root {
3
- --navbar-height: 64px;
4
- --navbar-height-mobile: 56px;
5
- }
6
-
7
- nav {
8
- &.nav-extended {
9
- height: auto;
10
-
11
- .nav-wrapper {
12
- min-height: var(--navbar-height-mobile);
13
- height: auto;
14
- }
15
-
16
- .nav-content {
17
- position: relative;
18
- line-height: normal;
19
- }
20
- }
21
-
22
- color: var(--md-sys-color-on-primary);
23
- @extend .z-depth-1;
24
- background-color: var(--md-sys-color-secondary-container);
25
-
26
- width: 100%;
27
- height: var(--navbar-height-mobile);
28
- line-height: var(--navbar-height-mobile);
29
-
30
- a {
31
- color: var(--md-sys-color-on-primary);
32
- }
33
-
34
- i,
35
- [class^="mdi-"], [class*="mdi-"],
36
- i.material-icons, i.material-symbols-outlined,
37
- i.material-symbols-rounded, i.material-symbols-sharp {
38
- display: block;
39
- font-size: 24px;
40
- height: var(--navbar-height-mobile);
41
- line-height: var(--navbar-height-mobile);
42
- }
43
-
44
- .nav-wrapper {
45
- position: relative;
46
- height: 100%;
47
- }
48
-
49
- @media #{$large-and-up} {
50
- a.sidenav-trigger {
51
- display: none;
52
- }
53
- }
54
-
55
- // Collapse button
56
- .sidenav-trigger {
57
- float: left;
58
- position: relative;
59
- z-index: 1;
60
- height: var(--navbar-height-mobile);
61
- margin: 0 18px;
62
-
63
- i {
64
- height: var(--navbar-height-mobile);
65
- line-height: var(--navbar-height-mobile);
66
- }
67
- }
68
-
69
- // Logo
70
- .brand-logo {
71
- position: absolute;
72
- color: var(--md-sys-color-on-primary);
73
- display: inline-block;
74
- font-size: 2.1rem;
75
- padding: 0;
76
-
77
- &.center {
78
- left: 50%;
79
- transform: translateX(-50%);
80
- }
81
-
82
- @media #{$medium-and-down} {
83
- left: 50%;
84
- transform: translateX(-50%);
85
-
86
- &.left, &.right {
87
- padding: 0;
88
- transform: none;
89
- }
90
-
91
- &.left {
92
- left: 0.5rem;
93
- }
94
- &.right {
95
- right: 0.5rem;
96
- left: auto;
97
- }
98
- }
99
-
100
- &.right {
101
- right: 0.5rem;
102
- padding: 0;
103
- }
104
-
105
- i,
106
- [class^="mdi-"], [class*="mdi-"],
107
- i.material-icons, i.material-symbols-outlined,
108
- i.material-symbols-rounded, i.material-symbols-sharp {
109
- float: left;
110
- margin-right: 15px;
111
- }
112
- }
113
-
114
-
115
- // Title
116
- .nav-title {
117
- display: inline-block;
118
- font-size: 32px;
119
- padding: 28px 0;
120
- }
121
-
122
-
123
- // Navbar Links
124
- ul:not(.dropdown-content) {
125
- list-style-type: none;
126
- margin: 0;
127
-
128
- & > li {
129
- transition: background-color .3s;
130
- float: left;
131
- padding: 0;
132
-
133
- & > a {
134
- transition: background-color .3s;
135
- font-size: 1rem;
136
- color: var(--md-sys-color-on-primary);
137
- display: block;
138
- padding: 0 15px;
139
- cursor: pointer;
140
-
141
- &.active {
142
- background-color: var(--md-ref-palette-primary80);
143
- }
144
-
145
- &:hover:not(.active) {
146
- background-color: var(--md-ref-palette-primary70);
147
- }
148
-
149
- &.btn, &.btn-large, &.btn-flat, &.btn-floating {
150
- margin-top: -2px;
151
- margin-left: 15px;
152
- margin-right: 15px;
153
- display: inline-block;
154
-
155
- & > .material-icons, & > .material-symbols-outlined,
156
- & > .material-symbols-rounded, & > .material-symbols-sharp {
157
- height: inherit;
158
- line-height: inherit;
159
- }
160
- }
161
- }
162
- }
163
-
164
- &.left {
165
- float: left;
166
- }
167
- }
168
-
169
- // Navbar Search Form
170
- form {
171
- height: 100%;
172
- }
173
-
174
- .input-field {
175
- margin: 0;
176
- height: 100%;
177
-
178
- input[type=search] {
179
- height: 100%;
180
- font-size: 1.2rem;
181
- border: none;
182
- padding-left: 2rem;
183
- color: var(--md-sys-color-on-primary);
184
-
185
- &:focus, &[type=text]:valid, &[type=password]:valid,
186
- &[type=email]:valid, &[type=url]:valid, &[type=date]:valid {
187
- border: none;
188
- box-shadow: none;
189
- }
190
- }
191
-
192
- label {
193
- top: 0;
194
- left: 0;
195
-
196
- i {
197
- color: var(--font-on-primary-color-medium);
198
- transition: color .3s;
199
- }
200
-
201
- &.active i {
202
- color: var(--md-sys-color-on-primary)
203
- }
204
- }
205
- }
206
- }
207
-
208
- // Fixed Navbar
209
- .navbar-fixed {
210
- position: relative;
211
- height: var(--navbar-height-mobile);
212
- z-index: 997;
213
-
214
- nav {
215
- position: fixed;
216
- right: 0;
217
- }
218
- }
219
-
220
- @media #{$medium-and-up} {
221
- nav.nav-extended .nav-wrapper {
222
- min-height: var(--navbar-height-mobile);
223
- }
224
- nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {
225
- height: var(--navbar-height);
226
- line-height: var(--navbar-height)
227
- }
228
- .navbar-fixed {
229
- height: var(--navbar-height);
230
- }
231
- }