active_administration 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +2 -1
  4. data/active_administration.gemspec +2 -1
  5. data/app/assets/javascripts/active_administration/README.md +0 -0
  6. data/app/assets/javascripts/active_administration/metro-accordion.js +70 -0
  7. data/app/assets/javascripts/active_administration/metro-button-set.js +88 -0
  8. data/app/assets/javascripts/active_administration/metro-calendar.js +437 -0
  9. data/app/assets/javascripts/active_administration/metro-carousel.js +304 -0
  10. data/app/assets/javascripts/active_administration/metro-core.js +39 -0
  11. data/app/assets/javascripts/active_administration/metro-countdown.js +200 -0
  12. data/app/assets/javascripts/active_administration/metro-date-format.js +137 -0
  13. data/app/assets/javascripts/active_administration/metro-datepicker.js +138 -0
  14. data/app/assets/javascripts/active_administration/metro-dialog.js +221 -0
  15. data/app/assets/javascripts/active_administration/metro-drag-tile.js +46 -0
  16. data/app/assets/javascripts/active_administration/metro-dropdown.js +112 -0
  17. data/app/assets/javascripts/active_administration/metro-fluentmenu.js +57 -0
  18. data/app/assets/javascripts/active_administration/metro-global.js +4 -0
  19. data/app/assets/javascripts/active_administration/metro-hint.js +104 -0
  20. data/app/assets/javascripts/active_administration/metro-initiator.js +271 -0
  21. data/app/assets/javascripts/active_administration/metro-input-control.js +318 -0
  22. data/app/assets/javascripts/active_administration/metro-listview.js +53 -0
  23. data/app/assets/javascripts/active_administration/metro-live-tile.js +162 -0
  24. data/app/assets/javascripts/active_administration/metro-loader.js +46 -0
  25. data/app/assets/javascripts/active_administration/metro-locale.js +132 -0
  26. data/app/assets/javascripts/active_administration/metro-notify.js +120 -0
  27. data/app/assets/javascripts/active_administration/metro-panel.js +41 -0
  28. data/app/assets/javascripts/active_administration/metro-plugin-template.js +21 -0
  29. data/app/assets/javascripts/active_administration/metro-progressbar.js +97 -0
  30. data/app/assets/javascripts/active_administration/metro-pull.js +38 -0
  31. data/app/assets/javascripts/active_administration/metro-rating.js +99 -0
  32. data/app/assets/javascripts/active_administration/metro-scroll.js +756 -0
  33. data/app/assets/javascripts/active_administration/metro-slider.js +304 -0
  34. data/app/assets/javascripts/active_administration/metro-stepper.js +105 -0
  35. data/app/assets/javascripts/active_administration/metro-streamer.js +214 -0
  36. data/app/assets/javascripts/active_administration/metro-tab-control.js +96 -0
  37. data/app/assets/javascripts/active_administration/metro-table.js +74 -0
  38. data/app/assets/javascripts/active_administration/metro-tile-transform.js +65 -0
  39. data/app/assets/javascripts/active_administration/metro-times.js +190 -0
  40. data/app/assets/javascripts/active_administration/metro-touch-handler.js +65 -0
  41. data/app/assets/javascripts/active_administration/metro-treeview.js +64 -0
  42. data/app/assets/javascripts/active_administration/metro-wizard.js +148 -0
  43. data/app/assets/stylesheets/active_administration/accordion.less +64 -0
  44. data/app/assets/stylesheets/active_administration/balloon.less +88 -0
  45. data/app/assets/stylesheets/active_administration/breadcrumbs.less +118 -0
  46. data/app/assets/stylesheets/active_administration/buttons.less +383 -0
  47. data/app/assets/stylesheets/active_administration/calendar.less +123 -0
  48. data/app/assets/stylesheets/active_administration/carousel.less +118 -0
  49. data/app/assets/stylesheets/active_administration/colors.less +589 -0
  50. data/app/assets/stylesheets/active_administration/countdown.less +57 -0
  51. data/app/assets/stylesheets/active_administration/dataTables.less +134 -0
  52. data/app/assets/stylesheets/active_administration/fluent-menu.less +231 -0
  53. data/app/assets/stylesheets/active_administration/forms.less +414 -0
  54. data/app/assets/stylesheets/active_administration/funcs.less +178 -0
  55. data/app/assets/stylesheets/active_administration/grid.less +91 -0
  56. data/app/assets/stylesheets/active_administration/hint.less +120 -0
  57. data/app/assets/stylesheets/active_administration/iconFont-content.less +1353 -0
  58. data/app/assets/stylesheets/active_administration/iconFont.less +47 -0
  59. data/app/assets/stylesheets/active_administration/icons.less +10 -0
  60. data/app/assets/stylesheets/active_administration/images.less +75 -0
  61. data/app/assets/stylesheets/active_administration/layout.less +137 -0
  62. data/app/assets/stylesheets/active_administration/lists.less +258 -0
  63. data/app/assets/stylesheets/active_administration/menus.less +469 -0
  64. data/app/assets/stylesheets/active_administration/metro-bootstrap-responsive.less +300 -0
  65. data/app/assets/stylesheets/active_administration/metro-bootstrap.less +68 -0
  66. data/app/assets/stylesheets/active_administration/misc.less +72 -0
  67. data/app/assets/stylesheets/active_administration/navigation-bar.less +317 -0
  68. data/app/assets/stylesheets/active_administration/notice.less +52 -0
  69. data/app/assets/stylesheets/active_administration/notify.less +43 -0
  70. data/app/assets/stylesheets/active_administration/pagination.less +83 -0
  71. data/app/assets/stylesheets/active_administration/panels.less +38 -0
  72. data/app/assets/stylesheets/active_administration/progress-bar.less +25 -0
  73. data/app/assets/stylesheets/active_administration/rating.less +103 -0
  74. data/app/assets/stylesheets/active_administration/reset.less +219 -0
  75. data/app/assets/stylesheets/active_administration/scroll.less +141 -0
  76. data/app/assets/stylesheets/active_administration/sidebar.less +158 -0
  77. data/app/assets/stylesheets/active_administration/slider.less +106 -0
  78. data/app/assets/stylesheets/active_administration/stepper.less +80 -0
  79. data/app/assets/stylesheets/active_administration/streamer.less +250 -0
  80. data/app/assets/stylesheets/active_administration/tab-control.less +79 -0
  81. data/app/assets/stylesheets/active_administration/tables.less +170 -0
  82. data/app/assets/stylesheets/active_administration/tiles.less +599 -0
  83. data/app/assets/stylesheets/active_administration/transform.less +23 -0
  84. data/app/assets/stylesheets/active_administration/treeview.less +96 -0
  85. data/app/assets/stylesheets/active_administration/typography.less +382 -0
  86. data/app/assets/stylesheets/active_administration/utils.less +180 -0
  87. data/app/assets/stylesheets/active_administration/variables.less +250 -0
  88. data/app/assets/stylesheets/active_administration/window.less +225 -0
  89. data/app/assets/stylesheets/active_administration/wizard.less +53 -0
  90. data/lib/active_admin/version.rb +1 -1
  91. metadata +103 -10
@@ -0,0 +1,599 @@
1
+ #tile {
2
+ .small-size {
3
+ .square(@tileSizeSmall);
4
+ margin: 0 (@tileMargin / 2) (@tileMargin / 2) 0;
5
+ }
6
+ .meduim-size {
7
+ .square(@tileSizeMeduim);
8
+ margin: 0 @tileMargin @tileMargin 0;
9
+ }
10
+ .large-size {
11
+ .square(@tileSizeLarge);
12
+ margin: 0 (@tileMargin * 1.5) (@tileMargin * 1.5) 0;
13
+ }
14
+ }
15
+
16
+ .tile-area {
17
+ position: relative;
18
+ padding: 120px 80px 0 80px;
19
+ overflow: hidden;
20
+ }
21
+
22
+ .tile-area {
23
+ .tile-area-title {
24
+ position: fixed;
25
+ top: 20px;
26
+ left: 80px;
27
+ }
28
+
29
+ .user-id {
30
+ position: fixed;
31
+ right: 40px;
32
+ top: 40px;
33
+ display: inline-block;
34
+ padding: 8px;
35
+ background-color: transparent;
36
+ width: auto;
37
+ //min-width: 162px;
38
+ color: @white;
39
+ cursor: default;
40
+
41
+ .user-id-image {
42
+ width: 40px;
43
+ height: 40px;
44
+ float: right;
45
+ margin-left: 10px;
46
+ color: inherit;
47
+ background-color: #464646;
48
+ text-align: center;
49
+ vertical-align: middle;
50
+
51
+ img, [class*="icon-"] {
52
+ color: inherit;
53
+ font-size: 16pt;
54
+ line-height: 16pt;
55
+ width: 100%;
56
+ height: 100%;
57
+ text-align: center;
58
+ vertical-align: middle;
59
+ }
60
+
61
+ [class*="icon-"] {
62
+ padding: 10px;
63
+ }
64
+ }
65
+
66
+ .user-id-name {
67
+ float: right;
68
+ text-align: right;
69
+ margin: 0;
70
+ padding: 0;
71
+
72
+ .first-name, .last-name {
73
+ display: block;
74
+ color: inherit;
75
+ #font > .segoe-light;
76
+ line-height: 12pt;
77
+ }
78
+ .first-name {
79
+ font-size: 20pt;
80
+ line-height: 20pt;
81
+ }
82
+ .last-name {
83
+ font-size: 12pt;
84
+ }
85
+ }
86
+
87
+ &:hover {
88
+ background-color: #404040;
89
+ }
90
+ }
91
+ }
92
+
93
+ .tile-area (@background) {
94
+ min-width: 100%;
95
+ height: 100%;
96
+ background-color: @background !important;
97
+
98
+ .tile {
99
+ outline-color: lighten(@background, 10%) !important;
100
+ }
101
+ .clearfix;
102
+ }
103
+
104
+ .tile-area-dark {.tile-area(@dark)}
105
+ .tile-area-darkBrown {.tile-area(@darkBrown)}
106
+ .tile-area-darkCrimson {.tile-area(@darkCrimson)}
107
+ .tile-area-darkViolet {.tile-area(@darkViolet)}
108
+ .tile-area-darkMagenta {.tile-area(@darkMagenta)}
109
+ .tile-area-darkCyan {.tile-area(@darkCyan)}
110
+ .tile-area-darkCobalt {.tile-area(@darkCobalt)}
111
+ .tile-area-darkTeal {.tile-area(@darkTeal)}
112
+ .tile-area-darkEmerald {.tile-area(@darkEmerald)}
113
+ .tile-area-darkGreen {.tile-area(@darkGreen)}
114
+ .tile-area-darkOrange {.tile-area(@darkOrange)}
115
+ .tile-area-darkRed {.tile-area(@darkRed)}
116
+ .tile-area-darkPink {.tile-area(@darkPink)}
117
+ .tile-area-darkIndigo {.tile-area(@darkIndigo)}
118
+ .tile-area-darkBlue {.tile-area(@darkBlue)}
119
+ .tile-area-lightBlue {.tile-area(@lightBlue)}
120
+ .tile-area-lightTeal {.tile-area(@lightTeal)}
121
+ .tile-area-lightOlive {.tile-area(@lightOlive)}
122
+ .tile-area-lightOrange {.tile-area(@lightOrange)}
123
+ .tile-area-lightPink {.tile-area(@lightPink)}
124
+ .tile-area-grayed {.tile-area(@grayed)}
125
+
126
+ .tile-group {
127
+ margin-right: @tileGroupMargin;
128
+ min-width: @tileGroupSize;
129
+ width: auto;
130
+ float: left;
131
+ display: block;
132
+ padding-top: 40px;
133
+ position: relative;
134
+
135
+ &.one {
136
+ width: @tileGroupSize;
137
+ }
138
+
139
+ &.two, &.double {
140
+ width: @tileGroupDoubleSize;
141
+ }
142
+ &.three, &.triple {
143
+ width: @tileGroupTripleSize;
144
+ }
145
+ &.four, &.quadro {
146
+ width: @tileGroupQuadroSize;
147
+ }
148
+ &.five {
149
+ width: @tileGroupDoubleSize + @tileGroupTripleSize;
150
+ }
151
+ &.six {
152
+ width: @tileGroupTripleSize * 2;
153
+ }
154
+ &.seven {
155
+ width: @tileGroupTripleSize * 2 + @tileGroupSize;
156
+ }
157
+
158
+ &:first-child {
159
+ margin-left: 80px;
160
+ }
161
+ }
162
+
163
+ .tile-group {
164
+ color: @white;
165
+ .tile-group-title {
166
+ #font > .segoe-light;
167
+ font-size: 18px;
168
+ line-height: 20px;
169
+ position: absolute;
170
+ top: 10px;
171
+ left: 0;
172
+ color: inherit;
173
+ }
174
+ }
175
+
176
+ .tile {
177
+ position: relative;
178
+ overflow: hidden;
179
+ display: block;
180
+ float: left;
181
+ margin: 0 @tileMargin @tileMargin 0;
182
+ padding: 0;
183
+ cursor: pointer;
184
+ background-color: @grayLighter;
185
+ box-shadow: inset 0px 0px 1px #FFFFCC;
186
+
187
+ &:hover {
188
+ outline: @grayLight solid @tileOutlineSize;
189
+ }
190
+ &:active {
191
+ outline: 0;
192
+ }
193
+
194
+ &.no-outline {
195
+ outline-color: transparent;
196
+ }
197
+
198
+ }
199
+
200
+ .tile {
201
+ #tile > .meduim-size;
202
+
203
+ &.half {
204
+ width: @tileHalfSize;
205
+ height: @tileHalfSize;
206
+ }
207
+ &.double {
208
+ width: @tileDoubleSize;
209
+ }
210
+ &.double-vertical {
211
+ height: @tileDoubleSize;
212
+ }
213
+ &.triple {
214
+ width: @tileTripleSize;
215
+ }
216
+ &.triple-vertical {
217
+ height: @tileTripleSize;
218
+ }
219
+ &.quadro {
220
+ width: @tileQuadroSize;
221
+ }
222
+ &.quadro-vertical {
223
+ height: @tileQuadroSize;
224
+ }
225
+ }
226
+
227
+ .tile {
228
+ &.selected {
229
+ #element > .selected;
230
+ }
231
+ }
232
+
233
+ // Tile Content
234
+ .tile {
235
+ .tile-content {
236
+ width: 100%;
237
+ height: 100%;
238
+ padding: 0;
239
+ margin: 0;
240
+ display: block;
241
+ position: absolute;
242
+ left: 0;
243
+ top: 0;
244
+ overflow: hidden;
245
+
246
+ &.padded {
247
+ padding: @subunitSize * 2;
248
+ }
249
+
250
+ &.image {
251
+ width: 100%;
252
+ min-height: 100%;
253
+ max-height: 100%;
254
+ }
255
+
256
+ &.icon {
257
+ [class*="icon-"], img {
258
+ line-height: @tileIconSize;
259
+ height: @tileIconSize;
260
+ width: @tileIconSize;
261
+ font-size: @tileIconSizeFont;
262
+ color: @white;
263
+ text-align: center;
264
+ position: absolute;
265
+ left: 50%;
266
+ top: 50%;
267
+ margin-top: -@tileIconSize/2;
268
+ margin-left: -@tileIconSize/2;
269
+ }
270
+ }
271
+
272
+ &.image-set {
273
+ img {
274
+ margin: 0;
275
+ padding: 0;
276
+ width: 25% !important;
277
+ height: 50%;
278
+ float: left;
279
+ border: 1px #1e1e1e solid;
280
+ }
281
+
282
+ img:first-child {
283
+ width: 50% !important;
284
+ float: left;
285
+ height: 100%;
286
+ }
287
+ }
288
+ }
289
+
290
+ .tile-content {
291
+ display: none;
292
+
293
+ &:first-child {
294
+ display: block;
295
+ }
296
+ }
297
+ }
298
+
299
+ // Tile Brand
300
+ .tile {
301
+ .brand, .tile-status {
302
+ position: absolute;
303
+ bottom: 0;
304
+ left: 0;
305
+ right: 0;
306
+ min-height: 29px;
307
+ margin: 0;
308
+ .clearfix;
309
+
310
+ &.opacity {
311
+ opacity: .7;
312
+ }
313
+
314
+ .name, .label, .text {
315
+ display: block;
316
+ font-size: 10pt;
317
+ margin: 5px 20px 2px 5px;
318
+ background: transparent;
319
+ color: @white;
320
+ }
321
+
322
+ .text {
323
+ margin: 4px 5px;
324
+ font-size: 8pt;
325
+ line-height: 10pt;
326
+ }
327
+
328
+ .badge {
329
+ position: absolute;
330
+ bottom: 0;
331
+ right: 10px;
332
+ width: 29px;
333
+ height: 29px;
334
+ text-align: center;
335
+ color: @white;
336
+ padding: 5px;
337
+ margin: 0;
338
+ vertical-align: middle !important;
339
+ display: block;
340
+ font-size: 10pt;
341
+
342
+ &.activity {
343
+ background: @tile-badge-activity-image 50% no-repeat;
344
+ }
345
+ &.alert {
346
+ background: @tile-badge-alert-image 50% no-repeat;
347
+ }
348
+ &.available {
349
+ background: @tile-badge-available-image 50% no-repeat;
350
+ }
351
+ &.unavailable {
352
+ background: @tile-badge-unavailable-image 50% no-repeat;
353
+ }
354
+ &.away {
355
+ background: @tile-badge-away-image 50% no-repeat;
356
+ }
357
+ &.busy {
358
+ background: @tile-badge-busy-image 50% no-repeat;
359
+ }
360
+ &.newMessage {
361
+ background: @tile-badge-newMessage-image 50% no-repeat;
362
+ }
363
+ &.paused {
364
+ background: @tile-badge-paused-image 50% no-repeat;
365
+ }
366
+ &.playing {
367
+ background: @tile-badge-playing-image 50% no-repeat;
368
+ }
369
+ &.error {
370
+ background: @tile-badge-error-image 50% no-repeat;
371
+ }
372
+ &.attention {
373
+ background: @tile-badge-attention-image 50% no-repeat;
374
+ }
375
+ }
376
+ }
377
+ }
378
+
379
+ .tile {
380
+ &.parts {
381
+ & > ul {
382
+ margin: 0;
383
+ padding: 0;
384
+ list-style: none;
385
+
386
+ & > li {
387
+ display: block;
388
+ float: left;
389
+ height: @tilePart;
390
+ width: @tilePart;
391
+ margin: 0;
392
+ }
393
+ }
394
+
395
+ & > .part {
396
+ display: block;
397
+ float: left;
398
+ height: @tilePart;
399
+ width: @tilePart;
400
+ margin: 0;
401
+ }
402
+ }
403
+ }
404
+
405
+ .tile {
406
+ &.half {
407
+ .tile-content.icon {
408
+ [class*="icon-"], img {
409
+ line-height: @tileIconSize/1.5;
410
+ height: @tileIconSize/1.5;
411
+ width: @tileIconSize/1.5;
412
+ font-size: @tileIconSizeFont/1.5;
413
+ color: @white;
414
+ text-align: center;
415
+ position: absolute;
416
+ left: 50%;
417
+ top: 50%;
418
+ margin-top: -@tileIconSize/3;
419
+ margin-left: -@tileIconSize/3;
420
+ }
421
+ }
422
+ }
423
+ }
424
+
425
+ // Typography
426
+ .tile {
427
+ font-family: @segoeFontFamily;
428
+ * {
429
+ font-family: @segoeFontFamily;
430
+ }
431
+ }
432
+
433
+ .tile {
434
+ &.scale {
435
+ .scale(0.98);
436
+ }
437
+ }
438
+
439
+ [draggable] {
440
+ cursor: default;
441
+ }
442
+
443
+ .tile {
444
+ .no-user-select;
445
+ }
446
+
447
+ .tile {
448
+ .tile-content {
449
+ &.email {
450
+ color: @white;
451
+ padding: 10px;
452
+
453
+ .email-image {
454
+ width: 64px;
455
+ height: 64px;
456
+ float: left;
457
+ img {
458
+ width: 100%;
459
+ height: 100%;
460
+ }
461
+ }
462
+ .email-data {
463
+ display: block;
464
+ color: inherit;
465
+ margin-left: 70px;
466
+ width: auto;
467
+ overflow: hidden;
468
+
469
+ .email-data-title, .email-data-subtitle, .email-data-text {
470
+ color: inherit;
471
+ display: block;
472
+ }
473
+
474
+ .email-data-title {
475
+ font-size: 14pt;
476
+ }
477
+ .email-data-subtitle {
478
+ font-size: 11pt;
479
+ }
480
+ .email-data-text {
481
+ font-size: 10pt;
482
+ .text-ellipsis;
483
+ }
484
+ }
485
+ }
486
+ }
487
+ }
488
+
489
+
490
+ @rotate: 0.138372rad;
491
+
492
+ [class*=tile-transform-] {
493
+ -webkit-transition: all 0.22s;
494
+ transition: all 0.22s;
495
+ }
496
+
497
+ .transY(@perspective: 500px, @rot: @rotate){
498
+ -webkit-transform: perspective( @perspective ) rotateY( @rot );
499
+ -moz-transform: perspective( @perspective ) rotateY( @rot );
500
+ -ms-transform: perspective( @perspective ) rotateY( @rot );
501
+ -o-transform: perspective( @perspective ) rotateY( @rot );
502
+ transform: perspective( @perspective ) rotateY( @rot );
503
+ }
504
+
505
+ .transX(@perspective: 500px, @rot: @rotate){
506
+ -webkit-transform: perspective( @perspective ) rotateX( @rot );
507
+ -moz-transform: perspective( @perspective ) rotateX( @rot );
508
+ -ms-transform: perspective( @perspective ) rotateX( @rot );
509
+ -o-transform: perspective( @perspective ) rotateX( @rot );
510
+ transform: perspective( @perspective ) rotateX( @rot );
511
+ }
512
+
513
+ // right
514
+ .tile-transform-right {
515
+ .transformOrigin(left 50%);
516
+ .transY(500px, @rotate);
517
+ }
518
+
519
+ .tile.double.tile-transform-right {
520
+ .transY(500px, @rotate/2);
521
+ }
522
+
523
+ .tile.triple.tile-transform-right {
524
+ .transY(500px, @rotate/3);
525
+ }
526
+
527
+ .tile.quadro.tile-transform-right {
528
+ .transY(500px, @rotate/4);
529
+ }
530
+
531
+ .tile.half.tile-transform-right {
532
+ .transY(500px, @rotate*2);
533
+ }
534
+
535
+ // left
536
+ .tile-transform-left {
537
+ .transformOrigin(right 50%);
538
+ .transY(500px, -@rotate);
539
+ }
540
+
541
+ .tile.double.tile-transform-left {
542
+ .transY(500px, -@rotate/2);
543
+ }
544
+
545
+ .tile.triple.tile-transform-left {
546
+ .transY(500px, -@rotate/3);
547
+ }
548
+
549
+ .tile.quadro.tile-transform-left {
550
+ .transY(500px, -@rotate/4);
551
+ }
552
+
553
+ .tile.half.tile-transform-left {
554
+ .transY(500px, -@rotate*2);
555
+ }
556
+
557
+ // top
558
+ .tile-transform-top {
559
+ .transformOrigin(50% bottom);
560
+ .transX(500px, @rotate);
561
+ }
562
+
563
+ .tile.double.tile-transform-top {
564
+ .transX(500px, @rotate/2);
565
+ }
566
+
567
+ .tile.triple.tile-transform-top {
568
+ .transX(500px, @rotate/3);
569
+ }
570
+
571
+ .tile.quadro.tile-transform-top {
572
+ .transX(500px, @rotate/4);
573
+ }
574
+
575
+ .tile.half.tile-transform-top {
576
+ .transX(500px, @rotate*2);
577
+ }
578
+
579
+ // bottom
580
+ .tile-transform-bottom {
581
+ .transformOrigin(50% top);
582
+ .transX(500px, -@rotate);
583
+ }
584
+
585
+ .tile.double.tile-transform-bottom {
586
+ .transX(500px, -@rotate/2);
587
+ }
588
+
589
+ .tile.triple.tile-transform-bottom {
590
+ .transX(500px, -@rotate/3);
591
+ }
592
+
593
+ .tile.quadro.tile-transform-bottom {
594
+ .transX(500px, -@rotate/4);
595
+ }
596
+
597
+ .tile.half.tile-transform-bottom {
598
+ .transX(500px, -@rotate*2);
599
+ }