materialize-sass 0.97.8 → 1.0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +5 -5
  2. data/.gitattributes +1 -0
  3. data/.gitignore +1 -0
  4. data/README.md +34 -32
  5. data/Rakefile +38 -21
  6. data/assets/javascripts/materialize/anime.min.js +417 -0
  7. data/assets/javascripts/materialize/autocomplete.js +504 -0
  8. data/assets/javascripts/materialize/buttons.js +409 -0
  9. data/assets/javascripts/materialize/cards.js +34 -0
  10. data/assets/javascripts/materialize/carousel.js +797 -0
  11. data/assets/javascripts/materialize/cash.js +990 -0
  12. data/assets/javascripts/materialize/characterCounter.js +180 -0
  13. data/assets/javascripts/materialize/chips.js +564 -0
  14. data/assets/javascripts/materialize/collapsible.js +337 -0
  15. data/assets/javascripts/materialize/component.js +57 -0
  16. data/assets/javascripts/materialize/datepicker.js +935 -0
  17. data/assets/javascripts/materialize/dropdown.js +659 -0
  18. data/assets/javascripts/materialize/extras/nouislider.js +2147 -0
  19. data/assets/javascripts/materialize/extras/nouislider.min.js +1 -0
  20. data/assets/javascripts/materialize/forms.js +244 -0
  21. data/assets/javascripts/materialize/global.js +408 -0
  22. data/assets/javascripts/materialize/materialbox.js +513 -0
  23. data/assets/javascripts/materialize/modal.js +449 -0
  24. data/assets/javascripts/materialize/parallax.js +173 -0
  25. data/assets/javascripts/materialize/pushpin.js +179 -0
  26. data/assets/javascripts/materialize/range.js +310 -0
  27. data/assets/javascripts/materialize/scrollspy.js +328 -0
  28. data/assets/javascripts/materialize/select.js +497 -0
  29. data/assets/javascripts/materialize/sidenav.js +655 -0
  30. data/assets/javascripts/materialize/slider.js +424 -0
  31. data/assets/javascripts/materialize/tabs.js +476 -0
  32. data/assets/javascripts/materialize/tapTarget.js +364 -0
  33. data/assets/javascripts/materialize/timepicker.js +647 -0
  34. data/assets/javascripts/materialize/toasts.js +355 -0
  35. data/assets/javascripts/materialize/tooltip.js +351 -0
  36. data/{app/assets → assets}/javascripts/materialize/waves.js +42 -47
  37. data/{app/assets → assets}/javascripts/materialize-sprockets.js +12 -13
  38. data/assets/javascripts/materialize.js +12374 -0
  39. data/assets/stylesheets/materialize/components/_badges.scss +55 -0
  40. data/{app/assets → assets}/stylesheets/materialize/components/_buttons.scss +99 -58
  41. data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +14 -6
  42. data/{app/assets → assets}/stylesheets/materialize/components/_carousel.scss +12 -7
  43. data/{app/assets → assets}/stylesheets/materialize/components/_chips.scss +13 -6
  44. data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +16 -15
  45. data/assets/stylesheets/materialize/components/_color-classes.scss +32 -0
  46. data/{app/assets/stylesheets/materialize/components/_color.scss → assets/stylesheets/materialize/components/_color-variables.scss} +2 -44
  47. data/assets/stylesheets/materialize/components/_datepicker.scss +191 -0
  48. data/{app/assets → assets}/stylesheets/materialize/components/_dropdown.scss +35 -15
  49. data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +96 -125
  50. data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +45 -36
  51. data/{app/assets → assets}/stylesheets/materialize/components/_icons-material-design.scss +0 -0
  52. data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +13 -12
  53. data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +7 -3
  54. data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +29 -11
  55. data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
  56. data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +2 -2
  57. data/assets/stylesheets/materialize/components/_pulse.scss +34 -0
  58. data/{app/assets/stylesheets/materialize/components/_sideNav.scss → assets/stylesheets/materialize/components/_sidenav.scss} +47 -47
  59. data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +0 -0
  60. data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +5 -5
  61. data/{app/assets → assets}/stylesheets/materialize/components/_tabs.scss +10 -10
  62. data/assets/stylesheets/materialize/components/_tapTarget.scss +103 -0
  63. data/assets/stylesheets/materialize/components/_timepicker.scss +183 -0
  64. data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +7 -14
  65. data/{app/assets → assets}/stylesheets/materialize/components/_tooltip.scss +3 -3
  66. data/assets/stylesheets/materialize/components/_transitions.scss +13 -0
  67. data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +8 -9
  68. data/{app/assets → assets}/stylesheets/materialize/components/_variables.scss +65 -29
  69. data/assets/stylesheets/materialize/components/_waves.scss +114 -0
  70. data/{app/assets → assets}/stylesheets/materialize/components/forms/_checkboxes.scss +26 -46
  71. data/{app/assets → assets}/stylesheets/materialize/components/forms/_file-input.scss +6 -0
  72. data/{app/assets → assets}/stylesheets/materialize/components/forms/_forms.scss +0 -0
  73. data/{app/assets → assets}/stylesheets/materialize/components/forms/_input-fields.scss +131 -63
  74. data/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +115 -0
  75. data/{app/assets → assets}/stylesheets/materialize/components/forms/_range.scss +35 -33
  76. data/{app/assets → assets}/stylesheets/materialize/components/forms/_select.scss +88 -19
  77. data/{app/assets → assets}/stylesheets/materialize/components/forms/_switches.scss +32 -21
  78. data/assets/stylesheets/materialize/extras/nouislider.css +406 -0
  79. data/{app/assets → assets}/stylesheets/materialize.scss +10 -9
  80. data/lib/materialize-sass/engine.rb +9 -7
  81. data/lib/materialize-sass/helpers.rb +38 -0
  82. data/lib/materialize-sass/version.rb +1 -1
  83. data/lib/materialize-sass.rb +13 -28
  84. data/materialize-sass.gemspec +5 -5
  85. metadata +97 -119
  86. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  87. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  88. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  89. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  90. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  91. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  92. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  93. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  94. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  95. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  96. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  97. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  98. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  99. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  100. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  101. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  102. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  103. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  104. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  105. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  106. data/app/assets/javascripts/materialize/animation.js +0 -9
  107. data/app/assets/javascripts/materialize/buttons.js +0 -267
  108. data/app/assets/javascripts/materialize/cards.js +0 -26
  109. data/app/assets/javascripts/materialize/carousel.js +0 -454
  110. data/app/assets/javascripts/materialize/character_counter.js +0 -72
  111. data/app/assets/javascripts/materialize/chips.js +0 -289
  112. data/app/assets/javascripts/materialize/collapsible.js +0 -160
  113. data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1430
  114. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1123
  115. data/app/assets/javascripts/materialize/dropdown.js +0 -265
  116. data/app/assets/javascripts/materialize/extras/nouislider.js +0 -1666
  117. data/app/assets/javascripts/materialize/extras/nouislider.min.js +0 -1
  118. data/app/assets/javascripts/materialize/forms.js +0 -682
  119. data/app/assets/javascripts/materialize/global.js +0 -98
  120. data/app/assets/javascripts/materialize/hammer.min.js +0 -1
  121. data/app/assets/javascripts/materialize/init.js +0 -174
  122. data/app/assets/javascripts/materialize/initial.js +0 -11
  123. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
  124. data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
  125. data/app/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
  126. data/app/assets/javascripts/materialize/materialbox.js +0 -269
  127. data/app/assets/javascripts/materialize/modal.js +0 -184
  128. data/app/assets/javascripts/materialize/parallax.js +0 -58
  129. data/app/assets/javascripts/materialize/prism.js +0 -8
  130. data/app/assets/javascripts/materialize/pushpin.js +0 -71
  131. data/app/assets/javascripts/materialize/scrollFire.js +0 -48
  132. data/app/assets/javascripts/materialize/scrollspy.js +0 -284
  133. data/app/assets/javascripts/materialize/sideNav.js +0 -370
  134. data/app/assets/javascripts/materialize/slider.js +0 -321
  135. data/app/assets/javascripts/materialize/tabs.js +0 -164
  136. data/app/assets/javascripts/materialize/toasts.js +0 -137
  137. data/app/assets/javascripts/materialize/tooltip.js +0 -236
  138. data/app/assets/javascripts/materialize/transitions.js +0 -169
  139. data/app/assets/javascripts/materialize/velocity.min.js +0 -5
  140. data/app/assets/javascripts/materialize.js +0 -5
  141. data/app/assets/stylesheets/materialize/components/_mixins.scss +0 -5
  142. data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -424
  143. data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -384
  144. data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -49
  145. data/app/assets/stylesheets/materialize/components/_waves.scss +0 -177
  146. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -435
  147. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -201
  148. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -125
  149. data/app/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +0 -117
  150. data/app/assets/stylesheets/materialize/extras/nouislider.css +0 -259
@@ -8,10 +8,11 @@
8
8
  // 2. Badges
9
9
  // 3. Buttons
10
10
  // 4. Cards
11
- // 5. Collapsible
12
- // 6. Chips
13
- // 7. Date Picker
14
- // 8. Dropdown
11
+ // 5. Carousel
12
+ // 6. Collapsible
13
+ // 7. Chips
14
+ // 8. Date + Time Picker
15
+ // 9. Dropdown
15
16
  // 10. Forms
16
17
  // 11. Global
17
18
  // 12. Grid
@@ -47,6 +48,7 @@ $link-color: color("light-blue", "darken-1") !default;
47
48
  // ==========================================================================
48
49
 
49
50
  $badge-bg-color: $secondary-color !default;
51
+ $badge-height: 22px !default;
50
52
 
51
53
 
52
54
  // 3. Buttons
@@ -55,9 +57,10 @@ $badge-bg-color: $secondary-color !default;
55
57
  // Shared styles
56
58
  $button-border: none !default;
57
59
  $button-background-focus: lighten($secondary-color, 4%) !default;
58
- $button-font-size: 1.3rem !default;
60
+ $button-font-size: 14px !default;
61
+ $button-icon-font-size: 1.3rem !default;
59
62
  $button-height: 36px !default;
60
- $button-padding: 0 2rem !default;
63
+ $button-padding: 0 16px !default;
61
64
  $button-radius: 2px !default;
62
65
 
63
66
  // Disabled styles
@@ -70,8 +73,16 @@ $button-raised-background-hover: lighten($button-raised-background, 5%) !default
70
73
  $button-raised-color: #fff !default;
71
74
 
72
75
  // Large buttons
76
+ $button-large-font-size: 15px !default;
73
77
  $button-large-icon-font-size: 1.6rem !default;
74
78
  $button-large-height: $button-height * 1.5 !default;
79
+ $button-floating-large-size: 56px !default;
80
+
81
+ // Small buttons
82
+ $button-small-font-size: 13px !default;
83
+ $button-small-icon-font-size: 1.2rem !default;
84
+ $button-small-height: $button-height * .9 !default;
85
+ $button-floating-small-size: $button-height * .9 !default;
75
86
 
76
87
  // Flat buttons
77
88
  $button-flat-color: #343434 !default;
@@ -82,28 +93,36 @@ $button-floating-background: $secondary-color !default;
82
93
  $button-floating-background-hover: $button-floating-background !default;
83
94
  $button-floating-color: #fff !default;
84
95
  $button-floating-size: 40px !default;
85
- $button-floating-large-size: 56px !default;
86
96
  $button-floating-radius: 50% !default;
87
97
 
88
98
 
89
99
  // 4. Cards
90
100
  // ==========================================================================
91
101
 
92
- $card-padding: 20px !default;
102
+ $card-padding: 24px !default;
93
103
  $card-bg-color: #fff !default;
94
104
  $card-link-color: color("orange", "accent-2") !default;
95
105
  $card-link-color-light: lighten($card-link-color, 20%) !default;
96
106
 
97
107
 
98
- // 5. Collapsible
108
+ // 5. Carousel
109
+ // ==========================================================================
110
+
111
+ $carousel-height: 400px !default;
112
+ $carousel-item-height: $carousel-height / 2 !default;
113
+ $carousel-item-width: $carousel-item-height !default;
114
+
115
+
116
+ // 6. Collapsible
99
117
  // ==========================================================================
100
118
 
101
119
  $collapsible-height: 3rem !default;
120
+ $collapsible-line-height: $collapsible-height !default;
102
121
  $collapsible-header-color: #fff !default;
103
122
  $collapsible-border-color: #ddd !default;
104
123
 
105
124
 
106
- // 6. Chips
125
+ // 7. Chips
107
126
  // ==========================================================================
108
127
 
109
128
  $chip-bg-color: #e4e4e4 !default;
@@ -112,18 +131,26 @@ $chip-selected-color: #26a69a !default;
112
131
  $chip-margin: 5px !default;
113
132
 
114
133
 
115
- // 7. Date Picker
134
+ // 8. Date + Time Picker
116
135
  // ==========================================================================
117
136
 
137
+ $datepicker-display-font-size: 2.8rem;
138
+ $datepicker-calendar-header-color: #999;
139
+ $datepicker-weekday-color: rgba(0, 0, 0, .87) !default;
118
140
  $datepicker-weekday-bg: darken($secondary-color, 7%) !default;
119
141
  $datepicker-date-bg: $secondary-color !default;
120
- $datepicker-year: rgba(255, 255, 255, .4) !default;
142
+ $datepicker-year: rgba(255, 255, 255, .7) !default;
121
143
  $datepicker-focus: rgba(0,0,0, .05) !default;
122
144
  $datepicker-selected: $secondary-color !default;
123
145
  $datepicker-selected-outfocus: desaturate(lighten($secondary-color, 35%), 15%) !default;
146
+ $datepicker-day-focus: transparentize(desaturate($secondary-color, 5%), .75) !default;
147
+ $datepicker-disabled-day-color: rgba(0, 0, 0, .3) !default;
148
+
149
+ $timepicker-clock-color: rgba(0, 0, 0, .87) !default;
150
+ $timepicker-clock-plate-bg: #eee !default;
124
151
 
125
152
 
126
- // 8. Dropdown
153
+ // 9. Dropdown
127
154
  // ==========================================================================
128
155
 
129
156
  $dropdown-bg-color: #fff !default;
@@ -132,12 +159,6 @@ $dropdown-color: $secondary-color !default;
132
159
  $dropdown-item-height: 50px !default;
133
160
 
134
161
 
135
- // 9. Fonts
136
- // ==========================================================================
137
-
138
- $roboto-font-path: "roboto/" !default;
139
-
140
-
141
162
  // 10. Forms
142
163
  // ==========================================================================
143
164
 
@@ -149,15 +170,16 @@ $input-background: #fff !default;
149
170
  $input-error-color: $error-color !default;
150
171
  $input-success-color: $success-color !default;
151
172
  $input-focus-color: $secondary-color !default;
152
- $input-font-size: 1rem !default;
153
- $input-margin: 0 0 20px 0 !default;
173
+ $input-font-size: 16px !default;
174
+ $input-margin-bottom: 8px;
175
+ $input-margin: 0 0 $input-margin-bottom 0 !default;
154
176
  $input-padding: 0 !default;
155
- $input-transition: all .3s !default;
156
177
  $label-font-size: .8rem !default;
157
- $input-disabled-color: rgba(0,0,0, .26) !default;
158
- $input-disabled-solid-color: #BDBDBD !default;
178
+ $input-disabled-color: rgba(0,0,0, .42) !default;
179
+ $input-disabled-solid-color: #949494 !default;
159
180
  $input-disabled-border: 1px dotted $input-disabled-color !default;
160
181
  $input-invalid-border: 1px solid $input-error-color !default;
182
+ $input-icon-size: 2rem;
161
183
  $placeholder-text-color: lighten($input-border-color, 20%) !default;
162
184
 
163
185
  // Radio Buttons
@@ -174,15 +196,18 @@ $track-height: 3px !default;
174
196
  $select-border: 1px solid #f2f2f2 !default;
175
197
  $select-background: rgba(255, 255, 255, 0.90) !default;
176
198
  $select-focus: 1px solid lighten($secondary-color, 47%) !default;
199
+ $select-option-hover: rgba(0,0,0,.08) !default;
200
+ $select-option-focus: rgba(0,0,0,.08) !default;
201
+ $select-option-selected: rgba(0,0,0,.03) !default;
177
202
  $select-padding: 5px !default;
178
203
  $select-radius: 2px !default;
179
204
  $select-disabled-color: rgba(0,0,0,.3) !default;
180
205
 
181
206
  // Switches
182
207
  $switch-bg-color: $secondary-color !default;
183
- $switch-checked-lever-bg: desaturate(lighten($secondary-color, 25%), 25%) !default;
208
+ $switch-checked-lever-bg: desaturate(lighten($switch-bg-color, 25%), 25%) !default;
184
209
  $switch-unchecked-bg: #F1F1F1 !default;
185
- $switch-unchecked-lever-bg: #818181 !default;
210
+ $switch-unchecked-lever-bg: rgba(0,0,0,.38) !default;
186
211
  $switch-radius: 15px !default;
187
212
 
188
213
 
@@ -199,6 +224,7 @@ $large-screen: 1200px !default;
199
224
 
200
225
  $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
201
226
  $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
227
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
202
228
  $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
203
229
  $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
204
230
  $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
@@ -217,7 +243,9 @@ $element-bottom-margin: ($gutter-width*2)/3 !default;
217
243
  // ==========================================================================
218
244
 
219
245
  $navbar-height: 64px !default;
246
+ $navbar-line-height: $navbar-height !default;
220
247
  $navbar-height-mobile: 56px !default;
248
+ $navbar-line-height-mobile: $navbar-height-mobile !default;
221
249
  $navbar-font-size: 1rem !default;
222
250
  $navbar-font-color: #fff !default;
223
251
  $navbar-brand-font-size: 2.1rem !default;
@@ -225,11 +253,13 @@ $navbar-brand-font-size: 2.1rem !default;
225
253
  // 14. Side Navigation
226
254
  // ==========================================================================
227
255
 
256
+ $sidenav-width: 300px !default;
228
257
  $sidenav-font-size: 14px !default;
229
258
  $sidenav-font-color: rgba(0,0,0,.87) !default;
230
259
  $sidenav-bg-color: #fff !default;
231
260
  $sidenav-padding: 16px !default;
232
261
  $sidenav-item-height: 48px !default;
262
+ $sidenav-line-height: $sidenav-item-height !default;
233
263
 
234
264
 
235
265
  // 15. Photo Slider
@@ -257,8 +287,8 @@ $tabs-bg-color: #fff !default;
257
287
  // 18. Tables
258
288
  // ==========================================================================
259
289
 
260
- $table-border-color: #d0d0d0 !default;
261
- $table-striped-color: #f2f2f2 !default;
290
+ $table-border-color: rgba(0,0,0,.12) !default;
291
+ $table-striped-color: rgba(242, 242, 242, 0.5) !default;
262
292
 
263
293
 
264
294
  // 19. Toasts
@@ -267,11 +297,13 @@ $table-striped-color: #f2f2f2 !default;
267
297
  $toast-height: 48px !default;
268
298
  $toast-color: #323232 !default;
269
299
  $toast-text-color: #fff !default;
300
+ $toast-action-color: #eeff41;
270
301
 
271
302
 
272
303
  // 20. Typography
273
304
  // ==========================================================================
274
305
 
306
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
275
307
  $off-black: rgba(0, 0, 0, 0.87) !default;
276
308
  // Header Styles
277
309
  $h1-fontsize: 4.2rem !default;
@@ -279,13 +311,16 @@ $h2-fontsize: 3.56rem !default;
279
311
  $h3-fontsize: 2.92rem !default;
280
312
  $h4-fontsize: 2.28rem !default;
281
313
  $h5-fontsize: 1.64rem !default;
282
- $h6-fontsize: 1rem !default;
314
+ $h6-fontsize: 1.15rem !default;
283
315
 
284
316
 
285
317
  // 21. Footer
286
318
  // ==========================================================================
287
319
 
320
+ $footer-font-color: #fff !default;
288
321
  $footer-bg-color: $primary-color !default;
322
+ $footer-copyright-font-color: rgba(255,255,255,.8) !default;
323
+ $footer-copyright-bg-color: rgba(51,51,51,.08) !default;
289
324
 
290
325
 
291
326
  // 22. Flow Text
@@ -305,6 +340,7 @@ $collection-active-bg-color: $secondary-color !default;
305
340
  $collection-active-color: lighten($secondary-color, 55%) !default;
306
341
  $collection-hover-bg-color: #ddd !default;
307
342
  $collection-link-color: $secondary-color !default;
343
+ $collection-line-height: 1.5rem !default;
308
344
 
309
345
 
310
346
  // 24. Progress Bar
@@ -0,0 +1,114 @@
1
+
2
+ /*!
3
+ * Waves v0.6.0
4
+ * http://fian.my.id/Waves
5
+ *
6
+ * Copyright 2014 Alfiana E. Sibuea and other contributors
7
+ * Released under the MIT license
8
+ * https://github.com/fians/Waves/blob/master/LICENSE
9
+ */
10
+
11
+
12
+ .waves-effect {
13
+ position: relative;
14
+ cursor: pointer;
15
+ display: inline-block;
16
+ overflow: hidden;
17
+ user-select: none;
18
+ -webkit-tap-highlight-color: transparent;
19
+ vertical-align: middle;
20
+ z-index: 1;
21
+ transition: .3s ease-out;
22
+
23
+ .waves-ripple {
24
+ position: absolute;
25
+ border-radius: 50%;
26
+ width: 20px;
27
+ height: 20px;
28
+ margin-top:-10px;
29
+ margin-left:-10px;
30
+ opacity: 0;
31
+
32
+ background: rgba(0,0,0,0.2);
33
+ transition: all 0.7s ease-out;
34
+ transition-property: transform, opacity;
35
+ transform: scale(0);
36
+ pointer-events: none;
37
+ }
38
+
39
+ // Waves Colors
40
+ &.waves-light .waves-ripple {
41
+ background-color: rgba(255, 255, 255, 0.45);
42
+ }
43
+ &.waves-red .waves-ripple {
44
+ background-color: rgba(244, 67, 54, .70);
45
+ }
46
+ &.waves-yellow .waves-ripple {
47
+ background-color: rgba(255, 235, 59, .70);
48
+ }
49
+ &.waves-orange .waves-ripple {
50
+ background-color: rgba(255, 152, 0, .70);
51
+ }
52
+ &.waves-purple .waves-ripple {
53
+ background-color: rgba(156, 39, 176, 0.70);
54
+ }
55
+ &.waves-green .waves-ripple {
56
+ background-color: rgba(76, 175, 80, 0.70);
57
+ }
58
+ &.waves-teal .waves-ripple {
59
+ background-color: rgba(0, 150, 136, 0.70);
60
+ }
61
+
62
+ // Style input button bug.
63
+ input[type="button"], input[type="reset"], input[type="submit"] {
64
+ border: 0;
65
+ font-style: normal;
66
+ font-size: inherit;
67
+ text-transform: inherit;
68
+ background: none;
69
+ }
70
+
71
+ img {
72
+ position: relative;
73
+ z-index: -1;
74
+ }
75
+ }
76
+
77
+ .waves-notransition {
78
+ transition: none #{"!important"};
79
+ }
80
+
81
+ .waves-circle {
82
+ transform: translateZ(0);
83
+ -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
84
+ }
85
+
86
+ .waves-input-wrapper {
87
+ border-radius: 0.2em;
88
+ vertical-align: bottom;
89
+
90
+ .waves-button-input {
91
+ position: relative;
92
+ top: 0;
93
+ left: 0;
94
+ z-index: 1;
95
+ }
96
+ }
97
+
98
+ .waves-circle {
99
+ text-align: center;
100
+ width: 2.5em;
101
+ height: 2.5em;
102
+ line-height: 2.5em;
103
+ border-radius: 50%;
104
+ -webkit-mask-image: none;
105
+ }
106
+
107
+ .waves-block {
108
+ display: block;
109
+ }
110
+
111
+ /* Firefox Bug: link not triggered */
112
+ .waves-effect .waves-ripple {
113
+ z-index: -1;
114
+ }
@@ -1,28 +1,18 @@
1
1
  /* Checkboxes
2
2
  ========================================================================== */
3
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
4
  /* Remove default checkbox */
15
5
  [type="checkbox"]:not(:checked),
16
6
  [type="checkbox"]:checked {
17
7
  position: absolute;
18
- left: -9999px;
19
8
  opacity: 0;
9
+ pointer-events: none;
20
10
  }
21
11
 
22
12
  // Checkbox Styles
23
13
  [type="checkbox"] {
24
14
  // Text Label Style
25
- + label {
15
+ + span:not(.lever) {
26
16
  position: relative;
27
17
  padding-left: 35px;
28
18
  cursor: pointer;
@@ -30,16 +20,12 @@ form p:last-child {
30
20
  height: 25px;
31
21
  line-height: 25px;
32
22
  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+ */
23
+ user-select: none;
38
24
  }
39
25
 
40
26
  /* checkbox aspect */
41
- + label:before,
42
- &:not(.filled-in) + label:after {
27
+ + span:not(.lever):before,
28
+ &:not(.filled-in) + span:not(.lever):after {
43
29
  content: '';
44
30
  position: absolute;
45
31
  top: 0;
@@ -49,22 +35,22 @@ form p:last-child {
49
35
  z-index: 0;
50
36
  border: 2px solid $radio-empty-color;
51
37
  border-radius: 1px;
52
- margin-top: 2px;
38
+ margin-top: 3px;
53
39
  transition: .2s;
54
40
  }
55
41
 
56
- &:not(.filled-in) + label:after {
42
+ &:not(.filled-in) + span:not(.lever):after {
57
43
  border: 0;
58
44
  transform: scale(0);
59
45
  }
60
46
 
61
- &:not(:checked):disabled + label:before {
47
+ &:not(:checked):disabled + span:not(.lever):before {
62
48
  border: none;
63
49
  background-color: $input-disabled-color;
64
50
  }
65
51
 
66
52
  // Focused styles
67
- &.tabbed:focus + label:after {
53
+ &.tabbed:focus + span:not(.lever):after {
68
54
  transform: scale(1);
69
55
  border: 0;
70
56
  border-radius: 50%;
@@ -74,7 +60,7 @@ form p:last-child {
74
60
  }
75
61
 
76
62
  [type="checkbox"]:checked {
77
- + label:before {
63
+ + span:not(.lever):before {
78
64
  top: -4px;
79
65
  left: -5px;
80
66
  width: 12px;
@@ -88,7 +74,7 @@ form p:last-child {
88
74
  transform-origin: 100% 100%;
89
75
  }
90
76
 
91
- &:disabled + label:before {
77
+ &:disabled + span:before {
92
78
  border-right: 2px solid $input-disabled-color;
93
79
  border-bottom: 2px solid $input-disabled-color;
94
80
  }
@@ -96,7 +82,7 @@ form p:last-child {
96
82
 
97
83
  /* Indeterminate checkbox */
98
84
  [type="checkbox"]:indeterminate {
99
- +label:before {
85
+ + span:not(.lever):before {
100
86
  top: -11px;
101
87
  left: -12px;
102
88
  width: 10px;
@@ -111,7 +97,7 @@ form p:last-child {
111
97
  }
112
98
 
113
99
  // Disabled indeterminate
114
- &:disabled + label:before {
100
+ &:disabled + span:not(.lever):before {
115
101
  border-right: 2px solid $input-disabled-color;
116
102
  background-color: transparent;
117
103
  }
@@ -120,12 +106,12 @@ form p:last-child {
120
106
  // Filled in Style
121
107
  [type="checkbox"].filled-in {
122
108
  // General
123
- + label:after {
109
+ + span:not(.lever):after {
124
110
  border-radius: 2px;
125
111
  }
126
112
 
127
- + label:before,
128
- + label:after {
113
+ + span:not(.lever):before,
114
+ + span:not(.lever):after {
129
115
  content: '';
130
116
  left: 0;
131
117
  position: absolute;
@@ -135,20 +121,17 @@ form p:last-child {
135
121
  }
136
122
 
137
123
  // Unchecked style
138
- &:not(:checked) + label:before {
124
+ &:not(:checked) + span:not(.lever):before {
139
125
  width: 0;
140
126
  height: 0;
141
127
  border: 3px solid transparent;
142
128
  left: 6px;
143
129
  top: 10px;
144
-
145
- -webkit-transform: rotateZ(37deg);
146
130
  transform: rotateZ(37deg);
147
- -webkit-transform-origin: 20% 40%;
148
131
  transform-origin: 100% 100%;
149
132
  }
150
133
 
151
- &:not(:checked) + label:after {
134
+ &:not(:checked) + span:not(.lever):after {
152
135
  height: 20px;
153
136
  width: 20px;
154
137
  background-color: transparent;
@@ -159,7 +142,7 @@ form p:last-child {
159
142
 
160
143
  // Checked style
161
144
  &:checked {
162
- + label:before {
145
+ + span:not(.lever):before {
163
146
  top: 0;
164
147
  left: 1px;
165
148
  width: 8px;
@@ -168,14 +151,11 @@ form p:last-child {
168
151
  border-left: 2px solid transparent;
169
152
  border-right: 2px solid $input-background;
170
153
  border-bottom: 2px solid $input-background;
171
- -webkit-transform: rotateZ(37deg);
172
154
  transform: rotateZ(37deg);
173
-
174
- -webkit-transform-origin: 100% 100%;
175
155
  transform-origin: 100% 100%;
176
156
  }
177
157
 
178
- + label:after {
158
+ + span:not(.lever):after {
179
159
  top: 0;
180
160
  width: 20px;
181
161
  height: 20px;
@@ -186,34 +166,34 @@ form p:last-child {
186
166
  }
187
167
 
188
168
  // Focused styles
189
- &.tabbed:focus + label:after {
169
+ &.tabbed:focus + span:not(.lever):after {
190
170
  border-radius: 2px;
191
171
  border-color: $radio-empty-color;
192
172
  background-color: rgba(0,0,0,.1);
193
173
  }
194
174
 
195
- &.tabbed:checked:focus + label:after {
175
+ &.tabbed:checked:focus + span:not(.lever):after {
196
176
  border-radius: 2px;
197
177
  background-color: $secondary-color;
198
178
  border-color: $secondary-color;
199
179
  }
200
180
 
201
181
  // Disabled style
202
- &:disabled:not(:checked) + label:before {
182
+ &:disabled:not(:checked) + span:not(.lever):before {
203
183
  background-color: transparent;
204
184
  border: 2px solid transparent;
205
185
  }
206
186
 
207
- &:disabled:not(:checked) + label:after {
187
+ &:disabled:not(:checked) + span:not(.lever):after {
208
188
  border-color: transparent;
209
189
  background-color: $input-disabled-solid-color;
210
190
  }
211
191
 
212
- &:disabled:checked + label:before {
192
+ &:disabled:checked + span:not(.lever):before {
213
193
  background-color: transparent;
214
194
  }
215
195
 
216
- &:disabled:checked + label:after {
196
+ &:disabled:checked + span:not(.lever):after {
217
197
  background-color: $input-disabled-solid-color;
218
198
  border-color: $input-disabled-solid-color;
219
199
  }
@@ -22,6 +22,12 @@
22
22
  }
23
23
 
24
24
  input[type=file] {
25
+
26
+ // Needed to override webkit button
27
+ &::-webkit-file-upload-button {
28
+ display: none;
29
+ }
30
+
25
31
  position: absolute;
26
32
  top: 0;
27
33
  right: 0;