materialize-sass 1.0.0.alpha3 → 1.0.0.alpha4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -3
  3. data/assets/javascripts/materialize.js +289 -184
  4. data/assets/javascripts/materialize/autocomplete.js +7 -0
  5. data/assets/javascripts/materialize/buttons.js +1 -1
  6. data/assets/javascripts/materialize/chips.js +1 -1
  7. data/assets/javascripts/materialize/component.js +1 -1
  8. data/assets/javascripts/materialize/datepicker.js +30 -7
  9. data/assets/javascripts/materialize/dropdown.js +27 -16
  10. data/assets/javascripts/materialize/extras/nouislider.js +1 -1
  11. data/assets/javascripts/materialize/extras/nouislider.min.js +1 -1
  12. data/assets/javascripts/materialize/forms.js +8 -3
  13. data/assets/javascripts/materialize/global.js +12 -9
  14. data/assets/javascripts/materialize/materialbox.js +34 -13
  15. data/assets/javascripts/materialize/modal.js +16 -10
  16. data/assets/javascripts/materialize/parallax.js +6 -5
  17. data/assets/javascripts/materialize/select.js +26 -19
  18. data/assets/javascripts/materialize/sidenav.js +17 -3
  19. data/assets/javascripts/materialize/timepicker.js +19 -12
  20. data/assets/stylesheets/materialize/components/_badges.scss +8 -0
  21. data/assets/stylesheets/materialize/components/_buttons.scss +35 -37
  22. data/assets/stylesheets/materialize/components/_datepicker.scss +2 -2
  23. data/assets/stylesheets/materialize/components/_dropdown.scss +3 -1
  24. data/assets/stylesheets/materialize/components/_global.scss +11 -1
  25. data/assets/stylesheets/materialize/components/_sidenav.scss +1 -1
  26. data/assets/stylesheets/materialize/components/_timepicker.scss +2 -2
  27. data/assets/stylesheets/materialize/components/_variables.scss +11 -3
  28. data/assets/stylesheets/materialize/components/forms/_input-fields.scss +4 -3
  29. data/assets/stylesheets/materialize/components/forms/_select.scss +3 -2
  30. data/assets/stylesheets/materialize/extras/nouislider.css +1 -1
  31. data/lib/materialize-sass/version.rb +1 -1
  32. metadata +2 -2
@@ -55,7 +55,7 @@
55
55
 
56
56
  /* Date Display */
57
57
  .datepicker-date-display {
58
- flex: 1;
58
+ flex: 1 auto;
59
59
  background-color: $secondary-color;
60
60
  color: #fff;
61
61
  padding: 20px 22px;
@@ -79,7 +79,7 @@
79
79
 
80
80
  /* Calendar */
81
81
  .datepicker-calendar-container {
82
- flex: 2.5;
82
+ flex: 2.5 auto;
83
83
  }
84
84
 
85
85
  .datepicker-table {
@@ -12,7 +12,9 @@
12
12
  overflow-y: auto;
13
13
  opacity: 0;
14
14
  position: absolute;
15
- z-index: 999;
15
+ left: 0;
16
+ top: 0;
17
+ z-index: 9999; // TODO: Check if this doesn't break other things
16
18
  transform-origin: 0 0;
17
19
 
18
20
 
@@ -329,6 +329,16 @@ ul.staggered-list li {
329
329
  display: none !important;
330
330
  }
331
331
  }
332
+ .hide-on-extra-large-only {
333
+ @media #{$extra-large-and-up} {
334
+ display: none !important;
335
+ }
336
+ }
337
+ .show-on-extra-large {
338
+ @media #{$extra-large-and-up} {
339
+ display: block !important;
340
+ }
341
+ }
332
342
  .show-on-large {
333
343
  @media #{$large-and-up} {
334
344
  display: block !important;
@@ -489,7 +499,7 @@ td, th{
489
499
  min-height: 1.25em;
490
500
  text-align: left;
491
501
  }
492
- tr {
502
+ tr {
493
503
  border-bottom: none;
494
504
  padding: 0 10px;
495
505
  }
@@ -180,7 +180,7 @@
180
180
  }
181
181
  }
182
182
 
183
- a {
183
+ > a {
184
184
  padding: 0 $sidenav-padding;
185
185
  }
186
186
 
@@ -17,7 +17,7 @@
17
17
 
18
18
  /* Clock Digital Display */
19
19
  .timepicker-digital-display {
20
- flex: 1;
20
+ flex: 1 auto;
21
21
  background-color: $secondary-color;
22
22
  padding: 10px;
23
23
  font-weight: 300;
@@ -58,7 +58,7 @@
58
58
 
59
59
  /* Analog Clock Display */
60
60
  .timepicker-analog-display {
61
- flex: 2.5;
61
+ flex: 2.5 auto;
62
62
  }
63
63
 
64
64
  .timepicker-plate {
@@ -57,10 +57,10 @@ $badge-height: 22px !default;
57
57
  // Shared styles
58
58
  $button-border: none !default;
59
59
  $button-background-focus: lighten($secondary-color, 4%) !default;
60
- $button-font-size: 1rem !default;
60
+ $button-font-size: 14px !default;
61
61
  $button-icon-font-size: 1.3rem !default;
62
62
  $button-height: 36px !default;
63
- $button-padding: 0 2rem !default;
63
+ $button-padding: 0 16px !default;
64
64
  $button-radius: 2px !default;
65
65
 
66
66
  // Disabled styles
@@ -73,8 +73,16 @@ $button-raised-background-hover: lighten($button-raised-background, 5%) !default
73
73
  $button-raised-color: #fff !default;
74
74
 
75
75
  // Large buttons
76
+ $button-large-font-size: 15px !default;
76
77
  $button-large-icon-font-size: 1.6rem !default;
77
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;
78
86
 
79
87
  // Flat buttons
80
88
  $button-flat-color: #343434 !default;
@@ -85,7 +93,6 @@ $button-floating-background: $secondary-color !default;
85
93
  $button-floating-background-hover: $button-floating-background !default;
86
94
  $button-floating-color: #fff !default;
87
95
  $button-floating-size: 40px !default;
88
- $button-floating-large-size: 56px !default;
89
96
  $button-floating-radius: 50% !default;
90
97
 
91
98
 
@@ -172,6 +179,7 @@ $input-disabled-color: rgba(0,0,0, .42) !default;
172
179
  $input-disabled-solid-color: #949494 !default;
173
180
  $input-disabled-border: 1px dotted $input-disabled-color !default;
174
181
  $input-invalid-border: 1px solid $input-error-color !default;
182
+ $input-icon-size: 2rem;
175
183
  $placeholder-text-color: lighten($input-border-color, 20%) !default;
176
184
 
177
185
  // Radio Buttons
@@ -212,8 +212,9 @@ textarea.materialize-textarea {
212
212
  .prefix {
213
213
  position: absolute;
214
214
  width: $input-height;
215
- font-size: 2rem;
215
+ font-size: $input-icon-size;
216
216
  transition: color .2s;
217
+ top: ($input-height - $input-icon-size) / 2;
217
218
 
218
219
  &.active { color: $input-focus-color; }
219
220
  }
@@ -222,6 +223,7 @@ textarea.materialize-textarea {
222
223
  .prefix ~ textarea,
223
224
  .prefix ~ label,
224
225
  .prefix ~ .validate ~ label,
226
+ .prefix ~ .helper-text,
225
227
  .prefix ~ .autocomplete-content {
226
228
  margin-left: 3rem;
227
229
  width: 92%;
@@ -285,7 +287,7 @@ textarea.materialize-textarea {
285
287
  right: 1rem;
286
288
  color: transparent;
287
289
  cursor: pointer;
288
- font-size: 2rem;
290
+ font-size: $input-icon-size;
289
291
  transition: .3s color;
290
292
  }
291
293
  }
@@ -328,7 +330,6 @@ textarea {
328
330
  .autocomplete-content {
329
331
  margin-top: -1 * $input-margin-bottom;
330
332
  margin-bottom: $input-margin-bottom;
331
- display: block;
332
333
  opacity: 1;
333
334
  position: static;
334
335
 
@@ -21,7 +21,7 @@ select {
21
21
  width: 0;
22
22
  pointer-events: none;
23
23
  height: 0;
24
- top: 0;
24
+ bottom: 0;
25
25
  left: 0;
26
26
  opacity: 0;
27
27
  }
@@ -48,7 +48,8 @@ select {
48
48
  }
49
49
 
50
50
  &.invalid {
51
- & > input.select-dropdown {
51
+ & > input.select-dropdown,
52
+ & > input.select-dropdown:focus {
52
53
  @extend %invalid-input-style;
53
54
  }
54
55
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v1.0.0-alpha.3 (http://materializecss.com)
2
+ * Materialize v1.0.0-alpha.4 (http://materializecss.com)
3
3
  * Copyright 2014-2015 Materialize
4
4
  * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE)
5
5
  */
@@ -1,6 +1,6 @@
1
1
  module Materialize
2
2
  module Sass
3
- VERSION = "1.0.0.alpha3"
3
+ VERSION = "1.0.0.alpha4"
4
4
  end
5
5
  end
6
6
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: materialize-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha3
4
+ version: 1.0.0.alpha4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkhairi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-30 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler