metro-ui-rails 0.1.6 → 0.15.8.3
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/fonts/metro-ui/iconFont.eot +0 -0
- data/vendor/assets/fonts/metro-ui/iconFont.svg +333 -333
- data/vendor/assets/fonts/metro-ui/iconFont.ttf +0 -0
- data/vendor/assets/fonts/metro-ui/iconFont.woff +0 -0
- data/vendor/assets/javascripts/metro-ui.js +1 -0
- data/vendor/assets/javascripts/metro-ui/input-control.js +103 -0
- data/vendor/assets/javascripts/metro-ui/rating.js +238 -35
- data/vendor/toolkit/metro-ui/bricks.less +2 -0
- data/vendor/toolkit/metro-ui/buttons.less +197 -22
- data/vendor/toolkit/metro-ui/colors.less +6 -1
- data/vendor/toolkit/metro-ui/forms.less +199 -236
- data/vendor/toolkit/metro-ui/icons.less +1041 -333
- data/vendor/toolkit/metro-ui/menus.less +137 -285
- data/vendor/toolkit/metro-ui/modern-responsive-max767.less +39 -11
- data/vendor/toolkit/metro-ui/modern-responsive-max979.less +36 -10
- data/vendor/toolkit/metro-ui/modern-responsive-min1200.less +4 -4
- data/vendor/toolkit/metro-ui/modern.less +3 -1
- data/vendor/toolkit/metro-ui/routines.less +4 -0
- data/vendor/toolkit/metro-ui/tables.less +7 -1
- data/vendor/toolkit/metro-ui/typography.less +3 -3
- metadata +4 -4
- data/vendor/assets/images/metro-ui/pull24-dark.png +0 -0
- data/vendor/assets/images/metro-ui/row24.png +0 -0
@@ -14,7 +14,7 @@
|
|
14
14
|
@white: #ffffff;
|
15
15
|
@black: #000000;
|
16
16
|
@blue: #2d89ef;
|
17
|
-
@blueLight: #
|
17
|
+
@blueLight: #EFF4FF;
|
18
18
|
@blueDark: #2B5797;
|
19
19
|
@green: #00a300;
|
20
20
|
@greenLight: #99b433;
|
@@ -27,6 +27,7 @@
|
|
27
27
|
@pink: #9f00a7;
|
28
28
|
@purple: #603cba;
|
29
29
|
@darken: #1d1d1d;
|
30
|
+
@lighten: #d5e7ec;
|
30
31
|
@grayDark: #525252;
|
31
32
|
|
32
33
|
|
@@ -45,6 +46,7 @@
|
|
45
46
|
.fg-color-pinkDark {color: @pinkDark !important;}
|
46
47
|
.fg-color-purple {color: @purple !important;}
|
47
48
|
.fg-color-darken {color: @darken !important;}
|
49
|
+
.fg-color-lighten {color: @lighten !important;}
|
48
50
|
.fg-color-white {color: @white !important;}
|
49
51
|
.fg-color-grayDark {color: @grayDark !important;}
|
50
52
|
|
@@ -63,6 +65,7 @@
|
|
63
65
|
.bg-color-pinkDark {background-color: @pinkDark !important;}
|
64
66
|
.bg-color-purple {background-color: @purple !important;}
|
65
67
|
.bg-color-darken {background-color: @darken !important;}
|
68
|
+
.bg-color-lighten {background-color: @lighten !important;}
|
66
69
|
.bg-color-white {background-color: @white !important;}
|
67
70
|
.bg-color-grayDark {background-color: @grayDark !important;}
|
68
71
|
|
@@ -86,6 +89,7 @@
|
|
86
89
|
.border-color-pinkDark {border-color: @pinkDark !important;}
|
87
90
|
.border-color-purple {border-color: @purple !important;}
|
88
91
|
.border-color-darken {border-color: @darken !important;}
|
92
|
+
.border-color-lighten {border-color: @lighten !important;}
|
89
93
|
.border-color-white {border-color: @white !important;}
|
90
94
|
.border-color-grayDark {border-color: @grayDark !important;}
|
91
95
|
|
@@ -106,5 +110,6 @@
|
|
106
110
|
.outline-color-pinkDark {outline-color: @pinkDark !important;}
|
107
111
|
.outline-color-purple {outline-color: @purple !important;}
|
108
112
|
.outline-color-darken {outline-color: @darken !important;}
|
113
|
+
.outline-color-lighten {outline-color: @lighten !important;}
|
109
114
|
.outline-color-white {outline-color: @white !important;}
|
110
115
|
.outline-color-grayDark {outline-color: @grayDark !important;}
|
@@ -9,293 +9,256 @@
|
|
9
9
|
@textbox_pass_active_icon: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2Fy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ErkJggg%3D%3D);
|
11
11
|
|
12
|
-
|
13
|
-
|
14
|
-
cursor: hand;
|
15
|
-
position: relative;
|
12
|
+
// Checkboxes
|
13
|
+
.input-control {
|
16
14
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
&.checkbox {
|
16
|
+
display: inline-block;
|
17
|
+
margin-right: 10px;
|
18
|
+
margin-bottom: 10px;
|
19
|
+
cursor: pointer;
|
21
20
|
|
22
|
-
|
21
|
+
& > input[type=checkbox] {
|
22
|
+
position: absolute;
|
23
|
+
opacity: 0;
|
24
|
+
}
|
25
|
+
& > span {}
|
23
26
|
|
24
|
-
.
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
input[type=checkbox] + span::after, {
|
29
|
-
vertical-align: middle;
|
30
|
-
display: inline-block;
|
31
|
-
}
|
27
|
+
.helper {
|
28
|
+
padding-left: 23px;
|
29
|
+
position: relative;
|
30
|
+
}
|
32
31
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
32
|
+
.helper:before {
|
33
|
+
position: absolute;
|
34
|
+
display: block;
|
35
|
+
height: 20px;
|
36
|
+
width: 20px;
|
37
|
+
content: "";
|
38
|
+
text-indent: -9999px;
|
39
|
+
border: 2px #d9d9d9 solid;
|
40
|
+
z-index: 1;
|
41
|
+
opacity: 1;
|
42
|
+
top: 0;
|
43
|
+
left: 0;
|
44
|
+
}
|
37
45
|
|
38
|
-
input[type=checkbox] + span {
|
39
|
-
#font > .normal;
|
40
|
-
line-height: 19px;
|
41
|
-
}
|
42
46
|
|
43
|
-
|
44
|
-
|
45
|
-
|
47
|
+
input[type="checkbox"]:checked + .helper:after {
|
48
|
+
position: absolute;
|
49
|
+
display: block;
|
50
|
+
content: "\e08a";
|
51
|
+
font-size: 10pt;
|
52
|
+
heigth: 14px;
|
53
|
+
width: 14px;
|
54
|
+
line-height: 14px;
|
55
|
+
z-index: 2;
|
56
|
+
top: 50%;
|
57
|
+
margin-top: -6px;
|
58
|
+
left: 0;
|
59
|
+
margin-left: 4px;
|
60
|
+
font-family: iconFont;
|
61
|
+
}
|
46
62
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
text-indent: -9999px;
|
51
|
-
margin-right: 10px;
|
52
|
-
border: 2px #d9d9d9 solid;
|
53
|
-
background: #fff;
|
54
|
-
height: 21px;
|
55
|
-
width: 21px;
|
56
|
-
margin-top: -3px;
|
57
|
-
}
|
63
|
+
input[type="checkbox"]:not(:checked) + .helper:after {
|
64
|
+
display: none;
|
65
|
+
}
|
58
66
|
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
color: #1a1a1a;
|
64
|
-
z-index: 1;
|
65
|
-
font-size: 16px;
|
66
|
-
font-weight: bold;
|
67
|
-
left: 4px;
|
68
|
-
top: 0px;
|
69
|
-
}
|
67
|
+
input[type="checkbox"]:disabled + .helper:before {
|
68
|
+
cursor: default;
|
69
|
+
background: #e6e6e6;
|
70
|
+
}
|
70
71
|
|
71
|
-
|
72
|
-
|
73
|
-
|
72
|
+
input[type=checkbox]:disabled + .helper:after {
|
73
|
+
color: #8a8a8a;
|
74
|
+
}
|
74
75
|
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
76
|
+
&:hover {
|
77
|
+
input:not(:disabled) + .helper:before {
|
78
|
+
border-color: #919191;
|
79
|
+
}
|
80
|
+
}
|
79
81
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
82
|
+
&:active {
|
83
|
+
input:not(:disabled) + .helper:before {
|
84
|
+
border-color: #1e1e1e;
|
85
|
+
}
|
86
|
+
}
|
84
87
|
|
85
|
-
input[type=checkbox]:disabled + span::after {
|
86
|
-
color: #8a8a8a;
|
87
88
|
}
|
88
89
|
|
89
|
-
|
90
|
-
|
91
|
-
|
90
|
+
&.intermediate {
|
91
|
+
input[type="checkbox"] + .helper:after {
|
92
|
+
position: absolute !important;
|
93
|
+
display: block !important;
|
94
|
+
content: "" !important;
|
95
|
+
color: #1a1a1a !important;
|
96
|
+
z-index: 2 !important;
|
97
|
+
font-size: 16px !important;
|
98
|
+
font-weight: bold !important;
|
99
|
+
left: 5px !important;
|
100
|
+
margin-left: 0 !important;
|
101
|
+
top: 50% !important;
|
102
|
+
margin-top: -5px !important;
|
103
|
+
background-color: #1a1a1a !important;
|
104
|
+
width: 10px !important;
|
105
|
+
height: 10px !important;
|
106
|
+
}
|
107
|
+
input[type="checkbox"]:disabled + .helper:after {
|
108
|
+
background-color: lighten(#1a1a1a, 50%) !important;
|
109
|
+
}
|
92
110
|
}
|
111
|
+
}
|
93
112
|
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
113
|
+
// Radio
|
114
|
+
.input-control {
|
115
|
+
&.radio {
|
116
|
+
display: inline-block;
|
117
|
+
margin-right: 10px;
|
118
|
+
margin-bottom: 10px;
|
119
|
+
cursor: pointer;
|
98
120
|
|
99
|
-
|
100
|
-
|
101
|
-
|
121
|
+
& > input[type=radio] {
|
122
|
+
position: absolute;
|
123
|
+
opacity: 0;
|
124
|
+
}
|
125
|
+
& > span {}
|
102
126
|
|
103
|
-
|
104
|
-
|
105
|
-
|
127
|
+
.helper {
|
128
|
+
padding-left: 23px;
|
129
|
+
position: relative;
|
130
|
+
}
|
106
131
|
|
107
|
-
|
108
|
-
/* Checkbox marker */
|
109
|
-
input[type=checkbox] + span::after {
|
132
|
+
.helper:before {
|
110
133
|
position: absolute;
|
134
|
+
display: block;
|
135
|
+
height: 20px;
|
136
|
+
width: 20px;
|
111
137
|
content: "";
|
112
|
-
|
138
|
+
text-indent: -9999px;
|
139
|
+
border: 2px #d9d9d9 solid;
|
113
140
|
z-index: 1;
|
141
|
+
opacity: 1;
|
142
|
+
top: 0;
|
143
|
+
left: 0;
|
144
|
+
border-radius: 100%;
|
145
|
+
}
|
146
|
+
|
147
|
+
input[type="radio"]:checked + .helper:after {
|
148
|
+
position: absolute;
|
149
|
+
display: block;
|
150
|
+
content: "";
|
151
|
+
color: #1a1a1a;
|
152
|
+
z-index: 2;
|
114
153
|
font-size: 16px;
|
115
154
|
font-weight: bold;
|
116
155
|
left: 5px;
|
117
|
-
|
156
|
+
margin-left: 0;
|
157
|
+
top: 50%;
|
158
|
+
margin-top: -5px;
|
118
159
|
background-color: #1a1a1a;
|
119
160
|
width: 10px;
|
120
161
|
height: 10px;
|
162
|
+
border-radius: 100%;
|
121
163
|
}
|
122
|
-
}
|
123
|
-
}
|
124
|
-
|
125
|
-
.radiobox {
|
126
|
-
input[type=radio],
|
127
|
-
input[type=radio] + span,
|
128
|
-
input[type=radio] + span::before,
|
129
|
-
input[type=radio] + span::after, {
|
130
|
-
vertical-align: middle;
|
131
|
-
display: inline-block;
|
132
|
-
}
|
133
164
|
|
165
|
+
input[type="radio"]:disabled + .helper:before {
|
166
|
+
cursor: default;
|
167
|
+
background: #e6e6e6;
|
168
|
+
}
|
134
169
|
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
//opacity: 0;
|
139
|
-
}
|
140
|
-
|
141
|
-
input[type=radio] + span {
|
142
|
-
#font > .normal;
|
143
|
-
}
|
144
|
-
|
145
|
-
input[type=radio]:focus + span {
|
146
|
-
//outline: 1px #ccc dotted;
|
147
|
-
}
|
148
|
-
|
149
|
-
&:hover input[type=radio] + span::before {
|
150
|
-
background: #fff;
|
151
|
-
border: 2px #919191 solid;
|
152
|
-
}
|
153
|
-
|
154
|
-
&:hover input[type=radio]:disabled + span::before {
|
155
|
-
border: 2px #d9d9d9 solid;
|
156
|
-
}
|
157
|
-
|
158
|
-
&:active input[type=radio]:checked:not(:disabled) + span::after {
|
159
|
-
color: #fff;
|
160
|
-
}
|
161
|
-
|
162
|
-
/* Radio border*/
|
163
|
-
input[type=radio] + span::before {
|
164
|
-
content: "\2022";
|
165
|
-
text-indent: -9999px;
|
166
|
-
width: 24px;
|
167
|
-
height: 24px;
|
168
|
-
margin-right: 10px;
|
169
|
-
border-radius: 50%;
|
170
|
-
|
171
|
-
border: 2px #cfcfcf solid;
|
172
|
-
background: #fff;
|
173
|
-
margin-top: -3px;
|
174
|
-
}
|
175
|
-
|
176
|
-
/* Radio Marker*/
|
177
|
-
input[type=radio]:checked + span::after {
|
178
|
-
text-indent: -9999px;
|
179
|
-
position: absolute;
|
180
|
-
content: "\2022";
|
181
|
-
background: #212121;
|
182
|
-
z-index: 1000;
|
183
|
-
width: 12px;
|
184
|
-
height: 12px;
|
185
|
-
border-radius: 50%;
|
186
|
-
left: 6px;
|
187
|
-
top: 5px;
|
188
|
-
}
|
189
|
-
input[type=radio]:checked + span::before {
|
190
|
-
background: #fff;
|
191
|
-
}
|
192
|
-
|
193
|
-
input[type=radio]:not(:checked):disabled + span::before {
|
194
|
-
cursor: default;
|
195
|
-
background: #e6e6e6;
|
196
|
-
}
|
197
|
-
|
198
|
-
input[type=radio]:disabled + span::before {
|
199
|
-
cursor: default;
|
200
|
-
background: #ebebeb;
|
201
|
-
}
|
170
|
+
input[type="radio"]:disabled + .helper:after {
|
171
|
+
background-color: #8a8a8a;
|
172
|
+
}
|
202
173
|
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
174
|
+
&:hover {
|
175
|
+
input:not(:disabled) + .helper:before {
|
176
|
+
border-color: #919191;
|
177
|
+
}
|
178
|
+
}
|
207
179
|
|
208
|
-
|
209
|
-
|
210
|
-
|
180
|
+
&:active {
|
181
|
+
input:not(:disabled) + .helper:before {
|
182
|
+
border-color: #1e1e1e;
|
183
|
+
}
|
184
|
+
}
|
211
185
|
}
|
212
186
|
}
|
213
187
|
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
input[type=checkbox] + span::before,
|
218
|
-
input[type=checkbox] + span::after, {
|
219
|
-
vertical-align: middle;
|
188
|
+
// Switch
|
189
|
+
.input-control {
|
190
|
+
&.switch {
|
220
191
|
display: inline-block;
|
221
|
-
|
222
|
-
|
223
|
-
input[type=checkbox] {
|
224
|
-
position: absolute;
|
225
|
-
display: none;
|
226
|
-
//opacity: 0;
|
227
|
-
}
|
228
|
-
|
229
|
-
input[type=checkbox] + span {
|
230
|
-
#font > .normal;
|
231
|
-
}
|
232
|
-
|
233
|
-
input[type=checkbox]:focus + span {
|
234
|
-
//outline: 1px #ccc dotted;
|
235
|
-
}
|
236
|
-
|
237
|
-
input[type=checkbox] + span::before {
|
238
|
-
content: "";
|
239
|
-
width: 43px;
|
240
|
-
height: 16px;
|
241
|
-
outline: 2px #a6a6a6 solid;
|
242
|
-
border: 1px #fff solid;
|
192
|
+
margin-right: 10px;
|
193
|
+
margin-bottom: 10px;
|
243
194
|
cursor: pointer;
|
244
|
-
background: #6c6c6c;
|
245
|
-
margin-left: 2px;
|
246
195
|
position: relative;
|
247
|
-
margin-right: 10px;
|
248
|
-
z-index: 100;
|
249
|
-
}
|
250
196
|
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
left: 34px;
|
256
|
-
width: 13px;
|
257
|
-
height: 20px;
|
258
|
-
background: #333;
|
259
|
-
z-index: 1000;
|
260
|
-
}
|
197
|
+
& > input[type=checkbox] {
|
198
|
+
position: absolute;
|
199
|
+
opacity: 0;
|
200
|
+
}
|
261
201
|
|
262
|
-
|
263
|
-
|
264
|
-
|
202
|
+
.helper {
|
203
|
+
padding-left: 52px;
|
204
|
+
position: relative;
|
205
|
+
}
|
265
206
|
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
207
|
+
.helper:before {
|
208
|
+
position: absolute;
|
209
|
+
left: 0;
|
210
|
+
top: 2px;
|
211
|
+
display: block;
|
212
|
+
content: "";
|
213
|
+
width: 43px;
|
214
|
+
height: 16px;
|
215
|
+
outline: 2px #a6a6a6 solid;
|
216
|
+
border: 1px #fff solid;
|
217
|
+
cursor: pointer;
|
218
|
+
background: #008287;
|
219
|
+
margin-left: 2px;
|
220
|
+
z-index: 1;
|
221
|
+
}
|
270
222
|
|
271
|
-
|
272
|
-
|
273
|
-
|
223
|
+
input[type="checkbox"] + .helper:after {
|
224
|
+
position: absolute;
|
225
|
+
left: 36px;
|
226
|
+
top: 2px;
|
227
|
+
display: block;
|
228
|
+
content: "";
|
229
|
+
width: 9px;
|
230
|
+
height: 16px;
|
231
|
+
outline: 2px #333 solid;
|
232
|
+
border: 1px #333 solid;
|
233
|
+
cursor: pointer;
|
234
|
+
background: #333;
|
235
|
+
z-index: 2;
|
236
|
+
}
|
274
237
|
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
outline: 2px #ccc solid;
|
279
|
-
}
|
238
|
+
input[type="checkbox"]:not(:checked) + .helper:after {
|
239
|
+
left: 2px !important;
|
240
|
+
}
|
280
241
|
|
281
|
-
|
282
|
-
|
283
|
-
|
242
|
+
input[type="checkbox"]:not(:checked) + .helper:before {
|
243
|
+
background: #a6a6a6 !important;
|
244
|
+
}
|
284
245
|
|
285
|
-
|
286
|
-
|
287
|
-
|
246
|
+
input[type="checkbox"]:disabled + .helper:after {
|
247
|
+
background: #a6a6a6 !important;
|
248
|
+
outline: 2px #a6a6a6 solid !important;
|
249
|
+
border: 1px #a6a6a6 solid !important;
|
250
|
+
}
|
288
251
|
|
289
|
-
|
290
|
-
|
291
|
-
|
252
|
+
input[type="checkbox"]:disabled + .helper:before {
|
253
|
+
cursor: default !important;
|
254
|
+
background: #e0e0e0 !important;
|
255
|
+
outline: 2px #ccc solid !important;
|
256
|
+
}
|
292
257
|
|
293
|
-
&:hover input[type=checkbox]:disabled + span::before {
|
294
|
-
cursor: default;
|
295
|
-
background: #e0e0e0;
|
296
258
|
}
|
297
259
|
}
|
298
260
|
|
261
|
+
//Input text, password, ...
|
299
262
|
|
300
263
|
.input-control > input[type=text], .input-control > input[type=email], .input-control > input[type=url], .input-control > input[type=phone], .input-control > input[type=password], .input-control > select, .input-control > textarea {
|
301
264
|
border: 2px #bababa solid;
|