@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,62 +1,58 @@
1
-
2
- @use "sass:math";
3
- @use './variables' as *;
4
-
5
- a {
6
- text-decoration: none;
7
- }
8
-
9
- html{
10
- // line-height: 1.5;
11
- font-family: $font-stack;
12
- font-weight: normal;
13
- color: $text-color;
14
-
15
- @media only screen and (min-width: 0) {
16
- font-size: 14px;
17
- }
18
-
19
- @media only screen and (min-width: $medium-screen-up) {
20
- font-size: 14.5px;
21
- }
22
-
23
- @media only screen and (min-width: $large-screen-up) {
24
- font-size: 15px;
25
- }
26
- }
27
-
28
- h1, h2, h3, h4, h5, h6 {
29
- font-weight: 400;
30
- line-height: 1.3;
31
- }
32
-
33
- // Header Styles
34
- h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
35
- h1 { font-size: $h1-fontsize; line-height: 110%; margin: math.div($h1-fontsize, 1.5) 0 math.div($h1-fontsize, 2.5) 0;}
36
- h2 { font-size: $h2-fontsize; line-height: 110%; margin: math.div($h2-fontsize, 1.5) 0 math.div($h2-fontsize, 2.5) 0;}
37
- h3 { font-size: $h3-fontsize; line-height: 110%; margin: math.div($h3-fontsize, 1.5) 0 math.div($h3-fontsize, 2.5) 0;}
38
- h4 { font-size: $h4-fontsize; line-height: 110%; margin: math.div($h4-fontsize, 1.5) 0 math.div($h4-fontsize, 2.5) 0;}
39
- h5 { font-size: $h5-fontsize; line-height: 110%; margin: math.div($h5-fontsize, 1.5) 0 math.div($h5-fontsize, 2.5) 0;}
40
- h6 { font-size: $h6-fontsize; line-height: 110%; margin: math.div($h6-fontsize, 1.5) 0 math.div($h6-fontsize, 2.5) 0;}
41
-
42
- // Text Styles
43
- em { font-style: italic; }
44
- strong { font-weight: 500; }
45
- small { font-size: 75%; }
46
- .light { font-weight: 300; }
47
- .thin { font-weight: 200; }
48
-
49
- .flow-text{
50
- $i: 0;
51
- @while $i <= $intervals {
52
- @media only screen and (min-width : (360 + ($i * $interval-size))) {
53
- font-size: 1.2rem * (1 + (.02 * $i));
54
- }
55
- $i: $i + 1;
56
- }
57
-
58
- // Handle below 360px screen
59
- @media only screen and (max-width: 360px) {
60
- font-size: 1.2rem;
61
- }
62
- }
1
+ @use "sass:math";
2
+ @use './variables' as *;
3
+
4
+ a {
5
+ text-decoration: none;
6
+ }
7
+
8
+ html{
9
+ // line-height: 1.5;
10
+ font-family: $font-stack;
11
+ font-weight: normal;
12
+ color: $text-color;
13
+ @media only screen and (min-width: 0) {
14
+ font-size: 14px;
15
+ }
16
+ @media only screen and (min-width: $medium-screen-up) {
17
+ font-size: 14.5px;
18
+ }
19
+ @media only screen and (min-width: $large-screen-up) {
20
+ font-size: 15px;
21
+ }
22
+ }
23
+
24
+ h1, h2, h3, h4, h5, h6 {
25
+ font-weight: 400;
26
+ line-height: 1.3;
27
+ }
28
+
29
+ // Header Styles
30
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
31
+ h1 { font-size: $h1-fontsize; line-height: 110%; margin: math.div($h1-fontsize, 1.5) 0 math.div($h1-fontsize, 2.5) 0;}
32
+ h2 { font-size: $h2-fontsize; line-height: 110%; margin: math.div($h2-fontsize, 1.5) 0 math.div($h2-fontsize, 2.5) 0;}
33
+ h3 { font-size: $h3-fontsize; line-height: 110%; margin: math.div($h3-fontsize, 1.5) 0 math.div($h3-fontsize, 2.5) 0;}
34
+ h4 { font-size: $h4-fontsize; line-height: 110%; margin: math.div($h4-fontsize, 1.5) 0 math.div($h4-fontsize, 2.5) 0;}
35
+ h5 { font-size: $h5-fontsize; line-height: 110%; margin: math.div($h5-fontsize, 1.5) 0 math.div($h5-fontsize, 2.5) 0;}
36
+ h6 { font-size: $h6-fontsize; line-height: 110%; margin: math.div($h6-fontsize, 1.5) 0 math.div($h6-fontsize, 2.5) 0;}
37
+
38
+ // Text Styles
39
+ em { font-style: italic; }
40
+ strong { font-weight: 500; }
41
+ small { font-size: 75%; }
42
+ .light { font-weight: 300; }
43
+ .thin { font-weight: 200; }
44
+
45
+ .flow-text{
46
+ $i: 0;
47
+ @while $i <= $intervals {
48
+ @media only screen and (min-width : (360 + ($i * $interval-size))) {
49
+ font-size: 1.2rem * (1 + (.02 * $i));
50
+ }
51
+ $i: $i + 1;
52
+ }
53
+
54
+ // Handle below 360px screen
55
+ @media only screen and (max-width: 360px) {
56
+ font-size: 1.2rem;
57
+ }
58
+ }
@@ -1,57 +1,56 @@
1
- // TypeScale
2
- $md_sys_typescale_body-large_size: 16px;
3
-
4
- @use "sass:math";
5
- @use "./_color-variables";
6
-
7
- // Colors
8
- $success-color: colorFunc("green", "base") !default;
9
- $link-color: colorFunc("light-blue", "darken-1") !default;
10
-
11
- // Floating buttons
12
- $button-floating-background: var(--md-sys-color-secondary) !default;
13
- $button-floating-background-hover: var(--md-ref-palette-secondary70) !default;
14
- $button-floating-background-focus: var(--md-ref-palette-secondary80) !default;
15
- $button-floating-color: var(--md-sys-color-on-secondary) !default;
16
- $button-floating-size: 40px !default;
17
- $button-floating-radius: 16px !default;
18
-
19
- // Dropdown
20
- $dropdown-item-height: 50px !default;
21
-
22
- // Media Query Ranges
23
- $small-screen-up: 601px !default;
24
- $medium-screen-up: 993px !default;
25
- $large-screen-up: 1201px !default;
26
- $small-screen: 600.99px !default;
27
- $medium-screen: 992.99px !default;
28
- $large-screen: 1200.99px !default;
29
-
30
- $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
31
- $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
32
- $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
33
- $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
34
- $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
35
- $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
36
-
37
- // Grid
38
- $num-cols: 12 !default;
39
- $gutter-width: 1.5rem !default;
40
- $element-top-margin: math.div($gutter-width, 3) !default;
41
- $element-bottom-margin: math.div($gutter-width * 2, 3) !default;
42
-
43
- // Typography
44
- $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
45
- $text-color: var(--md-sys-color-on-background) !default;
46
-
47
- // Header Styles
48
- $h1-fontsize: 4.2rem !default;
49
- $h2-fontsize: 3.56rem !default;
50
- $h3-fontsize: 2.92rem !default;
51
- $h4-fontsize: 2.28rem !default;
52
- $h5-fontsize: 1.64rem !default;
53
- $h6-fontsize: 1.15rem !default;
54
-
55
- // Flow Text
56
- $intervals: 20 !default;
57
- $interval-size: math.div($large-screen - $small-screen, $intervals) !default;
1
+ @use "sass:math";
2
+
3
+ // TypeScale
4
+ $md_sys_typescale_body-large_size: 16px;
5
+
6
+ // Colors
7
+ $success-color: colorFunc("green", "base") !default;
8
+ $link-color: colorFunc("light-blue", "darken-1") !default;
9
+
10
+ // Floating buttons
11
+ $button-floating-background: var(--md-sys-color-secondary) !default;
12
+ $button-floating-background-hover: var(--md-ref-palette-secondary70) !default;
13
+ $button-floating-background-focus: var(--md-ref-palette-secondary80) !default;
14
+ $button-floating-color: var(--md-sys-color-on-secondary) !default;
15
+ $button-floating-size: 40px !default;
16
+ $button-floating-radius: 16px !default;
17
+
18
+ // Dropdown
19
+ $dropdown-item-height: 50px !default;
20
+
21
+ // Media Query Ranges
22
+ $small-screen-up: 601px !default;
23
+ $medium-screen-up: 993px !default;
24
+ $large-screen-up: 1201px !default;
25
+ $small-screen: 600.99px !default;
26
+ $medium-screen: 992.99px !default;
27
+ $large-screen: 1200.99px !default;
28
+
29
+ $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
30
+ $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
31
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
32
+ $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
33
+ $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
34
+ $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
35
+
36
+ // Grid
37
+ $num-cols: 12 !default;
38
+ $gutter-width: 1.5rem !default;
39
+ $element-top-margin: math.div($gutter-width, 3) !default;
40
+ $element-bottom-margin: math.div($gutter-width * 2, 3) !default;
41
+
42
+ // Typography
43
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
44
+ $text-color: var(--md-sys-color-on-background) !default;
45
+
46
+ // Header Styles
47
+ $h1-fontsize: 4.2rem !default;
48
+ $h2-fontsize: 3.56rem !default;
49
+ $h3-fontsize: 2.92rem !default;
50
+ $h4-fontsize: 2.28rem !default;
51
+ $h5-fontsize: 1.64rem !default;
52
+ $h6-fontsize: 1.15rem !default;
53
+
54
+ // Flow Text
55
+ $intervals: 20 !default;
56
+ $interval-size: math.div($large-screen - $small-screen, $intervals) !default;
@@ -1,18 +1,19 @@
1
- @forward 'input-fields';
2
- @forward 'radio-buttons';
3
- @forward 'checkboxes';
4
- @forward 'switches';
5
- @forward 'select';
6
- @forward 'file-input';
7
- @forward 'range';
8
-
9
- // Remove Focus Boxes
10
- select:focus {
11
- outline: 1px solid var(--md-ref-palette-primary80);
12
- }
13
-
14
- label {
15
- font-size: .8rem;
16
- color: var(--md-sys-color-on-surface-variant);
17
- }
18
-
1
+ @forward 'input-fields';
2
+ @forward 'radio-buttons';
3
+ @forward 'checkboxes';
4
+ @forward 'switches';
5
+ @forward 'select';
6
+ @forward 'file-input';
7
+ @forward 'range';
8
+ @forward 'form-field';
9
+
10
+ // Remove Focus Boxes
11
+ select:focus {
12
+ outline: 1px solid var(--md-ref-palette-primary80);
13
+ }
14
+
15
+ label {
16
+ font-size: .8rem;
17
+ color: var(--md-sys-color-on-surface-variant);
18
+ }
19
+
@@ -1,43 +1,48 @@
1
- @charset "UTF-8";
2
-
3
- @forward "components/tokens.module";
4
- @forward "components/theme.module";
5
- //@forward "components/_theme_variables";
6
- @forward "components/colors.module";
7
- @forward "components/typography.module";
8
- @forward "components/mixins.module";
9
- @forward "components/color-variables";
10
- @forward "components/variables";
11
- @forward "components/normalize";
12
-
13
- // components
14
- @forward "components/global";
15
- @forward "components/typography";
16
- @forward "components/buttons";
17
- @forward "components/collection";
18
- @forward "components/badges";
19
- @forward "components/icons-material-design";
20
- @forward "components/grid";
21
- @forward "components/navbar";
22
- @forward "components/transitions";
23
- @forward "components/cards";
24
- @forward "components/toast";
25
- @forward "components/tabs";
26
- @forward "components/tooltip";
27
- @forward "components/dropdown";
28
- @forward "components/modal";
29
- @forward "components/collapsible";
30
- @forward "components/chips";
31
- @forward "components/materialbox";
32
- @forward "components/forms/forms";
33
- @forward "components/table_of_contents";
34
- @forward "components/sidenav";
35
- @forward "components/preloader";
36
- @forward "components/slider";
37
- @forward "components/carousel";
38
- @forward "components/tapTarget";
39
- @forward "components/pulse";
40
- @forward "components/datepicker";
41
- @forward "components/timepicker";
42
- @forward "components/breadcrumb";
43
- @forward "components/pagination";
1
+ @charset "UTF-8";
2
+
3
+ @forward "../node_modules/normalize.css/normalize.css";
4
+ @forward "./tokens.module.css";
5
+ @forward "./theme.module.css";
6
+ @forward "./typography.module.css";
7
+ @forward "./colors.module.css";
8
+ @forward "./typography";
9
+ @forward "./mixins.module";
10
+ @forward "./variables";
11
+ @forward "./global";
12
+ @forward "./grid";
13
+ // animations
14
+ @forward "./transitions.css";
15
+ @forward "./pulse.css";
16
+ // custom
17
+ @forward "./table_of_contents";
18
+ @forward "./tapTarget";
19
+
20
+ @forward "../components/buttons/buttons";
21
+ @forward "../components/lists/collection";
22
+ @forward "../components/collapsible/collapsible"; // custom
23
+ @forward "../components/badges/badges";
24
+ @forward "../components/cards/cards";
25
+ @forward "../components/snackbar/toast";
26
+ @forward "../components/tabs/tabs";
27
+ @forward "../components/tooltips/tooltip";
28
+ @forward "../components/dropdown/dropdown";
29
+ @forward "../components/dialog/modal";
30
+ @forward "../components/dialog/materialbox"; // custom
31
+ @forward "../components/chips/chips";
32
+ @forward "../components/navigation-bar/navbar";
33
+ @forward "../components/navigation-drawer/sidenav";
34
+ @forward "../components/progress-indicators/preloader";
35
+ @forward "../components/carousel/slider";
36
+ @forward "../components/carousel/carousel";
37
+ @forward "../components/datepicker/datepicker";
38
+ @forward "../components/timepicker/timepicker";
39
+ @forward "../components/breadcrumb/breadcrumb"; // custom
40
+ @forward "../components/pagination/pagination"; //custom
41
+ @forward '../components/radio-button/radio-buttons';
42
+ @forward '../components/checkbox/checkboxes';
43
+ @forward '../components/switch/switches';
44
+ @forward '../components/sliders/range';
45
+ @forward '../components/text-fields/input-fields';
46
+ @forward '../components/text-fields/select';
47
+ @forward '../components/text-fields/file-input';
48
+ @forward '../components/text-fields/formfields.css';