mui_app_rails 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/javascripts/mui_app_rails/mui.js +6013 -1
- data/app/assets/javascripts/mui_app_rails/mui.min.js +8 -0
- data/app/assets/javascripts/mui_app_rails.js +1 -1
- data/app/assets/stylesheets/mui_app_rails/mui.css +3742 -0
- data/app/assets/stylesheets/mui_app_rails/mui.min.css +5 -0
- data/lib/mui_app_rails/engine.rb +12 -0
- data/lib/mui_app_rails/version.rb +1 -1
- data/lib/mui_app_rails.rb +1 -1
- metadata +17 -99
- data/app/assets/javascripts/mui_app_rails/actions.js +0 -26
- data/app/assets/javascripts/mui_app_rails/ajax.plugin.js +0 -3
- data/app/assets/javascripts/mui_app_rails/input.plugin.js +0 -232
- data/app/assets/javascripts/mui_app_rails/modals.js +0 -37
- data/app/assets/javascripts/mui_app_rails/mui.active.js +0 -30
- data/app/assets/javascripts/mui_app_rails/mui.ajax.5+.js +0 -27
- data/app/assets/javascripts/mui_app_rails/mui.ajax.js +0 -277
- data/app/assets/javascripts/mui_app_rails/mui.animation.js +0 -39
- data/app/assets/javascripts/mui_app_rails/mui.animationframe.js +0 -72
- data/app/assets/javascripts/mui_app_rails/mui.back.5+.js +0 -108
- data/app/assets/javascripts/mui_app_rails/mui.back.js +0 -56
- data/app/assets/javascripts/mui_app_rails/mui.class.js +0 -40
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.js +0 -894
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.pullrefresh.js +0 -150
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.slider.js +0 -361
- data/app/assets/javascripts/mui_app_rails/mui.class.scroll.slider.old.js +0 -332
- data/app/assets/javascripts/mui_app_rails/mui.detect.5+.js +0 -18
- data/app/assets/javascripts/mui_app_rails/mui.detect.js +0 -50
- data/app/assets/javascripts/mui_app_rails/mui.dialog.alert.js +0 -27
- data/app/assets/javascripts/mui_app_rails/mui.dialog.confirm.js +0 -27
- data/app/assets/javascripts/mui_app_rails/mui.dialog.prompt.js +0 -33
- data/app/assets/javascripts/mui_app_rails/mui.dialog.toast.js +0 -20
- data/app/assets/javascripts/mui_app_rails/mui.event.js +0 -160
- data/app/assets/javascripts/mui_app_rails/mui.fixed.animation.js +0 -22
- data/app/assets/javascripts/mui_app_rails/mui.fixed.classlist.js +0 -50
- data/app/assets/javascripts/mui_app_rails/mui.fixed.fastclick.js +0 -64
- data/app/assets/javascripts/mui_app_rails/mui.fixed.js +0 -40
- data/app/assets/javascripts/mui_app_rails/mui.fixed.keyboard.js +0 -56
- data/app/assets/javascripts/mui_app_rails/mui.gestures.drag.js +0 -48
- data/app/assets/javascripts/mui_app_rails/mui.gestures.flick.js +0 -30
- data/app/assets/javascripts/mui_app_rails/mui.gestures.hold.js +0 -41
- data/app/assets/javascripts/mui_app_rails/mui.gestures.js +0 -207
- data/app/assets/javascripts/mui_app_rails/mui.gestures.longtap.js +0 -43
- data/app/assets/javascripts/mui_app_rails/mui.gestures.swipe.js +0 -29
- data/app/assets/javascripts/mui_app_rails/mui.gestures.tap.js +0 -40
- data/app/assets/javascripts/mui_app_rails/mui.init.5+.js +0 -441
- data/app/assets/javascripts/mui_app_rails/mui.init.js +0 -100
- data/app/assets/javascripts/mui_app_rails/mui.init.pullrefresh.js +0 -57
- data/app/assets/javascripts/mui_app_rails/mui.jsonp.js +0 -108
- data/app/assets/javascripts/mui_app_rails/mui.layout.js +0 -22
- data/app/assets/javascripts/mui_app_rails/mui.namespace.js +0 -35
- data/app/assets/javascripts/mui_app_rails/mui.number.js +0 -93
- data/app/assets/javascripts/mui_app_rails/mui.offcanvas.js +0 -497
- data/app/assets/javascripts/mui_app_rails/mui.pullrefresh.js +0 -157
- data/app/assets/javascripts/mui_app_rails/mui.target.js +0 -58
- data/app/assets/javascripts/mui_app_rails/mui.view.js +0 -172
- data/app/assets/javascripts/mui_app_rails/popovers.js +0 -278
- data/app/assets/javascripts/mui_app_rails/pullrefresh.5+.js +0 -238
- data/app/assets/javascripts/mui_app_rails/push.js +0 -479
- data/app/assets/javascripts/mui_app_rails/segmented-controllers.js +0 -99
- data/app/assets/javascripts/mui_app_rails/sliders.js +0 -362
- data/app/assets/javascripts/mui_app_rails/switches.js +0 -165
- data/app/assets/javascripts/mui_app_rails/tableviews.js +0 -512
- data/app/assets/stylesheets/mui_app_rails/badges.scss +0 -88
- data/app/assets/stylesheets/mui_app_rails/bars.scss +0 -312
- data/app/assets/stylesheets/mui_app_rails/base.scss +0 -196
- data/app/assets/stylesheets/mui_app_rails/buttons.scss +0 -205
- data/app/assets/stylesheets/mui_app_rails/cards.scss +0 -62
- data/app/assets/stylesheets/mui_app_rails/forms.scss +0 -452
- data/app/assets/stylesheets/mui_app_rails/fullscreen.scss +0 -35
- data/app/assets/stylesheets/mui_app_rails/grid.scss +0 -75
- data/app/assets/stylesheets/mui_app_rails/hack.scss +0 -14
- data/app/assets/stylesheets/mui_app_rails/icon.scss +0 -170
- data/app/assets/stylesheets/mui_app_rails/iscroll.scss +0 -43
- data/app/assets/stylesheets/mui_app_rails/loadings.scss +0 -111
- data/app/assets/stylesheets/mui_app_rails/mixins.scss +0 -212
- data/app/assets/stylesheets/mui_app_rails/modals.scss +0 -34
- data/app/assets/stylesheets/mui_app_rails/mui.scss +0 -46
- data/app/assets/stylesheets/mui_app_rails/normalize.scss +0 -425
- data/app/assets/stylesheets/mui_app_rails/number.scss +0 -70
- data/app/assets/stylesheets/mui_app_rails/off-canvas.scss +0 -84
- data/app/assets/stylesheets/mui_app_rails/os.scss +0 -12
- data/app/assets/stylesheets/mui_app_rails/pagination.scss +0 -155
- data/app/assets/stylesheets/mui_app_rails/popovers.scss +0 -198
- data/app/assets/stylesheets/mui_app_rails/pullrefreshs.scss +0 -98
- data/app/assets/stylesheets/mui_app_rails/push.scss +0 -63
- data/app/assets/stylesheets/mui_app_rails/scroll.scss +0 -95
- data/app/assets/stylesheets/mui_app_rails/segmented-controls.scss +0 -150
- data/app/assets/stylesheets/mui_app_rails/slider-cell.scss +0 -20
- data/app/assets/stylesheets/mui_app_rails/sliders.scss +0 -133
- data/app/assets/stylesheets/mui_app_rails/switches.scss +0 -115
- data/app/assets/stylesheets/mui_app_rails/table-views.scss +0 -482
- data/app/assets/stylesheets/mui_app_rails/toast.scss +0 -16
- data/app/assets/stylesheets/mui_app_rails/type.scss +0 -23
- data/app/assets/stylesheets/mui_app_rails/variables.scss +0 -64
@@ -1,312 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Bars
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
.#{$namespace}bar {
|
6
|
-
position: fixed;
|
7
|
-
right: 0;
|
8
|
-
left: 0;
|
9
|
-
z-index: z("bar","bar");
|
10
|
-
height: $bar-base-height;
|
11
|
-
padding-right: $bar-side-spacing;
|
12
|
-
padding-left: $bar-side-spacing;
|
13
|
-
background-color: $chrome-color;
|
14
|
-
border-bottom: 0;
|
15
|
-
@include box-shadow(0 0 1px rgba(0,0,0,.85));
|
16
|
-
-webkit-backface-visibility: hidden; // Make sure the bar is visible when a modal animates in.
|
17
|
-
backface-visibility: hidden;
|
18
|
-
}
|
19
|
-
|
20
|
-
//fixed by fxy
|
21
|
-
.#{$namespace}bar{
|
22
|
-
.#{$namespace}title{
|
23
|
-
width: auto;
|
24
|
-
left: 40px;
|
25
|
-
right: 40px;
|
26
|
-
margin: 0;
|
27
|
-
overflow: hidden;
|
28
|
-
text-overflow: ellipsis;
|
29
|
-
display: inline-block;
|
30
|
-
}
|
31
|
-
.#{$namespace}backdrop {
|
32
|
-
background: none;
|
33
|
-
}
|
34
|
-
|
35
|
-
}
|
36
|
-
|
37
|
-
// Modifier class to dock any bar below .#{$namespace}bar-nav
|
38
|
-
.#{$namespace}bar-header-secondary {
|
39
|
-
top: $bar-base-height;
|
40
|
-
}
|
41
|
-
|
42
|
-
// Modifier class for footer bars
|
43
|
-
.#{$namespace}bar-footer {
|
44
|
-
bottom: 0;
|
45
|
-
}
|
46
|
-
|
47
|
-
// Modifier class to dock any bar above a standard bar
|
48
|
-
.#{$namespace}bar-footer-secondary {
|
49
|
-
bottom: $bar-base-height;
|
50
|
-
}
|
51
|
-
|
52
|
-
// Modifier class to dock any bar above a .#{$namespace}bar-tab
|
53
|
-
.#{$namespace}bar-footer-secondary-tab {
|
54
|
-
bottom: $bar-tab-height;
|
55
|
-
}
|
56
|
-
|
57
|
-
// Give the footers the correct border
|
58
|
-
.#{$namespace}bar-footer,
|
59
|
-
.#{$namespace}bar-footer-secondary,
|
60
|
-
.#{$namespace}bar-footer-secondary-tab {
|
61
|
-
border-top: 0;
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
// Nav bar
|
66
|
-
// --------------------------------------------------
|
67
|
-
|
68
|
-
// Bar docked to top of viewport for showing page title and actions
|
69
|
-
.#{$namespace}bar-nav {
|
70
|
-
top: 0;
|
71
|
-
-webkit-box-shadow: 0px 1px 6px #CCC;
|
72
|
-
box-shadow: 0px 1px 6px #CCC;
|
73
|
-
~ .#{$namespace}content .#{$namespace}anchor{
|
74
|
-
display: block;
|
75
|
-
height: 45px;
|
76
|
-
margin-top: -45px;
|
77
|
-
visibility: hidden;
|
78
|
-
}
|
79
|
-
&.#{$namespace}bar .#{$namespace}icon{
|
80
|
-
margin-left: -10px;
|
81
|
-
margin-right: -10px;
|
82
|
-
padding-left: 10px;
|
83
|
-
padding-right: 10px;
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
|
-
// Centered text in the .#{$namespace}bar-nav
|
88
|
-
//
|
89
|
-
// We position the absolutely to make sure the title is always centered
|
90
|
-
.#{$namespace}title {
|
91
|
-
position: absolute;
|
92
|
-
display: block;
|
93
|
-
width: 100%;
|
94
|
-
padding: 0;
|
95
|
-
margin: 0 (-$bar-side-spacing);
|
96
|
-
font-size: $font-size-default;
|
97
|
-
font-weight: $font-weight;
|
98
|
-
line-height: $bar-base-height;
|
99
|
-
color: #000;
|
100
|
-
text-align: center;
|
101
|
-
white-space: nowrap;
|
102
|
-
}
|
103
|
-
// Retain specified title color
|
104
|
-
.#{$namespace}title a {
|
105
|
-
color: inherit;
|
106
|
-
}
|
107
|
-
|
108
|
-
|
109
|
-
// Tab bar
|
110
|
-
// --------------------------------------------------
|
111
|
-
|
112
|
-
// Bar docked to bottom and used for primary app navigation
|
113
|
-
.#{$namespace}bar-tab {
|
114
|
-
display: table;
|
115
|
-
bottom: 0;
|
116
|
-
width: 100%;
|
117
|
-
height: $bar-tab-height;
|
118
|
-
padding: 0;
|
119
|
-
table-layout: fixed;
|
120
|
-
border-top: 0;
|
121
|
-
border-bottom: 0;
|
122
|
-
-webkit-touch-callout: none;//选项卡上禁止长按弹出菜单;
|
123
|
-
|
124
|
-
// Navigational tab (Nested to be more specific for the icons in tab-items)
|
125
|
-
.#{$namespace}tab-item {
|
126
|
-
display: table-cell;
|
127
|
-
width: 1%;
|
128
|
-
height: $bar-tab-height;
|
129
|
-
color: #929292;
|
130
|
-
text-align: center;
|
131
|
-
vertical-align: middle;
|
132
|
-
//自动处理超出部分的文字;
|
133
|
-
overflow: hidden;
|
134
|
-
text-overflow: ellipsis;
|
135
|
-
white-space: nowrap;
|
136
|
-
|
137
|
-
// Active states for the tab bar
|
138
|
-
&.#{$namespace}active {
|
139
|
-
color: $primary-color;
|
140
|
-
}
|
141
|
-
|
142
|
-
// Tab icon
|
143
|
-
.#{$namespace}icon {
|
144
|
-
top: 3px;
|
145
|
-
width: 24px;
|
146
|
-
height: 24px;
|
147
|
-
padding-top: 0;
|
148
|
-
padding-bottom: 0;
|
149
|
-
|
150
|
-
// Make the text smaller if it's used with an icon
|
151
|
-
~ .#{$namespace}tab-label {
|
152
|
-
display: block;
|
153
|
-
font-size: 11px;
|
154
|
-
//处理超出部分文字;
|
155
|
-
overflow: hidden;
|
156
|
-
text-overflow: ellipsis;
|
157
|
-
}
|
158
|
-
&:active {
|
159
|
-
background: none;
|
160
|
-
}
|
161
|
-
}
|
162
|
-
}
|
163
|
-
}
|
164
|
-
.#{$namespace}focusin>.#{$namespace}bar{
|
165
|
-
position:absolute;
|
166
|
-
}
|
167
|
-
|
168
|
-
//.#{$namespace}focusin>.#{$namespace}bar-tab,
|
169
|
-
//.#{$namespace}focusin> .#{$namespace}bar-footer,
|
170
|
-
//.#{$namespace}focusin>.#{$namespace}bar-footer-secondary,
|
171
|
-
//.#{$namespace}focusin>.#{$namespace}bar-footer-secondary-tab{
|
172
|
-
// position:static;
|
173
|
-
//}
|
174
|
-
// Bars with buttons
|
175
|
-
// --------------------------------------------------
|
176
|
-
|
177
|
-
.#{$namespace}bar .#{$namespace}btn {
|
178
|
-
position: relative;
|
179
|
-
top: 7px;
|
180
|
-
z-index: z("bar","btn"); // Position the buttons on top of .#{$namespace}title
|
181
|
-
padding: 6px 12px 7px;
|
182
|
-
margin-top: 0;
|
183
|
-
font-weight: $font-weight-light;
|
184
|
-
|
185
|
-
// Give buttons that are floated left and right side margin
|
186
|
-
&.#{$namespace}pull-right {
|
187
|
-
margin-left: $bar-side-spacing;
|
188
|
-
}
|
189
|
-
&.#{$namespace}pull-left {
|
190
|
-
margin-right: $bar-side-spacing;
|
191
|
-
}
|
192
|
-
}
|
193
|
-
|
194
|
-
// Bars with link buttons (Line the text up with content)
|
195
|
-
.#{$namespace}bar .#{$namespace}btn-link {
|
196
|
-
top: 0;
|
197
|
-
padding: 0;
|
198
|
-
font-size: 16px;
|
199
|
-
line-height: $bar-base-height;
|
200
|
-
color: $primary-color;
|
201
|
-
border: 0;
|
202
|
-
|
203
|
-
&:active,
|
204
|
-
&.#{$namespace}active {
|
205
|
-
color: darken($primary-color, 10%);
|
206
|
-
}
|
207
|
-
}
|
208
|
-
|
209
|
-
// Bars with block buttons
|
210
|
-
//
|
211
|
-
// Add proper padding
|
212
|
-
.#{$namespace}bar .#{$namespace}btn-block {
|
213
|
-
top: 6px;
|
214
|
-
padding: 5px 0;
|
215
|
-
margin-bottom: 0;
|
216
|
-
font-size: 16px; // Scale down font size to fit in bar.
|
217
|
-
}
|
218
|
-
|
219
|
-
// Nav buttons (Only applicable within bars)
|
220
|
-
//
|
221
|
-
// Buttons inside bars that sit closer against the viewport.
|
222
|
-
.#{$namespace}bar .#{$namespace}btn-nav {
|
223
|
-
&.#{$namespace}pull-left {
|
224
|
-
margin-left: -5px;
|
225
|
-
|
226
|
-
.#{$namespace}icon-left-nav {
|
227
|
-
margin-right: -3px;
|
228
|
-
}
|
229
|
-
}
|
230
|
-
&.#{$namespace}pull-right {
|
231
|
-
margin-right: -5px;
|
232
|
-
|
233
|
-
.#{$namespace}icon-right-nav {
|
234
|
-
margin-left: -3px;
|
235
|
-
}
|
236
|
-
}
|
237
|
-
&:active{
|
238
|
-
opacity: .3;
|
239
|
-
//background-color: rgba(0,0,0,.07);
|
240
|
-
}
|
241
|
-
}
|
242
|
-
|
243
|
-
|
244
|
-
// Bars with Muiicons
|
245
|
-
// --------------------------------------------------
|
246
|
-
|
247
|
-
.#{$namespace}bar {
|
248
|
-
.#{$namespace}icon {
|
249
|
-
position: relative;
|
250
|
-
z-index: z("bar","icon"); // Position the buttons on top of .#{$namespace}title
|
251
|
-
padding-top: 10px;
|
252
|
-
padding-bottom: 10px;
|
253
|
-
font-size: 24px;
|
254
|
-
|
255
|
-
&:active {
|
256
|
-
opacity: .3;
|
257
|
-
//background-color: rgba(0,0,0,.07);
|
258
|
-
}
|
259
|
-
}
|
260
|
-
|
261
|
-
// Vertical center the larger icons in btns.
|
262
|
-
.#{$namespace}btn .#{$namespace}icon {
|
263
|
-
top: 1px;
|
264
|
-
padding: 0;
|
265
|
-
margin:0;
|
266
|
-
}
|
267
|
-
|
268
|
-
// Handle carets in the titles
|
269
|
-
.#{$namespace}title .#{$namespace}icon {
|
270
|
-
padding: 0;
|
271
|
-
margin:0;
|
272
|
-
// Specific postioning of the caret icon within a title. Used with popover.js.
|
273
|
-
&.#{$namespace}icon-caret {
|
274
|
-
top: 4px;
|
275
|
-
margin-left: -5px;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
}
|
279
|
-
|
280
|
-
|
281
|
-
// Bars for search forms
|
282
|
-
// --------------------------------------------------
|
283
|
-
|
284
|
-
// Position/size search bar within the bar
|
285
|
-
.#{$namespace}bar input[type="search"] {
|
286
|
-
height: 29px;
|
287
|
-
margin: 6px 0;
|
288
|
-
}
|
289
|
-
.#{$namespace}bar .#{$namespace}input-row .#{$namespace}btn{
|
290
|
-
padding: 12px 10px;
|
291
|
-
}
|
292
|
-
.#{$namespace}bar .#{$namespace}search:before{
|
293
|
-
margin-top: -10px;
|
294
|
-
}
|
295
|
-
.#{$namespace}bar .#{$namespace}input-row .#{$namespace}input-clear~.#{$namespace}icon-clear, .#{$namespace}bar .#{$namespace}input-row .#{$namespace}input-speech~.#{$namespace}icon-speech{
|
296
|
-
top: 0;
|
297
|
-
right: 12px;
|
298
|
-
}
|
299
|
-
.#{$namespace}bar.#{$namespace}bar-header-secondary .#{$namespace}input-row .#{$namespace}input-clear~.#{$namespace}icon-clear, .#{$namespace}bar.#{$namespace}bar-header-secondary .#{$namespace}input-row .#{$namespace}input-speech~.#{$namespace}icon-speech{
|
300
|
-
top: 0;
|
301
|
-
right: 0;
|
302
|
-
}
|
303
|
-
|
304
|
-
// Bars with segmented controls
|
305
|
-
// --------------------------------------------------
|
306
|
-
|
307
|
-
// Position the control correctly inside a bar.
|
308
|
-
.#{$namespace}bar .#{$namespace}segmented-control {
|
309
|
-
top: 7px;
|
310
|
-
margin: 0 auto;
|
311
|
-
width: auto;
|
312
|
-
}
|
@@ -1,196 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Base styles
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Use box sizing on all the things!
|
6
|
-
* {
|
7
|
-
-webkit-box-sizing: border-box;
|
8
|
-
box-sizing: border-box;
|
9
|
-
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
10
|
-
-webkit-tap-highlight-color: transparent;
|
11
|
-
-webkit-user-select: none;//禁止选择文字
|
12
|
-
outline: none;
|
13
|
-
}
|
14
|
-
// We fix position the body and scroll `.#{$namespace}content`.
|
15
|
-
body {
|
16
|
-
font-family: $font-family-default;
|
17
|
-
font-size: $font-size-default;
|
18
|
-
line-height: $line-height-default;
|
19
|
-
color: #000;
|
20
|
-
background-color: #fff;
|
21
|
-
-webkit-overflow-scrolling: touch;
|
22
|
-
}
|
23
|
-
|
24
|
-
// Universal link styling
|
25
|
-
a {
|
26
|
-
color: $primary-color;
|
27
|
-
text-decoration: none;
|
28
|
-
|
29
|
-
&:active {
|
30
|
-
color: darken($primary-color, 10%);
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
// Wrapper to be used around all content not in .#{$namespace}bar-title and .#{$namespace}bar-tab
|
35
|
-
.#{$namespace}content {
|
36
|
-
background-color: #efeff4;
|
37
|
-
-webkit-overflow-scrolling: touch;
|
38
|
-
}
|
39
|
-
|
40
|
-
// Hack to force all relatively and absolutely positioned elements still render while scrolling
|
41
|
-
// Note: This is a bug for "-webkit-overflow-scrolling: touch"
|
42
|
-
// .#{$namespace}content > * {
|
43
|
-
// @include transform(translateZ(0));
|
44
|
-
// }
|
45
|
-
|
46
|
-
// Pad top/bottom of content so it doesn't hide behind bars.
|
47
|
-
// Note: For these to work, content must come after both bars in the markup
|
48
|
-
.#{$namespace}bar-nav ~ .#{$namespace}content {
|
49
|
-
padding-top: $bar-base-height;
|
50
|
-
&.#{$namespace}scroll-wrapper{
|
51
|
-
.#{$namespace}scrollbar-vertical{
|
52
|
-
top:$bar-base-height;
|
53
|
-
}
|
54
|
-
}
|
55
|
-
}
|
56
|
-
.#{$namespace}bar-header-secondary ~ .#{$namespace}content {
|
57
|
-
padding-top: ($bar-base-height*2);
|
58
|
-
&.#{$namespace}scroll-wrapper{
|
59
|
-
.#{$namespace}scrollbar-vertical{
|
60
|
-
top:($bar-base-height*2);
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
// Footer bar padding
|
66
|
-
.#{$namespace}bar-footer ~ .#{$namespace}content {
|
67
|
-
padding-bottom: $bar-base-height;
|
68
|
-
&.#{$namespace}scroll-wrapper{
|
69
|
-
.#{$namespace}scrollbar-vertical{
|
70
|
-
bottom:$bar-base-height;
|
71
|
-
}
|
72
|
-
}
|
73
|
-
}
|
74
|
-
.#{$namespace}bar-footer-secondary ~ .#{$namespace}content {
|
75
|
-
padding-bottom: ($bar-base-height*2);
|
76
|
-
&.#{$namespace}scroll-wrapper{
|
77
|
-
.#{$namespace}scrollbar-vertical{
|
78
|
-
bottom:($bar-base-height*2);
|
79
|
-
}
|
80
|
-
}
|
81
|
-
}
|
82
|
-
|
83
|
-
// Tab bar padding
|
84
|
-
.#{$namespace}bar-tab ~ .#{$namespace}content {
|
85
|
-
padding-bottom: $bar-tab-height;
|
86
|
-
&.#{$namespace}scroll-wrapper{
|
87
|
-
.#{$namespace}scrollbar-vertical{
|
88
|
-
bottom:$bar-tab-height;
|
89
|
-
}
|
90
|
-
}
|
91
|
-
}
|
92
|
-
.#{$namespace}bar-footer-secondary-tab ~ .#{$namespace}content {
|
93
|
-
padding-bottom: ($bar-tab-height+$bar-base-height);
|
94
|
-
&.#{$namespace}scroll-wrapper{
|
95
|
-
.#{$namespace}scrollbar-vertical{
|
96
|
-
bottom:($bar-tab-height+$bar-base-height);
|
97
|
-
}
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
|
-
// Utility classes
|
102
|
-
|
103
|
-
.#{$namespace}content-padded {
|
104
|
-
//暂时放弃content-padded
|
105
|
-
margin: $bar-side-spacing;
|
106
|
-
}
|
107
|
-
.#{$namespace}inline {
|
108
|
-
display: inline-block;
|
109
|
-
vertical-align: top;
|
110
|
-
}
|
111
|
-
.#{$namespace}block {
|
112
|
-
display: block!important;
|
113
|
-
}
|
114
|
-
.#{$namespace}visibility {
|
115
|
-
visibility: visible!important;
|
116
|
-
}
|
117
|
-
.#{$namespace}hidden {
|
118
|
-
display: none!important;
|
119
|
-
}
|
120
|
-
.#{$namespace}ellipsis{
|
121
|
-
overflow: hidden;
|
122
|
-
text-overflow: ellipsis;
|
123
|
-
white-space: nowrap;
|
124
|
-
}
|
125
|
-
.#{$namespace}ellipsis-2{
|
126
|
-
overflow: hidden;
|
127
|
-
text-overflow: ellipsis;
|
128
|
-
display: -webkit-box;
|
129
|
-
-webkit-line-clamp: 2;
|
130
|
-
-webkit-box-orient: vertical;
|
131
|
-
white-space: normal!important;
|
132
|
-
word-wrap: break-word;
|
133
|
-
}
|
134
|
-
.#{$namespace}table{
|
135
|
-
display: table;
|
136
|
-
table-layout: fixed;
|
137
|
-
width: 100%;
|
138
|
-
}
|
139
|
-
.#{$namespace}table-cell{
|
140
|
-
display: table-cell;
|
141
|
-
position: relative;
|
142
|
-
}
|
143
|
-
.#{$namespace}text-left{
|
144
|
-
text-align: left!important;
|
145
|
-
}
|
146
|
-
.#{$namespace}text-center{
|
147
|
-
text-align: center!important;
|
148
|
-
}
|
149
|
-
.#{$namespace}text-justify{
|
150
|
-
text-align: justify!important;
|
151
|
-
}
|
152
|
-
.#{$namespace}text-right{
|
153
|
-
text-align: right!important;
|
154
|
-
}
|
155
|
-
.#{$namespace}pull-left {
|
156
|
-
float: left;
|
157
|
-
}
|
158
|
-
.#{$namespace}pull-right {
|
159
|
-
float: right;
|
160
|
-
}
|
161
|
-
|
162
|
-
.#{$namespace}list-unstyled {
|
163
|
-
padding-left: 0;
|
164
|
-
list-style: none;
|
165
|
-
}
|
166
|
-
.#{$namespace}list-inline {
|
167
|
-
padding-left: 0;
|
168
|
-
list-style: none;
|
169
|
-
margin-left: -5px;
|
170
|
-
}
|
171
|
-
.#{$namespace}list-inline > li {
|
172
|
-
display: inline-block;
|
173
|
-
padding-left: 5px;
|
174
|
-
padding-right: 5px;
|
175
|
-
}
|
176
|
-
.#{$namespace}clearfix {
|
177
|
-
@include clearfix();
|
178
|
-
}
|
179
|
-
.#{$namespace}bg-primary {
|
180
|
-
background-color:$primary-color;
|
181
|
-
}
|
182
|
-
.#{$namespace}bg-positive{
|
183
|
-
background-color:$positive-color;
|
184
|
-
}
|
185
|
-
.#{$namespace}bg-negative{
|
186
|
-
background-color:$negative-color;
|
187
|
-
}
|
188
|
-
.#{$namespace}error{
|
189
|
-
margin: 88px 35px;
|
190
|
-
padding:10px;
|
191
|
-
border-radius:6px;
|
192
|
-
background-color:#bbb;
|
193
|
-
}
|
194
|
-
.#{$namespace}subtitle{
|
195
|
-
font-size: 15px;
|
196
|
-
}
|
@@ -1,205 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// Buttons
|
3
|
-
// --------------------------------------------------
|
4
|
-
input[type="button"],
|
5
|
-
input[type="submit"],
|
6
|
-
input[type="reset"],
|
7
|
-
button,
|
8
|
-
.#{$namespace}btn {
|
9
|
-
position: relative;
|
10
|
-
display: inline-block;
|
11
|
-
padding: 6px 12px;
|
12
|
-
margin-bottom: 0; // For input.#{$namespace}btn
|
13
|
-
font-size: $button-font-size;
|
14
|
-
font-weight: $font-weight-light;
|
15
|
-
line-height: 1.42;//增大,和bootstrap保持一致;
|
16
|
-
color: #333;
|
17
|
-
text-align: center;
|
18
|
-
white-space: nowrap;
|
19
|
-
vertical-align: top;
|
20
|
-
cursor: pointer;
|
21
|
-
background-color: #fff;
|
22
|
-
background-clip: padding-box;
|
23
|
-
border: 1px solid #ccc;
|
24
|
-
border-top-left-radius: 3px;//fixed android 4.2
|
25
|
-
border-top-right-radius: 3px;//fixed android 4.2
|
26
|
-
border-bottom-right-radius: 3px;//fixed android 4.2
|
27
|
-
border-bottom-left-radius: 3px;//fixed android 4.2
|
28
|
-
border-radius: 3px;
|
29
|
-
@include transition(all);
|
30
|
-
@include transition-duration(.2s);
|
31
|
-
@include transition-timing-function(linear);
|
32
|
-
|
33
|
-
// Active & filled button styles
|
34
|
-
&:enabled:active,
|
35
|
-
&.#{$namespace}active:enabled {
|
36
|
-
color: #fff;
|
37
|
-
background-color: $default-color;
|
38
|
-
}
|
39
|
-
|
40
|
-
// Disabled styles & filled button active styles
|
41
|
-
&:disabled,
|
42
|
-
&.#{$namespace}disabled {
|
43
|
-
opacity: .6;
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
|
48
|
-
// Other button types
|
49
|
-
// --------------------------------------------------
|
50
|
-
|
51
|
-
// Primary button (Default color is blue)
|
52
|
-
input[type="submit"],
|
53
|
-
.#{$namespace}btn-primary,.#{$namespace}btn-blue {
|
54
|
-
@include btn($primary-color);
|
55
|
-
}
|
56
|
-
|
57
|
-
// Positive button (Default color is green)
|
58
|
-
.#{$namespace}btn-positive,.#{$namespace}btn-success,.#{$namespace}btn-green {
|
59
|
-
@include btn($positive-color);
|
60
|
-
}
|
61
|
-
|
62
|
-
.#{$namespace}btn-warning,.#{$namespace}btn-yellow {
|
63
|
-
@include btn($warning-color);
|
64
|
-
}
|
65
|
-
|
66
|
-
// Negative button (Default color is red)
|
67
|
-
.#{$namespace}btn-negative,.#{$namespace}btn-danger,.#{$namespace}btn-red {
|
68
|
-
@include btn($negative-color);
|
69
|
-
}
|
70
|
-
//紫色
|
71
|
-
.#{$namespace}btn-royal,.#{$namespace}btn-purple {
|
72
|
-
@include btn($royal-color);
|
73
|
-
}
|
74
|
-
// grey button
|
75
|
-
.#{$namespace}btn-grey {
|
76
|
-
@include btn($grey-color);
|
77
|
-
}
|
78
|
-
// Outlined buttons
|
79
|
-
.#{$namespace}btn-outlined {
|
80
|
-
background-color: transparent;
|
81
|
-
|
82
|
-
&.#{$namespace}btn-primary,&.#{$namespace}btn-blue {
|
83
|
-
color: $primary-color;
|
84
|
-
}
|
85
|
-
&.#{$namespace}btn-positive,&.#{$namespace}btn-success,&.#{$namespace}btn-green {
|
86
|
-
color: $positive-color;
|
87
|
-
}
|
88
|
-
&.#{$namespace}btn-warning,&.#{$namespace}btn-yellow {
|
89
|
-
color: $warning-color;
|
90
|
-
}
|
91
|
-
&.#{$namespace}btn-negative,&.#{$namespace}btn-danger,&.#{$namespace}btn-red {
|
92
|
-
color: $negative-color;
|
93
|
-
}
|
94
|
-
&.#{$namespace}btn-royal,&.#{$namespace}btn-purple {
|
95
|
-
color: $royal-color;
|
96
|
-
}
|
97
|
-
// Active states
|
98
|
-
&.#{$namespace}btn-primary,&.#{$namespace}btn-blue,
|
99
|
-
&.#{$namespace}btn-positive,&.#{$namespace}btn-success,&.#{$namespace}btn-green,
|
100
|
-
&.#{$namespace}btn-warning,&.#{$namespace}btn-yellow,
|
101
|
-
&.#{$namespace}btn-negative,&.#{$namespace}btn-danger,&.#{$namespace}btn-red,
|
102
|
-
&.#{$namespace}btn-royal,&.#{$namespace}btn-purple,
|
103
|
-
{
|
104
|
-
&:enabled:active{
|
105
|
-
color: #fff;
|
106
|
-
}
|
107
|
-
}
|
108
|
-
}
|
109
|
-
|
110
|
-
// Link button (Buttons that look like links)
|
111
|
-
.#{$namespace}btn-link {
|
112
|
-
padding-top: 6px;
|
113
|
-
padding-bottom: 6px;
|
114
|
-
color: $primary-color;
|
115
|
-
background-color: transparent;
|
116
|
-
border: 0;
|
117
|
-
|
118
|
-
&:enabled:active,
|
119
|
-
&.#{$namespace}active:enabled {
|
120
|
-
color: darken($primary-color, 10%);
|
121
|
-
background-color: transparent;
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
// Block level buttons (full width buttons)
|
126
|
-
.#{$namespace}btn-block {
|
127
|
-
display: block;
|
128
|
-
width: 100%;
|
129
|
-
padding: 15px 0;
|
130
|
-
margin-bottom: 10px;
|
131
|
-
font-size: 18px;
|
132
|
-
}
|
133
|
-
|
134
|
-
|
135
|
-
// Button overrides
|
136
|
-
// --------------------------------------------------
|
137
|
-
|
138
|
-
//input[type="submit"],
|
139
|
-
//input[type="reset"],
|
140
|
-
//input[type="button"] {
|
141
|
-
// width: 100%;
|
142
|
-
//}
|
143
|
-
|
144
|
-
|
145
|
-
// Buttons with badges
|
146
|
-
// --------------------------------------------------
|
147
|
-
|
148
|
-
// Generic styles for all badges within default buttons
|
149
|
-
.#{$namespace}btn .#{$namespace}badge {
|
150
|
-
margin: -2px -4px -2px 4px;
|
151
|
-
font-size: $button-font-size;
|
152
|
-
background-color: rgba(0,0,0,.15);
|
153
|
-
}
|
154
|
-
|
155
|
-
// Buttons with inverted badges
|
156
|
-
.#{$namespace}btn .#{$namespace}badge-inverted,
|
157
|
-
.#{$namespace}btn:enabled:active .#{$namespace}badge-inverted {
|
158
|
-
background-color: transparent;
|
159
|
-
}
|
160
|
-
.#{$namespace}btn-primary:enabled:active .#{$namespace}badge-inverted,
|
161
|
-
.#{$namespace}btn-positive:enabled:active .#{$namespace}badge-inverted,
|
162
|
-
.#{$namespace}btn-negative:enabled:active .#{$namespace}badge-inverted {
|
163
|
-
color: #fff;
|
164
|
-
}
|
165
|
-
|
166
|
-
// Position badges within block level buttons
|
167
|
-
// Note: These are absolutely positioned so that text of button isn't "pushed" by badge and always
|
168
|
-
// stays at the center of button
|
169
|
-
.#{$namespace}btn-block .#{$namespace}badge {
|
170
|
-
position: absolute;
|
171
|
-
right: 0;
|
172
|
-
margin-right: 10px;
|
173
|
-
}
|
174
|
-
|
175
|
-
|
176
|
-
// Buttons with Muiicons
|
177
|
-
// --------------------------------------------------
|
178
|
-
|
179
|
-
.#{$namespace}btn .#{$namespace}icon{
|
180
|
-
font-size: inherit;
|
181
|
-
}
|
182
|
-
|
183
|
-
.#{$namespace}btn.#{$namespace}icon {
|
184
|
-
font-size: $button-font-size;
|
185
|
-
line-height: 1.42;
|
186
|
-
}
|
187
|
-
|
188
|
-
.#{$namespace}btn.#{$namespace}fab{
|
189
|
-
border-radius: 50%;
|
190
|
-
width: 56px;
|
191
|
-
height: 56px;
|
192
|
-
padding:16px;
|
193
|
-
outline: none;
|
194
|
-
&.#{$namespace}btn-mini{
|
195
|
-
width: 40px;
|
196
|
-
height: 40px;
|
197
|
-
padding:8px;
|
198
|
-
}
|
199
|
-
.#{$namespace}icon{
|
200
|
-
font-size: 24px;
|
201
|
-
line-height: 24px;
|
202
|
-
width: 24px;
|
203
|
-
height: 24px;
|
204
|
-
}
|
205
|
-
}
|