materialize-sass 0.97.0 → 1.0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitattributes +1 -0
- data/.gitignore +3 -0
- data/README.md +48 -10
- data/Rakefile +129 -1
- data/assets/javascripts/materialize/anime.min.js +417 -0
- data/assets/javascripts/materialize/autocomplete.js +504 -0
- data/assets/javascripts/materialize/buttons.js +409 -0
- data/assets/javascripts/materialize/cards.js +34 -0
- data/assets/javascripts/materialize/carousel.js +797 -0
- data/assets/javascripts/materialize/cash.js +990 -0
- data/assets/javascripts/materialize/characterCounter.js +180 -0
- data/assets/javascripts/materialize/chips.js +564 -0
- data/assets/javascripts/materialize/collapsible.js +337 -0
- data/assets/javascripts/materialize/component.js +57 -0
- data/assets/javascripts/materialize/datepicker.js +935 -0
- data/assets/javascripts/materialize/dropdown.js +659 -0
- data/assets/javascripts/materialize/extras/nouislider.js +2147 -0
- data/assets/javascripts/materialize/extras/nouislider.min.js +1 -0
- data/assets/javascripts/materialize/forms.js +244 -0
- data/assets/javascripts/materialize/global.js +408 -0
- data/assets/javascripts/materialize/materialbox.js +513 -0
- data/assets/javascripts/materialize/modal.js +449 -0
- data/assets/javascripts/materialize/parallax.js +173 -0
- data/assets/javascripts/materialize/pushpin.js +179 -0
- data/assets/javascripts/materialize/range.js +310 -0
- data/assets/javascripts/materialize/scrollspy.js +328 -0
- data/assets/javascripts/materialize/select.js +497 -0
- data/assets/javascripts/materialize/sidenav.js +655 -0
- data/assets/javascripts/materialize/slider.js +424 -0
- data/assets/javascripts/materialize/tabs.js +476 -0
- data/assets/javascripts/materialize/tapTarget.js +364 -0
- data/assets/javascripts/materialize/timepicker.js +647 -0
- data/assets/javascripts/materialize/toasts.js +355 -0
- data/assets/javascripts/materialize/tooltip.js +351 -0
- data/{app/assets → assets}/javascripts/materialize/waves.js +42 -47
- data/assets/javascripts/materialize-sprockets.js +29 -0
- data/assets/javascripts/materialize.js +12374 -0
- data/assets/stylesheets/materialize/components/_badges.scss +55 -0
- data/assets/stylesheets/materialize/components/_buttons.scss +322 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_cards.scss +72 -29
- data/assets/stylesheets/materialize/components/_carousel.scss +90 -0
- data/assets/stylesheets/materialize/components/_chips.scss +90 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_collapsible.scss +23 -17
- data/assets/stylesheets/materialize/components/_color-classes.scss +32 -0
- data/{app/assets/stylesheets/materialize/components/_color.scss → assets/stylesheets/materialize/components/_color-variables.scss} +22 -64
- data/assets/stylesheets/materialize/components/_datepicker.scss +191 -0
- data/assets/stylesheets/materialize/components/_dropdown.scss +85 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_global.scss +197 -144
- data/{app/assets → assets}/stylesheets/materialize/components/_grid.scss +57 -18
- data/assets/stylesheets/materialize/components/_icons-material-design.scss +5 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_materialbox.scss +15 -13
- data/{app/assets → assets}/stylesheets/materialize/components/_modal.scss +18 -14
- data/{app/assets → assets}/stylesheets/materialize/components/_navbar.scss +89 -25
- data/assets/stylesheets/materialize/components/_normalize.scss +447 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_preloader.scss +5 -3
- data/assets/stylesheets/materialize/components/_pulse.scss +34 -0
- data/assets/stylesheets/materialize/components/_sidenav.scss +208 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_slider.scss +2 -2
- data/{app/assets → assets}/stylesheets/materialize/components/_table_of_contents.scss +5 -5
- data/assets/stylesheets/materialize/components/_tabs.scss +99 -0
- data/assets/stylesheets/materialize/components/_tapTarget.scss +103 -0
- data/assets/stylesheets/materialize/components/_timepicker.scss +183 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_toast.scss +17 -22
- data/assets/stylesheets/materialize/components/_tooltip.scss +32 -0
- data/assets/stylesheets/materialize/components/_transitions.scss +13 -0
- data/{app/assets → assets}/stylesheets/materialize/components/_typography.scss +11 -9
- data/assets/stylesheets/materialize/components/_variables.scss +349 -0
- data/assets/stylesheets/materialize/components/_waves.scss +114 -0
- data/assets/stylesheets/materialize/components/forms/_checkboxes.scss +200 -0
- data/assets/stylesheets/materialize/components/forms/_file-input.scss +44 -0
- data/assets/stylesheets/materialize/components/forms/_forms.scss +22 -0
- data/assets/stylesheets/materialize/components/forms/_input-fields.scss +354 -0
- data/assets/stylesheets/materialize/components/forms/_radio-buttons.scss +115 -0
- data/assets/stylesheets/materialize/components/forms/_range.scss +161 -0
- data/assets/stylesheets/materialize/components/forms/_select.scss +190 -0
- data/assets/stylesheets/materialize/components/forms/_switches.scss +89 -0
- data/assets/stylesheets/materialize/extras/nouislider.css +406 -0
- data/{app/assets → assets}/stylesheets/materialize.scss +13 -10
- data/lib/materialize-sass/engine.rb +11 -6
- data/lib/materialize-sass/helpers.rb +38 -0
- data/lib/materialize-sass/version.rb +1 -1
- data/lib/materialize-sass.rb +13 -28
- data/materialize-sass.gemspec +5 -5
- metadata +97 -105
- data/app/assets/fonts/material-design-icons/LICENSE.txt +0 -428
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.eot +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.svg +0 -769
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.ttf +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff +0 -0
- data/app/assets/fonts/material-design-icons/Material-Design-Icons.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/materialize/animation.js +0 -9
- data/app/assets/javascripts/materialize/buttons.js +0 -61
- data/app/assets/javascripts/materialize/cards.js +0 -27
- data/app/assets/javascripts/materialize/character_counter.js +0 -59
- data/app/assets/javascripts/materialize/collapsible.js +0 -139
- data/app/assets/javascripts/materialize/date_picker/picker.date.js +0 -1430
- data/app/assets/javascripts/materialize/date_picker/picker.js +0 -1123
- data/app/assets/javascripts/materialize/dropdown.js +0 -178
- data/app/assets/javascripts/materialize/forms.js +0 -456
- data/app/assets/javascripts/materialize/global.js +0 -36
- data/app/assets/javascripts/materialize/hammer.min.js +0 -1
- data/app/assets/javascripts/materialize/init.js +0 -136
- data/app/assets/javascripts/materialize/jquery.easing.1.3.js +0 -205
- data/app/assets/javascripts/materialize/jquery.hammer.js +0 -33
- data/app/assets/javascripts/materialize/jquery.timeago.min.js +0 -1
- data/app/assets/javascripts/materialize/leanModal.js +0 -178
- data/app/assets/javascripts/materialize/materialbox.js +0 -249
- data/app/assets/javascripts/materialize/parallax.js +0 -58
- data/app/assets/javascripts/materialize/prism.js +0 -8
- data/app/assets/javascripts/materialize/pushpin.js +0 -62
- data/app/assets/javascripts/materialize/scrollFire.js +0 -44
- data/app/assets/javascripts/materialize/scrollspy.js +0 -284
- data/app/assets/javascripts/materialize/sideNav.js +0 -312
- data/app/assets/javascripts/materialize/slider.js +0 -301
- data/app/assets/javascripts/materialize/tabs.js +0 -136
- data/app/assets/javascripts/materialize/toasts.js +0 -125
- data/app/assets/javascripts/materialize/tooltip.js +0 -166
- data/app/assets/javascripts/materialize/transitions.js +0 -154
- data/app/assets/javascripts/materialize/velocity.min.js +0 -4
- data/app/assets/javascripts/materialize-sprockets.js +0 -27
- data/app/assets/javascripts/materialize.js +0 -6159
- data/app/assets/stylesheets/materialize/components/_buttons.scss +0 -157
- data/app/assets/stylesheets/materialize/components/_dropdown.scss +0 -40
- data/app/assets/stylesheets/materialize/components/_form.scss +0 -886
- data/app/assets/stylesheets/materialize/components/_icons-material-design.scss +0 -3257
- data/app/assets/stylesheets/materialize/components/_mixins.scss +0 -5
- data/app/assets/stylesheets/materialize/components/_normalize.scss +0 -427
- data/app/assets/stylesheets/materialize/components/_prefixer.scss +0 -376
- data/app/assets/stylesheets/materialize/components/_roboto.scss +0 -38
- data/app/assets/stylesheets/materialize/components/_sideNav.scss +0 -111
- data/app/assets/stylesheets/materialize/components/_tabs.scss +0 -47
- data/app/assets/stylesheets/materialize/components/_tooltip.scss +0 -34
- data/app/assets/stylesheets/materialize/components/_variables.scss +0 -152
- data/app/assets/stylesheets/materialize/components/_waves.scss +0 -167
- data/app/assets/stylesheets/materialize/components/date_picker/_default.date.scss +0 -435
- data/app/assets/stylesheets/materialize/components/date_picker/_default.scss +0 -201
- data/app/assets/stylesheets/materialize/components/date_picker/_default.time.scss +0 -125
@@ -0,0 +1,55 @@
|
|
1
|
+
// Badges
|
2
|
+
span.badge {
|
3
|
+
min-width: 3rem;
|
4
|
+
padding: 0 6px;
|
5
|
+
margin-left: 14px;
|
6
|
+
text-align: center;
|
7
|
+
font-size: 1rem;
|
8
|
+
line-height: $badge-height;
|
9
|
+
height: $badge-height;
|
10
|
+
color: color('grey', 'darken-1');
|
11
|
+
float: right;
|
12
|
+
box-sizing: border-box;
|
13
|
+
|
14
|
+
&.new {
|
15
|
+
font-weight: 300;
|
16
|
+
font-size: 0.8rem;
|
17
|
+
color: #fff;
|
18
|
+
background-color: $badge-bg-color;
|
19
|
+
border-radius: 2px;
|
20
|
+
}
|
21
|
+
&.new:after {
|
22
|
+
content: " new";
|
23
|
+
}
|
24
|
+
|
25
|
+
&[data-badge-caption]::after {
|
26
|
+
content: " " attr(data-badge-caption);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
// Special cases
|
31
|
+
nav ul a span.badge {
|
32
|
+
display: inline-block;
|
33
|
+
float: none;
|
34
|
+
margin-left: 4px;
|
35
|
+
line-height: $badge-height;
|
36
|
+
height: $badge-height;
|
37
|
+
-webkit-font-smoothing: auto;
|
38
|
+
}
|
39
|
+
|
40
|
+
// Line height centering
|
41
|
+
.collection-item span.badge {
|
42
|
+
margin-top: calc(#{$collection-line-height / 2} - #{$badge-height / 2});
|
43
|
+
}
|
44
|
+
.collapsible span.badge {
|
45
|
+
margin-left: auto;
|
46
|
+
}
|
47
|
+
.sidenav span.badge {
|
48
|
+
margin-top: calc(#{$sidenav-line-height / 2} - #{$badge-height / 2});
|
49
|
+
}
|
50
|
+
|
51
|
+
table span.badge {
|
52
|
+
display: inline-block;
|
53
|
+
float: none;
|
54
|
+
margin-left: auto;
|
55
|
+
}
|
@@ -0,0 +1,322 @@
|
|
1
|
+
// shared styles
|
2
|
+
.btn,
|
3
|
+
.btn-flat {
|
4
|
+
border: $button-border;
|
5
|
+
border-radius: $button-radius;
|
6
|
+
display: inline-block;
|
7
|
+
height: $button-height;
|
8
|
+
line-height: $button-height;
|
9
|
+
padding: $button-padding;
|
10
|
+
text-transform: uppercase;
|
11
|
+
vertical-align: middle;
|
12
|
+
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
13
|
+
}
|
14
|
+
|
15
|
+
// Disabled shared style
|
16
|
+
.btn.disabled,
|
17
|
+
.btn-floating.disabled,
|
18
|
+
.btn-large.disabled,
|
19
|
+
.btn-small.disabled,
|
20
|
+
.btn-flat.disabled,
|
21
|
+
.btn:disabled,
|
22
|
+
.btn-floating:disabled,
|
23
|
+
.btn-large:disabled,
|
24
|
+
.btn-small:disabled,
|
25
|
+
.btn-flat:disabled,
|
26
|
+
.btn[disabled],
|
27
|
+
.btn-floating[disabled],
|
28
|
+
.btn-large[disabled],
|
29
|
+
.btn-small[disabled],
|
30
|
+
.btn-flat[disabled] {
|
31
|
+
pointer-events: none;
|
32
|
+
background-color: $button-disabled-background !important;
|
33
|
+
box-shadow: none;
|
34
|
+
color: $button-disabled-color !important;
|
35
|
+
cursor: default;
|
36
|
+
&:hover {
|
37
|
+
background-color: $button-disabled-background !important;
|
38
|
+
color: $button-disabled-color !important;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Shared icon styles
|
43
|
+
.btn,
|
44
|
+
.btn-floating,
|
45
|
+
.btn-large,
|
46
|
+
.btn-small,
|
47
|
+
.btn-flat {
|
48
|
+
font-size: $button-font-size;
|
49
|
+
outline: 0;
|
50
|
+
i {
|
51
|
+
font-size: $button-icon-font-size;
|
52
|
+
line-height: inherit;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
// Shared focus button style
|
57
|
+
.btn,
|
58
|
+
.btn-floating {
|
59
|
+
&:focus {
|
60
|
+
background-color: darken($button-raised-background, 10%);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
// Raised Button
|
65
|
+
.btn {
|
66
|
+
text-decoration: none;
|
67
|
+
color: $button-raised-color;
|
68
|
+
background-color: $button-raised-background;
|
69
|
+
text-align: center;
|
70
|
+
letter-spacing: .5px;
|
71
|
+
@extend .z-depth-1;
|
72
|
+
transition: background-color .2s ease-out;
|
73
|
+
cursor: pointer;
|
74
|
+
&:hover {
|
75
|
+
background-color: $button-raised-background-hover;
|
76
|
+
@extend .z-depth-1-half;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
// Floating button
|
81
|
+
.btn-floating {
|
82
|
+
&:hover {
|
83
|
+
background-color: $button-floating-background-hover;
|
84
|
+
@extend .z-depth-1-half;
|
85
|
+
}
|
86
|
+
&:before {
|
87
|
+
border-radius: 0;
|
88
|
+
}
|
89
|
+
&.btn-large {
|
90
|
+
&.halfway-fab {
|
91
|
+
bottom: -$button-floating-large-size / 2;
|
92
|
+
}
|
93
|
+
width: $button-floating-large-size;
|
94
|
+
height: $button-floating-large-size;
|
95
|
+
padding: 0;
|
96
|
+
i {
|
97
|
+
line-height: $button-floating-large-size;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
&.btn-small {
|
102
|
+
&.halfway-fab {
|
103
|
+
bottom: -$button-floating-small-size / 2;
|
104
|
+
}
|
105
|
+
width: $button-floating-small-size;
|
106
|
+
height: $button-floating-small-size;
|
107
|
+
i {
|
108
|
+
line-height: $button-floating-small-size;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
&.halfway-fab {
|
113
|
+
&.left {
|
114
|
+
right: auto;
|
115
|
+
left: 24px;
|
116
|
+
}
|
117
|
+
position: absolute;
|
118
|
+
right: 24px;
|
119
|
+
bottom: -$button-floating-size / 2;
|
120
|
+
}
|
121
|
+
display: inline-block;
|
122
|
+
color: $button-floating-color;
|
123
|
+
position: relative;
|
124
|
+
overflow: hidden;
|
125
|
+
z-index: 1;
|
126
|
+
width: $button-floating-size;
|
127
|
+
height: $button-floating-size;
|
128
|
+
line-height: $button-floating-size;
|
129
|
+
padding: 0;
|
130
|
+
background-color: $button-floating-background;
|
131
|
+
border-radius: $button-floating-radius;
|
132
|
+
@extend .z-depth-1;
|
133
|
+
transition: background-color .3s;
|
134
|
+
cursor: pointer;
|
135
|
+
vertical-align: middle;
|
136
|
+
i {
|
137
|
+
width: inherit;
|
138
|
+
display: inline-block;
|
139
|
+
text-align: center;
|
140
|
+
color: $button-floating-color;
|
141
|
+
font-size: $button-large-icon-font-size;
|
142
|
+
line-height: $button-floating-size;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
// button fix
|
147
|
+
button.btn-floating {
|
148
|
+
border: $button-border;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Fixed Action Button
|
152
|
+
.fixed-action-btn {
|
153
|
+
&.active {
|
154
|
+
ul {
|
155
|
+
visibility: visible;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
// Directions
|
160
|
+
&.direction-left,
|
161
|
+
&.direction-right {
|
162
|
+
padding: 0 0 0 15px;
|
163
|
+
ul {
|
164
|
+
text-align: right;
|
165
|
+
right: 64px;
|
166
|
+
top: 50%;
|
167
|
+
transform: translateY(-50%);
|
168
|
+
height: 100%;
|
169
|
+
left: auto;
|
170
|
+
/*width 100% only goes to width of button container */
|
171
|
+
width: 500px;
|
172
|
+
li {
|
173
|
+
display: inline-block;
|
174
|
+
margin: 7.5px 15px 0 0;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
}
|
178
|
+
&.direction-right {
|
179
|
+
padding: 0 15px 0 0;
|
180
|
+
ul {
|
181
|
+
text-align: left;
|
182
|
+
direction: rtl;
|
183
|
+
left: 64px;
|
184
|
+
right: auto;
|
185
|
+
li {
|
186
|
+
margin: 7.5px 0 0 15px;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
}
|
190
|
+
&.direction-bottom {
|
191
|
+
padding: 0 0 15px 0;
|
192
|
+
ul {
|
193
|
+
top: 64px;
|
194
|
+
bottom: auto;
|
195
|
+
display: flex;
|
196
|
+
flex-direction: column-reverse;
|
197
|
+
li {
|
198
|
+
margin: 15px 0 0 0;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
&.toolbar {
|
203
|
+
&.active {
|
204
|
+
&>a i {
|
205
|
+
opacity: 0;
|
206
|
+
}
|
207
|
+
}
|
208
|
+
padding: 0;
|
209
|
+
height: $button-floating-large-size;
|
210
|
+
ul {
|
211
|
+
display: flex;
|
212
|
+
top: 0;
|
213
|
+
bottom: 0;
|
214
|
+
z-index: 1;
|
215
|
+
li {
|
216
|
+
flex: 1;
|
217
|
+
display: inline-block;
|
218
|
+
margin: 0;
|
219
|
+
height: 100%;
|
220
|
+
transition: none;
|
221
|
+
a {
|
222
|
+
display: block;
|
223
|
+
overflow: hidden;
|
224
|
+
position: relative;
|
225
|
+
width: 100%;
|
226
|
+
height: 100%;
|
227
|
+
background-color: transparent;
|
228
|
+
box-shadow: none;
|
229
|
+
color: #fff;
|
230
|
+
line-height: $button-floating-large-size;
|
231
|
+
z-index: 1;
|
232
|
+
i {
|
233
|
+
line-height: inherit;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
}
|
239
|
+
position: fixed;
|
240
|
+
right: 23px;
|
241
|
+
bottom: 23px;
|
242
|
+
padding-top: 15px;
|
243
|
+
margin-bottom: 0;
|
244
|
+
z-index: 997;
|
245
|
+
ul {
|
246
|
+
left: 0;
|
247
|
+
right: 0;
|
248
|
+
text-align: center;
|
249
|
+
position: absolute;
|
250
|
+
bottom: 64px;
|
251
|
+
margin: 0;
|
252
|
+
visibility: hidden;
|
253
|
+
li {
|
254
|
+
margin-bottom: 15px;
|
255
|
+
}
|
256
|
+
a.btn-floating {
|
257
|
+
opacity: 0;
|
258
|
+
}
|
259
|
+
}
|
260
|
+
.fab-backdrop {
|
261
|
+
position: absolute;
|
262
|
+
top: 0;
|
263
|
+
left: 0;
|
264
|
+
z-index: -1;
|
265
|
+
width: $button-floating-size;
|
266
|
+
height: $button-floating-size;
|
267
|
+
background-color: $button-floating-background;
|
268
|
+
border-radius: $button-floating-radius;
|
269
|
+
transform: scale(0);
|
270
|
+
}
|
271
|
+
}
|
272
|
+
|
273
|
+
// Flat button
|
274
|
+
.btn-flat {
|
275
|
+
box-shadow: none;
|
276
|
+
background-color: transparent;
|
277
|
+
color: $button-flat-color;
|
278
|
+
cursor: pointer;
|
279
|
+
transition: background-color .2s;
|
280
|
+
&:focus,
|
281
|
+
&:hover {
|
282
|
+
box-shadow: none;
|
283
|
+
}
|
284
|
+
&:focus {
|
285
|
+
background-color: rgba(0, 0, 0, .1);
|
286
|
+
}
|
287
|
+
&.disabled,
|
288
|
+
&.btn-flat[disabled] {
|
289
|
+
background-color: transparent !important;
|
290
|
+
color: $button-flat-disabled-color !important;
|
291
|
+
cursor: default;
|
292
|
+
}
|
293
|
+
}
|
294
|
+
|
295
|
+
// Large button
|
296
|
+
.btn-large {
|
297
|
+
@extend .btn;
|
298
|
+
height: $button-large-height;
|
299
|
+
line-height: $button-large-height;
|
300
|
+
font-size: $button-large-font-size;
|
301
|
+
padding: 0 28px;
|
302
|
+
|
303
|
+
i {
|
304
|
+
font-size: $button-large-icon-font-size;
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
// Small button
|
309
|
+
.btn-small {
|
310
|
+
@extend .btn;
|
311
|
+
height: $button-small-height;
|
312
|
+
line-height: $button-small-height;
|
313
|
+
font-size: $button-small-font-size;
|
314
|
+
i {
|
315
|
+
font-size: $button-small-icon-font-size;
|
316
|
+
}
|
317
|
+
}
|
318
|
+
|
319
|
+
// Block button
|
320
|
+
.btn-block {
|
321
|
+
display: block;
|
322
|
+
}
|
@@ -11,7 +11,6 @@
|
|
11
11
|
|
12
12
|
.card {
|
13
13
|
position: relative;
|
14
|
-
overflow: hidden;
|
15
14
|
margin: $element-top-margin 0 $element-bottom-margin 0;
|
16
15
|
background-color: $card-bg-color;
|
17
16
|
transition: box-shadow .25s;
|
@@ -20,7 +19,6 @@
|
|
20
19
|
|
21
20
|
|
22
21
|
.card-title {
|
23
|
-
color: $card-bg-color;
|
24
22
|
font-size: 24px;
|
25
23
|
font-weight: 300;
|
26
24
|
&.activator {
|
@@ -33,9 +31,14 @@
|
|
33
31
|
position: relative;
|
34
32
|
|
35
33
|
.card-image {
|
34
|
+
max-height: 60%;
|
36
35
|
overflow: hidden;
|
37
36
|
}
|
37
|
+
.card-image + .card-content {
|
38
|
+
max-height: 40%;
|
39
|
+
}
|
38
40
|
.card-content {
|
41
|
+
max-height: 100%;
|
39
42
|
overflow: hidden;
|
40
43
|
}
|
41
44
|
.card-action {
|
@@ -48,44 +51,74 @@
|
|
48
51
|
|
49
52
|
&.small {
|
50
53
|
height: 300px;
|
51
|
-
|
52
|
-
.card-image {
|
53
|
-
height: 150px;
|
54
|
-
}
|
55
|
-
.card-content {
|
56
|
-
height: 150px;
|
57
|
-
}
|
58
|
-
|
59
54
|
}
|
60
55
|
|
61
56
|
&.medium {
|
62
57
|
height: 400px;
|
63
|
-
|
64
|
-
.card-image {
|
65
|
-
height: 250px;
|
66
|
-
}
|
67
|
-
.card-content {
|
68
|
-
height: 150px;
|
69
|
-
}
|
70
58
|
}
|
71
59
|
|
72
60
|
&.large {
|
73
61
|
height: 500px;
|
62
|
+
}
|
63
|
+
|
64
|
+
// Horizontal Cards
|
65
|
+
&.horizontal {
|
66
|
+
&.small, &.medium, &.large {
|
67
|
+
.card-image {
|
68
|
+
height: 100%;
|
69
|
+
max-height: none;
|
70
|
+
overflow: visible;
|
71
|
+
|
72
|
+
img {
|
73
|
+
height: 100%;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
display: flex;
|
74
79
|
|
75
80
|
.card-image {
|
76
|
-
|
81
|
+
max-width: 50%;
|
82
|
+
img {
|
83
|
+
border-radius: 2px 0 0 2px;
|
84
|
+
max-width: 100%;
|
85
|
+
width: auto;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
.card-stacked {
|
90
|
+
display: flex;
|
91
|
+
flex-direction: column;
|
92
|
+
flex: 1;
|
93
|
+
position: relative;
|
94
|
+
|
95
|
+
.card-content {
|
96
|
+
flex-grow: 1;
|
97
|
+
}
|
77
98
|
}
|
78
|
-
|
79
|
-
|
99
|
+
}
|
100
|
+
|
101
|
+
// Sticky Action Section
|
102
|
+
&.sticky-action {
|
103
|
+
.card-action {
|
104
|
+
z-index: 2;
|
105
|
+
}
|
106
|
+
|
107
|
+
.card-reveal {
|
108
|
+
z-index: 1;
|
109
|
+
padding-bottom: 64px;
|
80
110
|
}
|
81
111
|
}
|
82
112
|
|
83
113
|
|
114
|
+
|
115
|
+
|
84
116
|
.card-image {
|
85
117
|
position: relative;
|
86
118
|
|
87
119
|
// Image background for content
|
88
120
|
img {
|
121
|
+
display: block;
|
89
122
|
border-radius: 2px 2px 0 0;
|
90
123
|
position: relative;
|
91
124
|
left: 0;
|
@@ -96,36 +129,46 @@
|
|
96
129
|
}
|
97
130
|
|
98
131
|
.card-title {
|
132
|
+
color: $card-bg-color;
|
99
133
|
position: absolute;
|
100
134
|
bottom: 0;
|
101
135
|
left: 0;
|
136
|
+
max-width: 100%;
|
102
137
|
padding: $card-padding;
|
103
138
|
}
|
104
|
-
|
105
139
|
}
|
106
140
|
|
107
141
|
.card-content {
|
108
142
|
padding: $card-padding;
|
109
143
|
border-radius: 0 0 2px 2px;
|
110
144
|
|
111
|
-
|
112
145
|
p {
|
113
146
|
margin: 0;
|
114
|
-
color: inherit;
|
115
147
|
}
|
116
148
|
.card-title {
|
117
|
-
|
149
|
+
display: block;
|
150
|
+
line-height: 32px;
|
151
|
+
margin-bottom: 8px;
|
152
|
+
|
153
|
+
i {
|
154
|
+
line-height: 32px;
|
155
|
+
}
|
118
156
|
}
|
119
157
|
}
|
120
158
|
|
121
159
|
.card-action {
|
160
|
+
&:last-child {
|
161
|
+
border-radius: 0 0 2px 2px;
|
162
|
+
}
|
163
|
+
background-color: inherit; // Use inherit to inherit color classes
|
122
164
|
border-top: 1px solid rgba(160,160,160,.2);
|
123
|
-
|
165
|
+
position: relative;
|
166
|
+
padding: 16px $card-padding;
|
124
167
|
|
125
|
-
a {
|
168
|
+
a:not(.btn):not(.btn-large):not(.btn-floating) {
|
126
169
|
color: $card-link-color;
|
127
170
|
margin-right: $card-padding;
|
128
|
-
|
171
|
+
transition: color .3s ease;
|
129
172
|
text-transform: uppercase;
|
130
173
|
|
131
174
|
&:hover { color: $card-link-color-light; }
|
@@ -138,15 +181,15 @@
|
|
138
181
|
background-color: $card-bg-color;
|
139
182
|
width: 100%;
|
140
183
|
overflow-y: auto;
|
184
|
+
left: 0;
|
141
185
|
top: 100%;
|
142
186
|
height: 100%;
|
143
|
-
z-index:
|
187
|
+
z-index: 3;
|
144
188
|
display: none;
|
145
189
|
|
146
190
|
.card-title {
|
147
191
|
cursor: pointer;
|
148
192
|
display: block;
|
149
193
|
}
|
150
|
-
|
151
194
|
}
|
152
195
|
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
.carousel {
|
2
|
+
&.carousel-slider {
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
|
6
|
+
.carousel-fixed-item {
|
7
|
+
&.with-indicators {
|
8
|
+
bottom: 68px;
|
9
|
+
}
|
10
|
+
|
11
|
+
position: absolute;
|
12
|
+
left: 0;
|
13
|
+
right: 0;
|
14
|
+
bottom: 20px;
|
15
|
+
z-index: 1;
|
16
|
+
}
|
17
|
+
|
18
|
+
.carousel-item {
|
19
|
+
width: 100%;
|
20
|
+
height: 100%;
|
21
|
+
min-height: $carousel-height;
|
22
|
+
position: absolute;
|
23
|
+
top: 0;
|
24
|
+
left: 0;
|
25
|
+
|
26
|
+
h2 {
|
27
|
+
font-size: 24px;
|
28
|
+
font-weight: 500;
|
29
|
+
line-height: 32px;
|
30
|
+
}
|
31
|
+
|
32
|
+
p {
|
33
|
+
font-size: 15px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
overflow: hidden;
|
39
|
+
position: relative;
|
40
|
+
width: 100%;
|
41
|
+
height: $carousel-height;
|
42
|
+
perspective: 500px;
|
43
|
+
transform-style: preserve-3d;
|
44
|
+
transform-origin: 0% 50%;
|
45
|
+
|
46
|
+
.carousel-item {
|
47
|
+
visibility: hidden;
|
48
|
+
width: $carousel-item-width;
|
49
|
+
height: $carousel-item-height;
|
50
|
+
position: absolute;
|
51
|
+
top: 0;
|
52
|
+
left: 0;
|
53
|
+
|
54
|
+
& > img {
|
55
|
+
width: 100%;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
.indicators {
|
60
|
+
position: absolute;
|
61
|
+
text-align: center;
|
62
|
+
left: 0;
|
63
|
+
right: 0;
|
64
|
+
bottom: 0;
|
65
|
+
margin: 0;
|
66
|
+
|
67
|
+
.indicator-item {
|
68
|
+
&.active {
|
69
|
+
background-color: #fff;
|
70
|
+
}
|
71
|
+
|
72
|
+
display: inline-block;
|
73
|
+
position: relative;
|
74
|
+
cursor: pointer;
|
75
|
+
height: 8px;
|
76
|
+
width: 8px;
|
77
|
+
margin: 24px 4px;
|
78
|
+
background-color: rgba(255,255,255,.5);
|
79
|
+
|
80
|
+
transition: background-color .3s;
|
81
|
+
border-radius: 50%;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// Materialbox compatibility
|
86
|
+
&.scrolling .carousel-item .materialboxed,
|
87
|
+
.carousel-item:not(.active) .materialboxed {
|
88
|
+
pointer-events: none;
|
89
|
+
}
|
90
|
+
}
|