metro-ui-rails 0.15.8.12 → 0.15.8.13
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.
- data/lib/metro/ui/rails/version.rb +1 -1
- data/vendor/assets/javascripts/metro-ui.js +8 -6
- data/vendor/assets/javascripts/metro-ui/accordion.js +65 -31
- data/vendor/assets/javascripts/metro-ui/carousel.js +41 -31
- data/vendor/assets/javascripts/metro-ui/dialog.js +153 -0
- data/vendor/assets/javascripts/metro-ui/dropdown.js +1 -1
- data/vendor/assets/javascripts/metro-ui/input-control.js +44 -34
- data/vendor/assets/javascripts/metro-ui/rating.js +27 -25
- data/vendor/assets/javascripts/metro-ui/slider.js +51 -29
- data/vendor/assets/javascripts/metro-ui/start-menu.js +153 -0
- data/vendor/assets/javascripts/metro-ui/tile-drag.js +238 -86
- data/vendor/toolkit/metro-ui/accordion.less +1 -1
- data/vendor/toolkit/metro-ui/bricks.less +1 -1
- data/vendor/toolkit/metro-ui/buttons.less +1 -1
- data/vendor/toolkit/metro-ui/cards.less +1 -1
- data/vendor/toolkit/metro-ui/carousel.less +1 -1
- data/vendor/toolkit/metro-ui/code.less +1 -1
- data/vendor/toolkit/metro-ui/colors.less +1 -1
- data/vendor/toolkit/metro-ui/dialog.less +90 -0
- data/vendor/toolkit/metro-ui/forms.less +46 -27
- data/vendor/toolkit/metro-ui/grid.less +12 -2
- data/vendor/toolkit/metro-ui/hero.less +1 -1
- data/vendor/toolkit/metro-ui/icons.less +1 -1
- data/vendor/toolkit/metro-ui/images.less +1 -1
- data/vendor/toolkit/metro-ui/layout.less +1 -1
- data/vendor/toolkit/metro-ui/listview.less +32 -1
- data/vendor/toolkit/metro-ui/menus.less +38 -2
- data/vendor/toolkit/metro-ui/modern-responsive-max480.less +1 -1
- data/vendor/toolkit/metro-ui/modern-responsive-max767.less +13 -2
- data/vendor/toolkit/metro-ui/modern-responsive-max979.less +3 -2
- data/vendor/toolkit/metro-ui/modern-responsive-min1200.less +1 -1
- data/vendor/toolkit/metro-ui/modern-responsive.less +1 -1
- data/vendor/toolkit/metro-ui/modern.less +2 -1
- data/vendor/toolkit/metro-ui/notices.less +2 -1
- data/vendor/toolkit/metro-ui/pagecontrol.less +1 -1
- data/vendor/toolkit/metro-ui/progress.less +1 -1
- data/vendor/toolkit/metro-ui/rating.less +1 -1
- data/vendor/toolkit/metro-ui/routines.less +1 -1
- data/vendor/toolkit/metro-ui/sidebar.less +1 -1
- data/vendor/toolkit/metro-ui/slider.less +1 -1
- data/vendor/toolkit/metro-ui/tables.less +3 -1
- data/vendor/toolkit/metro-ui/theme-dark.less +1 -1
- data/vendor/toolkit/metro-ui/tiles.less +20 -2
- data/vendor/toolkit/metro-ui/typography.less +16 -5
- metadata +6 -3
- data/vendor/toolkit/metro-ui/jqgrid.less +0 -12
@@ -0,0 +1,90 @@
|
|
1
|
+
/*
|
2
|
+
* Metro UI CSS
|
3
|
+
* Copyright 2012 Valerio Battaglia
|
4
|
+
* Licensed under the MIT License
|
5
|
+
*
|
6
|
+
* dialog.less
|
7
|
+
*/
|
8
|
+
|
9
|
+
|
10
|
+
.dialog
|
11
|
+
{
|
12
|
+
position: absolute;
|
13
|
+
top: 40%;
|
14
|
+
left: 40%;
|
15
|
+
min-width: 150px;
|
16
|
+
min-height: 155px;
|
17
|
+
z-index: 1000;
|
18
|
+
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
|
19
|
+
|
20
|
+
.header
|
21
|
+
{
|
22
|
+
width: auto;
|
23
|
+
height: 35px;
|
24
|
+
padding: 6px 35px 5px 5px;
|
25
|
+
font-size: 18px;
|
26
|
+
white-space: nowrap;
|
27
|
+
overflow: hidden;
|
28
|
+
background-color: #2D89EF;
|
29
|
+
border: 1px solid #2D89EF;
|
30
|
+
border-bottom: 0 none;
|
31
|
+
|
32
|
+
div
|
33
|
+
{
|
34
|
+
position: absolute;
|
35
|
+
right: -5px;
|
36
|
+
top: 5px;
|
37
|
+
}
|
38
|
+
|
39
|
+
button
|
40
|
+
{
|
41
|
+
min-width: 16px;
|
42
|
+
min-height: 16px;
|
43
|
+
height: 24px;
|
44
|
+
width: 24px;
|
45
|
+
|
46
|
+
i
|
47
|
+
{
|
48
|
+
position: absolute;
|
49
|
+
left: 2px;
|
50
|
+
top: 4px;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.content
|
56
|
+
{
|
57
|
+
min-height: 85px;
|
58
|
+
padding: 5px;
|
59
|
+
background-color: #FFFFFF;
|
60
|
+
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
61
|
+
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
62
|
+
}
|
63
|
+
|
64
|
+
.action
|
65
|
+
{
|
66
|
+
position: relative;
|
67
|
+
bottom: 0;
|
68
|
+
width: auto;
|
69
|
+
height: 40px;
|
70
|
+
font-size: 18px;
|
71
|
+
text-align: center;
|
72
|
+
white-space: nowrap;
|
73
|
+
overflow: hidden;
|
74
|
+
background-color: #FFFFFF;
|
75
|
+
border-left: 1px solid rgba(0, 0, 0, 0.2);
|
76
|
+
border-right: 1px solid rgba(0, 0, 0, 0.2);
|
77
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
#dialogOverlay
|
82
|
+
{
|
83
|
+
width: 100%;
|
84
|
+
height: 100%;
|
85
|
+
position: fixed;
|
86
|
+
top: 0;
|
87
|
+
left: 0;
|
88
|
+
background-color: rgba(235, 235, 235, 0.5);
|
89
|
+
z-index: 1;
|
90
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Metro UI CSS
|
3
3
|
* Copyright 2012 Sergey Pimenov
|
4
|
-
* Licensed under the MIT
|
4
|
+
* Licensed under the MIT License
|
5
5
|
*
|
6
6
|
* Layout.less
|
7
7
|
*/
|
@@ -44,7 +44,7 @@
|
|
44
44
|
}
|
45
45
|
|
46
46
|
|
47
|
-
input[type="checkbox"]:checked
|
47
|
+
input[type="checkbox"]:checked ~ .helper:after {
|
48
48
|
position: absolute;
|
49
49
|
display: block;
|
50
50
|
content: "\e08a";
|
@@ -60,27 +60,31 @@
|
|
60
60
|
font-family: iconFont;
|
61
61
|
}
|
62
62
|
|
63
|
-
input[type="checkbox"]:not(:checked)
|
63
|
+
input[type="checkbox"]:not(:checked) ~ .helper:after {
|
64
64
|
display: none;
|
65
65
|
}
|
66
66
|
|
67
|
-
input[type="checkbox"]:disabled
|
67
|
+
input[type="checkbox"]:disabled ~ .helper:before {
|
68
68
|
cursor: default;
|
69
69
|
background: #e6e6e6;
|
70
70
|
}
|
71
71
|
|
72
|
-
input[type=checkbox]:disabled
|
72
|
+
input[type=checkbox]:disabled ~ .helper:after {
|
73
73
|
color: #8a8a8a;
|
74
74
|
}
|
75
75
|
|
76
|
+
input[type=checkbox]:focus ~ .helper:before {
|
77
|
+
border-color: #919191;
|
78
|
+
}
|
79
|
+
|
76
80
|
&:hover {
|
77
|
-
input:not(:disabled)
|
81
|
+
input[type=checkbox]:not(:disabled) ~ .helper:before {
|
78
82
|
border-color: #919191;
|
79
83
|
}
|
80
84
|
}
|
81
85
|
|
82
86
|
&:active {
|
83
|
-
input:not(:disabled)
|
87
|
+
input[type=checkbox]:not(:disabled) ~ .helper:before {
|
84
88
|
border-color: #1e1e1e;
|
85
89
|
}
|
86
90
|
}
|
@@ -88,7 +92,7 @@
|
|
88
92
|
}
|
89
93
|
|
90
94
|
&.intermediate {
|
91
|
-
input[type="checkbox"]
|
95
|
+
input[type="checkbox"] ~ .helper:after {
|
92
96
|
position: absolute !important;
|
93
97
|
display: block !important;
|
94
98
|
content: "" !important;
|
@@ -104,7 +108,7 @@
|
|
104
108
|
width: 10px !important;
|
105
109
|
height: 10px !important;
|
106
110
|
}
|
107
|
-
input[type="checkbox"]:disabled
|
111
|
+
input[type="checkbox"]:disabled ~ .helper:after {
|
108
112
|
background-color: lighten(#1a1a1a, 50%) !important;
|
109
113
|
}
|
110
114
|
}
|
@@ -144,7 +148,7 @@
|
|
144
148
|
border-radius: 100%;
|
145
149
|
}
|
146
150
|
|
147
|
-
input[type="radio"]:checked
|
151
|
+
input[type="radio"]:checked ~ .helper:after {
|
148
152
|
position: absolute;
|
149
153
|
display: block;
|
150
154
|
content: "";
|
@@ -162,23 +166,27 @@
|
|
162
166
|
border-radius: 100%;
|
163
167
|
}
|
164
168
|
|
165
|
-
input[type="radio"]:disabled
|
169
|
+
input[type="radio"]:disabled ~ .helper:before {
|
166
170
|
cursor: default;
|
167
171
|
background: #e6e6e6;
|
168
172
|
}
|
169
173
|
|
170
|
-
input[type="radio"]:disabled
|
174
|
+
input[type="radio"]:disabled ~ .helper:after {
|
171
175
|
background-color: #8a8a8a;
|
172
176
|
}
|
173
177
|
|
178
|
+
input[type="radio"]:focus ~ .helper:before {
|
179
|
+
border-color: #919191;
|
180
|
+
}
|
181
|
+
|
174
182
|
&:hover {
|
175
|
-
input:not(:disabled)
|
183
|
+
input:not(:disabled) ~ .helper:before {
|
176
184
|
border-color: #919191;
|
177
185
|
}
|
178
186
|
}
|
179
187
|
|
180
188
|
&:active {
|
181
|
-
input:not(:disabled)
|
189
|
+
input:not(:disabled) ~ .helper:before {
|
182
190
|
border-color: #1e1e1e;
|
183
191
|
}
|
184
192
|
}
|
@@ -220,7 +228,7 @@
|
|
220
228
|
z-index: 1;
|
221
229
|
}
|
222
230
|
|
223
|
-
input[type="checkbox"]
|
231
|
+
input[type="checkbox"] ~ .helper:after {
|
224
232
|
position: absolute;
|
225
233
|
left: 36px;
|
226
234
|
top: 2px;
|
@@ -235,21 +243,25 @@
|
|
235
243
|
z-index: 2;
|
236
244
|
}
|
237
245
|
|
238
|
-
input[type="checkbox"]:not(:checked)
|
246
|
+
input[type="checkbox"]:not(:checked) ~ .helper:after {
|
239
247
|
left: 2px !important;
|
240
248
|
}
|
241
249
|
|
242
|
-
input[type="checkbox"]:not(:checked)
|
250
|
+
input[type="checkbox"]:not(:checked) ~ .helper:before {
|
243
251
|
background: #a6a6a6 !important;
|
244
252
|
}
|
245
253
|
|
246
|
-
input[type="checkbox"]:disabled
|
254
|
+
input[type="checkbox"]:disabled ~ .helper:after {
|
247
255
|
background: #a6a6a6 !important;
|
248
256
|
outline: 2px #a6a6a6 solid !important;
|
249
257
|
border: 1px #a6a6a6 solid !important;
|
250
258
|
}
|
251
259
|
|
252
|
-
input[type="checkbox"]:
|
260
|
+
input[type="checkbox"]:focus ~ .helper:before {
|
261
|
+
outline: 2px #747474 solid !important;
|
262
|
+
}
|
263
|
+
|
264
|
+
input[type="checkbox"]:disabled ~ .helper:before {
|
253
265
|
cursor: default !important;
|
254
266
|
background: #e0e0e0 !important;
|
255
267
|
outline: 2px #ccc solid !important;
|
@@ -265,18 +277,24 @@
|
|
265
277
|
.input-control > input[type=url],
|
266
278
|
.input-control > input[type=phone],
|
267
279
|
.input-control > input[type=password],
|
280
|
+
.input-control > input[type=number],
|
281
|
+
.input-control > input[type=time],
|
268
282
|
.input-control > select,
|
269
283
|
.input-control > textarea {
|
270
|
-
border:
|
284
|
+
border: 1px #bababa solid;
|
271
285
|
width: 100%;
|
272
|
-
padding: 4px
|
286
|
+
padding: 4px 6px 6px 5px;
|
273
287
|
background-color: #fff;
|
274
288
|
outline: 0;
|
275
289
|
margin-right: 32px;
|
276
290
|
min-height: 32px;
|
291
|
+
//-webkit-appearance: none;
|
292
|
+
//-moz-appearance: none;
|
277
293
|
.pos-rel;
|
278
294
|
|
279
|
-
|
295
|
+
&.with-helper {
|
296
|
+
padding: 4px 32px 6px 5px;
|
297
|
+
}
|
280
298
|
&:disabled {
|
281
299
|
background-color: #eaeaea;
|
282
300
|
}
|
@@ -288,14 +306,15 @@
|
|
288
306
|
.input-control > input[type=text]::-ms-clear,
|
289
307
|
.input-control > input[type=email]::-ms-clear,
|
290
308
|
.input-control > input[type=url]::-ms-clear,
|
291
|
-
.input-control > input[type=phone]::-ms-clear
|
309
|
+
.input-control > input[type=phone]::-ms-clear,
|
310
|
+
.input-control > input[type=number]::-ms-clear,
|
311
|
+
.input-control > input[type=time]::-ms-clear {
|
292
312
|
display: none;
|
293
313
|
}
|
294
314
|
.input-control > input[type=password]::-ms-reveal {
|
295
315
|
display: none;
|
296
316
|
}
|
297
317
|
|
298
|
-
|
299
318
|
.input-control > select {
|
300
319
|
padding-right: 5px;
|
301
320
|
}
|
@@ -307,13 +326,13 @@
|
|
307
326
|
|
308
327
|
.input-control {
|
309
328
|
&.text, &.password {
|
310
|
-
input[type=text]:not(:focus)
|
329
|
+
input[type=text]:not(:focus) ~ .helper, input[type=password]:not(:focus) ~ .helper, input[type=email]:not(:focus) ~ .helper, input[type=phone]:not(:focus) ~ .helper, input[type=url]:not(:focus) ~ .helper {
|
311
330
|
display: none;
|
312
331
|
}
|
313
|
-
input[type=text]:focus
|
332
|
+
input[type=text]:focus ~ .helper, input[type=password]:focus ~ .helper, input[type=email]:focus ~ .helper, input[type=phone]:focus ~ .helper, input[type=url]:focus ~ .helper {
|
314
333
|
display: block;
|
315
334
|
}
|
316
|
-
input[type=text]:not(:focus)
|
335
|
+
input[type=text]:not(:focus) ~ .helper:active, input[type=password]:not(:focus) ~ .helper:active, input[type=email]:not(:focus) ~ .helper:active, input[type=phone]:not(:focus) ~ .helper:active, input[type=url]:not(:focus) ~ .helper:active{
|
317
336
|
display: block;
|
318
337
|
}
|
319
338
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Metro UI CSS
|
3
3
|
* Copyright 2012 Sergey Pimenov
|
4
|
-
* Licensed under the MIT
|
4
|
+
* Licensed under the MIT License
|
5
5
|
*
|
6
6
|
* Grid.less
|
7
7
|
*
|
@@ -112,4 +112,14 @@
|
|
112
112
|
}
|
113
113
|
|
114
114
|
.clearfix();
|
115
|
-
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.grid > .row::before, .grid > .row::after {
|
118
|
+
content: normal;
|
119
|
+
}
|
120
|
+
|
121
|
+
td[class*="span"], th[class*="span"] {
|
122
|
+
display: table-cell !important;
|
123
|
+
float: none !important;
|
124
|
+
padding: 0 !important;
|
125
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*
|
2
2
|
* Metro UI CSS
|
3
3
|
* Copyright 2012 Sergey Pimenov
|
4
|
-
* Licensed under the MIT
|
4
|
+
* Licensed under the MIT License
|
5
5
|
*
|
6
6
|
* ListView.less
|
7
7
|
* Version 1.0
|
@@ -21,12 +21,17 @@
|
|
21
21
|
.icon {
|
22
22
|
width: 48px;
|
23
23
|
height: 48px;
|
24
|
+
font-size: 40px;
|
24
25
|
float: left;
|
25
26
|
|
26
27
|
img {
|
27
28
|
width: 100%;
|
28
29
|
height: 100%;
|
29
30
|
}
|
31
|
+
|
32
|
+
i {
|
33
|
+
margin-top: 10px;
|
34
|
+
}
|
30
35
|
}
|
31
36
|
|
32
37
|
.data {
|
@@ -106,6 +111,32 @@
|
|
106
111
|
}
|
107
112
|
}
|
108
113
|
|
114
|
+
li div.badge {
|
115
|
+
position: absolute;
|
116
|
+
left: -4px;
|
117
|
+
top: -4px;
|
118
|
+
background-color: @blue;
|
119
|
+
padding: 5px;
|
120
|
+
margin: 0 !important;
|
121
|
+
text-align: center;
|
122
|
+
display: block;
|
123
|
+
font-size: 9pt;
|
124
|
+
color: @white;
|
125
|
+
|
126
|
+
&.strech {
|
127
|
+
padding: 0 5px;
|
128
|
+
}
|
129
|
+
|
130
|
+
&.right {
|
131
|
+
right: -4px;
|
132
|
+
left: auto;
|
133
|
+
}
|
134
|
+
|
135
|
+
&.bottom {
|
136
|
+
top: auto;
|
137
|
+
bottom: -4px;
|
138
|
+
}
|
139
|
+
}
|
109
140
|
|
110
141
|
& > li.selected {
|
111
142
|
border: 4px @blue solid;
|