mui_app_rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Rakefile +34 -0
- data/app/assets/fonts/mui.ttf +0 -0
- data/app/assets/javascripts/mui_app_rails/actions.js +26 -0
- data/app/assets/javascripts/mui_app_rails/ajax.plugin.js +3 -0
- data/app/assets/javascripts/mui_app_rails/input.plugin.js +232 -0
- data/app/assets/javascripts/mui_app_rails/modals.js +37 -0
- data/app/assets/javascripts/mui_app_rails/mui.active.js +30 -0
- data/app/assets/javascripts/mui_app_rails/mui.ajax.5+.js +27 -0
- data/app/assets/javascripts/mui_app_rails/mui.ajax.js +277 -0
- data/app/assets/javascripts/mui_app_rails/mui.animation.js +39 -0
- data/app/assets/javascripts/mui_app_rails/mui.animationframe.js +72 -0
- data/app/assets/javascripts/mui_app_rails/mui.back.5+.js +108 -0
- data/app/assets/javascripts/mui_app_rails/mui.back.js +56 -0
- data/app/assets/javascripts/mui_app_rails/mui.class.js +40 -0
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.js +894 -0
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.pullrefresh.js +150 -0
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.slider.js +361 -0
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.slider.old.js +332 -0
- data/app/assets/javascripts/mui_app_rails/mui.detect.5+.js +18 -0
- data/app/assets/javascripts/mui_app_rails/mui.detect.js +50 -0
- data/app/assets/javascripts/mui_app_rails/mui.dialog.alert.js +27 -0
- data/app/assets/javascripts/mui_app_rails/mui.dialog.confirm.js +27 -0
- data/app/assets/javascripts/mui_app_rails/mui.dialog.prompt.js +33 -0
- data/app/assets/javascripts/mui_app_rails/mui.dialog.toast.js +20 -0
- data/app/assets/javascripts/mui_app_rails/mui.event.js +160 -0
- data/app/assets/javascripts/mui_app_rails/mui.fixed.animation.js +22 -0
- data/app/assets/javascripts/mui_app_rails/mui.fixed.classlist.js +50 -0
- data/app/assets/javascripts/mui_app_rails/mui.fixed.fastclick.js +64 -0
- data/app/assets/javascripts/mui_app_rails/mui.fixed.js +40 -0
- data/app/assets/javascripts/mui_app_rails/mui.fixed.keyboard.js +56 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.drag.js +48 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.flick.js +30 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.hold.js +41 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.js +207 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.longtap.js +43 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.swipe.js +29 -0
- data/app/assets/javascripts/mui_app_rails/mui.gestures.tap.js +40 -0
- data/app/assets/javascripts/mui_app_rails/mui.init.5+.js +441 -0
- data/app/assets/javascripts/mui_app_rails/mui.init.js +100 -0
- data/app/assets/javascripts/mui_app_rails/mui.init.pullrefresh.js +57 -0
- data/app/assets/javascripts/mui_app_rails/mui.js +396 -0
- data/app/assets/javascripts/mui_app_rails/mui.jsonp.js +108 -0
- data/app/assets/javascripts/mui_app_rails/mui.layout.js +22 -0
- data/app/assets/javascripts/mui_app_rails/mui.namespace.js +35 -0
- data/app/assets/javascripts/mui_app_rails/mui.number.js +93 -0
- data/app/assets/javascripts/mui_app_rails/mui.offcanvas.js +497 -0
- data/app/assets/javascripts/mui_app_rails/mui.pullrefresh.js +157 -0
- data/app/assets/javascripts/mui_app_rails/mui.target.js +58 -0
- data/app/assets/javascripts/mui_app_rails/mui.view.js +172 -0
- data/app/assets/javascripts/mui_app_rails/popovers.js +278 -0
- data/app/assets/javascripts/mui_app_rails/pullrefresh.5+.js +238 -0
- data/app/assets/javascripts/mui_app_rails/push.js +479 -0
- data/app/assets/javascripts/mui_app_rails/segmented-controllers.js +99 -0
- data/app/assets/javascripts/mui_app_rails/sliders.js +362 -0
- data/app/assets/javascripts/mui_app_rails/switches.js +165 -0
- data/app/assets/javascripts/mui_app_rails/tableviews.js +512 -0
- data/app/assets/javascripts/mui_app_rails.js +1 -0
- data/app/assets/stylesheets/mui_app_rails/badges.scss +88 -0
- data/app/assets/stylesheets/mui_app_rails/bars.scss +312 -0
- data/app/assets/stylesheets/mui_app_rails/base.scss +196 -0
- data/app/assets/stylesheets/mui_app_rails/buttons.scss +205 -0
- data/app/assets/stylesheets/mui_app_rails/cards.scss +62 -0
- data/app/assets/stylesheets/mui_app_rails/forms.scss +452 -0
- data/app/assets/stylesheets/mui_app_rails/fullscreen.scss +35 -0
- data/app/assets/stylesheets/mui_app_rails/grid.scss +75 -0
- data/app/assets/stylesheets/mui_app_rails/hack.scss +14 -0
- data/app/assets/stylesheets/mui_app_rails/icon.scss +170 -0
- data/app/assets/stylesheets/mui_app_rails/iscroll.scss +43 -0
- data/app/assets/stylesheets/mui_app_rails/loadings.scss +111 -0
- data/app/assets/stylesheets/mui_app_rails/mixins.scss +212 -0
- data/app/assets/stylesheets/mui_app_rails/modals.scss +34 -0
- data/app/assets/stylesheets/mui_app_rails/mui.scss +46 -0
- data/app/assets/stylesheets/mui_app_rails/normalize.scss +425 -0
- data/app/assets/stylesheets/mui_app_rails/number.scss +70 -0
- data/app/assets/stylesheets/mui_app_rails/off-canvas.scss +84 -0
- data/app/assets/stylesheets/mui_app_rails/os.scss +12 -0
- data/app/assets/stylesheets/mui_app_rails/pagination.scss +155 -0
- data/app/assets/stylesheets/mui_app_rails/popovers.scss +198 -0
- data/app/assets/stylesheets/mui_app_rails/pullrefreshs.scss +98 -0
- data/app/assets/stylesheets/mui_app_rails/push.scss +63 -0
- data/app/assets/stylesheets/mui_app_rails/scroll.scss +95 -0
- data/app/assets/stylesheets/mui_app_rails/segmented-controls.scss +150 -0
- data/app/assets/stylesheets/mui_app_rails/slider-cell.scss +20 -0
- data/app/assets/stylesheets/mui_app_rails/sliders.scss +133 -0
- data/app/assets/stylesheets/mui_app_rails/switches.scss +115 -0
- data/app/assets/stylesheets/mui_app_rails/table-views.scss +482 -0
- data/app/assets/stylesheets/mui_app_rails/toast.scss +16 -0
- data/app/assets/stylesheets/mui_app_rails/type.scss +23 -0
- data/app/assets/stylesheets/mui_app_rails/variables.scss +64 -0
- data/app/assets/stylesheets/mui_app_rails.css +3 -0
- data/lib/mui_app_rails/engine.rb +5 -0
- data/lib/mui_app_rails/version.rb +3 -0
- data/lib/mui_app_rails.rb +5 -0
- metadata +179 -0
@@ -0,0 +1,482 @@
|
|
1
|
+
//
|
2
|
+
// Table views
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
.#{$namespace}table-view {
|
6
|
+
position: relative;
|
7
|
+
padding-left: 0;
|
8
|
+
margin-top: 0;
|
9
|
+
margin-bottom: 0;
|
10
|
+
list-style: none; // Remove usual bullet styles from table view
|
11
|
+
background-color: #fff;
|
12
|
+
// border-color:#c8c7cc;
|
13
|
+
// border-width: 1px 0px 1px 0px;
|
14
|
+
// border-style: solid;
|
15
|
+
@include hairline(double, #c8c7cc, 0); // Double grey border.
|
16
|
+
|
17
|
+
}
|
18
|
+
//.#{$namespace}table-view-striped>li:nth-child(odd){
|
19
|
+
// background-color: #f9f9f9;
|
20
|
+
// >.#{$namespace}slider-cell{
|
21
|
+
// >.#{$namespace}slider-left ~ .#{$namespace}slider-handle,>.#{$namespace}slider-right ~ .#{$namespace}slider-handle{
|
22
|
+
// background-color:#f9f9f9;
|
23
|
+
// }
|
24
|
+
// }
|
25
|
+
//}
|
26
|
+
.#{$namespace}table-view-icon .#{$namespace}table-view-cell{
|
27
|
+
.#{$namespace}navigate-right .#{$namespace}icon{
|
28
|
+
font-size: 20px;
|
29
|
+
margin-left: -5px;
|
30
|
+
margin-right: 5px;
|
31
|
+
margin-top: -1px;
|
32
|
+
}
|
33
|
+
&:after{
|
34
|
+
left:40px;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
.#{$namespace}table-view-chevron .#{$namespace}table-view-cell{
|
38
|
+
padding-right: 65px;
|
39
|
+
> a:not(.#{$namespace}btn) {
|
40
|
+
margin-right: -65px;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
.#{$namespace}table-view-radio .#{$namespace}table-view-cell{
|
44
|
+
padding-right: 65px;
|
45
|
+
> a:not(.#{$namespace}btn) {
|
46
|
+
margin-right: -65px;
|
47
|
+
}
|
48
|
+
.#{$namespace}navigate-right:after{
|
49
|
+
right:9px;
|
50
|
+
content: '';
|
51
|
+
color:$primary-color;
|
52
|
+
font-size: 30px;
|
53
|
+
font-weight: 600;
|
54
|
+
}
|
55
|
+
&.#{$namespace}selected .#{$namespace}navigate-right:after{
|
56
|
+
content: '\e472';
|
57
|
+
}
|
58
|
+
}
|
59
|
+
//.#{$namespace}table-view-slider .#{$namespace}table-view-cell{
|
60
|
+
// padding:11px 0;
|
61
|
+
// > a:not(.#{$namespace}btn) {
|
62
|
+
// margin-right: 0;
|
63
|
+
// }
|
64
|
+
//}
|
65
|
+
.#{$namespace}table-view-inverted {
|
66
|
+
background: #333;
|
67
|
+
color: #fff;
|
68
|
+
@include hairline(double, #222, 0); // Double grey border.
|
69
|
+
.#{$namespace}table-view-cell{
|
70
|
+
@include hairline(single, #222, 15px); // Single grey border with 15px offset.
|
71
|
+
&.#{$namespace}active {
|
72
|
+
background-color: #242424;
|
73
|
+
}
|
74
|
+
> a:not(.#{$namespace}btn) {
|
75
|
+
&.#{$namespace}active {
|
76
|
+
background-color: #242424;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
// Pad each table view item and add dividers
|
82
|
+
.#{$namespace}table-view-cell {
|
83
|
+
position: relative;
|
84
|
+
padding: 11px 15px;
|
85
|
+
overflow: hidden;
|
86
|
+
background-color: inherit;
|
87
|
+
@include hairline(single, #c8c7cc, 15px); // Single grey border with 15px offset.
|
88
|
+
-webkit-touch-callout: none;//禁止长按出现打开菜单;
|
89
|
+
&.#{$namespace}radio input[type=radio],&.#{$namespace}checkbox input[type=checkbox]{
|
90
|
+
top:8px;
|
91
|
+
}
|
92
|
+
&.#{$namespace}radio.#{$namespace}left,&.#{$namespace}checkbox.#{$namespace}left{
|
93
|
+
padding-left: 58px;
|
94
|
+
}
|
95
|
+
&.#{$namespace}active {
|
96
|
+
background-color: #eee;
|
97
|
+
// >.#{$namespace}slider-cell{
|
98
|
+
// >.#{$namespace}slider-left ~ .#{$namespace}slider-handle,>.#{$namespace}slider-right ~ .#{$namespace}slider-handle{
|
99
|
+
// background-color:#eee;
|
100
|
+
// }
|
101
|
+
// }
|
102
|
+
}
|
103
|
+
// Remove the border from the last table view item
|
104
|
+
&:last-child {
|
105
|
+
//background-image: none;
|
106
|
+
&:before,&:after{
|
107
|
+
height:0;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
// If it's a table view of links, make sure the child <a> takes up full table view item tap area (want to avoid selecting child buttons though)
|
111
|
+
> a:not(.#{$namespace}btn) {
|
112
|
+
position: relative;
|
113
|
+
display: block;
|
114
|
+
padding: inherit;
|
115
|
+
margin: -11px -15px; // Make the entire list item tappable.
|
116
|
+
overflow: hidden;
|
117
|
+
color: inherit;
|
118
|
+
white-space: nowrap;
|
119
|
+
text-overflow: ellipsis;
|
120
|
+
/*&:active {
|
121
|
+
background-color: #eee;
|
122
|
+
}*/
|
123
|
+
&.#{$namespace}active {
|
124
|
+
background-color: #eee;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
p {
|
128
|
+
margin-bottom: 0;
|
129
|
+
}
|
130
|
+
// >.#{$namespace}slider-cell{
|
131
|
+
// margin-top:1px;
|
132
|
+
// margin-bottom:1px;
|
133
|
+
// >.#{$namespace}slider-handle{
|
134
|
+
// position:absolute;
|
135
|
+
// left:0;
|
136
|
+
// right:0;
|
137
|
+
// top:0;
|
138
|
+
// bottom:0;
|
139
|
+
// @include transform(translate3d(100%, 0px, 0px));
|
140
|
+
// }
|
141
|
+
// >.#{$namespace}slider-left ~ .#{$namespace}slider-handle,>.#{$namespace}slider-right ~ .#{$namespace}slider-handle{
|
142
|
+
// position:relative;
|
143
|
+
// z-index:z("default");
|
144
|
+
// background-color:#fff;
|
145
|
+
// padding-left:15px;
|
146
|
+
// left:auto;
|
147
|
+
// right:auto;
|
148
|
+
// top:auto;
|
149
|
+
// bottom:auto;
|
150
|
+
// @include transform(translate3d(0px, 0px, 0px));
|
151
|
+
// }
|
152
|
+
// >.#{$namespace}slider-left,>.#{$namespace}slider-right{
|
153
|
+
// top:1px;
|
154
|
+
// bottom:1px;
|
155
|
+
// }
|
156
|
+
// }
|
157
|
+
}
|
158
|
+
.#{$namespace}table-view-cell {
|
159
|
+
&.#{$namespace}transitioning{
|
160
|
+
>.#{$namespace}slider-handle,>.#{$namespace}slider-left .#{$namespace}btn,>.#{$namespace}slider-right .#{$namespace}btn{
|
161
|
+
-webkit-transition: -webkit-transform 300ms ease;
|
162
|
+
transition: transform 300ms ease;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
&.#{$namespace}active>.#{$namespace}slider-handle{
|
166
|
+
background-color: #eee;
|
167
|
+
}
|
168
|
+
>.#{$namespace}slider-handle{
|
169
|
+
background-color: #fff;
|
170
|
+
position: relative;
|
171
|
+
&.#{$namespace}navigate-right:after,.#{$namespace}navigate-right:after{
|
172
|
+
right: 0;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
>.#{$namespace}slider-handle,>.#{$namespace}slider-left .#{$namespace}btn,>.#{$namespace}slider-right .#{$namespace}btn{
|
176
|
+
-webkit-transition: -webkit-transform 0ms ease;
|
177
|
+
transition: transform 0ms ease;
|
178
|
+
-webkit-backface-visibility: hidden;
|
179
|
+
backface-visibility: hidden;
|
180
|
+
}
|
181
|
+
>.#{$namespace}slider-left,>.#{$namespace}slider-right{
|
182
|
+
-webkit-backface-visibility: hidden;
|
183
|
+
backface-visibility: hidden;
|
184
|
+
position: absolute;
|
185
|
+
top: 0;
|
186
|
+
height: 100%;
|
187
|
+
display: -webkit-box;
|
188
|
+
display: -webkit-flex;
|
189
|
+
display: flex;
|
190
|
+
>.#{$namespace}btn{
|
191
|
+
padding: 0 30px;
|
192
|
+
color: #fff;
|
193
|
+
border-radius:0;
|
194
|
+
border:0;
|
195
|
+
// background: #c7c7cc;
|
196
|
+
display: -webkit-box;
|
197
|
+
display: -webkit-flex;
|
198
|
+
display: flex;
|
199
|
+
-webkit-box-align: center;
|
200
|
+
-webkit-align-items: center;
|
201
|
+
align-items: center;
|
202
|
+
position: relative;
|
203
|
+
left: 0;
|
204
|
+
&:after{
|
205
|
+
content: '';
|
206
|
+
position: absolute;
|
207
|
+
top: 0;
|
208
|
+
width: 600%;
|
209
|
+
height: 100%;
|
210
|
+
background: inherit;
|
211
|
+
z-index: -1;
|
212
|
+
}
|
213
|
+
&.#{$namespace}icon{
|
214
|
+
font-size: 30px;
|
215
|
+
}
|
216
|
+
}
|
217
|
+
}
|
218
|
+
>.#{$namespace}slider-right{
|
219
|
+
right: 0%;
|
220
|
+
-webkit-transform: translateX(100%);
|
221
|
+
transform: translateX(100%);
|
222
|
+
-webkit-transition: -webkit-transform 0ms ease;
|
223
|
+
transition: transform 0ms ease;
|
224
|
+
}
|
225
|
+
>.#{$namespace}slider-left{
|
226
|
+
left: 0;
|
227
|
+
-webkit-transform: translateX(-100%);
|
228
|
+
transform: translateX(-100%);
|
229
|
+
-webkit-transition: -webkit-transform 0ms ease;
|
230
|
+
transition: transform 0ms ease;
|
231
|
+
> .#{$namespace}btn:after{
|
232
|
+
right: 100%;
|
233
|
+
margin-right: -1px;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
// Table view dividers
|
240
|
+
// --------------------------------------------------
|
241
|
+
|
242
|
+
.#{$namespace}table-view-divider {
|
243
|
+
position: relative;
|
244
|
+
padding-top: 6px;
|
245
|
+
padding-bottom: 6px;
|
246
|
+
padding-left: 15px;
|
247
|
+
margin-top: -1px; // Hides the border of the previous list item
|
248
|
+
margin-left: 0;
|
249
|
+
font-weight: $font-weight;
|
250
|
+
color: #999;
|
251
|
+
background-color: #fafafa;
|
252
|
+
@include hairline(double, #c8c7cc, 0); // Double (top and bottom) grey border with no offset.
|
253
|
+
}
|
254
|
+
|
255
|
+
|
256
|
+
// Table-views with media (images,avatars, icons)
|
257
|
+
// --------------------------------------------------
|
258
|
+
|
259
|
+
.#{$namespace}table-view .#{$namespace}media,
|
260
|
+
.#{$namespace}table-view .#{$namespace}media-body {
|
261
|
+
overflow: hidden;
|
262
|
+
}
|
263
|
+
|
264
|
+
.#{$namespace}table-view {
|
265
|
+
.#{$namespace}media-large .#{$namespace}media-object {
|
266
|
+
max-width: 80px;
|
267
|
+
height: 80px;
|
268
|
+
line-height: 80px;
|
269
|
+
}
|
270
|
+
.#{$namespace}media .#{$namespace}subtitle{
|
271
|
+
color: #000;
|
272
|
+
}
|
273
|
+
.#{$namespace}media-object {
|
274
|
+
max-width: 42px;
|
275
|
+
height: 42px;
|
276
|
+
line-height: 42px;
|
277
|
+
&.#{$namespace}pull-left {
|
278
|
+
margin-right: 10px;
|
279
|
+
}
|
280
|
+
&.#{$namespace}pull-right {
|
281
|
+
margin-left: 10px;
|
282
|
+
}
|
283
|
+
}
|
284
|
+
.#{$namespace}table-view-cell.#{$namespace}media-icon{
|
285
|
+
.#{$namespace}media-object {
|
286
|
+
max-width: 29px;
|
287
|
+
height: 29px;
|
288
|
+
line-height: 29px;
|
289
|
+
margin:-4px 0;
|
290
|
+
img{
|
291
|
+
max-width: 29px;
|
292
|
+
height: 29px;
|
293
|
+
line-height: 29px;
|
294
|
+
}
|
295
|
+
&.#{$namespace}pull-left {
|
296
|
+
margin-right: 10px;
|
297
|
+
}
|
298
|
+
.#{$namespace}icon{
|
299
|
+
font-size: 29px;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
.#{$namespace}media-body{
|
303
|
+
@include hairline(single, #c8c7cc, 55px); // single grey border.
|
304
|
+
}
|
305
|
+
&:after{
|
306
|
+
height:0!important;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
.#{$namespace}table-view.#{$namespace}unfold{
|
311
|
+
.#{$namespace}table-view-cell.#{$namespace}collapse .#{$namespace}table-view{
|
312
|
+
display: block;
|
313
|
+
&:before,&:after{
|
314
|
+
height:0!important;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
.#{$namespace}table-view-cell.#{$namespace}media-icon.#{$namespace}collapse{
|
318
|
+
.#{$namespace}media-body{
|
319
|
+
@include hairline(single, #c8c7cc, 70px); // single grey border.
|
320
|
+
}
|
321
|
+
}
|
322
|
+
}
|
323
|
+
|
324
|
+
// Table-views with buttons, badges and switchs
|
325
|
+
// --------------------------------------------------
|
326
|
+
.#{$namespace}table-view-cell,
|
327
|
+
.#{$namespace}table-view-cell > a {
|
328
|
+
> .#{$namespace}btn,
|
329
|
+
> .#{$namespace}badge,
|
330
|
+
> .#{$namespace}switch {
|
331
|
+
position: absolute;
|
332
|
+
top: 50%;
|
333
|
+
right: 15px;
|
334
|
+
@include transform(translateY(-50%));
|
335
|
+
}
|
336
|
+
|
337
|
+
// If the cell has a chevron, give some more room.
|
338
|
+
.#{$namespace}navigate-left,
|
339
|
+
.#{$namespace}navigate-right,
|
340
|
+
.#{$namespace}push-left,
|
341
|
+
.#{$namespace}push-right {
|
342
|
+
> .#{$namespace}btn,
|
343
|
+
> .#{$namespace}badge,
|
344
|
+
> .#{$namespace}switch {
|
345
|
+
right: 35px;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
}
|
349
|
+
|
350
|
+
// If the table view is the first component, give it extra margin on top.
|
351
|
+
.#{$namespace}content > .#{$namespace}table-view:first-child {
|
352
|
+
margin-top: 15px;
|
353
|
+
}
|
354
|
+
|
355
|
+
//collapse
|
356
|
+
.#{$namespace}table-view-cell.#{$namespace}collapse{
|
357
|
+
.#{$namespace}table-view:after{
|
358
|
+
left:15px;
|
359
|
+
}
|
360
|
+
//二级列表默认为向下箭头;
|
361
|
+
>.#{$namespace}navigate-right:after, >.#{$namespace}push-right:after {
|
362
|
+
content: '\e581';
|
363
|
+
}
|
364
|
+
|
365
|
+
&.#{$namespace}active{
|
366
|
+
|
367
|
+
.#{$namespace}table-view,.#{$namespace}collapse-content{
|
368
|
+
display: block;
|
369
|
+
}
|
370
|
+
//二级列表展开后,变为向上箭头;
|
371
|
+
>.#{$namespace}navigate-right:after, >.#{$namespace}push-right:after {
|
372
|
+
content: '\e580';
|
373
|
+
}
|
374
|
+
}
|
375
|
+
.#{$namespace}collapse-content{
|
376
|
+
display:none;
|
377
|
+
padding: 8px 15px;
|
378
|
+
margin: 11px -15px -11px;
|
379
|
+
background: white;
|
380
|
+
border: 1px solid #ddd;
|
381
|
+
position: relative;
|
382
|
+
overflow: hidden;
|
383
|
+
-webkit-transition: height .35s ease;
|
384
|
+
-o-transition: height .35s ease;
|
385
|
+
transition: height .35s ease;
|
386
|
+
>.#{$namespace}input-group,>.#{$namespace}slider{
|
387
|
+
margin:-8px -15px;
|
388
|
+
width:auto;
|
389
|
+
height:auto;
|
390
|
+
}
|
391
|
+
>.#{$namespace}slider{
|
392
|
+
margin:-8px -16px;
|
393
|
+
}
|
394
|
+
}
|
395
|
+
.#{$namespace}table-view{
|
396
|
+
display: none;
|
397
|
+
margin-bottom: -11px;
|
398
|
+
margin-top: 11px;
|
399
|
+
margin-right: -15px;
|
400
|
+
margin-left:-15px;
|
401
|
+
border: 0;
|
402
|
+
&.#{$namespace}table-view-chevron{
|
403
|
+
margin-right:-65px;
|
404
|
+
}
|
405
|
+
.#{$namespace}table-view-cell{
|
406
|
+
padding-left: 31px;
|
407
|
+
background-position: 31px 100%;
|
408
|
+
@include hairline(single, #c8c7cc, 30px);
|
409
|
+
}
|
410
|
+
}
|
411
|
+
}
|
412
|
+
//grid
|
413
|
+
.#{$namespace}table-view.#{$namespace}grid-view{
|
414
|
+
display:block;
|
415
|
+
padding:0 10px 10px 0;
|
416
|
+
width:100%;
|
417
|
+
white-space:normal;
|
418
|
+
font-size:0;
|
419
|
+
.#{$namespace}table-view-cell{
|
420
|
+
font-size: $font-size-default;
|
421
|
+
display: inline-block;
|
422
|
+
padding:10px 0 0 14px;
|
423
|
+
background:none;
|
424
|
+
text-align:center;
|
425
|
+
vertical-align: middle;
|
426
|
+
margin-right:-4px;
|
427
|
+
.#{$namespace}media-object{
|
428
|
+
width:100%;
|
429
|
+
max-width:100%;
|
430
|
+
height: auto;
|
431
|
+
}
|
432
|
+
> a:not(.#{$namespace}btn){
|
433
|
+
margin:-10px 0 0 -14px;
|
434
|
+
&:active,&.#{$namespace}active{
|
435
|
+
background: none;
|
436
|
+
}
|
437
|
+
}
|
438
|
+
.#{$namespace}media-body{
|
439
|
+
display: block;
|
440
|
+
height: 15px;
|
441
|
+
line-height: 15px;
|
442
|
+
color:#333;
|
443
|
+
font-size: 15px;
|
444
|
+
margin-top:8px;
|
445
|
+
width:100%;
|
446
|
+
text-overflow: ellipsis;
|
447
|
+
}
|
448
|
+
&:before,&:after{
|
449
|
+
height:0;
|
450
|
+
}
|
451
|
+
}
|
452
|
+
}
|
453
|
+
//grid-9
|
454
|
+
.#{$namespace}grid-view.#{$namespace}grid-9{
|
455
|
+
padding-right: 0;
|
456
|
+
background-color: #f2f2f2;
|
457
|
+
padding: 1px 0 1px 0;
|
458
|
+
.#{$namespace}table-view-cell {
|
459
|
+
vertical-align: top;
|
460
|
+
padding:11px 15px;
|
461
|
+
border-left: 1px solid #EEE;
|
462
|
+
border-top: 1px solid #EEE;
|
463
|
+
margin: -1px 0 0 -1px;
|
464
|
+
&.#{$namespace}active{
|
465
|
+
background-color:#eee;
|
466
|
+
}
|
467
|
+
> a:not(.#{$namespace}btn){
|
468
|
+
padding: 10px 0;
|
469
|
+
margin: 0;
|
470
|
+
}
|
471
|
+
}
|
472
|
+
&:before{
|
473
|
+
height: 0;
|
474
|
+
}
|
475
|
+
.#{$namespace}media {
|
476
|
+
color: #797979;
|
477
|
+
.#{$namespace}icon{
|
478
|
+
font-size: 2.4em;
|
479
|
+
position: relative;
|
480
|
+
}
|
481
|
+
}
|
482
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
.#{$namespace}toast-container {
|
2
|
+
position: fixed;
|
3
|
+
width: 100%;
|
4
|
+
bottom: 50px;
|
5
|
+
z-index: z("toast");
|
6
|
+
}
|
7
|
+
.#{$namespace}toast-message {
|
8
|
+
width: 270px;
|
9
|
+
margin: 5px auto 5px auto;
|
10
|
+
padding: 5px 5px 5px 5px;
|
11
|
+
background-color: #D8D8D8;
|
12
|
+
text-align: center;
|
13
|
+
color: #000;
|
14
|
+
border-radius: 7px;
|
15
|
+
font-size: 14px;
|
16
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
//
|
2
|
+
// Typography
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
h1, h2, h3, h4, h5, h6 {
|
6
|
+
margin-top: 5px;
|
7
|
+
margin-bottom: 5px;
|
8
|
+
line-height: 1;
|
9
|
+
}
|
10
|
+
h1, .#{$namespace}h1 { font-size: 36px; }
|
11
|
+
h2, .#{$namespace}h2 { font-size: 30px; }
|
12
|
+
h3, .#{$namespace}h3 { font-size: 24px; }
|
13
|
+
h4, .#{$namespace}h4 { font-size: 18px; }
|
14
|
+
h5, .#{$namespace}h5 { font-size: 14px; color: #8f8f94;font-weight: normal; }
|
15
|
+
h6, .#{$namespace}h6 { font-size: 12px; color: #8f8f94;font-weight: normal; }
|
16
|
+
|
17
|
+
// Paragraphs
|
18
|
+
p {
|
19
|
+
margin-top: 0;
|
20
|
+
margin-bottom: 10px;
|
21
|
+
font-size: 14px;
|
22
|
+
color: #8f8f94;
|
23
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
//
|
2
|
+
// Variables
|
3
|
+
// --------------------------------------------------
|
4
|
+
$namespace: "mui-" !default;
|
5
|
+
|
6
|
+
// Type
|
7
|
+
// --------------------------------------------------
|
8
|
+
$font-family-default: "Helvetica Neue", Helvetica, sans-serif !default;
|
9
|
+
$font-size-default: 17px !default;
|
10
|
+
$font-weight: 500 !default;
|
11
|
+
$font-weight-light: 400 !default;
|
12
|
+
$line-height-default: 21px !default;
|
13
|
+
|
14
|
+
|
15
|
+
// Colors
|
16
|
+
// --------------------------------------------------
|
17
|
+
|
18
|
+
// Main theme colors
|
19
|
+
//blue theme
|
20
|
+
$primary-color: #007aff !default;
|
21
|
+
//green theme
|
22
|
+
//$primary-color: #4cd964 !default;
|
23
|
+
$chrome-color: rgba(247,247,247,.98) !default;
|
24
|
+
|
25
|
+
// Action colors
|
26
|
+
$default-color: #929292 !default;
|
27
|
+
$positive-color: #4cd964 !default;
|
28
|
+
$negative-color: #dd524d !default;
|
29
|
+
$warning-color: #f0ad4e !default;
|
30
|
+
$royal-color: #8a6de9 !default;
|
31
|
+
$grey-color:#c7c7cc !default;
|
32
|
+
|
33
|
+
|
34
|
+
// Bars
|
35
|
+
// --------------------------------------------------
|
36
|
+
|
37
|
+
$bar-base-height: 44px !default;
|
38
|
+
$bar-tab-height: 50px !default;
|
39
|
+
$bar-side-spacing: 10px !default;
|
40
|
+
|
41
|
+
|
42
|
+
// Cards
|
43
|
+
// --------------------------------------------------
|
44
|
+
|
45
|
+
$card-bg: #fff !default;
|
46
|
+
|
47
|
+
|
48
|
+
// Buttons
|
49
|
+
// --------------------------------------------------
|
50
|
+
|
51
|
+
$button-font-size: 14px !default;
|
52
|
+
|
53
|
+
|
54
|
+
// Transitions
|
55
|
+
// --------------------------------------------------
|
56
|
+
|
57
|
+
$timing-fuction: cubic-bezier(.1,.5,.1,1) !default; // Inspired by @c2prods
|
58
|
+
|
59
|
+
|
60
|
+
// Borders
|
61
|
+
// --------------------------------------------------
|
62
|
+
|
63
|
+
$border-default: 1px solid #ddd !default;
|
64
|
+
$border-radius: 6px !default;
|