@materializecss/materialize 1.1.0-alpha → 1.1.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 (85) hide show
  1. package/Gruntfile.js +115 -132
  2. package/LICENSE +21 -21
  3. package/README.md +97 -97
  4. package/dist/css/materialize.css +8462 -8987
  5. package/dist/css/materialize.min.css +7 -7
  6. package/dist/js/materialize.js +12669 -12791
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +406 -406
  9. package/extras/noUiSlider/nouislider.js +2147 -2147
  10. package/extras/noUiSlider/nouislider.min.js +0 -0
  11. package/js/anime.min.js +34 -34
  12. package/js/autocomplete.js +479 -479
  13. package/js/buttons.js +354 -354
  14. package/js/cards.js +40 -40
  15. package/js/carousel.js +732 -717
  16. package/js/cash.js +960 -960
  17. package/js/characterCounter.js +136 -136
  18. package/js/chips.js +486 -486
  19. package/js/collapsible.js +275 -275
  20. package/js/component.js +44 -44
  21. package/js/datepicker.js +983 -976
  22. package/js/dropdown.js +669 -668
  23. package/js/forms.js +275 -275
  24. package/js/global.js +424 -424
  25. package/js/materialbox.js +453 -453
  26. package/js/modal.js +382 -382
  27. package/js/parallax.js +138 -138
  28. package/js/pushpin.js +148 -148
  29. package/js/range.js +263 -263
  30. package/js/scrollspy.js +295 -295
  31. package/js/select.js +310 -451
  32. package/js/sidenav.js +583 -583
  33. package/js/slider.js +359 -359
  34. package/js/tabs.js +402 -402
  35. package/js/tapTarget.js +315 -315
  36. package/js/timepicker.js +648 -647
  37. package/js/toasts.js +322 -322
  38. package/js/tooltip.js +320 -320
  39. package/js/waves.js +614 -614
  40. package/package.json +82 -74
  41. package/sass/_style.scss +929 -0
  42. package/sass/components/_badges.scss +55 -55
  43. package/sass/components/_buttons.scss +322 -322
  44. package/sass/components/_cards.scss +195 -195
  45. package/sass/components/_carousel.scss +90 -90
  46. package/sass/components/_chips.scss +96 -96
  47. package/sass/components/_collapsible.scss +91 -91
  48. package/sass/components/_collection.scss +107 -0
  49. package/sass/components/_color-classes.scss +32 -32
  50. package/sass/components/_color-variables.scss +370 -370
  51. package/sass/components/_datepicker.scss +191 -191
  52. package/sass/components/_dropdown.scss +84 -84
  53. package/sass/components/_global.scss +642 -771
  54. package/sass/components/_grid.scss +158 -156
  55. package/sass/components/_icons-material-design.scss +5 -5
  56. package/sass/components/_materialbox.scss +42 -42
  57. package/sass/components/_modal.scss +97 -97
  58. package/sass/components/_navbar.scss +208 -208
  59. package/sass/components/_normalize.scss +447 -447
  60. package/sass/components/_preloader.scss +334 -334
  61. package/sass/components/_pulse.scss +34 -34
  62. package/sass/components/_sidenav.scss +214 -214
  63. package/sass/components/_slider.scss +91 -91
  64. package/sass/components/_table_of_contents.scss +33 -33
  65. package/sass/components/_tabs.scss +99 -99
  66. package/sass/components/_tapTarget.scss +103 -103
  67. package/sass/components/_timepicker.scss +183 -183
  68. package/sass/components/_toast.scss +58 -58
  69. package/sass/components/_tooltip.scss +32 -32
  70. package/sass/components/_transitions.scss +12 -12
  71. package/sass/components/_typography.scss +62 -60
  72. package/sass/components/_variables.scss +352 -349
  73. package/sass/components/_waves.scss +187 -187
  74. package/sass/components/forms/_checkboxes.scss +200 -200
  75. package/sass/components/forms/_file-input.scss +44 -44
  76. package/sass/components/forms/_forms.scss +22 -22
  77. package/sass/components/forms/_input-fields.scss +379 -379
  78. package/sass/components/forms/_radio-buttons.scss +115 -115
  79. package/sass/components/forms/_range.scss +161 -161
  80. package/sass/components/forms/_select.scss +199 -199
  81. package/sass/components/forms/_switches.scss +91 -91
  82. package/sass/ghpages-materialize.scss +7 -0
  83. package/sass/materialize.scss +42 -41
  84. package/CHANGELOG.md +0 -76
  85. package/HISTORY.md +0 -527
@@ -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';