@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,200 +1,200 @@
1
- /* Checkboxes
2
- ========================================================================== */
3
-
4
- /* Remove default checkbox */
5
- [type="checkbox"]:not(:checked),
6
- [type="checkbox"]:checked {
7
- position: absolute;
8
- opacity: 0;
9
- pointer-events: none;
10
- }
11
-
12
- // Checkbox Styles
13
- [type="checkbox"] {
14
- // Text Label Style
15
- + span:not(.lever) {
16
- position: relative;
17
- padding-left: 35px;
18
- cursor: pointer;
19
- display: inline-block;
20
- height: 25px;
21
- line-height: 25px;
22
- font-size: 1rem;
23
- user-select: none;
24
- }
25
-
26
- /* checkbox aspect */
27
- + span:not(.lever):before,
28
- &:not(.filled-in) + span:not(.lever):after {
29
- content: '';
30
- position: absolute;
31
- top: 0;
32
- left: 0;
33
- width: 18px;
34
- height: 18px;
35
- z-index: 0;
36
- border: 2px solid $radio-empty-color;
37
- border-radius: 1px;
38
- margin-top: 3px;
39
- transition: .2s;
40
- }
41
-
42
- &:not(.filled-in) + span:not(.lever):after {
43
- border: 0;
44
- transform: scale(0);
45
- }
46
-
47
- &:not(:checked):disabled + span:not(.lever):before {
48
- border: none;
49
- background-color: $input-disabled-color;
50
- }
51
-
52
- // Focused styles
53
- &.tabbed:focus + span:not(.lever):after {
54
- transform: scale(1);
55
- border: 0;
56
- border-radius: 50%;
57
- box-shadow: 0 0 0 10px rgba(0,0,0,.1);
58
- background-color: rgba(0,0,0,.1);
59
- }
60
- }
61
-
62
- [type="checkbox"]:checked {
63
- + span:not(.lever):before {
64
- top: -4px;
65
- left: -5px;
66
- width: 12px;
67
- height: 22px;
68
- border-top: 2px solid transparent;
69
- border-left: 2px solid transparent;
70
- border-right: $radio-border;
71
- border-bottom: $radio-border;
72
- transform: rotate(40deg);
73
- backface-visibility: hidden;
74
- transform-origin: 100% 100%;
75
- }
76
-
77
- &:disabled + span:before {
78
- border-right: 2px solid $input-disabled-color;
79
- border-bottom: 2px solid $input-disabled-color;
80
- }
81
- }
82
-
83
- /* Indeterminate checkbox */
84
- [type="checkbox"]:indeterminate {
85
- + span:not(.lever):before {
86
- top: -11px;
87
- left: -12px;
88
- width: 10px;
89
- height: 22px;
90
- border-top: none;
91
- border-left: none;
92
- border-right: $radio-border;
93
- border-bottom: none;
94
- transform: rotate(90deg);
95
- backface-visibility: hidden;
96
- transform-origin: 100% 100%;
97
- }
98
-
99
- // Disabled indeterminate
100
- &:disabled + span:not(.lever):before {
101
- border-right: 2px solid $input-disabled-color;
102
- background-color: transparent;
103
- }
104
- }
105
-
106
- // Filled in Style
107
- [type="checkbox"].filled-in {
108
- // General
109
- + span:not(.lever):after {
110
- border-radius: 2px;
111
- }
112
-
113
- + span:not(.lever):before,
114
- + span:not(.lever):after {
115
- content: '';
116
- left: 0;
117
- position: absolute;
118
- /* .1s delay is for check animation */
119
- transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
120
- z-index: 1;
121
- }
122
-
123
- // Unchecked style
124
- &:not(:checked) + span:not(.lever):before {
125
- width: 0;
126
- height: 0;
127
- border: 3px solid transparent;
128
- left: 6px;
129
- top: 10px;
130
- transform: rotateZ(37deg);
131
- transform-origin: 100% 100%;
132
- }
133
-
134
- &:not(:checked) + span:not(.lever):after {
135
- height: 20px;
136
- width: 20px;
137
- background-color: transparent;
138
- border: 2px solid $radio-empty-color;
139
- top: 0px;
140
- z-index: 0;
141
- }
142
-
143
- // Checked style
144
- &:checked {
145
- + span:not(.lever):before {
146
- top: 0;
147
- left: 1px;
148
- width: 8px;
149
- height: 13px;
150
- border-top: 2px solid transparent;
151
- border-left: 2px solid transparent;
152
- border-right: 2px solid $input-background;
153
- border-bottom: 2px solid $input-background;
154
- transform: rotateZ(37deg);
155
- transform-origin: 100% 100%;
156
- }
157
-
158
- + span:not(.lever):after {
159
- top: 0;
160
- width: 20px;
161
- height: 20px;
162
- border: 2px solid $secondary-color;
163
- background-color: $secondary-color;
164
- z-index: 0;
165
- }
166
- }
167
-
168
- // Focused styles
169
- &.tabbed:focus + span:not(.lever):after {
170
- border-radius: 2px;
171
- border-color: $radio-empty-color;
172
- background-color: rgba(0,0,0,.1);
173
- }
174
-
175
- &.tabbed:checked:focus + span:not(.lever):after {
176
- border-radius: 2px;
177
- background-color: $secondary-color;
178
- border-color: $secondary-color;
179
- }
180
-
181
- // Disabled style
182
- &:disabled:not(:checked) + span:not(.lever):before {
183
- background-color: transparent;
184
- border: 2px solid transparent;
185
- }
186
-
187
- &:disabled:not(:checked) + span:not(.lever):after {
188
- border-color: transparent;
189
- background-color: $input-disabled-solid-color;
190
- }
191
-
192
- &:disabled:checked + span:not(.lever):before {
193
- background-color: transparent;
194
- }
195
-
196
- &:disabled:checked + span:not(.lever):after {
197
- background-color: $input-disabled-solid-color;
198
- border-color: $input-disabled-solid-color;
199
- }
200
- }
1
+ /* Checkboxes
2
+ ========================================================================== */
3
+
4
+ /* Remove default checkbox */
5
+ [type="checkbox"]:not(:checked),
6
+ [type="checkbox"]:checked {
7
+ position: absolute;
8
+ opacity: 0;
9
+ pointer-events: none;
10
+ }
11
+
12
+ // Checkbox Styles
13
+ [type="checkbox"] {
14
+ // Text Label Style
15
+ + span:not(.lever) {
16
+ position: relative;
17
+ padding-left: 35px;
18
+ cursor: pointer;
19
+ display: inline-block;
20
+ height: 25px;
21
+ line-height: 25px;
22
+ font-size: 1rem;
23
+ user-select: none;
24
+ }
25
+
26
+ /* checkbox aspect */
27
+ + span:not(.lever):before,
28
+ &:not(.filled-in) + span:not(.lever):after {
29
+ content: '';
30
+ position: absolute;
31
+ top: 0;
32
+ left: 0;
33
+ width: 18px;
34
+ height: 18px;
35
+ z-index: 0;
36
+ border: 2px solid $radio-empty-color;
37
+ border-radius: 1px;
38
+ margin-top: 3px;
39
+ transition: .2s;
40
+ }
41
+
42
+ &:not(.filled-in) + span:not(.lever):after {
43
+ border: 0;
44
+ transform: scale(0);
45
+ }
46
+
47
+ &:not(:checked):disabled + span:not(.lever):before {
48
+ border: none;
49
+ background-color: $input-disabled-color;
50
+ }
51
+
52
+ // Focused styles
53
+ &.tabbed:focus + span:not(.lever):after {
54
+ transform: scale(1);
55
+ border: 0;
56
+ border-radius: 50%;
57
+ box-shadow: 0 0 0 10px rgba(0,0,0,.1);
58
+ background-color: rgba(0,0,0,.1);
59
+ }
60
+ }
61
+
62
+ [type="checkbox"]:checked {
63
+ + span:not(.lever):before {
64
+ top: -4px;
65
+ left: -5px;
66
+ width: 12px;
67
+ height: 22px;
68
+ border-top: 2px solid transparent;
69
+ border-left: 2px solid transparent;
70
+ border-right: $radio-border;
71
+ border-bottom: $radio-border;
72
+ transform: rotate(40deg);
73
+ backface-visibility: hidden;
74
+ transform-origin: 100% 100%;
75
+ }
76
+
77
+ &:disabled + span:before {
78
+ border-right: 2px solid $input-disabled-color;
79
+ border-bottom: 2px solid $input-disabled-color;
80
+ }
81
+ }
82
+
83
+ /* Indeterminate checkbox */
84
+ [type="checkbox"]:indeterminate {
85
+ + span:not(.lever):before {
86
+ top: -11px;
87
+ left: -12px;
88
+ width: 10px;
89
+ height: 22px;
90
+ border-top: none;
91
+ border-left: none;
92
+ border-right: $radio-border;
93
+ border-bottom: none;
94
+ transform: rotate(90deg);
95
+ backface-visibility: hidden;
96
+ transform-origin: 100% 100%;
97
+ }
98
+
99
+ // Disabled indeterminate
100
+ &:disabled + span:not(.lever):before {
101
+ border-right: 2px solid $input-disabled-color;
102
+ background-color: transparent;
103
+ }
104
+ }
105
+
106
+ // Filled in Style
107
+ [type="checkbox"].filled-in {
108
+ // General
109
+ + span:not(.lever):after {
110
+ border-radius: 2px;
111
+ }
112
+
113
+ + span:not(.lever):before,
114
+ + span:not(.lever):after {
115
+ content: '';
116
+ left: 0;
117
+ position: absolute;
118
+ /* .1s delay is for check animation */
119
+ transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
120
+ z-index: 1;
121
+ }
122
+
123
+ // Unchecked style
124
+ &:not(:checked) + span:not(.lever):before {
125
+ width: 0;
126
+ height: 0;
127
+ border: 3px solid transparent;
128
+ left: 6px;
129
+ top: 10px;
130
+ transform: rotateZ(37deg);
131
+ transform-origin: 100% 100%;
132
+ }
133
+
134
+ &:not(:checked) + span:not(.lever):after {
135
+ height: 20px;
136
+ width: 20px;
137
+ background-color: transparent;
138
+ border: 2px solid $radio-empty-color;
139
+ top: 0px;
140
+ z-index: 0;
141
+ }
142
+
143
+ // Checked style
144
+ &:checked {
145
+ + span:not(.lever):before {
146
+ top: 0;
147
+ left: 1px;
148
+ width: 8px;
149
+ height: 13px;
150
+ border-top: 2px solid transparent;
151
+ border-left: 2px solid transparent;
152
+ border-right: 2px solid $input-background;
153
+ border-bottom: 2px solid $input-background;
154
+ transform: rotateZ(37deg);
155
+ transform-origin: 100% 100%;
156
+ }
157
+
158
+ + span:not(.lever):after {
159
+ top: 0;
160
+ width: 20px;
161
+ height: 20px;
162
+ border: 2px solid $secondary-color;
163
+ background-color: $secondary-color;
164
+ z-index: 0;
165
+ }
166
+ }
167
+
168
+ // Focused styles
169
+ &.tabbed:focus + span:not(.lever):after {
170
+ border-radius: 2px;
171
+ border-color: $radio-empty-color;
172
+ background-color: rgba(0,0,0,.1);
173
+ }
174
+
175
+ &.tabbed:checked:focus + span:not(.lever):after {
176
+ border-radius: 2px;
177
+ background-color: $secondary-color;
178
+ border-color: $secondary-color;
179
+ }
180
+
181
+ // Disabled style
182
+ &:disabled:not(:checked) + span:not(.lever):before {
183
+ background-color: transparent;
184
+ border: 2px solid transparent;
185
+ }
186
+
187
+ &:disabled:not(:checked) + span:not(.lever):after {
188
+ border-color: transparent;
189
+ background-color: $input-disabled-solid-color;
190
+ }
191
+
192
+ &:disabled:checked + span:not(.lever):before {
193
+ background-color: transparent;
194
+ }
195
+
196
+ &:disabled:checked + span:not(.lever):after {
197
+ background-color: $input-disabled-solid-color;
198
+ border-color: $input-disabled-solid-color;
199
+ }
200
+ }
@@ -1,44 +1,44 @@
1
- /* File Input
2
- ========================================================================== */
3
-
4
- .file-field {
5
- position: relative;
6
-
7
- .file-path-wrapper {
8
- overflow: hidden;
9
- padding-left: 10px;
10
- }
11
-
12
- input.file-path { width: 100%; }
13
-
14
- .btn {
15
- float: left;
16
- height: $input-height;
17
- line-height: $input-height;
18
- }
19
-
20
- span {
21
- cursor: pointer;
22
- }
23
-
24
- input[type=file] {
25
-
26
- // Needed to override webkit button
27
- &::-webkit-file-upload-button {
28
- display: none;
29
- }
30
-
31
- position: absolute;
32
- top: 0;
33
- right: 0;
34
- left: 0;
35
- bottom: 0;
36
- width: 100%;
37
- margin: 0;
38
- padding: 0;
39
- font-size: 20px;
40
- cursor: pointer;
41
- opacity: 0;
42
- filter: alpha(opacity=0);
43
- }
44
- }
1
+ /* File Input
2
+ ========================================================================== */
3
+
4
+ .file-field {
5
+ position: relative;
6
+
7
+ .file-path-wrapper {
8
+ overflow: hidden;
9
+ padding-left: 10px;
10
+ }
11
+
12
+ input.file-path { width: 100%; }
13
+
14
+ .btn {
15
+ float: left;
16
+ height: $input-height;
17
+ line-height: $input-height;
18
+ }
19
+
20
+ span {
21
+ cursor: pointer;
22
+ }
23
+
24
+ input[type=file] {
25
+
26
+ // Needed to override webkit button
27
+ &::-webkit-file-upload-button {
28
+ display: none;
29
+ }
30
+
31
+ position: absolute;
32
+ top: 0;
33
+ right: 0;
34
+ left: 0;
35
+ bottom: 0;
36
+ width: 100%;
37
+ margin: 0;
38
+ padding: 0;
39
+ font-size: 20px;
40
+ cursor: pointer;
41
+ opacity: 0;
42
+ filter: alpha(opacity=0);
43
+ }
44
+ }
@@ -1,22 +1,22 @@
1
- // Remove Focus Boxes
2
- select:focus {
3
- outline: $select-focus;
4
- }
5
-
6
- button:focus {
7
- outline: none;
8
- background-color: $button-background-focus;
9
- }
10
-
11
- label {
12
- font-size: $label-font-size;
13
- color: $input-border-color;
14
- }
15
-
16
- @import 'input-fields';
17
- @import 'radio-buttons';
18
- @import 'checkboxes';
19
- @import 'switches';
20
- @import 'select';
21
- @import 'file-input';
22
- @import 'range';
1
+ // Remove Focus Boxes
2
+ select:focus {
3
+ outline: $select-focus;
4
+ }
5
+
6
+ button:focus {
7
+ outline: none;
8
+ background-color: $button-background-focus;
9
+ }
10
+
11
+ label {
12
+ font-size: $label-font-size;
13
+ color: $input-border-color;
14
+ }
15
+
16
+ @import 'input-fields';
17
+ @import 'radio-buttons';
18
+ @import 'checkboxes';
19
+ @import 'switches';
20
+ @import 'select';
21
+ @import 'file-input';
22
+ @import 'range';