materialize-sass 0.95.1 → 0.95.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.md +18 -9
- data/app/assets/javascripts/{materialize-sprokets.js → materialize-sprockets.js} +5 -1
- data/app/assets/javascripts/materialize.js +453 -139
- data/app/assets/javascripts/materialize/animations.js +8 -0
- data/app/assets/javascripts/materialize/buttons.js +35 -0
- data/app/assets/javascripts/materialize/cards.js +7 -3
- data/app/assets/javascripts/materialize/collapsible.js +6 -6
- data/app/assets/javascripts/materialize/dropdown.js +42 -32
- data/app/assets/javascripts/materialize/forms.js +128 -18
- data/app/assets/javascripts/materialize/hammer.min.js +1 -1
- data/app/assets/javascripts/materialize/init.js +13 -36
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +34 -34
- data/app/assets/javascripts/materialize/parallax.js +19 -17
- data/app/assets/javascripts/materialize/scrollFire.js +29 -0
- data/app/assets/javascripts/materialize/scrollspy.js +1 -1
- data/app/assets/javascripts/materialize/sideNav.js +32 -16
- data/app/assets/javascripts/materialize/slider.js +16 -9
- data/app/assets/javascripts/materialize/transitions.js +94 -0
- data/app/assets/stylesheets/materialize.scss +30 -30
- data/app/assets/stylesheets/{components → materialize/components}/_buttons.scss +29 -0
- data/app/assets/stylesheets/{components → materialize/components}/_cards.scss +36 -7
- data/app/assets/stylesheets/{components → materialize/components}/_collapsible.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_color.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_dropdown.scss +2 -2
- data/app/assets/stylesheets/{components → materialize/components}/_form.scss +88 -31
- data/app/assets/stylesheets/{components → materialize/components}/_global.scss +63 -13
- data/app/assets/stylesheets/{components → materialize/components}/_grid.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_icons-material-design.scss +5 -5
- data/app/assets/stylesheets/{components → materialize/components}/_materialbox.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_mixins.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_modal.scss +34 -8
- data/app/assets/stylesheets/{components → materialize/components}/_navbar.scss +9 -4
- data/app/assets/stylesheets/{components → materialize/components}/_normalize.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_prefixer.scss +3 -4
- data/app/assets/stylesheets/{components → materialize/components}/_preloader.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_roboto.scss +5 -5
- data/app/assets/stylesheets/{components → materialize/components}/_sideNav.scss +28 -67
- data/app/assets/stylesheets/{components → materialize/components}/_slider.scss +5 -1
- data/app/assets/stylesheets/{components → materialize/components}/_table_of_contents.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_tabs.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_toast.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_tooltip.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_typography.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/_variables.scss +6 -2
- data/app/assets/stylesheets/{components → materialize/components}/_waves.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.date.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.scss +0 -0
- data/app/assets/stylesheets/{components → materialize/components}/date_picker/_default.time.scss +0 -0
- data/lib/materialize-sass.rb +7 -0
- data/lib/materialize-sass/version.rb +1 -1
- data/materialize-sass.gemspec +4 -0
- metadata +68 -42
- checksums.yaml +0 -7
@@ -21,12 +21,12 @@ main {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
ul {
|
24
|
-
|
24
|
+
list-style-type: none;
|
25
25
|
}
|
26
26
|
|
27
27
|
a {
|
28
|
-
|
29
|
-
|
28
|
+
color: $link-color;
|
29
|
+
text-decoration: none;
|
30
30
|
}
|
31
31
|
|
32
32
|
|
@@ -49,6 +49,11 @@ ul {
|
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
52
|
+
// classic clearfix
|
53
|
+
.clearfix {
|
54
|
+
clear: both;
|
55
|
+
}
|
56
|
+
|
52
57
|
|
53
58
|
// Z-levels
|
54
59
|
|
@@ -116,12 +121,15 @@ i {
|
|
116
121
|
}
|
117
122
|
|
118
123
|
// Images
|
119
|
-
img.responsive-img
|
124
|
+
img.responsive-img,
|
125
|
+
video.responsive-video {
|
120
126
|
max-width: 100%;
|
121
127
|
height: auto;
|
122
128
|
}
|
123
129
|
|
124
130
|
|
131
|
+
|
132
|
+
|
125
133
|
// parallax
|
126
134
|
.parallax-container {
|
127
135
|
position: relative;
|
@@ -164,41 +172,77 @@ img.responsive-img {
|
|
164
172
|
position: relative;
|
165
173
|
}
|
166
174
|
.pinned {
|
167
|
-
position: fixed;
|
175
|
+
position: fixed !important;
|
168
176
|
}
|
169
177
|
|
178
|
+
/*********************
|
179
|
+
Transition Classes
|
180
|
+
**********************/
|
170
181
|
|
182
|
+
ul.staggered-list li {
|
183
|
+
@include opacity(0);
|
184
|
+
}
|
171
185
|
|
172
|
-
|
186
|
+
.fade-in {
|
187
|
+
@include opacity(0);
|
188
|
+
transform-origin: 0 50%;
|
189
|
+
}
|
190
|
+
|
191
|
+
|
192
|
+
/*********************
|
193
|
+
Media Query Classes
|
194
|
+
**********************/
|
173
195
|
.hide-on-small-only, .hide-on-small-and-down {
|
174
196
|
@media #{$small-and-down} {
|
175
197
|
display: none !important;
|
176
198
|
}
|
177
199
|
}
|
178
|
-
|
179
200
|
.hide-on-med-and-down {
|
180
201
|
@media #{$medium-and-down} {
|
181
202
|
display: none !important;
|
182
203
|
}
|
183
204
|
}
|
184
|
-
|
185
205
|
.hide-on-med-and-up {
|
186
206
|
@media #{$medium-and-up} {
|
187
207
|
display: none !important;
|
188
208
|
}
|
189
209
|
}
|
190
|
-
|
191
210
|
.hide-on-med-only {
|
192
211
|
@media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
|
193
212
|
display: none !important;
|
194
213
|
}
|
195
214
|
}
|
196
|
-
|
197
215
|
.hide-on-large-only {
|
198
216
|
@media #{$large-and-up} {
|
199
217
|
display: none !important;
|
200
218
|
}
|
201
219
|
}
|
220
|
+
.show-on-large {
|
221
|
+
@media #{$large-and-up} {
|
222
|
+
display: initial !important;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
.show-on-medium {
|
226
|
+
@media only screen and (min-width: $small-screen) and (max-width: $medium-screen) {
|
227
|
+
display: initial !important;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
.show-on-small {
|
231
|
+
@media #{$small-and-down} {
|
232
|
+
display: initial !important;
|
233
|
+
}
|
234
|
+
}
|
235
|
+
.show-on-medium-and-up {
|
236
|
+
@media #{$medium-and-up} {
|
237
|
+
display: initial !important;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
.show-on-medium-and-down {
|
241
|
+
@media #{$medium-and-down} {
|
242
|
+
display: initial !important;
|
243
|
+
}
|
244
|
+
}
|
245
|
+
|
202
246
|
|
203
247
|
// Center text on mobile
|
204
248
|
.center-on-small-only {
|
@@ -207,13 +251,11 @@ img.responsive-img {
|
|
207
251
|
}
|
208
252
|
}
|
209
253
|
|
210
|
-
|
211
254
|
// Footer
|
212
|
-
|
213
255
|
footer.page-footer {
|
214
256
|
margin-top: 20px;
|
215
257
|
padding-top: 20px;
|
216
|
-
background-color:
|
258
|
+
background-color: $footer-bg-color;
|
217
259
|
|
218
260
|
.footer-copyright {
|
219
261
|
overflow: hidden;
|
@@ -538,6 +580,8 @@ span.badge {
|
|
538
580
|
right: -8%;
|
539
581
|
}
|
540
582
|
}
|
583
|
+
|
584
|
+
|
541
585
|
/*******************
|
542
586
|
Utility Classes
|
543
587
|
*******************/
|
@@ -580,3 +624,9 @@ span.badge {
|
|
580
624
|
margin-left: auto;
|
581
625
|
margin-right: auto;
|
582
626
|
}
|
627
|
+
|
628
|
+
.truncate {
|
629
|
+
white-space: nowrap;
|
630
|
+
overflow: hidden;
|
631
|
+
text-overflow: ellipsis;
|
632
|
+
}
|
File without changes
|
data/app/assets/stylesheets/{components → materialize/components}/_icons-material-design.scss
RENAMED
@@ -1,10 +1,10 @@
|
|
1
1
|
@font-face {
|
2
2
|
font-family: "Material-Design-Icons";
|
3
|
-
src:font-url("
|
4
|
-
src:font-url("
|
5
|
-
font-url("
|
6
|
-
font-url("
|
7
|
-
font-url("
|
3
|
+
src:font-url("#{$icons-font-path}Material-Design-Icons.eot?-g7cqhn");
|
4
|
+
src:font-url("#{$icons-font-path}Material-Design-Icons.eot?#iefix-g7cqhn") format("embedded-opentype"),
|
5
|
+
font-url("#{$icons-font-path}Material-Design-Icons.woff?-g7cqhn") format("woff"),
|
6
|
+
font-url("#{$icons-font-path}Material-Design-Icons.ttf?-g7cqhn") format("truetype"),
|
7
|
+
font-url("#{$icons-font-path}Material-Design-Icons.svg?-g7cqhn#Material-Design-Icons") format("svg");
|
8
8
|
font-weight: normal;
|
9
9
|
font-style: normal;
|
10
10
|
}
|
File without changes
|
File without changes
|
@@ -6,7 +6,7 @@
|
|
6
6
|
left: 0;
|
7
7
|
right: 0;
|
8
8
|
background-color: #eee;
|
9
|
-
padding:
|
9
|
+
padding: 0;
|
10
10
|
max-height: 70%;
|
11
11
|
width: 55%;
|
12
12
|
margin: auto;
|
@@ -18,12 +18,28 @@
|
|
18
18
|
will-change: top, opacity;
|
19
19
|
|
20
20
|
@media #{$medium-and-down} {
|
21
|
-
|
21
|
+
width: 80%;
|
22
22
|
}
|
23
23
|
|
24
24
|
h1,h2,h3,h4 {
|
25
25
|
margin-top: 0;
|
26
26
|
}
|
27
|
+
|
28
|
+
.modal-content {
|
29
|
+
padding: 24px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.modal-footer {
|
33
|
+
background-color: #eee;
|
34
|
+
padding: 4px 6px;
|
35
|
+
height: 56px;
|
36
|
+
width: 100%;
|
37
|
+
|
38
|
+
.btn, .btn-flat {
|
39
|
+
float: right;
|
40
|
+
margin: 6px 0;
|
41
|
+
}
|
42
|
+
}
|
27
43
|
}
|
28
44
|
#lean-overlay {
|
29
45
|
position: fixed;
|
@@ -40,11 +56,21 @@
|
|
40
56
|
will-change: opacity;
|
41
57
|
}
|
42
58
|
|
43
|
-
.
|
44
|
-
|
45
|
-
|
46
|
-
}
|
59
|
+
.modal.modal-fixed-footer {
|
60
|
+
padding: 0;
|
61
|
+
height: 70%;
|
47
62
|
|
48
|
-
.modal-
|
49
|
-
|
63
|
+
.modal-content {
|
64
|
+
position: fixed;
|
65
|
+
max-height: 100%;
|
66
|
+
padding-bottom: 64px;
|
67
|
+
width: 100%;
|
68
|
+
overflow-y: auto;
|
69
|
+
}
|
70
|
+
|
71
|
+
.modal-footer {
|
72
|
+
border-top: 1px solid rgba(0,0,0,.1);
|
73
|
+
position: fixed;
|
74
|
+
bottom: 0;
|
75
|
+
}
|
50
76
|
}
|
@@ -13,9 +13,13 @@ nav {
|
|
13
13
|
|
14
14
|
a { color: #fff; }
|
15
15
|
|
16
|
+
@media #{$large-and-up} {
|
17
|
+
a.button-collapse { display: none; }
|
18
|
+
}
|
19
|
+
|
20
|
+
|
16
21
|
a.button-collapse {
|
17
22
|
float: left;
|
18
|
-
@extend .hide-on-large-only;
|
19
23
|
position: relative;
|
20
24
|
z-index: 1;
|
21
25
|
height: $navbar-height-mobile;
|
@@ -49,7 +53,6 @@ nav {
|
|
49
53
|
|
50
54
|
ul {
|
51
55
|
margin: 0;
|
52
|
-
float: right;
|
53
56
|
|
54
57
|
li {
|
55
58
|
float: left;
|
@@ -63,7 +66,7 @@ nav {
|
|
63
66
|
a {
|
64
67
|
font-size: 1rem;
|
65
68
|
color: #fff;
|
66
|
-
display: block;
|
69
|
+
display: inline-block;
|
67
70
|
padding: 0px 15px;
|
68
71
|
}
|
69
72
|
|
@@ -74,6 +77,8 @@ nav {
|
|
74
77
|
|
75
78
|
// Navbar Search Form
|
76
79
|
.input-field {
|
80
|
+
margin: 0;
|
81
|
+
|
77
82
|
input {
|
78
83
|
height: 100%;
|
79
84
|
font-size: 1.2rem;
|
@@ -126,4 +131,4 @@ nav {
|
|
126
131
|
.navbar-fixed {
|
127
132
|
height: $navbar-height;
|
128
133
|
}
|
129
|
-
}
|
134
|
+
}
|
File without changes
|
@@ -117,13 +117,13 @@
|
|
117
117
|
|
118
118
|
// Keyframes
|
119
119
|
@mixin keyframes($animation-name) {
|
120
|
-
@-webkit-keyframes $animation-name {
|
120
|
+
@-webkit-keyframes #{$animation-name} {
|
121
121
|
@content;
|
122
122
|
}
|
123
|
-
@-moz-keyframes $animation-name {
|
123
|
+
@-moz-keyframes #{$animation-name} {
|
124
124
|
@content;
|
125
125
|
}
|
126
|
-
@keyframes $animation-name {
|
126
|
+
@keyframes #{$animation-name} {
|
127
127
|
@content;
|
128
128
|
}
|
129
129
|
}
|
@@ -414,4 +414,3 @@
|
|
414
414
|
-ms-transition-timing-function: $function;
|
415
415
|
transition-timing-function: $function;
|
416
416
|
}
|
417
|
-
|
File without changes
|
@@ -1,28 +1,28 @@
|
|
1
1
|
@font-face {
|
2
2
|
font-family: "Roboto";
|
3
|
-
src:
|
3
|
+
src: font-url("#{$roboto-font-path}Roboto-Thin.ttf");
|
4
4
|
font-weight: 200;
|
5
5
|
}
|
6
6
|
@font-face {
|
7
7
|
font-family: "Roboto";
|
8
|
-
src: font-url("roboto
|
8
|
+
src: font-url("#{$roboto-font-path}Roboto-Light.ttf");
|
9
9
|
font-weight: 300;
|
10
10
|
}
|
11
11
|
|
12
12
|
@font-face {
|
13
13
|
font-family: "Roboto";
|
14
|
-
src: font-url("roboto
|
14
|
+
src: font-url("#{$roboto-font-path}Roboto-Regular.ttf");
|
15
15
|
font-weight: 400;
|
16
16
|
}
|
17
17
|
|
18
18
|
@font-face {
|
19
19
|
font-family: "Roboto";
|
20
|
-
src: font-url("roboto
|
20
|
+
src: font-url("#{$roboto-font-path}Roboto-Medium.ttf");
|
21
21
|
font-weight: 500;
|
22
22
|
}
|
23
23
|
|
24
24
|
@font-face {
|
25
25
|
font-family: "Roboto";
|
26
|
-
src: font-url("roboto
|
26
|
+
src: font-url("#{$roboto-font-path}Roboto-Bold.ttf");
|
27
27
|
font-weight: 700;
|
28
28
|
}
|
@@ -1,74 +1,22 @@
|
|
1
|
-
|
2
|
-
@media #{$medium-and-down} {
|
3
|
-
ul.side-nav {
|
4
|
-
position: fixed;
|
5
|
-
width: $sidenav-width;
|
6
|
-
left: -1 * ($sidenav-width + 10);
|
7
|
-
top: 0;
|
8
|
-
height: 100%;
|
9
|
-
height: calc(100% + 60px);
|
10
|
-
padding-bottom: 60px;
|
11
|
-
background-color: #FFF;
|
12
|
-
z-index: 999;
|
13
|
-
|
14
|
-
will-change: left;
|
15
|
-
|
16
|
-
// Right Align
|
17
|
-
&.right-aligned {
|
18
|
-
will-change: right;
|
19
|
-
right: -1 * ($sidenav-width + 10);
|
20
|
-
left: auto;
|
21
|
-
}
|
22
|
-
|
23
|
-
.collapsible{
|
24
|
-
margin: 0;
|
25
|
-
}
|
26
|
-
|
27
|
-
|
28
|
-
li {
|
29
|
-
float: none;
|
30
|
-
padding: 0 15px;
|
31
|
-
width: 240px;
|
32
|
-
&:hover, &.active { background-color: #ddd; }
|
33
|
-
}
|
34
|
-
a {
|
35
|
-
color: #444;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
}
|
40
|
-
|
41
|
-
// Touch interaction
|
42
|
-
.drag-target {
|
43
|
-
height: 100%;
|
44
|
-
width: 10px;
|
1
|
+
ul.side-nav {
|
45
2
|
position: fixed;
|
46
|
-
|
47
|
-
|
48
|
-
}
|
49
|
-
|
50
|
-
|
51
|
-
// Hidden side-nav for all sizes
|
52
|
-
ul.side-nav.full,
|
53
|
-
ul.side-nav.fixed {
|
54
|
-
position: fixed;
|
55
|
-
width: $sidenav-width;
|
56
|
-
left: -1 * ($sidenav-width + 10);
|
3
|
+
width: 240px;
|
4
|
+
left: -105%;
|
57
5
|
top: 0;
|
58
6
|
margin: 0;
|
59
|
-
padding-bottom: 60px;
|
60
7
|
height: 100%;
|
61
8
|
height: calc(100% + 60px);
|
9
|
+
padding-bottom: 60px;
|
62
10
|
background-color: #FFF;
|
63
11
|
z-index: 999;
|
64
|
-
@extend .z-depth-1;
|
65
12
|
|
13
|
+
@extend .z-depth-1;
|
66
14
|
will-change: left;
|
67
15
|
|
68
16
|
// Right Align
|
69
17
|
&.right-aligned {
|
70
18
|
will-change: right;
|
71
|
-
right: -
|
19
|
+
right: -105%;
|
72
20
|
left: auto;
|
73
21
|
}
|
74
22
|
|
@@ -76,16 +24,30 @@ ul.side-nav.fixed {
|
|
76
24
|
margin: 0;
|
77
25
|
}
|
78
26
|
|
27
|
+
|
79
28
|
li {
|
80
29
|
float: none;
|
81
|
-
line-height: 64px;
|
82
30
|
padding: 0 15px;
|
83
|
-
width: $sidenav-width;
|
84
|
-
|
85
|
-
@include transition(background-color 0s);
|
86
|
-
|
87
31
|
&:hover, &.active { background-color: #ddd; }
|
88
32
|
}
|
33
|
+
a {
|
34
|
+
color: #444;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
|
39
|
+
// Touch interaction
|
40
|
+
.drag-target {
|
41
|
+
height: 100%;
|
42
|
+
width: 10px;
|
43
|
+
position: fixed;
|
44
|
+
top: 0;
|
45
|
+
z-index: 998;
|
46
|
+
}
|
47
|
+
|
48
|
+
|
49
|
+
// Hidden side-nav for all sizes
|
50
|
+
ul.side-nav.fixed {
|
89
51
|
a {
|
90
52
|
display: block;
|
91
53
|
padding: 0 15px;
|
@@ -101,7 +63,6 @@ ul.side-nav.fixed {
|
|
101
63
|
|
102
64
|
// Right Align
|
103
65
|
&.right-aligned {
|
104
|
-
will-change: right;
|
105
66
|
right: 0;
|
106
67
|
left: auto;
|
107
68
|
}
|
@@ -110,10 +71,10 @@ ul.side-nav.fixed {
|
|
110
71
|
// Fixed sideNav hide on smaller
|
111
72
|
@media #{$medium-and-down} {
|
112
73
|
ul.side-nav.fixed {
|
113
|
-
left: -
|
74
|
+
left: -105%;
|
114
75
|
|
115
76
|
&.right-aligned {
|
116
|
-
right: -
|
77
|
+
right: -105%;
|
117
78
|
left: auto;
|
118
79
|
}
|
119
80
|
}
|
@@ -140,4 +101,4 @@ ul.side-nav.fixed .collapsible-body li.active {
|
|
140
101
|
z-index: 997;
|
141
102
|
|
142
103
|
will-change: opacity;
|
143
|
-
}
|
104
|
+
}
|