materialize-sass 0.97.5 → 0.97.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/materialize.js +230 -141
  3. data/app/assets/javascripts/materialize.min.js +6 -6
  4. data/app/assets/javascripts/materialize/character_counter.js +20 -7
  5. data/app/assets/javascripts/materialize/collapsible.js +1 -1
  6. data/app/assets/javascripts/materialize/date_picker/picker.js +5 -5
  7. data/app/assets/javascripts/materialize/dropdown.js +12 -3
  8. data/app/assets/javascripts/materialize/extras/nouislider.js +1 -1
  9. data/app/assets/javascripts/materialize/extras/nouislider.min.js +0 -5
  10. data/app/assets/javascripts/materialize/forms.js +6 -5
  11. data/app/assets/javascripts/materialize/init.js +26 -9
  12. data/app/assets/javascripts/materialize/initial.js +2 -2
  13. data/app/assets/javascripts/materialize/leanModal.js +19 -6
  14. data/app/assets/javascripts/materialize/materialbox.js +9 -9
  15. data/app/assets/javascripts/materialize/pushpin.js +48 -53
  16. data/app/assets/javascripts/materialize/scrollFire.js +7 -3
  17. data/app/assets/javascripts/materialize/scrollspy.js +6 -6
  18. data/app/assets/javascripts/materialize/sideNav.js +66 -37
  19. data/app/assets/javascripts/materialize/slider.js +2 -2
  20. data/app/assets/javascripts/materialize/tabs.js +12 -6
  21. data/app/assets/stylesheets/materialize.scss +1 -1
  22. data/app/assets/stylesheets/materialize/components/_buttons.scss +49 -33
  23. data/app/assets/stylesheets/materialize/components/_cards.scss +9 -5
  24. data/app/assets/stylesheets/materialize/components/_color.scss +21 -21
  25. data/app/assets/stylesheets/materialize/components/_global.scss +27 -11
  26. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +0 -3258
  27. data/app/assets/stylesheets/materialize/components/_materialbox.scss +1 -1
  28. data/app/assets/stylesheets/materialize/components/_navbar.scss +1 -1
  29. data/app/assets/stylesheets/materialize/components/_normalize.scss +9 -12
  30. data/app/assets/stylesheets/materialize/components/_sideNav.scss +16 -11
  31. data/app/assets/stylesheets/materialize/components/_tooltip.scss +1 -0
  32. data/app/assets/stylesheets/materialize/components/_variables.scss +181 -34
  33. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +1 -1
  34. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +2 -2
  35. data/app/assets/stylesheets/materialize/components/forms/_checkboxes.scss +220 -0
  36. data/app/assets/stylesheets/materialize/components/forms/_file-input.scss +38 -0
  37. data/app/assets/stylesheets/materialize/components/forms/_forms.scss +22 -0
  38. data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +254 -0
  39. data/app/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +119 -0
  40. data/app/assets/stylesheets/materialize/components/forms/_range.scss +159 -0
  41. data/app/assets/stylesheets/materialize/components/forms/_select.scss +116 -0
  42. data/app/assets/stylesheets/materialize/components/forms/_switches.scss +78 -0
  43. data/app/assets/stylesheets/materialize/extras/nouislider.css +2 -1
  44. data/lib/materialize-sass/version.rb +1 -1
  45. metadata +10 -9
  46. data/app/assets/fonts/material-design-icons/LICENSE.txt +0 -428
  47. data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
  48. data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +0 -769
  49. data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
  50. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
  51. data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
  52. data/app/assets/stylesheets/materialize/components/_form.scss +0 -954
@@ -46,7 +46,7 @@
46
46
  .picker__select--year.browser-default {
47
47
  display: inline;
48
48
  background-color: #FFFFFF;
49
- width: 25%;
49
+ width: 26%;
50
50
  }
51
51
  .picker__select--month:focus,
52
52
  .picker__select--year:focus {
@@ -173,7 +173,7 @@
173
173
  @media (min-height: 35.875em) {
174
174
  .picker--opened .picker__frame {
175
175
  top: 10%;
176
- bottom: 20%auto;
176
+ bottom: auto;
177
177
  }
178
178
  }
179
179
  /**
@@ -198,4 +198,4 @@
198
198
  top: 10%;
199
199
  bottom: auto;
200
200
  }
201
- }
201
+ }
@@ -0,0 +1,220 @@
1
+ /* Checkboxes
2
+ ========================================================================== */
3
+
4
+ /* CUSTOM CSS CHECKBOXES */
5
+ form p {
6
+ margin-bottom: 10px;
7
+ text-align: left;
8
+ }
9
+
10
+ form p:last-child {
11
+ margin-bottom: 0;
12
+ }
13
+
14
+ /* Remove default checkbox */
15
+ [type="checkbox"]:not(:checked),
16
+ [type="checkbox"]:checked {
17
+ position: absolute;
18
+ left: -9999px;
19
+ opacity: 0;
20
+ }
21
+
22
+ // Checkbox Styles
23
+ [type="checkbox"] {
24
+ // Text Label Style
25
+ + label {
26
+ position: relative;
27
+ padding-left: 35px;
28
+ cursor: pointer;
29
+ display: inline-block;
30
+ height: 25px;
31
+ line-height: 25px;
32
+ font-size: 1rem;
33
+
34
+ -webkit-user-select: none; /* webkit (safari, chrome) browsers */
35
+ -moz-user-select: none; /* mozilla browsers */
36
+ -khtml-user-select: none; /* webkit (konqueror) browsers */
37
+ -ms-user-select: none; /* IE10+ */
38
+ }
39
+
40
+ /* checkbox aspect */
41
+ + label:before,
42
+ &:not(.filled-in) + label:after {
43
+ content: '';
44
+ position: absolute;
45
+ top: 0;
46
+ left: 0;
47
+ width: 18px;
48
+ height: 18px;
49
+ z-index: 0;
50
+ border: 2px solid $radio-empty-color;
51
+ border-radius: 1px;
52
+ margin-top: 2px;
53
+ transition: .2s;
54
+ }
55
+
56
+ &:not(.filled-in) + label:after {
57
+ border: 0;
58
+ transform: scale(0);
59
+ }
60
+
61
+ &:not(:checked):disabled + label:before {
62
+ border: none;
63
+ background-color: $input-disabled-color;
64
+ }
65
+
66
+ // Focused styles
67
+ &.tabbed:focus + label:after {
68
+ transform: scale(1);
69
+ border: 0;
70
+ border-radius: 50%;
71
+ box-shadow: 0 0 0 10px rgba(0,0,0,.1);
72
+ background-color: rgba(0,0,0,.1);
73
+ }
74
+ }
75
+
76
+ [type="checkbox"]:checked {
77
+ + label:before {
78
+ top: -4px;
79
+ left: -5px;
80
+ width: 12px;
81
+ height: 22px;
82
+ border-top: 2px solid transparent;
83
+ border-left: 2px solid transparent;
84
+ border-right: $radio-border;
85
+ border-bottom: $radio-border;
86
+ transform: rotate(40deg);
87
+ backface-visibility: hidden;
88
+ transform-origin: 100% 100%;
89
+ }
90
+
91
+ &:disabled + label:before {
92
+ border-right: 2px solid $input-disabled-color;
93
+ border-bottom: 2px solid $input-disabled-color;
94
+ }
95
+ }
96
+
97
+ /* Indeterminate checkbox */
98
+ [type="checkbox"]:indeterminate {
99
+ +label:before {
100
+ top: -11px;
101
+ left: -12px;
102
+ width: 10px;
103
+ height: 22px;
104
+ border-top: none;
105
+ border-left: none;
106
+ border-right: $radio-border;
107
+ border-bottom: none;
108
+ transform: rotate(90deg);
109
+ backface-visibility: hidden;
110
+ transform-origin: 100% 100%;
111
+ }
112
+
113
+ // Disabled indeterminate
114
+ &:disabled + label:before {
115
+ border-right: 2px solid $input-disabled-color;
116
+ background-color: transparent;
117
+ }
118
+ }
119
+
120
+ // Filled in Style
121
+ [type="checkbox"].filled-in {
122
+ // General
123
+ + label:after {
124
+ border-radius: 2px;
125
+ }
126
+
127
+ + label:before,
128
+ + label:after {
129
+ content: '';
130
+ left: 0;
131
+ position: absolute;
132
+ /* .1s delay is for check animation */
133
+ transition: border .25s, background-color .25s, width .20s .1s, height .20s .1s, top .20s .1s, left .20s .1s;
134
+ z-index: 1;
135
+ }
136
+
137
+ // Unchecked style
138
+ &:not(:checked) + label:before {
139
+ width: 0;
140
+ height: 0;
141
+ border: 3px solid transparent;
142
+ left: 6px;
143
+ top: 10px;
144
+
145
+ -webkit-transform: rotateZ(37deg);
146
+ transform: rotateZ(37deg);
147
+ -webkit-transform-origin: 20% 40%;
148
+ transform-origin: 100% 100%;
149
+ }
150
+
151
+ &:not(:checked) + label:after {
152
+ height: 20px;
153
+ width: 20px;
154
+ background-color: transparent;
155
+ border: 2px solid $radio-empty-color;
156
+ top: 0px;
157
+ z-index: 0;
158
+ }
159
+
160
+ // Checked style
161
+ &:checked {
162
+ + label:before {
163
+ top: 0;
164
+ left: 1px;
165
+ width: 8px;
166
+ height: 13px;
167
+ border-top: 2px solid transparent;
168
+ border-left: 2px solid transparent;
169
+ border-right: 2px solid $input-background;
170
+ border-bottom: 2px solid $input-background;
171
+ -webkit-transform: rotateZ(37deg);
172
+ transform: rotateZ(37deg);
173
+
174
+ -webkit-transform-origin: 100% 100%;
175
+ transform-origin: 100% 100%;
176
+ }
177
+
178
+ + label:after {
179
+ top: 0;
180
+ width: 20px;
181
+ height: 20px;
182
+ border: 2px solid $secondary-color;
183
+ background-color: $secondary-color;
184
+ z-index: 0;
185
+ }
186
+ }
187
+
188
+ // Focused styles
189
+ &.tabbed:focus + label:after {
190
+ border-radius: 2px;
191
+ border-color: $radio-empty-color;
192
+ background-color: rgba(0,0,0,.1);
193
+ }
194
+
195
+ &.tabbed:checked:focus + label:after {
196
+ border-radius: 2px;
197
+ background-color: $secondary-color;
198
+ border-color: $secondary-color;
199
+ }
200
+
201
+ // Disabled style
202
+ &:disabled:not(:checked) + label:before {
203
+ background-color: transparent;
204
+ border: 2px solid transparent;
205
+ }
206
+
207
+ &:disabled:not(:checked) + label:after {
208
+ border-color: transparent;
209
+ background-color: $input-disabled-solid-color;
210
+ }
211
+
212
+ &:disabled:checked + label:before {
213
+ background-color: transparent;
214
+ }
215
+
216
+ &:disabled:checked + label:after {
217
+ background-color: $input-disabled-solid-color;
218
+ border-color: $input-disabled-solid-color;
219
+ }
220
+ }
@@ -0,0 +1,38 @@
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
+ position: absolute;
26
+ top: 0;
27
+ right: 0;
28
+ left: 0;
29
+ bottom: 0;
30
+ width: 100%;
31
+ margin: 0;
32
+ padding: 0;
33
+ font-size: 20px;
34
+ cursor: pointer;
35
+ opacity: 0;
36
+ filter: alpha(opacity=0);
37
+ }
38
+ }
@@ -0,0 +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';
@@ -0,0 +1,254 @@
1
+ /* Text Inputs + Textarea
2
+ ========================================================================== */
3
+
4
+ /* Style Placeholders */
5
+
6
+ ::-webkit-input-placeholder {
7
+ color: $placeholder-text-color;
8
+ }
9
+
10
+ :-moz-placeholder { /* Firefox 18- */
11
+ color: $placeholder-text-color;
12
+ }
13
+
14
+ ::-moz-placeholder { /* Firefox 19+ */
15
+ color: $placeholder-text-color;
16
+ }
17
+
18
+ :-ms-input-placeholder {
19
+ color: $placeholder-text-color;
20
+ }
21
+
22
+ /* Text inputs */
23
+
24
+ input:not([type]),
25
+ input[type=text],
26
+ input[type=password],
27
+ input[type=email],
28
+ input[type=url],
29
+ input[type=time],
30
+ input[type=date],
31
+ input[type=datetime],
32
+ input[type=datetime-local],
33
+ input[type=tel],
34
+ input[type=number],
35
+ input[type=search],
36
+ textarea.materialize-textarea {
37
+
38
+ // General Styles
39
+ background-color: transparent;
40
+ border: none;
41
+ border-bottom: $input-border;
42
+ border-radius: 0;
43
+ outline: none;
44
+ height: $input-height;
45
+ width: 100%;
46
+ font-size: $input-font-size;
47
+ margin: $input-margin;
48
+ padding: $input-padding;
49
+ box-shadow: none;
50
+ box-sizing: content-box;
51
+ transition: $input-transition;
52
+
53
+ // Disabled input style
54
+ &:disabled,
55
+ &[readonly="readonly"] {
56
+ color: $input-disabled-color;
57
+ border-bottom: $input-disabled-border;
58
+ }
59
+
60
+ // Disabled label style
61
+ &:disabled+label,
62
+ &[readonly="readonly"]+label {
63
+ color: $input-disabled-color;
64
+ }
65
+
66
+ // Focused input style
67
+ &:focus:not([readonly]) {
68
+ border-bottom: 1px solid $input-focus-color;
69
+ box-shadow: 0 1px 0 0 $input-focus-color;
70
+ }
71
+
72
+ // Focused label style
73
+ &:focus:not([readonly])+label {
74
+ color: $input-focus-color;
75
+ }
76
+
77
+ // Valid Input Style
78
+ &.valid,
79
+ &:focus.valid {
80
+ border-bottom: 1px solid $input-success-color;
81
+ box-shadow: 0 1px 0 0 $input-success-color;
82
+ }
83
+
84
+ // Custom Success Message
85
+ &.valid + label:after,
86
+ &:focus.valid + label:after {
87
+ content: attr(data-success);
88
+ color: $input-success-color;
89
+ opacity: 1;
90
+ }
91
+
92
+ // Invalid Input Style
93
+ &.invalid,
94
+ &:focus.invalid {
95
+ border-bottom: $input-invalid-border;
96
+ box-shadow: 0 1px 0 0 $input-error-color;
97
+ }
98
+
99
+ // Custom Error message
100
+ &.invalid + label:after,
101
+ &:focus.invalid + label:after {
102
+ content: attr(data-error);
103
+ color: $input-error-color;
104
+ opacity: 1;
105
+ }
106
+
107
+ // Full width label when using validate for error messages
108
+ &.validate + label {
109
+ width: 100%;
110
+ pointer-events: none;
111
+ }
112
+
113
+ // Form Message Shared Styles
114
+ & + label:after {
115
+ display: block;
116
+ content: "";
117
+ position: absolute;
118
+ top: 65px;
119
+ opacity: 0;
120
+ transition: .2s opacity ease-out, .2s color ease-out;
121
+ }
122
+ }
123
+
124
+ // Styling for input field wrapper
125
+ .input-field {
126
+ // Gutter spacing
127
+ &.col {
128
+ label {
129
+ left: $gutter-width / 2;
130
+ }
131
+
132
+ .prefix ~ label,
133
+ .prefix ~ .validate ~ label {
134
+ width: calc(100% - 3rem - #{$gutter-width});
135
+ }
136
+ }
137
+
138
+ position: relative;
139
+ margin-top: 1rem;
140
+
141
+ label {
142
+ color: $input-border-color;
143
+ position: absolute;
144
+ top: 0.8rem;
145
+ font-size: 1rem;
146
+ cursor: text;
147
+ transition: .2s ease-out;
148
+ }
149
+
150
+ label.active {
151
+ font-size: $label-font-size;
152
+ transform: translateY(-140%);
153
+ }
154
+
155
+ // Prefix Icons
156
+ .prefix {
157
+ position: absolute;
158
+ width: $input-height;
159
+ font-size: 2rem;
160
+ transition: color .2s;
161
+
162
+ &.active { color: $input-focus-color; }
163
+ }
164
+
165
+ .prefix ~ input,
166
+ .prefix ~ textarea,
167
+ .prefix ~ label,
168
+ .prefix ~ .validate ~ label {
169
+ margin-left: 3rem;
170
+ width: 92%;
171
+ width: calc(100% - 3rem);
172
+ }
173
+
174
+ .prefix ~ textarea { padding-top: .8rem; }
175
+ .prefix ~ label { margin-left: 3rem; }
176
+
177
+ @media #{$medium-and-down} {
178
+ .prefix ~ input {
179
+ width: 86%;
180
+ width: calc(100% - 3rem);
181
+ }
182
+ }
183
+
184
+ @media #{$small-and-down} {
185
+ .prefix ~ input {
186
+ width: 80%;
187
+ width: calc(100% - 3rem);
188
+ }
189
+ }
190
+ }
191
+
192
+
193
+ /* Search Field */
194
+
195
+ .input-field input[type=search] {
196
+ display: block;
197
+ line-height: inherit;
198
+ padding-left: 4rem;
199
+ width: calc(100% - 4rem);
200
+
201
+ &:focus {
202
+ background-color: $input-background;
203
+ border: 0;
204
+ box-shadow: none;
205
+ color: #444;
206
+
207
+ & + label i,
208
+ & ~ .mdi-navigation-close,
209
+ & ~ .material-icons {
210
+ color: #444;
211
+ }
212
+ }
213
+
214
+ & + label {
215
+ left: 1rem;
216
+ }
217
+
218
+ & ~ .mdi-navigation-close,
219
+ & ~ .material-icons {
220
+ position: absolute;
221
+ top: 0;
222
+ right: 1rem;
223
+ color: transparent;
224
+ cursor: pointer;
225
+ font-size: 2rem;
226
+ transition: .3s color;
227
+ }
228
+ }
229
+
230
+
231
+ /* Textarea */
232
+
233
+ // Default textarea
234
+ textarea {
235
+ width: 100%;
236
+ height: $input-height;
237
+ background-color: transparent;
238
+
239
+ &.materialize-textarea {
240
+ overflow-y: hidden; /* prevents scroll bar flash */
241
+ padding: 1.6rem 0; /* prevents text jump on Enter keypress */
242
+ resize: none;
243
+ min-height: $input-height;
244
+ }
245
+ }
246
+
247
+ // For textarea autoresize
248
+ .hiddendiv {
249
+ display: none;
250
+ white-space: pre-wrap;
251
+ word-wrap: break-word;
252
+ overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
253
+ padding-top: 1.2rem; /* prevents text jump on Enter keypress */
254
+ }