materialize-sass 0.98.1 → 0.98.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/app/assets/javascripts/materialize.js +4 -4
  4. data/app/assets/javascripts/materialize/carousel.js +42 -15
  5. data/app/assets/javascripts/materialize/collapsible.js +17 -8
  6. data/app/assets/javascripts/materialize/dropdown.js +7 -7
  7. data/app/assets/javascripts/materialize/extras/nouislider.js +1 -1
  8. data/app/assets/javascripts/materialize/forms.js +47 -21
  9. data/app/assets/javascripts/materialize/tabs.js +7 -4
  10. data/app/assets/javascripts/materialize/tapTarget.js +6 -0
  11. data/app/assets/stylesheets/materialize/components/_buttons.scss +2 -2
  12. data/app/assets/stylesheets/materialize/components/_cards.scss +3 -0
  13. data/app/assets/stylesheets/materialize/components/_carousel.scss +7 -1
  14. data/app/assets/stylesheets/materialize/components/_chips.scss +1 -1
  15. data/app/assets/stylesheets/materialize/components/_global.scss +0 -4
  16. data/app/assets/stylesheets/materialize/components/_grid.scss +27 -49
  17. data/app/assets/stylesheets/materialize/components/_preloader.scss +2 -2
  18. data/app/assets/stylesheets/materialize/components/_pulse.scss +3 -0
  19. data/app/assets/stylesheets/materialize/components/_roboto.scss +11 -21
  20. data/app/assets/stylesheets/materialize/components/_tapTarget.scss +10 -12
  21. data/app/assets/stylesheets/materialize/components/_variables.scss +2 -1
  22. data/app/assets/stylesheets/materialize/components/forms/_input-fields.scss +5 -0
  23. data/app/assets/stylesheets/materialize/components/forms/_range.scss +3 -2
  24. data/app/assets/stylesheets/materialize/extras/nouislider.css +1 -1
  25. data/lib/materialize-sass/version.rb +1 -1
  26. metadata +3 -3
@@ -52,7 +52,7 @@
52
52
  top: 0;
53
53
  left: 0;
54
54
 
55
- img {
55
+ & > img {
56
56
  width: 100%;
57
57
  }
58
58
  }
@@ -82,4 +82,10 @@
82
82
  border-radius: 50%;
83
83
  }
84
84
  }
85
+
86
+ // Materialbox compatibility
87
+ &.scrolling .carousel-item .materialboxed,
88
+ .carousel-item:not(.active) .materialboxed {
89
+ pointer-events: none;
90
+ }
85
91
  }
@@ -11,7 +11,7 @@
11
11
  margin-bottom: $chip-margin;
12
12
  margin-right: $chip-margin;
13
13
 
14
- img {
14
+ > img {
15
15
  float: left;
16
16
  margin: 0 8px 0 -12px;
17
17
  height: 32px;
@@ -41,10 +41,6 @@ a {
41
41
  .valign-wrapper {
42
42
  display: flex;
43
43
  align-items: center;
44
-
45
- .valign {
46
- display: block;
47
- }
48
44
  }
49
45
 
50
46
 
@@ -34,6 +34,25 @@
34
34
  }
35
35
 
36
36
 
37
+ // Mixins to eliminate code repitition
38
+ @mixin reset-offset {
39
+ margin-left: auto;
40
+ left: auto;
41
+ right: auto;
42
+ }
43
+ @mixin grid-classes($size, $i, $perc) {
44
+ &.offset-#{$size}#{$i} {
45
+ margin-left: $perc;
46
+ }
47
+ &.pull-#{$size}#{$i} {
48
+ right: $perc;
49
+ }
50
+ &.push-#{$size}#{$i} {
51
+ left: $perc;
52
+ }
53
+ }
54
+
55
+
37
56
  .row {
38
57
  margin-left: auto;
39
58
  margin-right: auto;
@@ -57,24 +76,12 @@
57
76
  position: relative;
58
77
  }
59
78
 
60
- $i: 1;
61
- @while $i <= $num-cols {
62
- &.s#{$i},
63
- &.m#{$i},
64
- &.l#{$i},
65
- &.xl#{$i} {
66
- margin-left: auto;
67
- left: auto;
68
- right: auto;
69
- }
70
- $i: $i + 1;
71
- }
72
-
73
79
  $i: 1;
74
80
  @while $i <= $num-cols {
75
81
  $perc: unquote((100 / ($num-cols / $i)) + "%");
76
82
  &.s#{$i} {
77
83
  width: $perc;
84
+ @include reset-offset;
78
85
  }
79
86
  $i: $i + 1;
80
87
  }
@@ -82,15 +89,7 @@
82
89
  $i: 1;
83
90
  @while $i <= $num-cols {
84
91
  $perc: unquote((100 / ($num-cols / $i)) + "%");
85
- &.offset-s#{$i} {
86
- margin-left: $perc;
87
- }
88
- &.pull-s#{$i} {
89
- right: $perc;
90
- }
91
- &.push-s#{$i} {
92
- left: $perc;
93
- }
92
+ @include grid-classes("s", $i, $perc);
94
93
  $i: $i + 1;
95
94
  }
96
95
 
@@ -101,6 +100,7 @@
101
100
  $perc: unquote((100 / ($num-cols / $i)) + "%");
102
101
  &.m#{$i} {
103
102
  width: $perc;
103
+ @include reset-offset;
104
104
  }
105
105
  $i: $i + 1
106
106
  }
@@ -108,15 +108,7 @@
108
108
  $i: 1;
109
109
  @while $i <= $num-cols {
110
110
  $perc: unquote((100 / ($num-cols / $i)) + "%");
111
- &.offset-m#{$i} {
112
- margin-left: $perc;
113
- }
114
- &.pull-m#{$i} {
115
- right: $perc;
116
- }
117
- &.push-m#{$i} {
118
- left: $perc;
119
- }
111
+ @include grid-classes("m", $i, $perc);
120
112
  $i: $i + 1;
121
113
  }
122
114
  }
@@ -128,6 +120,7 @@
128
120
  $perc: unquote((100 / ($num-cols / $i)) + "%");
129
121
  &.l#{$i} {
130
122
  width: $perc;
123
+ @include reset-offset;
131
124
  }
132
125
  $i: $i + 1;
133
126
  }
@@ -135,15 +128,7 @@
135
128
  $i: 1;
136
129
  @while $i <= $num-cols {
137
130
  $perc: unquote((100 / ($num-cols / $i)) + "%");
138
- &.offset-l#{$i} {
139
- margin-left: $perc;
140
- }
141
- &.pull-l#{$i} {
142
- right: $perc;
143
- }
144
- &.push-l#{$i} {
145
- left: $perc;
146
- }
131
+ @include grid-classes("l", $i, $perc);
147
132
  $i: $i + 1;
148
133
  }
149
134
  }
@@ -155,6 +140,7 @@
155
140
  $perc: unquote((100 / ($num-cols / $i)) + "%");
156
141
  &.xl#{$i} {
157
142
  width: $perc;
143
+ @include reset-offset;
158
144
  }
159
145
  $i: $i + 1;
160
146
  }
@@ -162,15 +148,7 @@
162
148
  $i: 1;
163
149
  @while $i <= $num-cols {
164
150
  $perc: unquote((100 / ($num-cols / $i)) + "%");
165
- &.offset-xl#{$i} {
166
- margin-left: $perc;
167
- }
168
- &.pull-xl#{$i} {
169
- right: $perc;
170
- }
171
- &.push-xl#{$i} {
172
- left: $perc;
173
- }
151
+ @include grid-classes("xl", $i, $perc);
174
152
  $i: $i + 1;
175
153
  }
176
154
  }
@@ -30,8 +30,8 @@
30
30
  .preloader-wrapper {
31
31
  display: inline-block;
32
32
  position: relative;
33
- width: 48px;
34
- height: 48px;
33
+ width: 50px;
34
+ height: 50px;
35
35
 
36
36
  &.small {
37
37
  width: 36px;
@@ -5,6 +5,8 @@
5
5
  position: absolute;
6
6
  width: 100%;
7
7
  height: 100%;
8
+ top: 0;
9
+ left: 0;
8
10
  background-color: inherit;
9
11
  border-radius: inherit;
10
12
  transition: opacity .3s, transform .3s;
@@ -13,6 +15,7 @@
13
15
  }
14
16
 
15
17
  overflow: initial;
18
+ position: relative;
16
19
  }
17
20
 
18
21
  @keyframes pulse-animation {
@@ -1,49 +1,39 @@
1
1
  @font-face {
2
2
  font-family: "Roboto";
3
- src: local(Roboto Thin), font-url('#{$roboto-font-path}Roboto-Thin.eot');
4
- src: font-url("#{$roboto-font-path}Roboto-Thin.eot?#iefix") format('embedded-opentype'),
3
+ src: local(Roboto Thin),
5
4
  font-url("#{$roboto-font-path}Roboto-Thin.woff2") format("woff2"),
6
- font-url("#{$roboto-font-path}Roboto-Thin.woff") format("woff"),
7
- font-url("#{$roboto-font-path}Roboto-Thin.ttf") format("truetype");
5
+ font-url("#{$roboto-font-path}Roboto-Thin.woff") format("woff");
8
6
 
9
- font-weight: 200;
7
+ font-weight: 100;
10
8
  }
11
9
  @font-face {
12
10
  font-family: "Roboto";
13
- src: local(Roboto Light), font-url('#{$roboto-font-path}Roboto-Light.eot');
14
- src: font-url("#{$roboto-font-path}Roboto-Light.eot?#iefix") format('embedded-opentype'),
11
+ src: local(Roboto Light),
15
12
  font-url("#{$roboto-font-path}Roboto-Light.woff2") format("woff2"),
16
- font-url("#{$roboto-font-path}Roboto-Light.woff") format("woff"),
17
- font-url("#{$roboto-font-path}Roboto-Light.ttf") format("truetype");
13
+ font-url("#{$roboto-font-path}Roboto-Light.woff") format("woff");
18
14
  font-weight: 300;
19
15
  }
20
16
 
21
17
  @font-face {
22
18
  font-family: "Roboto";
23
- src: local(Roboto Regular), font-url('#{$roboto-font-path}Roboto-Regular.eot');
24
- src: font-url("#{$roboto-font-path}Roboto-Regular.eot?#iefix") format('embedded-opentype'),
19
+ src: local(Roboto Regular),
25
20
  font-url("#{$roboto-font-path}Roboto-Regular.woff2") format("woff2"),
26
- font-url("#{$roboto-font-path}Roboto-Regular.woff") format("woff"),
27
- font-url("#{$roboto-font-path}Roboto-Regular.ttf") format("truetype");
21
+ font-url("#{$roboto-font-path}Roboto-Regular.woff") format("woff");
28
22
  font-weight: 400;
29
23
  }
30
24
 
31
25
  @font-face {
32
26
  font-family: "Roboto";
33
- src: font-url('#{$roboto-font-path}Roboto-Medium.eot');
34
- src: font-url("#{$roboto-font-path}Roboto-Medium.eot?#iefix") format('embedded-opentype'),
27
+ src: local(Roboto Medium),
35
28
  font-url("#{$roboto-font-path}Roboto-Medium.woff2") format("woff2"),
36
- font-url("#{$roboto-font-path}Roboto-Medium.woff") format("woff"),
37
- font-url("#{$roboto-font-path}Roboto-Medium.ttf") format("truetype");
29
+ font-url("#{$roboto-font-path}Roboto-Medium.woff") format("woff");
38
30
  font-weight: 500;
39
31
  }
40
32
 
41
33
  @font-face {
42
34
  font-family: "Roboto";
43
- src: font-url('#{$roboto-font-path}Roboto-Bold.eot');
44
- src: font-url("#{$roboto-font-path}Roboto-Bold.eot?#iefix") format('embedded-opentype'),
35
+ src: local(Roboto Bold),
45
36
  font-url("#{$roboto-font-path}Roboto-Bold.woff2") format("woff2"),
46
- font-url("#{$roboto-font-path}Roboto-Bold.woff") format("woff"),
47
- font-url("#{$roboto-font-path}Roboto-Bold.ttf") format("truetype");
37
+ font-url("#{$roboto-font-path}Roboto-Bold.woff") format("woff");
48
38
  font-weight: 700;
49
39
  }
@@ -32,7 +32,6 @@
32
32
  }
33
33
  }
34
34
 
35
-
36
35
  .tap-target {
37
36
  position: absolute;
38
37
  font-size: 1rem;
@@ -48,15 +47,6 @@
48
47
  opacity .3s cubic-bezier(.42,0,.58,1);
49
48
  }
50
49
 
51
- @media only screen and (max-width: 600px) {
52
- .tap-target {
53
- width: 600px;
54
- height: 600px;
55
- }
56
- }
57
-
58
-
59
-
60
50
  .tap-target-content {
61
51
  position: relative;
62
52
  display: table-cell;
@@ -92,6 +82,11 @@
92
82
  }
93
83
 
94
84
  .tap-target-origin {
85
+ &:not(.btn),
86
+ &:not(.btn):hover {
87
+ background: none;
88
+ }
89
+
95
90
  top: 50%;
96
91
  left: 50%;
97
92
  transform: translate(-50%,-50%);
@@ -100,6 +95,9 @@
100
95
  position: absolute !important;
101
96
  }
102
97
 
103
- .tap-target-origin:not(.btn), .tap-target-origin:not(.btn):hover {
104
- background: none;
98
+ @media only screen and (max-width: 600px) {
99
+ .tap-target, .tap-target-wrapper {
100
+ width: 600px;
101
+ height: 600px;
102
+ }
105
103
  }
@@ -56,7 +56,8 @@ $badge-height: 22px !default;
56
56
  // Shared styles
57
57
  $button-border: none !default;
58
58
  $button-background-focus: lighten($secondary-color, 4%) !default;
59
- $button-font-size: 1.3rem !default;
59
+ $button-font-size: 1rem !default;
60
+ $button-icon-font-size: 1.3rem !default;
60
61
  $button-height: 36px !default;
61
62
  $button-padding: 0 2rem !default;
62
63
  $button-radius: 2px !default;
@@ -158,6 +158,7 @@ textarea.materialize-textarea {
158
158
  font-size: 1rem;
159
159
  cursor: text;
160
160
  transition: .2s ease-out;
161
+ text-align: initial;
161
162
 
162
163
  &:not(.label-icon).active {
163
164
  font-size: $label-font-size;
@@ -264,6 +265,10 @@ textarea {
264
265
  word-wrap: break-word;
265
266
  overflow-wrap: break-word; /* future version of deprecated 'word-wrap' */
266
267
  padding-top: 1.2rem; /* prevents text jump on Enter keypress */
268
+
269
+ // Reduces repaints
270
+ position: absolute;
271
+ top: 0;
267
272
  }
268
273
 
269
274
 
@@ -27,13 +27,14 @@ input[type=range] {
27
27
 
28
28
  input[type=range] + .thumb {
29
29
  position: absolute;
30
+ top: 10px;
31
+ left: 0;
30
32
  border: none;
31
33
  height: 0;
32
34
  width: 0;
33
35
  border-radius: 50%;
34
36
  background-color: $radio-fill-color;
35
- top: 10px;
36
- margin-left: -6px;
37
+ margin-left: 7px;
37
38
 
38
39
  transform-origin: 50% 50%;
39
40
  transform: rotate(-45deg);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v0.98.1 (http://materializecss.com)
2
+ * Materialize v0.98.2 (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.1"
3
+ VERSION = "0.98.2"
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.1
4
+ version: 0.98.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mkhairi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-26 00:00:00.000000000 Z
11
+ date: 2017-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -190,7 +190,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  version: '0'
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 2.5.1
193
+ rubygems_version: 2.6.11
194
194
  signing_key:
195
195
  specification_version: 4
196
196
  summary: Materialzecss sass for rails.