materialize-sass 0.98.2 → 0.99.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/README.md +10 -1
  4. data/Rakefile +21 -3
  5. data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
  6. data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
  7. data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
  8. data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
  9. data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
  10. data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
  11. data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
  12. data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
  13. data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
  14. data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
  15. data/app/assets/javascripts/materialize-sprockets.js +2 -1
  16. data/app/assets/javascripts/materialize.js +9045 -5
  17. data/app/assets/javascripts/materialize/buttons.js +1 -1
  18. data/app/assets/javascripts/materialize/cards.js +13 -3
  19. data/app/assets/javascripts/materialize/carousel.js +33 -12
  20. data/app/assets/javascripts/materialize/character_counter.js +1 -1
  21. data/app/assets/javascripts/materialize/chips.js +8 -5
  22. data/app/assets/javascripts/materialize/collapsible.js +1 -1
  23. data/app/assets/javascripts/materialize/date_picker/picker.date.js +137 -136
  24. data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1
  25. data/app/assets/javascripts/materialize/date_picker/picker.time.js +686 -0
  26. data/app/assets/javascripts/materialize/dropdown.js +17 -10
  27. data/app/assets/javascripts/materialize/extras/nouislider.js +1 -1
  28. data/app/assets/javascripts/materialize/extras/nouislider.min.js +1 -1
  29. data/app/assets/javascripts/materialize/forms.js +18 -12
  30. data/app/assets/javascripts/materialize/init.js +1 -0
  31. data/app/assets/javascripts/materialize/jquery.easing.1.4.js +166 -0
  32. data/app/assets/javascripts/materialize/materialbox.js +26 -17
  33. data/app/assets/javascripts/materialize/modal.js +2 -1
  34. data/app/assets/javascripts/materialize/scrollspy.js +11 -6
  35. data/app/assets/javascripts/materialize/sideNav.js +43 -13
  36. data/app/assets/javascripts/materialize/slider.js +3 -3
  37. data/app/assets/javascripts/materialize/tabs.js +10 -3
  38. data/app/assets/javascripts/materialize/tooltip.js +1 -1
  39. data/app/assets/javascripts/materialize/transitions.js +3 -3
  40. data/app/assets/javascripts/materialize/waves.js +1 -1
  41. data/app/assets/stylesheets/materialize.scss +0 -1
  42. data/app/assets/stylesheets/materialize/components/_buttons.scss +3 -8
  43. data/app/assets/stylesheets/materialize/components/_collapsible.scss +1 -0
  44. data/app/assets/stylesheets/materialize/components/_color.scss +1 -1
  45. data/app/assets/stylesheets/materialize/components/_global.scss +20 -20
  46. data/app/assets/stylesheets/materialize/components/_modal.scss +2 -2
  47. data/app/assets/stylesheets/materialize/components/_sideNav.scss +2 -0
  48. data/app/assets/stylesheets/materialize/components/_variables.scss +13 -4
  49. data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +48 -27
  50. data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +10 -0
  51. data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +155 -13
  52. data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +12 -11
  53. data/app/assets/stylesheets/materialize/components/forms/_switches.scss +30 -17
  54. data/app/assets/stylesheets/materialize/extras/nouislider.css +1 -1
  55. data/lib/materialize-sass/version.rb +1 -1
  56. metadata +4 -14
  57. data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
  58. data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
  59. data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
  60. data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
  61. data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
  62. data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
  63. data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
  64. data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
  65. data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
  66. data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
  67. data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
  68. data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -384
@@ -199,3 +199,13 @@
199
199
  bottom: auto;
200
200
  }
201
201
  }
202
+
203
+ @media only screen and (min-width: 601px) {
204
+ .picker__box {
205
+ display:flex;
206
+ }
207
+ .picker__frame {
208
+ width: 80%;
209
+ max-width:600px;
210
+ }
211
+ }
@@ -13,11 +13,11 @@
13
13
  * The times on the clock.
14
14
  */
15
15
  .picker__list-item {
16
- border-bottom: 1px solid #dddddd;
17
- border-top: 1px solid #dddddd;
16
+ border-bottom: 1px solid #ddd;
17
+ border-top: 1px solid #ddd;
18
18
  margin-bottom: -1px;
19
19
  position: relative;
20
- background: #ffffff;
20
+ background: #fff;
21
21
  padding: .75em 1.25em;
22
22
  }
23
23
  @media (min-height: 46.75em) {
@@ -28,7 +28,7 @@
28
28
  /* Hovered time */
29
29
  .picker__list-item:hover {
30
30
  cursor: pointer;
31
- color: #000000;
31
+ color: #000;
32
32
  background: #b1dcfb;
33
33
  border-color: #0089ec;
34
34
  z-index: 10;
@@ -41,7 +41,7 @@
41
41
  .picker__list-item--highlighted:hover,
42
42
  .picker--focused .picker__list-item--highlighted {
43
43
  cursor: pointer;
44
- color: #000000;
44
+ color: #000;
45
45
  background: #b1dcfb;
46
46
  }
47
47
  /* Selected and hovered/focused time */
@@ -49,7 +49,7 @@
49
49
  .picker__list-item--selected:hover,
50
50
  .picker--focused .picker__list-item--selected {
51
51
  background: #0089ec;
52
- color: #ffffff;
52
+ color: #fff;
53
53
  z-index: 10;
54
54
  }
55
55
  /* Disabled time */
@@ -58,9 +58,9 @@
58
58
  .picker--focused .picker__list-item--disabled {
59
59
  background: #f5f5f5;
60
60
  border-color: #f5f5f5;
61
- color: #dddddd;
61
+ color: #ddd;
62
62
  cursor: default;
63
- border-color: #dddddd;
63
+ border-color: #ddd;
64
64
  z-index: auto;
65
65
  }
66
66
  /**
@@ -77,27 +77,27 @@
77
77
  font-size: .67em;
78
78
  text-align: center;
79
79
  text-transform: uppercase;
80
- color: #666;
80
+ color: $timepicker-clock-color;
81
81
  }
82
82
  .picker--time .picker__button--clear:hover,
83
83
  .picker--time .picker__button--clear:focus {
84
- color: #000000;
84
+ color: #000;
85
85
  background: #b1dcfb;
86
86
  background: #ee2200;
87
87
  border-color: #ee2200;
88
88
  cursor: pointer;
89
- color: #ffffff;
89
+ color: #fff;
90
90
  outline: none;
91
91
  }
92
92
  .picker--time .picker__button--clear:before {
93
93
  top: -0.25em;
94
- color: #666;
94
+ color: $timepicker-clock-color;
95
95
  font-size: 1.25em;
96
96
  font-weight: bold;
97
97
  }
98
98
  .picker--time .picker__button--clear:hover:before,
99
99
  .picker--time .picker__button--clear:focus:before {
100
- color: #ffffff;
100
+ color: #fff;
101
101
  }
102
102
 
103
103
  /* ==========================================================================
@@ -123,3 +123,145 @@
123
123
  margin-bottom: 5em;
124
124
  }
125
125
  }
126
+
127
+ /* ==========================================================================
128
+ $DEFAULT-TIME-PICKER
129
+ ========================================================================== */
130
+ .clockpicker-display {
131
+ font-size: 4rem;
132
+ font-weight: bold;
133
+ text-align: center;
134
+ color: rgba(255, 255, 255, 0.6);
135
+ font-weight: 400;
136
+ clear: both;
137
+ position: relative;
138
+ }
139
+
140
+ .clockpicker-span-am-pm {
141
+ font-size: 1.3rem;
142
+ position: absolute;
143
+ right: 1rem;
144
+ bottom: 0.3rem;
145
+ line-height: 2rem;
146
+ font-weight: 500;
147
+ }
148
+ @media only screen and (min-width: 601px) {
149
+ .clockpicker-display {
150
+ top: 32%;
151
+ }
152
+ .clockpicker-span-am-pm {
153
+ position: relative;
154
+ right: auto;
155
+ bottom: auto;
156
+ text-align: center;
157
+ margin-top: 1.2rem;
158
+ }
159
+ }
160
+
161
+
162
+ .text-primary{
163
+ color: rgba(255, 255, 255, 1)
164
+ }
165
+ .clockpicker-span-hours {
166
+ margin-right: 3px;
167
+ }
168
+ .clockpicker-span-minutes {
169
+ margin-left: 3px;
170
+ }
171
+
172
+ .clockpicker-span-hours,
173
+ .clockpicker-span-minutes,
174
+ .clockpicker-span-am-pm div {
175
+ cursor: pointer;
176
+ }
177
+ .clockpicker-moving {
178
+ cursor: move;
179
+ }
180
+ .clockpicker-plate {
181
+ background-color: $timepicker-clock-plate-bg;
182
+ border-radius: 50%;
183
+ width: 270px;
184
+ height: 270px;
185
+ overflow: visible;
186
+ position: relative;
187
+ margin: auto;
188
+ margin-top: 25px;
189
+ margin-bottom: 5px;
190
+ user-select: none;
191
+ }
192
+ .clockpicker-canvas,
193
+ .clockpicker-dial {
194
+ width: 270px;
195
+ height: 270px;
196
+ position: absolute;
197
+ left: -1px;
198
+ top: -1px;
199
+ }
200
+ .clockpicker-minutes {
201
+ visibility: hidden;
202
+ }
203
+ .clockpicker-tick {
204
+ border-radius: 50%;
205
+ color: $timepicker-clock-color;
206
+ line-height: 40px;
207
+ text-align: center;
208
+ width: 40px;
209
+ height: 40px;
210
+ position: absolute;
211
+ cursor: pointer;
212
+ }
213
+ .clockpicker-tick.active,
214
+ .clockpicker-tick:hover {
215
+ background-color: transparentize($secondary-color, .75);
216
+ }
217
+ .clockpicker-dial {
218
+ -webkit-transition: -webkit-transform 350ms, opacity 350ms;
219
+ -moz-transition: -moz-transform 350ms, opacity 350ms;
220
+ -ms-transition: -ms-transform 350ms, opacity 350ms;
221
+ -o-transition: -o-transform 350ms, opacity 350ms;
222
+ transition: transform 350ms, opacity 350ms;
223
+ }
224
+ .clockpicker-dial-out {
225
+ opacity: 0;
226
+ }
227
+ .clockpicker-hours.clockpicker-dial-out {
228
+ -webkit-transform: scale(1.2, 1.2);
229
+ -moz-transform: scale(1.2, 1.2);
230
+ -ms-transform: scale(1.2, 1.2);
231
+ -o-transform: scale(1.2, 1.2);
232
+ transform: scale(1.2, 1.2);
233
+ }
234
+ .clockpicker-minutes.clockpicker-dial-out {
235
+ -webkit-transform: scale(.8, .8);
236
+ -moz-transform: scale(.8, .8);
237
+ -ms-transform: scale(.8, .8);
238
+ -o-transform: scale(.8, .8);
239
+ transform: scale(.8, .8);
240
+ }
241
+ .clockpicker-canvas {
242
+ -webkit-transition: opacity 175ms;
243
+ -moz-transition: opacity 175ms;
244
+ -ms-transition: opacity 175ms;
245
+ -o-transition: opacity 175ms;
246
+ transition: opacity 175ms;
247
+ }
248
+ .clockpicker-canvas-out {
249
+ opacity: 0.25;
250
+ }
251
+ .clockpicker-canvas-bearing {
252
+ stroke: none;
253
+ fill: $secondary-color;
254
+ }
255
+ .clockpicker-canvas-bg {
256
+ stroke: none;
257
+ fill: $secondary-color;
258
+ }
259
+ .clockpicker-canvas-bg-trans {
260
+ fill: $secondary-color;
261
+ }
262
+ .clockpicker-canvas line {
263
+ stroke: $secondary-color;
264
+ stroke-width: 4;
265
+ stroke-linecap: round;
266
+ /*shape-rendering: crispEdges;*/
267
+ }
@@ -22,17 +22,17 @@
22
22
  /* Text inputs */
23
23
 
24
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],
25
+ input[type=text]:not(.browser-default),
26
+ input[type=password]:not(.browser-default),
27
+ input[type=email]:not(.browser-default),
28
+ input[type=url]:not(.browser-default),
29
+ input[type=time]:not(.browser-default),
30
+ input[type=date]:not(.browser-default),
31
+ input[type=datetime]:not(.browser-default),
32
+ input[type=datetime-local]:not(.browser-default),
33
+ input[type=tel]:not(.browser-default),
34
+ input[type=number]:not(.browser-default),
35
+ input[type=search]:not(.browser-default),
36
36
  textarea.materialize-textarea {
37
37
 
38
38
  // General Styles
@@ -116,6 +116,7 @@ textarea.materialize-textarea {
116
116
  content: "";
117
117
  position: absolute;
118
118
  top: 60px;
119
+ left: 0;
119
120
  opacity: 0;
120
121
  transition: .2s opacity ease-out, .2s color ease-out;
121
122
  }
@@ -21,9 +21,12 @@
21
21
  &:checked + .lever {
22
22
  background-color: $switch-checked-lever-bg;
23
23
 
24
+ &:before, &:after {
25
+ left: 18px;
26
+ }
27
+
24
28
  &:after {
25
29
  background-color: $switch-bg-color;
26
- left: 24px;
27
30
  }
28
31
  }
29
32
  }
@@ -32,8 +35,8 @@
32
35
  content: "";
33
36
  display: inline-block;
34
37
  position: relative;
35
- width: 40px;
36
- height: 15px;
38
+ width: 36px;
39
+ height: 14px;
37
40
  background-color: $switch-unchecked-lever-bg;
38
41
  border-radius: $switch-radius;
39
42
  margin-right: 10px;
@@ -41,35 +44,45 @@
41
44
  vertical-align: middle;
42
45
  margin: 0 16px;
43
46
 
44
- &:after {
47
+ &:before, &:after {
45
48
  content: "";
46
49
  position: absolute;
47
50
  display: inline-block;
48
- width: 21px;
49
- height: 21px;
50
- background-color: $switch-unchecked-bg;
51
- border-radius: 21px;
52
- box-shadow: 0 1px 3px 1px rgba(0,0,0,.4);
53
- left: -5px;
51
+ width: 20px;
52
+ height: 20px;
53
+ border-radius: 50%;
54
+ left: 0;
54
55
  top: -3px;
55
- transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease;
56
+ transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
57
+ }
58
+
59
+ &:before {
60
+ background-color: transparentize($switch-bg-color, .85);
61
+ }
62
+
63
+ &:after {
64
+ background-color: $switch-unchecked-bg;
65
+ box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
56
66
  }
57
67
  }
58
68
 
59
69
  // Switch active style
60
- input[type=checkbox]:checked:not(:disabled) ~ .lever:active::after,
61
- input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::after {
62
- box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px transparentize($switch-bg-color, .9);
70
+ input[type=checkbox]:checked:not(:disabled) ~ .lever:active::before,
71
+ input[type=checkbox]:checked:not(:disabled).tabbed:focus ~ .lever::before {
72
+ transform: scale(2.4);
73
+ background-color: transparentize($switch-bg-color, .85);
63
74
  }
64
75
 
65
- input[type=checkbox]:not(:disabled) ~ .lever:active:after,
66
- input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::after {
67
- box-shadow: 0 1px 3px 1px rgba(0,0,0,.4), 0 0 0 15px rgba(0, 0, 0, .08);
76
+ input[type=checkbox]:not(:disabled) ~ .lever:active:before,
77
+ input[type=checkbox]:not(:disabled).tabbed:focus ~ .lever::before {
78
+ transform: scale(2.4);
79
+ background-color: rgba(0,0,0,.08);
68
80
  }
69
81
 
70
82
  // Disabled Styles
71
83
  .switch input[type=checkbox][disabled] + .lever {
72
84
  cursor: default;
85
+ background-color: rgba(0,0,0,.12);
73
86
  }
74
87
 
75
88
  .switch label input[type=checkbox][disabled] + .lever:after,
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v0.98.2 (http://materializecss.com)
2
+ * Materialize v0.99.0 (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 = "0.98.2"
3
+ VERSION = "0.99.0"
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: 0.98.2
4
+ version: 0.99.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkhairi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-17 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -64,24 +64,14 @@ files:
64
64
  - LICENSE.txt
65
65
  - README.md
66
66
  - Rakefile
67
- - app/assets/fonts/roboto/Roboto-Bold.eot
68
- - app/assets/fonts/roboto/Roboto-Bold.ttf
69
67
  - app/assets/fonts/roboto/Roboto-Bold.woff
70
68
  - app/assets/fonts/roboto/Roboto-Bold.woff2
71
- - app/assets/fonts/roboto/Roboto-Light.eot
72
- - app/assets/fonts/roboto/Roboto-Light.ttf
73
69
  - app/assets/fonts/roboto/Roboto-Light.woff
74
70
  - app/assets/fonts/roboto/Roboto-Light.woff2
75
- - app/assets/fonts/roboto/Roboto-Medium.eot
76
- - app/assets/fonts/roboto/Roboto-Medium.ttf
77
71
  - app/assets/fonts/roboto/Roboto-Medium.woff
78
72
  - app/assets/fonts/roboto/Roboto-Medium.woff2
79
- - app/assets/fonts/roboto/Roboto-Regular.eot
80
- - app/assets/fonts/roboto/Roboto-Regular.ttf
81
73
  - app/assets/fonts/roboto/Roboto-Regular.woff
82
74
  - app/assets/fonts/roboto/Roboto-Regular.woff2
83
- - app/assets/fonts/roboto/Roboto-Thin.eot
84
- - app/assets/fonts/roboto/Roboto-Thin.ttf
85
75
  - app/assets/fonts/roboto/Roboto-Thin.woff
86
76
  - app/assets/fonts/roboto/Roboto-Thin.woff2
87
77
  - app/assets/javascripts/materialize-sprockets.js
@@ -95,6 +85,7 @@ files:
95
85
  - app/assets/javascripts/materialize/collapsible.js
96
86
  - app/assets/javascripts/materialize/date_picker/picker.date.js
97
87
  - app/assets/javascripts/materialize/date_picker/picker.js
88
+ - app/assets/javascripts/materialize/date_picker/picker.time.js
98
89
  - app/assets/javascripts/materialize/dropdown.js
99
90
  - app/assets/javascripts/materialize/extras/nouislider.js
100
91
  - app/assets/javascripts/materialize/extras/nouislider.min.js
@@ -103,7 +94,7 @@ files:
103
94
  - app/assets/javascripts/materialize/hammer.min.js
104
95
  - app/assets/javascripts/materialize/init.js
105
96
  - app/assets/javascripts/materialize/initial.js
106
- - app/assets/javascripts/materialize/jquery.easing.1.3.js
97
+ - app/assets/javascripts/materialize/jquery.easing.1.4.js
107
98
  - app/assets/javascripts/materialize/jquery.hammer.js
108
99
  - app/assets/javascripts/materialize/jquery.timeago.min.js
109
100
  - app/assets/javascripts/materialize/materialbox.js
@@ -139,7 +130,6 @@ files:
139
130
  - app/assets/stylesheets/materialize/components/_modal.scss
140
131
  - app/assets/stylesheets/materialize/components/_navbar.scss
141
132
  - app/assets/stylesheets/materialize/components/_normalize.scss
142
- - app/assets/stylesheets/materialize/components/_prefixer.scss
143
133
  - app/assets/stylesheets/materialize/components/_preloader.scss
144
134
  - app/assets/stylesheets/materialize/components/_pulse.scss
145
135
  - app/assets/stylesheets/materialize/components/_roboto.scss