materialize-sass 0.97.8 → 0.98.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/Rakefile +1 -1
  4. data/app/assets/javascripts/materialize.js +5 -5
  5. data/app/assets/javascripts/materialize/animation.js +8 -9
  6. data/app/assets/javascripts/materialize/carousel.js +52 -25
  7. data/app/assets/javascripts/materialize/character_counter.js +2 -2
  8. data/app/assets/javascripts/materialize/chips.js +39 -10
  9. data/app/assets/javascripts/materialize/dropdown.js +12 -12
  10. data/app/assets/javascripts/materialize/extras/nouislider.js +1917 -1438
  11. data/app/assets/javascripts/materialize/extras/nouislider.min.js +1 -1
  12. data/app/assets/javascripts/materialize/forms.js +131 -35
  13. data/app/assets/javascripts/materialize/global.js +55 -0
  14. data/app/assets/javascripts/materialize/init.js +41 -4
  15. data/app/assets/javascripts/materialize/jquery.hammer.js +0 -0
  16. data/app/assets/javascripts/materialize/materialbox.js +86 -77
  17. data/app/assets/javascripts/materialize/modal.js +12 -12
  18. data/app/assets/javascripts/materialize/parallax.js +48 -48
  19. data/app/assets/javascripts/materialize/scrollFire.js +40 -37
  20. data/app/assets/javascripts/materialize/scrollspy.js +2 -53
  21. data/app/assets/javascripts/materialize/sideNav.js +46 -40
  22. data/app/assets/javascripts/materialize/slider.js +15 -12
  23. data/app/assets/javascripts/materialize/tabs.js +104 -35
  24. data/app/assets/javascripts/materialize/toasts.js +122 -123
  25. data/app/assets/javascripts/materialize/tooltip.js +15 -13
  26. data/app/assets/javascripts/materialize/transitions.js +24 -24
  27. data/app/assets/stylesheets/materialize.scss +2 -0
  28. data/app/assets/stylesheets/materialize/components/_badges.scss +46 -0
  29. data/app/assets/stylesheets/materialize/components/_buttons.scss +29 -17
  30. data/app/assets/stylesheets/materialize/components/_cards.scss +9 -3
  31. data/app/assets/stylesheets/materialize/components/_carousel.scss +1 -1
  32. data/app/assets/stylesheets/materialize/components/_collapsible.scss +3 -7
  33. data/app/assets/stylesheets/materialize/components/_global.scss +6 -62
  34. data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +0 -0
  35. data/app/assets/stylesheets/materialize/components/_materialbox.scss +13 -12
  36. data/app/assets/stylesheets/materialize/components/_navbar.scss +26 -7
  37. data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -0
  38. data/app/assets/stylesheets/materialize/components/_sideNav.scss +8 -5
  39. data/app/assets/stylesheets/materialize/components/_table_of_contents.scss +2 -2
  40. data/app/assets/stylesheets/materialize/components/_tabs.scss +0 -0
  41. data/app/assets/stylesheets/materialize/components/_toast.scss +1 -1
  42. data/app/assets/stylesheets/materialize/components/_tooltip.scss +2 -3
  43. data/app/assets/stylesheets/materialize/components/_transitions.scss +13 -0
  44. data/app/assets/stylesheets/materialize/components/_typography.scss +0 -0
  45. data/app/assets/stylesheets/materialize/components/_variables.scss +7 -1
  46. data/app/assets/stylesheets/materialize/components/_waves.scss +80 -143
  47. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -0
  48. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -0
  49. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -0
  50. data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +4 -4
  51. data/app/assets/stylesheets/materialize/extras/nouislider.css +263 -123
  52. data/lib/materialize-sass/version.rb +1 -1
  53. metadata +4 -2
@@ -3,8 +3,14 @@ nav {
3
3
  height: auto;
4
4
 
5
5
  .nav-wrapper {
6
+ min-height: $navbar-height-mobile;
6
7
  height: auto;
7
8
  }
9
+
10
+ .nav-content {
11
+ position: relative;
12
+ line-height: normal;
13
+ }
8
14
  }
9
15
 
10
16
  color: $navbar-font-color;
@@ -12,7 +18,7 @@ nav {
12
18
  background-color: $primary-color;
13
19
  width: 100%;
14
20
  height: $navbar-height-mobile;
15
- line-height: $navbar-height-mobile;
21
+ line-height: $navbar-line-height-mobile;
16
22
 
17
23
  a { color: $navbar-font-color; }
18
24
 
@@ -22,7 +28,7 @@ nav {
22
28
  display: block;
23
29
  font-size: 24px;
24
30
  height: $navbar-height-mobile;
25
- line-height: $navbar-height-mobile;
31
+ line-height: $navbar-line-height-mobile;
26
32
  }
27
33
 
28
34
  .nav-wrapper {
@@ -45,7 +51,7 @@ nav {
45
51
 
46
52
  i {
47
53
  height: $navbar-height-mobile;
48
- line-height: $navbar-height-mobile;
54
+ line-height: $navbar-line-height-mobile;
49
55
  }
50
56
  }
51
57
 
@@ -94,6 +100,14 @@ nav {
94
100
  }
95
101
 
96
102
 
103
+ // Title
104
+ .nav-title {
105
+ display: inline-block;
106
+ font-size: 32px;
107
+ padding: 28px 0;
108
+ }
109
+
110
+
97
111
  // Navbar Links
98
112
  ul {
99
113
  margin: 0;
@@ -119,6 +133,11 @@ nav {
119
133
  margin-top: -2px;
120
134
  margin-left: 15px;
121
135
  margin-right: 15px;
136
+
137
+ & > .material-icons {
138
+ height: inherit;
139
+ line-height: inherit;
140
+ }
122
141
  }
123
142
 
124
143
  &:hover {
@@ -162,9 +181,6 @@ nav {
162
181
  transition: color .3s;
163
182
  }
164
183
  &.active i { color: $navbar-font-color; }
165
- &.active {
166
- transform: translateY(0);
167
- }
168
184
  }
169
185
  }
170
186
  }
@@ -180,9 +196,12 @@ nav {
180
196
  }
181
197
  }
182
198
  @media #{$medium-and-up} {
199
+ nav.nav-extended .nav-wrapper {
200
+ min-height: $navbar-height;
201
+ }
183
202
  nav, nav .nav-wrapper i, nav a.button-collapse, nav a.button-collapse i {
184
203
  height: $navbar-height;
185
- line-height: $navbar-height;
204
+ line-height: $navbar-line-height;
186
205
  }
187
206
  .navbar-fixed {
188
207
  height: $navbar-height;
@@ -33,7 +33,7 @@
33
33
 
34
34
  li {
35
35
  float: none;
36
- line-height: $sidenav-item-height;
36
+ line-height: $sidenav-line-height;
37
37
 
38
38
  &.active { background-color: rgba(0,0,0,.05); }
39
39
  }
@@ -44,7 +44,7 @@
44
44
  font-size: $sidenav-font-size;
45
45
  font-weight: 500;
46
46
  height: $sidenav-item-height;
47
- line-height: $sidenav-item-height;
47
+ line-height: $sidenav-line-height;
48
48
  padding: 0 ($sidenav-padding * 2);
49
49
 
50
50
  &:hover { background-color: rgba(0,0,0,.05);}
@@ -68,7 +68,7 @@
68
68
  li > a > i.material-icons {
69
69
  float: left;
70
70
  height: $sidenav-item-height;
71
- line-height: $sidenav-item-height;
71
+ line-height: $sidenav-line-height;
72
72
  margin: 0 ($sidenav-padding * 2) 0 0;
73
73
  width: $sidenav-item-height / 2;
74
74
  color: rgba(0,0,0,.54);
@@ -88,7 +88,7 @@
88
88
  color: rgba(0,0,0,.54);
89
89
  font-size: $sidenav-font-size;
90
90
  font-weight: 500;
91
- line-height: $sidenav-item-height;
91
+ line-height: $sidenav-line-height;
92
92
  }
93
93
 
94
94
  .userView {
@@ -124,7 +124,7 @@
124
124
  .name,
125
125
  .email {
126
126
  font-size: $sidenav-font-size;
127
- line-height: 24px;
127
+ line-height: $sidenav-line-height / 2;
128
128
  }
129
129
 
130
130
  .name {
@@ -192,6 +192,9 @@
192
192
  color: $sidenav-bg-color;
193
193
  }
194
194
  }
195
+ .side-nav .collapsible-body {
196
+ padding: 0;
197
+ }
195
198
 
196
199
 
197
200
  #sidenav-overlay {
@@ -22,12 +22,12 @@
22
22
  &:hover {
23
23
  color: lighten(#757575, 20%);
24
24
  padding-left: 19px;
25
- border-left: 1px solid lighten(color("materialize-red", "base"),10%);
25
+ border-left: 1px solid $primary-color;
26
26
  }
27
27
  &.active {
28
28
  font-weight: 500;
29
29
  padding-left: 18px;
30
- border-left: 2px solid lighten(color("materialize-red", "base"),10%);
30
+ border-left: 2px solid $primary-color;
31
31
  }
32
32
  }
33
33
  }
@@ -22,7 +22,7 @@
22
22
  .toast {
23
23
  @extend .z-depth-1;
24
24
  border-radius: 2px;
25
- top: 0;
25
+ top: 35px;
26
26
  width: auto;
27
27
  clear: both;
28
28
  margin-top: 10px;
@@ -8,7 +8,6 @@
8
8
  min-height: 36px;
9
9
  line-height: 120%;
10
10
  opacity: 0;
11
- display: none;
12
11
  position: absolute;
13
12
  text-align: center;
14
13
  max-width: calc(100% - 4px);
@@ -16,17 +15,17 @@
16
15
  left: 0;
17
16
  top: 0;
18
17
  pointer-events: none;
18
+ visibility: hidden;
19
19
  }
20
20
 
21
21
  .backdrop {
22
22
  position: absolute;
23
23
  opacity: 0;
24
- display: none;
25
24
  height: 7px;
26
25
  width: 14px;
27
26
  border-radius: 0 0 50% 50%;
28
27
  background-color: #323232;
29
28
  z-index: -1;
30
29
  transform-origin: 50% 0%;
31
- transform: translate3d(0,0,0);
30
+ visibility: hidden;
32
31
  }
@@ -0,0 +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;
13
+ }
@@ -47,6 +47,7 @@ $link-color: color("light-blue", "darken-1") !default;
47
47
  // ==========================================================================
48
48
 
49
49
  $badge-bg-color: $secondary-color !default;
50
+ $badge-height: 22px !default;
50
51
 
51
52
 
52
53
  // 3. Buttons
@@ -89,7 +90,7 @@ $button-floating-radius: 50% !default;
89
90
  // 4. Cards
90
91
  // ==========================================================================
91
92
 
92
- $card-padding: 20px !default;
93
+ $card-padding: 24px !default;
93
94
  $card-bg-color: #fff !default;
94
95
  $card-link-color: color("orange", "accent-2") !default;
95
96
  $card-link-color-light: lighten($card-link-color, 20%) !default;
@@ -99,6 +100,7 @@ $card-link-color-light: lighten($card-link-color, 20%) !default;
99
100
  // ==========================================================================
100
101
 
101
102
  $collapsible-height: 3rem !default;
103
+ $collapsible-line-height: $collapsible-height !default;
102
104
  $collapsible-header-color: #fff !default;
103
105
  $collapsible-border-color: #ddd !default;
104
106
 
@@ -217,7 +219,9 @@ $element-bottom-margin: ($gutter-width*2)/3 !default;
217
219
  // ==========================================================================
218
220
 
219
221
  $navbar-height: 64px !default;
222
+ $navbar-line-height: $navbar-height !default;
220
223
  $navbar-height-mobile: 56px !default;
224
+ $navbar-line-height-mobile: $navbar-height-mobile !default;
221
225
  $navbar-font-size: 1rem !default;
222
226
  $navbar-font-color: #fff !default;
223
227
  $navbar-brand-font-size: 2.1rem !default;
@@ -230,6 +234,7 @@ $sidenav-font-color: rgba(0,0,0,.87) !default;
230
234
  $sidenav-bg-color: #fff !default;
231
235
  $sidenav-padding: 16px !default;
232
236
  $sidenav-item-height: 48px !default;
237
+ $sidenav-line-height: $sidenav-item-height !default;
233
238
 
234
239
 
235
240
  // 15. Photo Slider
@@ -305,6 +310,7 @@ $collection-active-bg-color: $secondary-color !default;
305
310
  $collection-active-color: lighten($secondary-color, 55%) !default;
306
311
  $collection-hover-bg-color: #ddd !default;
307
312
  $collection-link-color: $secondary-color !default;
313
+ $collection-line-height: 1.5rem !default;
308
314
 
309
315
 
310
316
  // 24. Progress Bar
@@ -10,168 +10,105 @@
10
10
 
11
11
 
12
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 {
13
72
  position: relative;
14
- cursor: pointer;
15
- display: inline-block;
16
- overflow: hidden;
17
- -webkit-user-select: none;
18
- -moz-user-select: none;
19
- -ms-user-select: none;
20
- user-select: none;
21
- -webkit-tap-highlight-color: transparent;
22
- // white-space: nowrap;
23
- // outline: 0;
24
-
25
- vertical-align: middle;
26
- // cursor: pointer;
27
- // border: none;
28
- // outline: none;
29
- // color: inherit;
30
- // background-color: rgba(0, 0, 0, 0);
31
- // font-size: 1em;
32
- // line-height:1em;
33
- // text-align: center;
34
- // text-decoration: none;
35
- z-index: 1;
36
- will-change: opacity, transform;
37
- transition: .3s ease-out;
38
-
39
- .waves-ripple {
40
- position: absolute;
41
- border-radius: 50%;
42
- width: 20px;
43
- height: 20px;
44
- margin-top:-10px;
45
- margin-left:-10px;
46
- opacity: 0;
47
-
48
- background: rgba(0,0,0,0.2);
49
- // $gradient: rgba(0,0,0,0.2) 0,rgba(0,0,0,.3) 40%,rgba(0,0,0,.4) 50%,rgba(0,0,0,.5) 60%,rgba(255,255,255,0) 70%;
50
- // background: -webkit-radial-gradient($gradient);
51
- // background: -o-radial-gradient($gradient);
52
- // background: -moz-radial-gradient($gradient);
53
- // background: radial-gradient($gradient);
54
- transition: all 0.7s ease-out;
55
- transition-property: transform, opacity;
56
- transform: scale(0);
57
- pointer-events: none;
58
- }
59
-
60
- // Waves Colors
61
- &.waves-light .waves-ripple {
62
- background-color: rgba(255, 255, 255, 0.45);
63
- }
64
-
65
- &.waves-red .waves-ripple {
66
- background-color: rgba(244, 67, 54, .70);
67
- }
68
- &.waves-yellow .waves-ripple {
69
- background-color: rgba(255, 235, 59, .70);
70
- }
71
- &.waves-orange .waves-ripple {
72
- background-color: rgba(255, 152, 0, .70);
73
- }
74
- &.waves-purple .waves-ripple {
75
- background-color: rgba(156, 39, 176, 0.70);
76
- }
77
- &.waves-green .waves-ripple {
78
- background-color: rgba(76, 175, 80, 0.70);
79
- }
80
- &.waves-teal .waves-ripple {
81
- background-color: rgba(0, 150, 136, 0.70);
82
- }
83
-
84
- // Style input button bug.
85
- input[type="button"], input[type="reset"], input[type="submit"] {
86
- border: 0;
87
- font-style: normal;
88
- font-size: inherit;
89
- text-transform: inherit;
90
- background: none;
91
- }
92
-
93
- img {
94
- position: relative;
95
- z-index: -1;
96
- }
73
+ z-index: -1;
74
+ }
97
75
  }
98
76
 
99
77
  .waves-notransition {
100
- transition: none #{"!important"};
78
+ transition: none #{"!important"};
101
79
  }
102
80
 
103
81
  .waves-circle {
104
- transform: translateZ(0);
105
- -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
82
+ transform: translateZ(0);
83
+ -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%);
106
84
  }
107
85
 
108
- // .waves-button,
109
- // .waves-button:hover,
110
- // .waves-button:visited,
111
- // .waves-button-input {
112
- // white-space: nowrap;
113
- // vertical-align: middle;
114
- // cursor: pointer;
115
- // border: none;
116
- // outline: none;
117
- // color: inherit;
118
- // background-color: rgba(0, 0, 0, 0);
119
- // font-size: 1em;
120
- // line-height:1em;
121
- // text-align: center;
122
- // text-decoration: none;
123
- // z-index: 1;
124
- // }
125
-
126
- // .waves-button {
127
- // padding: 0.85em 1.1em;
128
- // border-radius: 0.2em;
129
- // }
130
-
131
- // .waves-button-input {
132
- // margin: 0;
133
- // padding: 0.85em 1.1em;
134
- // }
135
-
136
86
  .waves-input-wrapper {
137
- border-radius: 0.2em;
138
- vertical-align: bottom;
87
+ border-radius: 0.2em;
88
+ vertical-align: bottom;
139
89
 
140
- // &.waves-button {
141
- // padding: 0;
142
- // }
143
-
144
- .waves-button-input {
145
- position: relative;
146
- top: 0;
147
- left: 0;
148
- z-index: 1;
149
- }
90
+ .waves-button-input {
91
+ position: relative;
92
+ top: 0;
93
+ left: 0;
94
+ z-index: 1;
95
+ }
150
96
  }
151
97
 
152
98
  .waves-circle {
153
- text-align: center;
154
- width: 2.5em;
155
- height: 2.5em;
156
- line-height: 2.5em;
157
- border-radius: 50%;
158
- -webkit-mask-image: none;
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;
159
105
  }
160
106
 
161
- // .waves-float {
162
- // -webkit-mask-image: none;
163
- // @include box-shadow(0px 1px 1.5px 1px rgba(0, 0, 0, 0.12));
164
-
165
- // &:active {
166
- // @include box-shadow(0px 8px 20px 1px rgba(0, 0, 0, 0.30));
167
- // }
168
- // }
169
-
170
107
  .waves-block {
171
- display: block;
108
+ display: block;
172
109
  }
173
110
 
174
111
  /* Firefox Bug: link not triggered */
175
112
  .waves-effect .waves-ripple {
176
- z-index: -1;
113
+ z-index: -1;
177
114
  }