@materializecss/materialize 1.2.0 → 1.2.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 (82) hide show
  1. package/Gruntfile.js +722 -712
  2. package/LICENSE +21 -21
  3. package/README.md +91 -91
  4. package/dist/css/materialize.css +68 -135
  5. package/dist/css/materialize.min.css +12 -12
  6. package/dist/js/materialize.js +1112 -1112
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +403 -403
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/js/anime.min.js +34 -34
  11. package/js/autocomplete.js +479 -479
  12. package/js/buttons.js +354 -354
  13. package/js/cards.js +40 -40
  14. package/js/carousel.js +732 -732
  15. package/js/cash.js +960 -960
  16. package/js/characterCounter.js +136 -136
  17. package/js/chips.js +486 -486
  18. package/js/collapsible.js +275 -275
  19. package/js/component.js +44 -44
  20. package/js/datepicker.js +983 -983
  21. package/js/dropdown.js +669 -669
  22. package/js/forms.js +285 -285
  23. package/js/global.js +428 -428
  24. package/js/materialbox.js +453 -453
  25. package/js/modal.js +382 -382
  26. package/js/parallax.js +138 -138
  27. package/js/pushpin.js +148 -148
  28. package/js/range.js +263 -263
  29. package/js/scrollspy.js +295 -295
  30. package/js/select.js +391 -391
  31. package/js/sidenav.js +583 -583
  32. package/js/slider.js +359 -359
  33. package/js/tabs.js +402 -402
  34. package/js/tapTarget.js +315 -315
  35. package/js/timepicker.js +712 -712
  36. package/js/toasts.js +325 -325
  37. package/js/tooltip.js +320 -320
  38. package/js/waves.js +614 -614
  39. package/package.json +87 -84
  40. package/sass/_style.scss +929 -929
  41. package/sass/components/_badges.scss +55 -55
  42. package/sass/components/_buttons.scss +322 -322
  43. package/sass/components/_cards.scss +195 -195
  44. package/sass/components/_carousel.scss +90 -90
  45. package/sass/components/_chips.scss +96 -96
  46. package/sass/components/_collapsible.scss +91 -91
  47. package/sass/components/_collection.scss +106 -106
  48. package/sass/components/_color-classes.scss +32 -32
  49. package/sass/components/_color-variables.scss +370 -370
  50. package/sass/components/_datepicker.scss +191 -191
  51. package/sass/components/_dropdown.scss +84 -84
  52. package/sass/components/_global.scss +646 -646
  53. package/sass/components/_grid.scss +158 -158
  54. package/sass/components/_icons-material-design.scss +5 -5
  55. package/sass/components/_materialbox.scss +42 -42
  56. package/sass/components/_modal.scss +97 -97
  57. package/sass/components/_navbar.scss +208 -208
  58. package/sass/components/_normalize.scss +447 -447
  59. package/sass/components/_preloader.scss +334 -334
  60. package/sass/components/_pulse.scss +34 -34
  61. package/sass/components/_sidenav.scss +214 -214
  62. package/sass/components/_slider.scss +91 -91
  63. package/sass/components/_table_of_contents.scss +33 -33
  64. package/sass/components/_tabs.scss +99 -99
  65. package/sass/components/_tapTarget.scss +103 -103
  66. package/sass/components/_timepicker.scss +199 -199
  67. package/sass/components/_toast.scss +58 -58
  68. package/sass/components/_tooltip.scss +32 -32
  69. package/sass/components/_transitions.scss +12 -12
  70. package/sass/components/_typography.scss +62 -62
  71. package/sass/components/_variables.scss +352 -352
  72. package/sass/components/_waves.scss +187 -187
  73. package/sass/components/forms/_checkboxes.scss +200 -200
  74. package/sass/components/forms/_file-input.scss +44 -44
  75. package/sass/components/forms/_forms.scss +22 -22
  76. package/sass/components/forms/_input-fields.scss +388 -388
  77. package/sass/components/forms/_radio-buttons.scss +115 -115
  78. package/sass/components/forms/_range.scss +161 -161
  79. package/sass/components/forms/_select.scss +199 -199
  80. package/sass/components/forms/_switches.scss +91 -91
  81. package/sass/ghpages-materialize.scss +7 -7
  82. package/sass/materialize.scss +42 -42
@@ -1,199 +1,199 @@
1
- /* Select Field
2
- ========================================================================== */
3
-
4
- select.browser-default { opacity: 1; }
5
- select {
6
- opacity: 0;
7
- background-color: $select-background;
8
- width: 100%;
9
- padding: $select-padding;
10
- border: $select-border;
11
- border-radius: $select-radius;
12
- height: $input-height;
13
- }
14
-
15
- .select-label {
16
- position: absolute;
17
- }
18
-
19
- .select-wrapper {
20
- &.valid .helper-text[data-success],
21
- &.invalid ~ .helper-text[data-error] {
22
- @extend %hidden-text;
23
- }
24
-
25
- &.valid {
26
- & > input.select-dropdown {
27
- @extend %valid-input-style;
28
- }
29
-
30
- & ~ .helper-text:after {
31
- @extend %custom-success-message;
32
- }
33
- }
34
-
35
- &.invalid {
36
- & > input.select-dropdown,
37
- & > input.select-dropdown:focus {
38
- @extend %invalid-input-style;
39
- }
40
-
41
- & ~ .helper-text:after {
42
- @extend %custom-error-message;
43
- }
44
- }
45
-
46
- &.valid + label,
47
- &.invalid + label {
48
- width: 100%;
49
- pointer-events: none;
50
- }
51
-
52
- & + label:after {
53
- @extend %input-after-style;
54
- }
55
-
56
- position: relative;
57
-
58
- input.select-dropdown {
59
- &:focus {
60
- border-bottom: 1px solid $input-focus-color;
61
- }
62
- position: relative;
63
- cursor: pointer;
64
- background-color: transparent;
65
- border: none;
66
- border-bottom: $input-border;
67
- outline: none;
68
- height: $input-height;
69
- line-height: $input-height;
70
- width: 100%;
71
- font-size: $input-font-size;
72
- margin: $input-margin;
73
- padding: 0;
74
- display: block;
75
- user-select:none;
76
- z-index: 1;
77
- }
78
-
79
- .caret {
80
- position: absolute;
81
- right: 0;
82
- top: 0;
83
- bottom: 0;
84
- margin: auto 0;
85
- z-index: 0;
86
- fill: rgba(0,0,0,.87);
87
- }
88
-
89
- & + label {
90
- position: absolute;
91
- top: -26px;
92
- font-size: $label-font-size;
93
- }
94
-
95
- // Hide select with overflow hidden instead of using display none
96
- // (this prevents form validation errors with hidden form elements)
97
- .hide-select {
98
- width: 0;
99
- height: 0;
100
- overflow: hidden;
101
- position: absolute;
102
- top: 0;
103
- z-index: -1;
104
- }
105
- }
106
-
107
- // Disabled styles
108
- select:disabled {
109
- color: $input-disabled-color;
110
- }
111
-
112
- .select-wrapper.disabled {
113
- + label {
114
- color: $input-disabled-color;
115
- }
116
- .caret {
117
- fill: $input-disabled-color;
118
- }
119
- }
120
-
121
- .select-wrapper input.select-dropdown:disabled {
122
- color: $input-disabled-color;
123
- cursor: default;
124
- user-select: none;
125
- }
126
-
127
- .select-wrapper i {
128
- color: $select-disabled-color;
129
- }
130
-
131
- .select-dropdown li.disabled,
132
- .select-dropdown li.disabled > span,
133
- .select-dropdown li.optgroup {
134
- color: $select-disabled-color;
135
- background-color: transparent;
136
- }
137
-
138
- body.keyboard-focused {
139
- .select-dropdown.dropdown-content li:focus {
140
- background-color: $select-option-focus;
141
- }
142
- }
143
-
144
- .select-dropdown.dropdown-content {
145
- li {
146
- &:hover {
147
- background-color: $select-option-hover;
148
- }
149
-
150
- &.selected {
151
- background-color: $select-option-selected;
152
- }
153
- }
154
- }
155
-
156
- // Prefix Icons
157
- .prefix ~ .select-wrapper {
158
- margin-left: 3rem;
159
- width: 92%;
160
- width: calc(100% - 3rem);
161
- }
162
-
163
- .prefix ~ label { margin-left: 3rem; }
164
-
165
- // Suffix Icons
166
- .suffix ~ .select-wrapper {
167
- margin-right: 3rem;
168
- width: 92%;
169
- width: calc(100% - 3rem);
170
- }
171
-
172
- .suffix ~ label { margin-right: 3rem; }
173
-
174
- // Icons
175
- .select-dropdown li {
176
- img {
177
- height: $dropdown-item-height - 10;
178
- width: $dropdown-item-height - 10;
179
- margin: 5px 15px;
180
- float: right;
181
- }
182
- }
183
-
184
- // Optgroup styles
185
- .select-dropdown li.optgroup {
186
- border-top: 1px solid $dropdown-hover-bg-color;
187
-
188
- &.selected > span {
189
- color: rgba(0, 0, 0, .7);
190
- }
191
-
192
- & > span {
193
- color: rgba(0, 0, 0, .4);
194
- }
195
-
196
- & ~ li.optgroup-option {
197
- padding-left: 1rem;
198
- }
199
- }
1
+ /* Select Field
2
+ ========================================================================== */
3
+
4
+ select.browser-default { opacity: 1; }
5
+ select {
6
+ opacity: 0;
7
+ background-color: $select-background;
8
+ width: 100%;
9
+ padding: $select-padding;
10
+ border: $select-border;
11
+ border-radius: $select-radius;
12
+ height: $input-height;
13
+ }
14
+
15
+ .select-label {
16
+ position: absolute;
17
+ }
18
+
19
+ .select-wrapper {
20
+ &.valid .helper-text[data-success],
21
+ &.invalid ~ .helper-text[data-error] {
22
+ @extend %hidden-text;
23
+ }
24
+
25
+ &.valid {
26
+ & > input.select-dropdown {
27
+ @extend %valid-input-style;
28
+ }
29
+
30
+ & ~ .helper-text:after {
31
+ @extend %custom-success-message;
32
+ }
33
+ }
34
+
35
+ &.invalid {
36
+ & > input.select-dropdown,
37
+ & > input.select-dropdown:focus {
38
+ @extend %invalid-input-style;
39
+ }
40
+
41
+ & ~ .helper-text:after {
42
+ @extend %custom-error-message;
43
+ }
44
+ }
45
+
46
+ &.valid + label,
47
+ &.invalid + label {
48
+ width: 100%;
49
+ pointer-events: none;
50
+ }
51
+
52
+ & + label:after {
53
+ @extend %input-after-style;
54
+ }
55
+
56
+ position: relative;
57
+
58
+ input.select-dropdown {
59
+ &:focus {
60
+ border-bottom: 1px solid $input-focus-color;
61
+ }
62
+ position: relative;
63
+ cursor: pointer;
64
+ background-color: transparent;
65
+ border: none;
66
+ border-bottom: $input-border;
67
+ outline: none;
68
+ height: $input-height;
69
+ line-height: $input-height;
70
+ width: 100%;
71
+ font-size: $input-font-size;
72
+ margin: $input-margin;
73
+ padding: 0;
74
+ display: block;
75
+ user-select:none;
76
+ z-index: 1;
77
+ }
78
+
79
+ .caret {
80
+ position: absolute;
81
+ right: 0;
82
+ top: 0;
83
+ bottom: 0;
84
+ margin: auto 0;
85
+ z-index: 0;
86
+ fill: rgba(0,0,0,.87);
87
+ }
88
+
89
+ & + label {
90
+ position: absolute;
91
+ top: -26px;
92
+ font-size: $label-font-size;
93
+ }
94
+
95
+ // Hide select with overflow hidden instead of using display none
96
+ // (this prevents form validation errors with hidden form elements)
97
+ .hide-select {
98
+ width: 0;
99
+ height: 0;
100
+ overflow: hidden;
101
+ position: absolute;
102
+ top: 0;
103
+ z-index: -1;
104
+ }
105
+ }
106
+
107
+ // Disabled styles
108
+ select:disabled {
109
+ color: $input-disabled-color;
110
+ }
111
+
112
+ .select-wrapper.disabled {
113
+ + label {
114
+ color: $input-disabled-color;
115
+ }
116
+ .caret {
117
+ fill: $input-disabled-color;
118
+ }
119
+ }
120
+
121
+ .select-wrapper input.select-dropdown:disabled {
122
+ color: $input-disabled-color;
123
+ cursor: default;
124
+ user-select: none;
125
+ }
126
+
127
+ .select-wrapper i {
128
+ color: $select-disabled-color;
129
+ }
130
+
131
+ .select-dropdown li.disabled,
132
+ .select-dropdown li.disabled > span,
133
+ .select-dropdown li.optgroup {
134
+ color: $select-disabled-color;
135
+ background-color: transparent;
136
+ }
137
+
138
+ body.keyboard-focused {
139
+ .select-dropdown.dropdown-content li:focus {
140
+ background-color: $select-option-focus;
141
+ }
142
+ }
143
+
144
+ .select-dropdown.dropdown-content {
145
+ li {
146
+ &:hover {
147
+ background-color: $select-option-hover;
148
+ }
149
+
150
+ &.selected {
151
+ background-color: $select-option-selected;
152
+ }
153
+ }
154
+ }
155
+
156
+ // Prefix Icons
157
+ .prefix ~ .select-wrapper {
158
+ margin-left: 3rem;
159
+ width: 92%;
160
+ width: calc(100% - 3rem);
161
+ }
162
+
163
+ .prefix ~ label { margin-left: 3rem; }
164
+
165
+ // Suffix Icons
166
+ .suffix ~ .select-wrapper {
167
+ margin-right: 3rem;
168
+ width: 92%;
169
+ width: calc(100% - 3rem);
170
+ }
171
+
172
+ .suffix ~ label { margin-right: 3rem; }
173
+
174
+ // Icons
175
+ .select-dropdown li {
176
+ img {
177
+ height: $dropdown-item-height - 10;
178
+ width: $dropdown-item-height - 10;
179
+ margin: 5px 15px;
180
+ float: right;
181
+ }
182
+ }
183
+
184
+ // Optgroup styles
185
+ .select-dropdown li.optgroup {
186
+ border-top: 1px solid $dropdown-hover-bg-color;
187
+
188
+ &.selected > span {
189
+ color: rgba(0, 0, 0, .7);
190
+ }
191
+
192
+ & > span {
193
+ color: rgba(0, 0, 0, .4);
194
+ }
195
+
196
+ & ~ li.optgroup-option {
197
+ padding-left: 1rem;
198
+ }
199
+ }
@@ -1,91 +1,91 @@
1
- /* Switch
2
- ========================================================================== */
3
-
4
- .switch,
5
- .switch * {
6
- -webkit-tap-highlight-color: transparent;
7
- user-select: none;
8
- }
9
-
10
- .switch label {
11
- cursor: pointer;
12
- }
13
-
14
- .switch label input[type=checkbox] {
15
- opacity: 0;
16
- width: 0;
17
- height: 0;
18
-
19
- &:checked:not([disabled]) {
20
- background-color: $switch-checked-lever-bg;
21
- }
22
-
23
- &:checked + .lever {
24
- &:before, &:after {
25
- left: 18px;
26
- }
27
-
28
- &:after {
29
- background-color: $switch-bg-color;
30
- }
31
- }
32
- }
33
-
34
- .switch label .lever {
35
- content: "";
36
- display: inline-block;
37
- position: relative;
38
- width: 36px;
39
- height: 14px;
40
- background-color: $switch-unchecked-lever-bg;
41
- border-radius: $switch-radius;
42
- margin-right: 10px;
43
- transition: background 0.3s ease;
44
- vertical-align: middle;
45
- margin: 0 16px;
46
-
47
- &:before, &:after {
48
- content: "";
49
- position: absolute;
50
- display: inline-block;
51
- width: 20px;
52
- height: 20px;
53
- border-radius: 50%;
54
- left: 0;
55
- top: -3px;
56
- transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
57
- }
58
-
59
- &:before {
60
- background-color: transparentize($switch-bg-color, .85);
61
- }
62
-
63
- &:after {
64
- background-color: $switch-unchecked-bg;
65
- box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
66
- }
67
- }
68
-
69
- // Switch active style
70
- input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,
71
- input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before {
72
- transform: scale(2.4);
73
- background-color: transparentize($switch-bg-color, .85);
74
- }
75
-
76
- input[type=checkbox]:not(:disabled) ~ .lever:active:before,
77
- input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {
78
- transform: scale(2.4);
79
- background-color: rgba(0,0,0,.08);
80
- }
81
-
82
- // Disabled Styles
83
- .switch input[type=checkbox][disabled] + .lever {
84
- cursor: default;
85
- background-color: rgba(0,0,0,.12);
86
- }
87
-
88
- .switch label input[type=checkbox][disabled] + .lever:after,
89
- .switch label input[type=checkbox][disabled]:checked + .lever:after {
90
- background-color: $input-disabled-solid-color;
91
- }
1
+ /* Switch
2
+ ========================================================================== */
3
+
4
+ .switch,
5
+ .switch * {
6
+ -webkit-tap-highlight-color: transparent;
7
+ user-select: none;
8
+ }
9
+
10
+ .switch label {
11
+ cursor: pointer;
12
+ }
13
+
14
+ .switch label input[type=checkbox] {
15
+ opacity: 0;
16
+ width: 0;
17
+ height: 0;
18
+
19
+ &:checked:not([disabled]) {
20
+ background-color: $switch-checked-lever-bg;
21
+ }
22
+
23
+ &:checked + .lever {
24
+ &:before, &:after {
25
+ left: 18px;
26
+ }
27
+
28
+ &:after {
29
+ background-color: $switch-bg-color;
30
+ }
31
+ }
32
+ }
33
+
34
+ .switch label .lever {
35
+ content: "";
36
+ display: inline-block;
37
+ position: relative;
38
+ width: 36px;
39
+ height: 14px;
40
+ background-color: $switch-unchecked-lever-bg;
41
+ border-radius: $switch-radius;
42
+ margin-right: 10px;
43
+ transition: background 0.3s ease;
44
+ vertical-align: middle;
45
+ margin: 0 16px;
46
+
47
+ &:before, &:after {
48
+ content: "";
49
+ position: absolute;
50
+ display: inline-block;
51
+ width: 20px;
52
+ height: 20px;
53
+ border-radius: 50%;
54
+ left: 0;
55
+ top: -3px;
56
+ transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
57
+ }
58
+
59
+ &:before {
60
+ background-color: transparentize($switch-bg-color, .85);
61
+ }
62
+
63
+ &:after {
64
+ background-color: $switch-unchecked-bg;
65
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
66
+ }
67
+ }
68
+
69
+ // Switch active style
70
+ input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,
71
+ input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before {
72
+ transform: scale(2.4);
73
+ background-color: transparentize($switch-bg-color, .85);
74
+ }
75
+
76
+ input[type=checkbox]:not(:disabled) ~ .lever:active:before,
77
+ input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {
78
+ transform: scale(2.4);
79
+ background-color: rgba(0,0,0,.08);
80
+ }
81
+
82
+ // Disabled Styles
83
+ .switch input[type=checkbox][disabled] + .lever {
84
+ cursor: default;
85
+ background-color: rgba(0,0,0,.12);
86
+ }
87
+
88
+ .switch label input[type=checkbox][disabled] + .lever:after,
89
+ .switch label input[type=checkbox][disabled]:checked + .lever:after {
90
+ background-color: $input-disabled-solid-color;
91
+ }
@@ -1,7 +1,7 @@
1
- @charset "UTF-8";
2
-
3
- // import materialize
4
- @import "materialize";
5
-
6
- // Custom style
7
- @import "style";
1
+ @charset "UTF-8";
2
+
3
+ // import materialize
4
+ @import "materialize";
5
+
6
+ // Custom style
7
+ @import "style";
@@ -1,42 +1,42 @@
1
- @charset "UTF-8";
2
-
3
- // Color
4
- @import "components/color-variables";
5
- @import "components/color-classes";
6
-
7
- // Variables;
8
- @import "components/variables";
9
-
10
- // Reset
11
- @import "components/normalize";
12
-
13
- // components
14
- @import "components/global";
15
- @import "components/collection";
16
- @import "components/badges";
17
- @import "components/icons-material-design";
18
- @import "components/grid";
19
- @import "components/navbar";
20
- @import "components/typography";
21
- @import "components/transitions";
22
- @import "components/cards";
23
- @import "components/toast";
24
- @import "components/tabs";
25
- @import "components/tooltip";
26
- @import "components/buttons";
27
- @import "components/dropdown";
28
- @import "components/waves";
29
- @import "components/modal";
30
- @import "components/collapsible";
31
- @import "components/chips";
32
- @import "components/materialbox";
33
- @import "components/forms/forms";
34
- @import "components/table_of_contents";
35
- @import "components/sidenav";
36
- @import "components/preloader";
37
- @import "components/slider";
38
- @import "components/carousel";
39
- @import "components/tapTarget";
40
- @import "components/pulse";
41
- @import "components/datepicker";
42
- @import "components/timepicker";
1
+ @charset "UTF-8";
2
+
3
+ // Color
4
+ @import "components/color-variables";
5
+ @import "components/color-classes";
6
+
7
+ // Variables;
8
+ @import "components/variables";
9
+
10
+ // Reset
11
+ @import "components/normalize";
12
+
13
+ // components
14
+ @import "components/global";
15
+ @import "components/collection";
16
+ @import "components/badges";
17
+ @import "components/icons-material-design";
18
+ @import "components/grid";
19
+ @import "components/navbar";
20
+ @import "components/typography";
21
+ @import "components/transitions";
22
+ @import "components/cards";
23
+ @import "components/toast";
24
+ @import "components/tabs";
25
+ @import "components/tooltip";
26
+ @import "components/buttons";
27
+ @import "components/dropdown";
28
+ @import "components/waves";
29
+ @import "components/modal";
30
+ @import "components/collapsible";
31
+ @import "components/chips";
32
+ @import "components/materialbox";
33
+ @import "components/forms/forms";
34
+ @import "components/table_of_contents";
35
+ @import "components/sidenav";
36
+ @import "components/preloader";
37
+ @import "components/slider";
38
+ @import "components/carousel";
39
+ @import "components/tapTarget";
40
+ @import "components/pulse";
41
+ @import "components/datepicker";
42
+ @import "components/timepicker";