@materializecss/materialize 1.1.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 (83) hide show
  1. package/Gruntfile.js +38 -24
  2. package/LICENSE +21 -21
  3. package/README.md +91 -97
  4. package/dist/css/materialize.css +8608 -8631
  5. package/dist/css/materialize.min.css +12 -12
  6. package/dist/js/materialize.js +12816 -12669
  7. package/dist/js/materialize.min.js +6 -6
  8. package/extras/noUiSlider/nouislider.css +404 -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 -732
  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 -983
  22. package/js/dropdown.js +669 -669
  23. package/js/forms.js +285 -275
  24. package/js/global.js +428 -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 +391 -310
  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 +712 -648
  37. package/js/toasts.js +325 -322
  38. package/js/tooltip.js +320 -320
  39. package/js/waves.js +614 -614
  40. package/package.json +87 -82
  41. package/sass/_style.scss +929 -929
  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 +106 -106
  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 +646 -642
  54. package/sass/components/_grid.scss +158 -158
  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 +199 -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 -62
  72. package/sass/components/_variables.scss +352 -352
  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 +388 -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 -7
  83. package/sass/materialize.scss +42 -42
@@ -1,183 +1,199 @@
1
- /* Timepicker Containers */
2
- .timepicker-modal {
3
- max-width: 325px;
4
- max-height: none;
5
- }
6
-
7
- .timepicker-container.modal-content {
8
- display: flex;
9
- flex-direction: column;
10
- padding: 0;
11
- }
12
-
13
- .text-primary {
14
- color: rgba(255, 255, 255, 1);
15
- }
16
-
17
-
18
- /* Clock Digital Display */
19
- .timepicker-digital-display {
20
- flex: 1 auto;
21
- background-color: $secondary-color;
22
- padding: 10px;
23
- font-weight: 300;
24
- }
25
-
26
- .timepicker-text-container {
27
- font-size: 4rem;
28
- font-weight: bold;
29
- text-align: center;
30
- color: rgba(255, 255, 255, 0.6);
31
- font-weight: 400;
32
- position: relative;
33
- user-select: none;
34
- }
35
-
36
- .timepicker-span-hours,
37
- .timepicker-span-minutes,
38
- .timepicker-span-am-pm div {
39
- cursor: pointer;
40
- }
41
-
42
- .timepicker-span-hours {
43
- margin-right: 3px;
44
- }
45
-
46
- .timepicker-span-minutes {
47
- margin-left: 3px;
48
- }
49
-
50
- .timepicker-display-am-pm {
51
- font-size: 1.3rem;
52
- position: absolute;
53
- right: 1rem;
54
- bottom: 1rem;
55
- font-weight: 400;
56
- }
57
-
58
-
59
- /* Analog Clock Display */
60
- .timepicker-analog-display {
61
- flex: 2.5 auto;
62
- }
63
-
64
- .timepicker-plate {
65
- background-color: $timepicker-clock-plate-bg;
66
- border-radius: 50%;
67
- width: 270px;
68
- height: 270px;
69
- overflow: visible;
70
- position: relative;
71
- margin: auto;
72
- margin-top: 25px;
73
- margin-bottom: 5px;
74
- user-select: none;
75
- }
76
-
77
- .timepicker-canvas,
78
- .timepicker-dial {
79
- position: absolute;
80
- left: 0;
81
- right: 0;
82
- top: 0;
83
- bottom: 0;
84
- }
85
- .timepicker-minutes {
86
- visibility: hidden;
87
- }
88
-
89
- .timepicker-tick {
90
- border-radius: 50%;
91
- color: $timepicker-clock-color;
92
- line-height: 40px;
93
- text-align: center;
94
- width: 40px;
95
- height: 40px;
96
- position: absolute;
97
- cursor: pointer;
98
- font-size: 15px;
99
- }
100
-
101
- .timepicker-tick.active,
102
- .timepicker-tick:hover {
103
- background-color: transparentize($secondary-color, .75);
104
- }
105
- .timepicker-dial {
106
- transition: transform 350ms, opacity 350ms;
107
- }
108
- .timepicker-dial-out {
109
- &.timepicker-hours {
110
- transform: scale(1.1, 1.1);
111
- }
112
-
113
- &.timepicker-minutes {
114
- transform: scale(.8, .8);
115
- }
116
-
117
- opacity: 0;
118
- }
119
- .timepicker-canvas {
120
- transition: opacity 175ms;
121
-
122
- line {
123
- stroke: $secondary-color;
124
- stroke-width: 4;
125
- stroke-linecap: round;
126
- }
127
- }
128
- .timepicker-canvas-out {
129
- opacity: 0.25;
130
- }
131
- .timepicker-canvas-bearing {
132
- stroke: none;
133
- fill: $secondary-color;
134
- }
135
- .timepicker-canvas-bg {
136
- stroke: none;
137
- fill: $secondary-color;
138
- }
139
-
140
-
141
- /* Footer */
142
- .timepicker-footer {
143
- margin: 0 auto;
144
- padding: 5px 1rem;
145
- display: flex;
146
- justify-content: space-between;
147
- }
148
-
149
- .timepicker-clear {
150
- color: $error-color;
151
- }
152
-
153
- .timepicker-close {
154
- color: $secondary-color;
155
- }
156
-
157
- .timepicker-clear,
158
- .timepicker-close {
159
- padding: 0 20px;
160
- }
161
-
162
- /* Media Queries */
163
- @media #{$medium-and-up} {
164
- .timepicker-modal {
165
- max-width: 600px;
166
- }
167
-
168
- .timepicker-container.modal-content {
169
- flex-direction: row;
170
- }
171
-
172
- .timepicker-text-container {
173
- top: 32%;
174
- }
175
-
176
- .timepicker-display-am-pm {
177
- position: relative;
178
- right: auto;
179
- bottom: auto;
180
- text-align: center;
181
- margin-top: 1.2rem;
182
- }
183
- }
1
+ /* Timepicker Containers */
2
+ .timepicker-modal {
3
+ max-width: 325px;
4
+ max-height: none;
5
+ }
6
+
7
+ .timepicker-container.modal-content {
8
+ display: flex;
9
+ flex-direction: column;
10
+ padding: 0;
11
+ }
12
+
13
+ .text-primary {
14
+ color: rgba(255, 255, 255, 1);
15
+ }
16
+
17
+
18
+ /* Clock Digital Display */
19
+ .timepicker-digital-display {
20
+ width: 200px;
21
+ flex: 1 auto;
22
+ background-color: $secondary-color;
23
+ padding: 10px;
24
+ font-weight: 300;
25
+ }
26
+
27
+ .timepicker-text-container {
28
+ font-size: 4rem;
29
+ font-weight: bold;
30
+ text-align: center;
31
+ color: rgba(255, 255, 255, 0.6);
32
+ font-weight: 400;
33
+ position: relative;
34
+ user-select: none;
35
+
36
+ input[type=text]{
37
+ height: 4rem;
38
+ color: rgba(255, 255, 255, 0.6);
39
+ border-bottom: 0px;
40
+ font-size: 4rem;
41
+ direction: ltr;
42
+ }
43
+ }
44
+
45
+ .timepicker-input-hours,
46
+ .timepicker-input-minutes,
47
+ .timepicker-span-am-pm div {
48
+ cursor: pointer;
49
+ }
50
+
51
+ input[type=text].timepicker-input-hours {
52
+ text-align: right;
53
+ width: 28%;
54
+ margin-right: 3px;
55
+ }
56
+
57
+ input[type=text].timepicker-input-minutes {
58
+ width: 33%;
59
+ margin-left: 3px;
60
+ }
61
+
62
+ input[type=text].text-primary {
63
+ color: rgba(255, 255, 255, 1);
64
+ }
65
+
66
+ .timepicker-display-am-pm {
67
+ font-size: 1.3rem;
68
+ position: absolute;
69
+ right: 1rem;
70
+ bottom: 1rem;
71
+ font-weight: 400;
72
+ }
73
+
74
+
75
+ /* Analog Clock Display */
76
+ .timepicker-analog-display {
77
+ flex: 2.5 auto;
78
+ }
79
+
80
+ .timepicker-plate {
81
+ background-color: $timepicker-clock-plate-bg;
82
+ border-radius: 50%;
83
+ width: 270px;
84
+ height: 270px;
85
+ overflow: visible;
86
+ position: relative;
87
+ margin: auto;
88
+ margin-top: 25px;
89
+ margin-bottom: 5px;
90
+ user-select: none;
91
+ }
92
+
93
+ .timepicker-canvas,
94
+ .timepicker-dial {
95
+ position: absolute;
96
+ left: 0;
97
+ right: 0;
98
+ top: 0;
99
+ bottom: 0;
100
+ }
101
+ .timepicker-minutes {
102
+ visibility: hidden;
103
+ }
104
+
105
+ .timepicker-tick {
106
+ border-radius: 50%;
107
+ color: $timepicker-clock-color;
108
+ line-height: 40px;
109
+ text-align: center;
110
+ width: 40px;
111
+ height: 40px;
112
+ position: absolute;
113
+ cursor: pointer;
114
+ font-size: 15px;
115
+ }
116
+
117
+ .timepicker-tick.active,
118
+ .timepicker-tick:hover {
119
+ background-color: transparentize($secondary-color, .75);
120
+ }
121
+ .timepicker-dial {
122
+ transition: transform 350ms, opacity 350ms;
123
+ }
124
+ .timepicker-dial-out {
125
+ &.timepicker-hours {
126
+ transform: scale(1.1, 1.1);
127
+ }
128
+
129
+ &.timepicker-minutes {
130
+ transform: scale(.8, .8);
131
+ }
132
+
133
+ opacity: 0;
134
+ }
135
+ .timepicker-canvas {
136
+ transition: opacity 175ms;
137
+
138
+ line {
139
+ stroke: $secondary-color;
140
+ stroke-width: 4;
141
+ stroke-linecap: round;
142
+ }
143
+ }
144
+ .timepicker-canvas-out {
145
+ opacity: 0.25;
146
+ }
147
+ .timepicker-canvas-bearing {
148
+ stroke: none;
149
+ fill: $secondary-color;
150
+ }
151
+ .timepicker-canvas-bg {
152
+ stroke: none;
153
+ fill: $secondary-color;
154
+ }
155
+
156
+
157
+ /* Footer */
158
+ .timepicker-footer {
159
+ margin: 0 auto;
160
+ padding: 5px 1rem;
161
+ display: flex;
162
+ justify-content: space-between;
163
+ }
164
+
165
+ .timepicker-clear {
166
+ color: $error-color;
167
+ }
168
+
169
+ .timepicker-close {
170
+ color: $secondary-color;
171
+ }
172
+
173
+ .timepicker-clear,
174
+ .timepicker-close {
175
+ padding: 0 20px;
176
+ }
177
+
178
+ /* Media Queries */
179
+ @media #{$medium-and-up} {
180
+ .timepicker-modal {
181
+ max-width: 600px;
182
+ }
183
+
184
+ .timepicker-container.modal-content {
185
+ flex-direction: row;
186
+ }
187
+
188
+ .timepicker-text-container {
189
+ top: 32%;
190
+ }
191
+
192
+ .timepicker-display-am-pm {
193
+ position: relative;
194
+ right: auto;
195
+ bottom: auto;
196
+ text-align: center;
197
+ margin-top: 1.2rem;
198
+ }
199
+ }
@@ -1,58 +1,58 @@
1
- #toast-container {
2
- display:block;
3
- position: fixed;
4
- z-index: 10000;
5
-
6
- @media #{$small-and-down} {
7
- min-width: 100%;
8
- bottom: 0%;
9
- }
10
- @media #{$medium-only} {
11
- left: 5%;
12
- bottom: 7%;
13
- max-width: 90%;
14
- }
15
- @media #{$large-and-up} {
16
- top: 10%;
17
- right: 7%;
18
- max-width: 86%;
19
- }
20
- }
21
-
22
- .toast {
23
- @extend .z-depth-1;
24
- border-radius: 2px;
25
- top: 35px;
26
- width: auto;
27
- margin-top: 10px;
28
- position: relative;
29
- max-width:100%;
30
- height: auto;
31
- min-height: $toast-height;
32
- line-height: 1.5em;
33
- background-color: $toast-color;
34
- padding: 10px 25px;
35
- font-size: 1.1rem;
36
- font-weight: 300;
37
- color: $toast-text-color;
38
- display: flex;
39
- align-items: center;
40
- justify-content: space-between;
41
- cursor: default;
42
-
43
- .toast-action {
44
- color: $toast-action-color;
45
- font-weight: 500;
46
- margin-right: -25px;
47
- margin-left: 3rem;
48
- }
49
-
50
- &.rounded{
51
- border-radius: 24px;
52
- }
53
-
54
- @media #{$small-and-down} {
55
- width: 100%;
56
- border-radius: 0;
57
- }
58
- }
1
+ #toast-container {
2
+ display:block;
3
+ position: fixed;
4
+ z-index: 10000;
5
+
6
+ @media #{$small-and-down} {
7
+ min-width: 100%;
8
+ bottom: 0%;
9
+ }
10
+ @media #{$medium-only} {
11
+ left: 5%;
12
+ bottom: 7%;
13
+ max-width: 90%;
14
+ }
15
+ @media #{$large-and-up} {
16
+ top: 10%;
17
+ right: 7%;
18
+ max-width: 86%;
19
+ }
20
+ }
21
+
22
+ .toast {
23
+ @extend .z-depth-1;
24
+ border-radius: 2px;
25
+ top: 35px;
26
+ width: auto;
27
+ margin-top: 10px;
28
+ position: relative;
29
+ max-width:100%;
30
+ height: auto;
31
+ min-height: $toast-height;
32
+ line-height: 1.5em;
33
+ background-color: $toast-color;
34
+ padding: 10px 25px;
35
+ font-size: 1.1rem;
36
+ font-weight: 300;
37
+ color: $toast-text-color;
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: space-between;
41
+ cursor: default;
42
+
43
+ .toast-action {
44
+ color: $toast-action-color;
45
+ font-weight: 500;
46
+ margin-right: -25px;
47
+ margin-left: 3rem;
48
+ }
49
+
50
+ &.rounded{
51
+ border-radius: 24px;
52
+ }
53
+
54
+ @media #{$small-and-down} {
55
+ width: 100%;
56
+ border-radius: 0;
57
+ }
58
+ }
@@ -1,32 +1,32 @@
1
- .material-tooltip {
2
- padding: 10px 8px;
3
- font-size: 1rem;
4
- z-index: 2000;
5
- background-color: transparent;
6
- border-radius: 2px;
7
- color: #fff;
8
- min-height: 36px;
9
- line-height: 120%;
10
- opacity: 0;
11
- position: absolute;
12
- text-align: center;
13
- max-width: calc(100% - 4px);
14
- overflow: hidden;
15
- left: 0;
16
- top: 0;
17
- pointer-events: none;
18
- visibility: hidden;
19
- background-color: #323232;
20
- }
21
-
22
- .backdrop {
23
- position: absolute;
24
- opacity: 0;
25
- height: 7px;
26
- width: 14px;
27
- border-radius: 0 0 50% 50%;
28
- background-color: #323232;
29
- z-index: -1;
30
- transform-origin: 50% 0%;
31
- visibility: hidden;
32
- }
1
+ .material-tooltip {
2
+ padding: 10px 8px;
3
+ font-size: 1rem;
4
+ z-index: 2000;
5
+ background-color: transparent;
6
+ border-radius: 2px;
7
+ color: #fff;
8
+ min-height: 36px;
9
+ line-height: 120%;
10
+ opacity: 0;
11
+ position: absolute;
12
+ text-align: center;
13
+ max-width: calc(100% - 4px);
14
+ overflow: hidden;
15
+ left: 0;
16
+ top: 0;
17
+ pointer-events: none;
18
+ visibility: hidden;
19
+ background-color: #323232;
20
+ }
21
+
22
+ .backdrop {
23
+ position: absolute;
24
+ opacity: 0;
25
+ height: 7px;
26
+ width: 14px;
27
+ border-radius: 0 0 50% 50%;
28
+ background-color: #323232;
29
+ z-index: -1;
30
+ transform-origin: 50% 0%;
31
+ visibility: hidden;
32
+ }
@@ -1,13 +1,13 @@
1
- // Scale transition
2
- .scale-transition {
3
- &.scale-out {
4
- transform: scale(0);
5
- transition: transform .2s !important;
6
- }
7
-
8
- &.scale-in {
9
- transform: scale(1);
10
- }
11
-
12
- transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
1
+ // Scale transition
2
+ .scale-transition {
3
+ &.scale-out {
4
+ transform: scale(0);
5
+ transition: transform .2s !important;
6
+ }
7
+
8
+ &.scale-in {
9
+ transform: scale(1);
10
+ }
11
+
12
+ transition: transform .3s cubic-bezier(0.53, 0.01, 0.36, 1.63) !important;
13
13
  }