metro-ui-rails-cn 0.1.6 → 0.15.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/Metro-UI-CSS-LICENSE +35 -0
- data/lib/metro/ui/convert.rb +4 -0
- data/lib/metro/ui/rails/version.rb +1 -1
- data/vendor/assets/images/metro-ui-css/fonts/iconFont.eot +0 -0
- data/vendor/assets/images/metro-ui-css/fonts/iconFont.svg +333 -333
- data/vendor/assets/images/metro-ui-css/fonts/iconFont.ttf +0 -0
- data/vendor/assets/images/metro-ui-css/fonts/iconFont.woff +0 -0
- data/vendor/assets/javascripts/metro-ui-css/input-control.js +103 -0
- data/vendor/assets/javascripts/metro-ui-css/rating.js +238 -35
- data/vendor/assets/javascripts/metro-ui-css/tile-drag.js +271 -0
- data/vendor/toolkit/metro-ui-css/bricks.less +2 -0
- data/vendor/toolkit/metro-ui-css/buttons.less +197 -22
- data/vendor/toolkit/metro-ui-css/colors.less +6 -1
- data/vendor/toolkit/metro-ui-css/forms.less +199 -236
- data/vendor/toolkit/metro-ui-css/icons.less +1041 -333
- data/vendor/toolkit/metro-ui-css/listview.less +7 -7
- data/vendor/toolkit/metro-ui-css/menus.less +137 -285
- data/vendor/toolkit/metro-ui-css/modern-responsive-max767.less +39 -11
- data/vendor/toolkit/metro-ui-css/modern-responsive-max979.less +36 -10
- data/vendor/toolkit/metro-ui-css/modern-responsive-min1200.less +4 -4
- data/vendor/toolkit/metro-ui-css/modern.less +3 -1
- data/vendor/toolkit/metro-ui-css/routines.less +9 -5
- data/vendor/toolkit/metro-ui-css/tables.less +7 -1
- data/vendor/toolkit/metro-ui-css/typography.less +4 -4
- metadata +7 -4
@@ -118,20 +118,20 @@
|
|
118
118
|
position: absolute;
|
119
119
|
display: block;
|
120
120
|
right: 0;
|
121
|
-
content:"
|
122
|
-
text-indent: -9999px;
|
121
|
+
content:"";
|
123
122
|
top: 0;
|
124
|
-
z-index:
|
123
|
+
z-index: 1001;
|
125
124
|
}
|
126
125
|
|
127
126
|
&:before {
|
128
127
|
position: absolute;
|
129
|
-
content: "\
|
128
|
+
content: "\e08a";
|
130
129
|
color: #fff;
|
131
|
-
right:
|
130
|
+
right: 4px;
|
132
131
|
top: 0;
|
133
|
-
font-family:
|
134
|
-
z-index:
|
132
|
+
font-family: iconFont;
|
133
|
+
z-index: 1002;
|
134
|
+
display: block;
|
135
135
|
}
|
136
136
|
}
|
137
137
|
|
@@ -4,168 +4,15 @@
|
|
4
4
|
* Licensed under the MIT Lilcense
|
5
5
|
*
|
6
6
|
* Menus.less
|
7
|
-
*
|
7
|
+
* dropdown-menu, nav-bar
|
8
8
|
*/
|
9
9
|
|
10
|
-
.navigation-bar {
|
11
|
-
width: 100%;
|
12
|
-
min-height: 40px;
|
13
|
-
background: #464646;
|
14
|
-
z-index: 10000;
|
15
|
-
|
16
|
-
.navigation-bar-inner {
|
17
|
-
padding: 5px 20px 5px 20px;
|
18
|
-
color: #fff;
|
19
|
-
font-size: 11pt;
|
20
|
-
margin: auto;
|
21
|
-
position: relative;
|
22
|
-
|
23
|
-
& > .brand {
|
24
|
-
position: relative;
|
25
|
-
float: left;
|
26
|
-
margin-right: 20px;
|
27
|
-
margin-top: 3px;
|
28
|
-
|
29
|
-
&:hover {
|
30
|
-
background-color: transparent;
|
31
|
-
}
|
32
|
-
|
33
|
-
.icon {
|
34
|
-
width: 24px;
|
35
|
-
height: 24px;
|
36
|
-
float: left;
|
37
|
-
margin-right: 10px;
|
38
|
-
margin-top: 3px;
|
39
|
-
|
40
|
-
img {
|
41
|
-
width: 100%;
|
42
|
-
height: 100%;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
.name {
|
47
|
-
#font > .subheader;
|
48
|
-
font-size: 16pt;
|
49
|
-
color: #fff;
|
50
|
-
}
|
51
|
-
|
52
|
-
&.sub-menu {
|
53
|
-
cursor: pointer;
|
54
|
-
.dropdown-menu {
|
55
|
-
margin-top: -10px;
|
56
|
-
}
|
57
|
-
&:after {
|
58
|
-
position: absolute;
|
59
|
-
content: "\3009";
|
60
|
-
display: inline-block;
|
61
|
-
font-size: 10pt;
|
62
|
-
left: 100%;
|
63
|
-
top: 20px;
|
64
|
-
margin-left: 5px;
|
65
|
-
.rotate(90deg);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
}
|
69
|
-
|
70
|
-
& > ul {
|
71
|
-
.unstyled;
|
72
|
-
padding-top: 5px;
|
73
|
-
margin-top: 2px;
|
74
|
-
|
75
|
-
& > li {
|
76
|
-
display: inline-block;
|
77
|
-
line-height: 32px;
|
78
|
-
position: relative;
|
79
|
-
|
80
|
-
&.sub-menu {
|
81
|
-
padding-right: 20px;
|
82
|
-
&:after {
|
83
|
-
position: absolute;
|
84
|
-
content: "\3009";
|
85
|
-
display: inline-block;
|
86
|
-
font-size: 10pt;
|
87
|
-
font-family: Helvetica, sans-serif, sans;
|
88
|
-
letter-spacing: 0px;
|
89
|
-
top: 3px;
|
90
|
-
right: 10px;
|
91
|
-
.rotate(90deg);
|
92
|
-
cursor: pointer;
|
93
|
-
}
|
94
|
-
|
95
|
-
&:hover {
|
96
|
-
&:after {
|
97
|
-
color: #1e1e1e;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
}
|
101
|
-
|
102
|
-
& > a {
|
103
|
-
color: #fff;
|
104
|
-
#font > .navigation;
|
105
|
-
padding: 5px 10px;
|
106
|
-
cursor: pointer;
|
107
|
-
}
|
108
|
-
|
109
|
-
&.active, &:hover {
|
110
|
-
background-color: #fff;
|
111
|
-
|
112
|
-
a {
|
113
|
-
color: #1e1e1e;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
|
117
|
-
& > .dropdown-menu {
|
118
|
-
border: 0;
|
119
|
-
}
|
120
|
-
|
121
|
-
&.no-hover {
|
122
|
-
&:hover {
|
123
|
-
background-color: transparent;
|
124
|
-
}
|
125
|
-
}
|
126
|
-
}
|
127
|
-
}
|
128
|
-
|
129
|
-
.clearfix;
|
130
|
-
}
|
131
|
-
|
132
|
-
&.fixed-top {
|
133
|
-
position: fixed;
|
134
|
-
left: 0;
|
135
|
-
right: 0;
|
136
|
-
top: 0;
|
137
|
-
}
|
138
|
-
|
139
|
-
&.fixed-bottom {
|
140
|
-
position: fixed;
|
141
|
-
left: 0;
|
142
|
-
right: 0;
|
143
|
-
bottom: 0;
|
144
|
-
}
|
145
|
-
|
146
|
-
}
|
147
|
-
|
148
|
-
.menu-pull {
|
149
|
-
position: absolute;
|
150
|
-
right: 10px;
|
151
|
-
top: 10px;
|
152
|
-
display: none;
|
153
|
-
cursor: pointer;
|
154
|
-
z-index: 10001;
|
155
|
-
background: image-url("metro-ui-css/row24.png") no-repeat;
|
156
|
-
background-size: cover;
|
157
|
-
height: 24px;
|
158
|
-
width: 24px;
|
159
|
-
margin: 0;
|
160
|
-
padding: 0;
|
161
|
-
}
|
162
|
-
|
163
10
|
.dropdown-menu {
|
164
11
|
position: absolute;
|
165
12
|
background-color: #fff;
|
166
13
|
.unstyled;
|
167
14
|
top: 100%;
|
168
|
-
z-index:
|
15
|
+
z-index: 11010;
|
169
16
|
float: left;
|
170
17
|
border: 1px solid rgba(0, 0, 0, 0.2);
|
171
18
|
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
@@ -212,165 +59,170 @@
|
|
212
59
|
}
|
213
60
|
}
|
214
61
|
|
62
|
+
.nav-bar {
|
63
|
+
background-color: @blue;
|
64
|
+
position: relative;
|
65
|
+
top: 0;
|
66
|
+
width: 100%;
|
67
|
+
display: block;
|
68
|
+
margin: 0;
|
69
|
+
padding: 0;
|
215
70
|
|
216
|
-
.
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
border:1px transparent solid !important;
|
230
|
-
min-width: 150px;
|
231
|
-
|
232
|
-
a {
|
233
|
-
display: block;
|
234
|
-
white-space: nowrap;
|
235
|
-
float: none;
|
236
|
-
height: auto;
|
237
|
-
#font > .tertiary;
|
238
|
-
color: #1e1e1e;
|
239
|
-
padding: 5px 10px;
|
240
|
-
|
241
|
-
&:hover {
|
242
|
-
color: #fff;
|
243
|
-
}
|
244
|
-
}
|
245
|
-
|
246
|
-
&:hover {
|
247
|
-
background-color: #008287;
|
248
|
-
}
|
249
|
-
|
250
|
-
&.divider {
|
251
|
-
height: 1px !important;
|
252
|
-
line-height: 1px !important;
|
253
|
-
background-color: transparent !important;
|
254
|
-
border-top: 1px #bababa solid !important;
|
71
|
+
.nav-bar-inner {
|
72
|
+
.element {
|
73
|
+
position: relative;
|
74
|
+
margin: 5px;
|
75
|
+
line-height: 20px;
|
76
|
+
height: 20px;
|
77
|
+
float: left;
|
78
|
+
display: inline-block;
|
79
|
+
padding: 0;
|
80
|
+
margin-right: 10px;
|
81
|
+
font-weight: normal;
|
82
|
+
font-size: 10pt;
|
83
|
+
color: #fff;
|
255
84
|
|
256
|
-
|
257
|
-
|
85
|
+
&.brand {
|
86
|
+
font-size: 1.15em;
|
258
87
|
}
|
259
88
|
}
|
260
89
|
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
content: "\3009";
|
265
|
-
display: inline-block;
|
266
|
-
font-size: 10pt;
|
267
|
-
top: 5px;
|
268
|
-
right: 10px;
|
269
|
-
.rotate(0deg);
|
270
|
-
}
|
271
|
-
}
|
272
|
-
}
|
273
|
-
}
|
90
|
+
& > ul.menu {
|
91
|
+
.unstyled;
|
92
|
+
padding: 0;
|
274
93
|
|
275
|
-
|
276
|
-
|
277
|
-
|
94
|
+
& > li {
|
95
|
+
display: block;
|
96
|
+
float: left;
|
97
|
+
margin-right: 10px;
|
98
|
+
position: relative;
|
99
|
+
padding: 5px;
|
278
100
|
|
279
|
-
|
280
|
-
|
101
|
+
a {
|
102
|
+
display: block;
|
103
|
+
float: left;
|
104
|
+
color: @white;
|
105
|
+
font-size: 10pt;
|
106
|
+
}
|
281
107
|
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
display: block;
|
108
|
+
ul.dropdown-menu {
|
109
|
+
//margin-top: 5px;
|
110
|
+
border: 0;
|
111
|
+
li {
|
287
112
|
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
113
|
+
a {
|
114
|
+
display: block;
|
115
|
+
float: none;
|
116
|
+
color: #1e1e1e;
|
117
|
+
padding: 3px 20px;
|
118
|
+
}
|
119
|
+
}
|
292
120
|
|
293
|
-
&.sub-menu {
|
294
|
-
padding-right: 20px;
|
295
|
-
&:after {
|
296
|
-
position: absolute;
|
297
|
-
content: "\3009";
|
298
|
-
display: inline-block;
|
299
|
-
font-size: 10pt;
|
300
|
-
font-family: sans;
|
301
|
-
top: 7px;
|
302
|
-
right: 10px;
|
303
|
-
.rotate(90deg);
|
304
121
|
}
|
305
|
-
}
|
306
122
|
|
307
|
-
a {
|
308
|
-
float: left;
|
309
|
-
padding: 5px 10px;
|
310
|
-
display: block;
|
311
|
-
z-index: 999;
|
312
|
-
#font > .navigation;
|
313
|
-
#state > .navigation;
|
314
123
|
}
|
315
124
|
|
316
|
-
|
317
|
-
|
125
|
+
&.open {
|
126
|
+
display: block !important;
|
318
127
|
}
|
128
|
+
}
|
319
129
|
|
320
|
-
|
321
|
-
|
322
|
-
|
130
|
+
& > .divider, & > ul.menu > li.divider {
|
131
|
+
.element;
|
132
|
+
width: 1px;
|
133
|
+
border-right: 1px darken(@white, 10%) solid;
|
134
|
+
box-shadow: 0 0 10px rgba(0,0,0,0.5);
|
135
|
+
}
|
323
136
|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
137
|
+
[data-role=dropdown] {
|
138
|
+
margin-right: 20px !important;
|
139
|
+
& > a {
|
140
|
+
cursor: pointer;
|
141
|
+
&:before {
|
142
|
+
position: absolute;
|
143
|
+
content: "\203A";
|
144
|
+
display: block;
|
145
|
+
font-size: 1.4em;
|
146
|
+
left: 100%;
|
147
|
+
margin-left: 3px;
|
148
|
+
top: 8px;
|
149
|
+
.rotate(90deg);
|
150
|
+
}
|
328
151
|
}
|
329
152
|
}
|
330
153
|
|
331
|
-
|
154
|
+
.pull-menu {
|
332
155
|
display: none;
|
333
156
|
float: right;
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
border: 0;
|
343
|
-
cursor: pointer;
|
344
|
-
}
|
157
|
+
color: #fff;
|
158
|
+
cursor: pointer;
|
159
|
+
font: 1.8em sans-serif;
|
160
|
+
margin-right: 0px;
|
161
|
+
position: relative;
|
162
|
+
height: 20px;
|
163
|
+
width: 20px;
|
164
|
+
line-height: 20px;
|
345
165
|
|
346
|
-
&:
|
347
|
-
|
166
|
+
&:before {
|
167
|
+
content: "\2261";
|
168
|
+
position: absolute;
|
169
|
+
font-size: 20pt;
|
170
|
+
top: 5px;
|
171
|
+
left: 0;
|
348
172
|
}
|
349
173
|
}
|
174
|
+
|
175
|
+
.clearfix;
|
350
176
|
}
|
351
177
|
|
352
|
-
.
|
178
|
+
&.bg-color-blue .nav-bar-inner .menu li a:hover{background-color: @blue !important;}
|
179
|
+
&.bg-color-blueLight .nav-bar-inner .menu li a:hover{background-color: @blueLight !important;}
|
180
|
+
&.bg-color-blueDark .nav-bar-inner .menu li a:hover{background-color: @blueDark !important;}
|
181
|
+
&.bg-color-green .nav-bar-inner .menu li a:hover{background-color: @green !important;}
|
182
|
+
&.bg-color-greenLight .nav-bar-inner .menu li a:hover {background-color: @greenLight !important;}
|
183
|
+
&.bg-color-greenDark .nav-bar-inner .menu li a:hover {background-color: @greenDark !important;}
|
184
|
+
&.bg-color-red .nav-bar-inner .menu li a:hover {background-color: @red !important;}
|
185
|
+
&.bg-color-yellow .nav-bar-inner .menu li a:hover {background-color: @yellow !important;}
|
186
|
+
&.bg-color-orange .nav-bar-inner .menu li a:hover {background-color: @orange !important;}
|
187
|
+
&.bg-color-orangeDark .nav-bar-inner .menu li a:hover {background-color: @orangeDark !important;}
|
188
|
+
&.bg-color-pink .nav-bar-inner .menu li a:hover {background-color: @pink !important;}
|
189
|
+
&.bg-color-pinkDark .nav-bar-inner .menu li a:hover {background-color: @pinkDark !important;}
|
190
|
+
&.bg-color-purple .nav-bar-inner .menu li a:hover {background-color: @purple !important;}
|
191
|
+
&.bg-color-darken .nav-bar-inner .menu li a:hover {background-color: @darken !important;}
|
192
|
+
&.bg-color-lighten .nav-bar-inner .menu li a:hover {background-color: @lighten !important;}
|
193
|
+
&.bg-color-white .nav-bar-inner .menu li:hover {background-color: darken(@white, 10%) !important;}
|
194
|
+
&.bg-color-white .nav-bar-inner .menu li a:hover {background-color: darken(@white, 10%) !important;}
|
195
|
+
&.bg-color-white .nav-bar-inner .menu li a {color: @darken !important;}
|
196
|
+
&.bg-color-white .nav-bar-inner .element {color: @darken !important;}
|
197
|
+
&.bg-color-white .nav-bar-inner .pull-menu {color: @darken !important;}
|
198
|
+
&.bg-color-grayDark .nav-bar-inner .menu li a:hover {background-color: @grayDark !important;}
|
199
|
+
|
200
|
+
.clearfix;
|
353
201
|
}
|
354
202
|
|
355
|
-
.
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
203
|
+
.nav-bar {
|
204
|
+
&.fixed-top, &.fixed-bottom {
|
205
|
+
position: fixed;
|
206
|
+
z-index: 10000;
|
207
|
+
left: 0;
|
208
|
+
}
|
209
|
+
|
210
|
+
&.fixed-top {
|
211
|
+
top: 0;
|
212
|
+
bottom: auto;
|
213
|
+
}
|
214
|
+
&.fixed-bottom {
|
215
|
+
bottom: 0;
|
216
|
+
top: auto;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
.nav-bar {
|
221
|
+
.nav-bar-inner {
|
222
|
+
&.container {
|
223
|
+
width: 940px;
|
224
|
+
margin: auto;
|
374
225
|
}
|
375
226
|
}
|
376
227
|
}
|
228
|
+
|