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.
@@ -38,6 +38,7 @@
38
38
  height: 150px;
39
39
  }
40
40
 
41
+ /*
41
42
  .badge {
42
43
  .brick;
43
44
  width: @subunit*7;
@@ -47,6 +48,7 @@
47
48
  color: @darken;
48
49
  text-align: center;
49
50
  }
51
+ */
50
52
 
51
53
  .square {
52
54
  display: block;
@@ -56,6 +56,7 @@ button, .button {
56
56
  vertical-align: middle;
57
57
  cursor: pointer;
58
58
  padding: 4px 10px;
59
+ position: relative;
59
60
 
60
61
  &.standart {
61
62
  min-width: 90px;
@@ -63,8 +64,8 @@ button, .button {
63
64
  }
64
65
 
65
66
  &:active, &.default:active {
66
- background-color: #000 !important;
67
- color: #fff;
67
+ top: 1px;
68
+ left: 1px;
68
69
  }
69
70
 
70
71
  &:disabled, &.disabled {
@@ -82,10 +83,12 @@ button, .button {
82
83
  outline: 0;
83
84
  border: 1px #353535 dotted;
84
85
  }
86
+ }
85
87
 
86
- &:hover {
88
+ a.button {
89
+ &:hover, &:active {
90
+ color: inherit;
87
91
  }
88
-
89
92
  }
90
93
 
91
94
  button, .button, .tool-button {
@@ -95,28 +98,15 @@ button, .button, .tool-button {
95
98
  min-width: 24px;
96
99
  height: 26px;
97
100
  font-size: .8em;
98
-
99
- [class*=icon-] {
100
-
101
- }
102
101
  }
103
102
  &.big {
104
103
  min-height: 48px;
105
104
  height: 48px;
106
105
  font-size: 1.2em;
107
-
108
- [class*=icon-] {
109
- margin-top: 6px;
110
- zoom: 1;
111
- }
112
106
  }
113
107
  }
114
108
 
115
109
  .tool-button {
116
- [class*=icon-] {
117
- margin-top: 2px !important;
118
- }
119
-
120
110
  &.mini {
121
111
  min-width: 22px;
122
112
  width: 22px;
@@ -125,11 +115,6 @@ button, .button, .tool-button {
125
115
  &.big {
126
116
  min-width: 48px;
127
117
  width: 48px;
128
-
129
- [class*=icon-] {
130
- margin-top: 2px !important;
131
- margin-left: 15px !important;
132
- }
133
118
  }
134
119
  }
135
120
 
@@ -248,3 +233,193 @@ button, .button, .tool-button {
248
233
  }
249
234
  }
250
235
 
236
+ .shortcuts {
237
+ margin-bottom: 10px;
238
+ }
239
+
240
+ .shortcut {
241
+ width: 92px;
242
+ height: 92px;
243
+ display: inline-block;
244
+ //padding: 18px 0;
245
+ margin: 0 10px 10px 0;
246
+ vertical-align: top;
247
+ text-decoration: none;
248
+ background: #F3F3F3;
249
+ text-align: center;
250
+ cursor: pointer;
251
+ border: 0;
252
+ border-bottom: 2px transparent solid;
253
+ position: relative;
254
+
255
+ &:hover {
256
+ border-color: red;
257
+ //box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
258
+ }
259
+ &:active {
260
+ //box-shadow: none;
261
+ background: #F3F3F3;
262
+ top: 1px;
263
+ left: 1px;
264
+ }
265
+
266
+ &:last-child {
267
+
268
+ }
269
+
270
+ & > .icon {
271
+ margin-top: .25em;
272
+ margin-bottom: .25em;
273
+ font-size: 32px;
274
+ color: #888;
275
+ }
276
+ & > .label {
277
+ display: block;
278
+ font-weight: 400;
279
+ color: #666;
280
+ }
281
+
282
+ & > .badge {
283
+ position: absolute;
284
+ right: 0;
285
+ top: 0;
286
+ background-color: @blue;
287
+ padding: 5px;
288
+ margin: 0 !important;
289
+ text-align: center;
290
+ display: block;
291
+ font-size: 9pt;
292
+ color: #fff;
293
+ }
294
+ }
295
+
296
+ a.shortcut {
297
+ padding: 30px 0;
298
+ .label {
299
+ font-size: 9pt;
300
+ }
301
+ }
302
+
303
+ .pagination {
304
+ width: auto;
305
+ //padding: 10px 10px 5px;
306
+ margin-bottom: 10px;
307
+
308
+ & > ul {
309
+ .unstyled;
310
+ margin: 0;
311
+
312
+ li {
313
+ display: inline-block;
314
+ margin-right: 1px;
315
+ position: relative;
316
+
317
+ a {
318
+ .tool-button;
319
+ position: relative;
320
+ display: block;
321
+ float: left;
322
+ font-size: 10pt;
323
+ padding: 5px;
324
+ min-width: 32px;
325
+ height: 32px;
326
+ text-align: center;
327
+ //background-color: #fff;
328
+ vertical-align: middle;
329
+ cursor: pointer;
330
+ //border: 1px @blue solid;
331
+ margin-right: 1px;
332
+
333
+ &:hover {
334
+ background-color: @darken;
335
+ color: @white;
336
+ }
337
+
338
+ &:active {
339
+ top: 1px;
340
+ left: 1px;
341
+ //background-color: @blueDark;
342
+ }
343
+ }
344
+
345
+ &.first, &.prev, &.next, &.last {
346
+ a {
347
+ font-size: 20pt;
348
+
349
+ &:before {
350
+ position: absolute;
351
+ left: 50%;
352
+ top: 0;
353
+ margin-left: -7px;
354
+ content: "\25C4";
355
+ font-size: 1.5em;
356
+ }
357
+ }
358
+ }
359
+
360
+ &.first {
361
+ a {
362
+ &:before {
363
+ content: "\AB";
364
+ margin-left: -10px;
365
+ }
366
+ }
367
+ }
368
+ &.prev {
369
+ a {
370
+ &:before {
371
+ content: "\2039";
372
+ }
373
+ }
374
+ }
375
+ &.next {
376
+ a {
377
+ &:before {
378
+ content: "\203A";
379
+ }
380
+ }
381
+ }
382
+ &.last {
383
+ a {
384
+ &:before {
385
+ content: "\BB";
386
+ margin-left: -10px;
387
+ }
388
+ }
389
+ }
390
+
391
+ &.active {
392
+ a {
393
+ background-color: #008287 ;
394
+ color: @white;
395
+ }
396
+ }
397
+ &.disabled, &.spaces {
398
+ a {
399
+ background-color: darken(@white, 5%);
400
+ color: #1e1e1e;
401
+ cursor: not-allowed;
402
+
403
+ &:active {
404
+ top: 0;
405
+ left: 0;
406
+ }
407
+ }
408
+ }
409
+ &.disabled {
410
+ a {
411
+ //border-color: @lighten;
412
+ color: #1e1e1e;
413
+ }
414
+ }
415
+
416
+
417
+ &.spaces {
418
+ a {
419
+ background-color: @white;
420
+ cursor: default;
421
+ }
422
+ }
423
+ }
424
+ }
425
+ }
@@ -14,7 +14,7 @@
14
14
  @white: #ffffff;
15
15
  @black: #000000;
16
16
  @blue: #2d89ef;
17
- @blueLight: #44a3aa;
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,iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MO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ointer;
14
- cursor: hand;
15
- position: relative;
12
+ // Checkboxes
13
+ .input-control {
16
14
 
17
- & > span {
18
- position: relative;
19
- //padding-top: 5px;
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
- .checkbox {
25
- input[type=checkbox],
26
- input[type=checkbox] + span,
27
- input[type=checkbox] + span::before,
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
- input[type=checkbox] {
34
- position: absolute;
35
- opacity: 0;
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
- input[type=checkbox]:focus + span {
44
- //outline: 1px #ccc dotted;
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
- /* Checkbox border */
48
- input[type=checkbox] + span::before {
49
- content: "\2714";
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
- /* Checkbox marker */
60
- input[type=checkbox]:checked + span::after {
61
- position: absolute;
62
- content: "\2713";
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
- input[type=checkbox]:checked + span::before {
72
- background: #fff;
73
- }
72
+ input[type=checkbox]:disabled + .helper:after {
73
+ color: #8a8a8a;
74
+ }
74
75
 
75
- input[type=checkbox]:not(:checked):disabled + span::before {
76
- cursor: default;
77
- background: #e6e6e6;
78
- }
76
+ &:hover {
77
+ input:not(:disabled) + .helper:before {
78
+ border-color: #919191;
79
+ }
80
+ }
79
81
 
80
- input[type=checkbox]:disabled + span::before {
81
- cursor: default;
82
- background: #ebebeb;
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
- &:hover input[type=checkbox]:disabled + span::before {
90
- cursor: default;
91
- background: #e6e6e6;
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
- &:hover input[type=checkbox] + span::before {
95
- background: #fff;
96
- border: 2px #919191 solid;
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
- &:hover input[type=checkbox]:disabled + span::before {
100
- border: 2px #d9d9d9 solid;
101
- }
121
+ & > input[type=radio] {
122
+ position: absolute;
123
+ opacity: 0;
124
+ }
125
+ & > span {}
102
126
 
103
- &:active input[type=checkbox]:checked:not(:disabled) + span::after {
104
- color: #fff;
105
- }
127
+ .helper {
128
+ padding-left: 23px;
129
+ position: relative;
130
+ }
106
131
 
107
- &.intermediate {
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
- color: #1a1a1a;
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
- top: 5px;
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
- input[type=radio] {
136
- position: absolute;
137
- display: none;
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
- input[type=radio]:disabled + span::after {
204
- color: #8a8a8a;
205
- background-color: #8a8a8a;
206
- }
174
+ &:hover {
175
+ input:not(:disabled) + .helper:before {
176
+ border-color: #919191;
177
+ }
178
+ }
207
179
 
208
- &:hover input[type=radio]:disabled + span::before {
209
- cursor: default;
210
- background: #e6e6e6;
180
+ &:active {
181
+ input:not(:disabled) + .helper:before {
182
+ border-color: #1e1e1e;
183
+ }
184
+ }
211
185
  }
212
186
  }
213
187
 
214
- .switch {
215
- input[type=checkbox],
216
- input[type=checkbox] + span,
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
- input[type=checkbox] + span::after {
252
- content: "";
253
- position: absolute;
254
- top: 2px;
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
- input[type=checkbox]:checked + span::before {
263
- background: #008287;
264
- }
202
+ .helper {
203
+ padding-left: 52px;
204
+ position: relative;
205
+ }
265
206
 
266
- input[type=checkbox]:not(:checked) + span::after {
267
- top: 2px;
268
- left: 0px;
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
- input[type=checkbox]:not(:checked) + span::before {
272
- background: #a6a6a6;
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
- input[type=checkbox]:disabled + span::before {
276
- cursor: default;
277
- background: #e0e0e0;
278
- outline: 2px #ccc solid;
279
- }
238
+ input[type="checkbox"]:not(:checked) + .helper:after {
239
+ left: 2px !important;
240
+ }
280
241
 
281
- input[type=checkbox]:disabled + span::after {
282
- background: #a6a6a6;
283
- }
242
+ input[type="checkbox"]:not(:checked) + .helper:before {
243
+ background: #a6a6a6 !important;
244
+ }
284
245
 
285
- &:hover input[type=checkbox]:not(:checked) + span::before {
286
- background: #a6a6a6;
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
- &:hover input[type=checkbox] + span::before {
290
- background: #219297;
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;