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
@@ -13,7 +13,7 @@
13
13
  width: 70%;
14
14
  }
15
15
  }
16
- .container .row {
16
+ .col .row {
17
17
  margin-left: (-1 * $gutter-width / 2);
18
18
  margin-right: (-1 * $gutter-width / 2);
19
19
  }
@@ -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;
@@ -62,9 +81,7 @@
62
81
  $perc: unquote((100 / ($num-cols / $i)) + "%");
63
82
  &.s#{$i} {
64
83
  width: $perc;
65
- margin-left: auto;
66
- left: auto;
67
- right: auto;
84
+ @include reset-offset;
68
85
  }
69
86
  $i: $i + 1;
70
87
  }
@@ -72,15 +89,7 @@
72
89
  $i: 1;
73
90
  @while $i <= $num-cols {
74
91
  $perc: unquote((100 / ($num-cols / $i)) + "%");
75
- &.offset-s#{$i} {
76
- margin-left: $perc;
77
- }
78
- &.pull-s#{$i} {
79
- right: $perc;
80
- }
81
- &.push-s#{$i} {
82
- left: $perc;
83
- }
92
+ @include grid-classes("s", $i, $perc);
84
93
  $i: $i + 1;
85
94
  }
86
95
 
@@ -91,9 +100,7 @@
91
100
  $perc: unquote((100 / ($num-cols / $i)) + "%");
92
101
  &.m#{$i} {
93
102
  width: $perc;
94
- margin-left: auto;
95
- left: auto;
96
- right: auto;
103
+ @include reset-offset;
97
104
  }
98
105
  $i: $i + 1
99
106
  }
@@ -101,15 +108,7 @@
101
108
  $i: 1;
102
109
  @while $i <= $num-cols {
103
110
  $perc: unquote((100 / ($num-cols / $i)) + "%");
104
- &.offset-m#{$i} {
105
- margin-left: $perc;
106
- }
107
- &.pull-m#{$i} {
108
- right: $perc;
109
- }
110
- &.push-m#{$i} {
111
- left: $perc;
112
- }
111
+ @include grid-classes("m", $i, $perc);
113
112
  $i: $i + 1;
114
113
  }
115
114
  }
@@ -121,9 +120,7 @@
121
120
  $perc: unquote((100 / ($num-cols / $i)) + "%");
122
121
  &.l#{$i} {
123
122
  width: $perc;
124
- margin-left: auto;
125
- left: auto;
126
- right: auto;
123
+ @include reset-offset;
127
124
  }
128
125
  $i: $i + 1;
129
126
  }
@@ -131,17 +128,29 @@
131
128
  $i: 1;
132
129
  @while $i <= $num-cols {
133
130
  $perc: unquote((100 / ($num-cols / $i)) + "%");
134
- &.offset-l#{$i} {
135
- margin-left: $perc;
136
- }
137
- &.pull-l#{$i} {
138
- right: $perc;
139
- }
140
- &.push-l#{$i} {
141
- left: $perc;
131
+ @include grid-classes("l", $i, $perc);
132
+ $i: $i + 1;
133
+ }
134
+ }
135
+
136
+ @media #{$extra-large-and-up} {
137
+
138
+ $i: 1;
139
+ @while $i <= $num-cols {
140
+ $perc: unquote((100 / ($num-cols / $i)) + "%");
141
+ &.xl#{$i} {
142
+ width: $perc;
143
+ @include reset-offset;
142
144
  }
143
145
  $i: $i + 1;
144
146
  }
147
+
148
+ $i: 1;
149
+ @while $i <= $num-cols {
150
+ $perc: unquote((100 / ($num-cols / $i)) + "%");
151
+ @include grid-classes("xl", $i, $perc);
152
+ $i: $i + 1;
153
+ }
145
154
  }
146
155
  }
147
156
  }
@@ -1,38 +1,39 @@
1
1
  .materialboxed {
2
- display: block;
3
- cursor: zoom-in;
4
- position: relative;
5
- transition: opacity .4s;
6
-
7
2
  &:hover {
8
3
  &:not(.active) {
9
4
  opacity: .8;
10
5
  }
11
- will-change: left, top, width, height;
12
6
  }
13
- }
14
7
 
15
- .materialboxed.active {
16
- cursor: zoom-out;
8
+ display: block;
9
+ cursor: zoom-in;
10
+ position: relative;
11
+ transition: opacity .4s;
12
+ -webkit-backface-visibility: hidden;
13
+
14
+ &.active {
15
+ cursor: zoom-out;
16
+ }
17
17
  }
18
18
 
19
19
  #materialbox-overlay {
20
20
  position:fixed;
21
- top:0;
22
- left:0;
21
+ top: 0;
23
22
  right: 0;
24
23
  bottom: 0;
24
+ left: 0;
25
25
  background-color: #292929;
26
26
  z-index: 1000;
27
-
28
27
  will-change: opacity;
29
28
  }
29
+
30
30
  .materialbox-caption {
31
31
  position: fixed;
32
32
  display: none;
33
33
  color: #fff;
34
34
  line-height: 50px;
35
35
  bottom: 0;
36
+ left: 0;
36
37
  width: 100%;
37
38
  text-align: center;
38
39
  padding: 0% 15%;
@@ -1,5 +1,9 @@
1
1
  .modal {
2
- @extend .z-depth-4;
2
+ &:focus {
3
+ outline: none;
4
+ }
5
+
6
+ @extend .z-depth-5;
3
7
 
4
8
  display: none;
5
9
  position: fixed;
@@ -36,9 +40,9 @@
36
40
  padding: 4px 6px;
37
41
  height: 56px;
38
42
  width: 100%;
43
+ text-align: right;
39
44
 
40
45
  .btn, .btn-flat {
41
- float: right;
42
46
  margin: 6px 0;
43
47
  }
44
48
  }
@@ -46,7 +50,7 @@
46
50
  .modal-overlay {
47
51
  position: fixed;
48
52
  z-index: 999;
49
- top: -100px;
53
+ top: -25%;
50
54
  left: 0;
51
55
  bottom: 0;
52
56
  right: 0;
@@ -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 {
@@ -31,12 +37,12 @@ nav {
31
37
  }
32
38
 
33
39
  @media #{$large-and-up} {
34
- a.button-collapse { display: none; }
40
+ a.sidenav-trigger { display: none; }
35
41
  }
36
42
 
37
43
 
38
44
  // Collapse button
39
- .button-collapse {
45
+ .sidenav-trigger {
40
46
  float: left;
41
47
  position: relative;
42
48
  z-index: 1;
@@ -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
 
@@ -57,7 +63,6 @@ nav {
57
63
  display: inline-block;
58
64
  font-size: $navbar-brand-font-size;
59
65
  padding: 0;
60
- white-space: nowrap;
61
66
 
62
67
  &.center {
63
68
  left: 50%;
@@ -94,6 +99,14 @@ nav {
94
99
  }
95
100
 
96
101
 
102
+ // Title
103
+ .nav-title {
104
+ display: inline-block;
105
+ font-size: 32px;
106
+ padding: 28px 0;
107
+ }
108
+
109
+
97
110
  // Navbar Links
98
111
  ul {
99
112
  margin: 0;
@@ -119,6 +132,11 @@ nav {
119
132
  margin-top: -2px;
120
133
  margin-left: 15px;
121
134
  margin-right: 15px;
135
+
136
+ & > .material-icons {
137
+ height: inherit;
138
+ line-height: inherit;
139
+ }
122
140
  }
123
141
 
124
142
  &:hover {
@@ -162,9 +180,6 @@ nav {
162
180
  transition: color .3s;
163
181
  }
164
182
  &.active i { color: $navbar-font-color; }
165
- &.active {
166
- transform: translateY(0);
167
- }
168
183
  }
169
184
  }
170
185
  }
@@ -180,9 +195,12 @@ nav {
180
195
  }
181
196
  }
182
197
  @media #{$medium-and-up} {
183
- nav, nav .nav-wrapper i, nav a.button-collapse, nav a.button-collapse i {
198
+ nav.nav-extended .nav-wrapper {
199
+ min-height: $navbar-height;
200
+ }
201
+ nav, nav .nav-wrapper i, nav a.sidenav-trigger, nav a.sidenav-trigger i {
184
202
  height: $navbar-height;
185
- line-height: $navbar-height;
203
+ line-height: $navbar-line-height;
186
204
  }
187
205
  .navbar-fixed {
188
206
  height: $navbar-height;