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,469 @@
1
+ #menu {
2
+ .init {
3
+ margin: 0;
4
+ padding: 0;
5
+ list-style: none;
6
+ }
7
+
8
+ .item-vertical {
9
+ display: block;
10
+ margin: 10px 0;
11
+ padding: 0;
12
+ vertical-align: baseline;
13
+ //zoom: 1;
14
+ position: relative;
15
+ font-family: @segoeFontFamily;
16
+ }
17
+
18
+ .item-horizontal {
19
+ display: inline-block;
20
+ margin: 0 15px;
21
+ padding: 0;
22
+ vertical-align: baseline;
23
+ //zoom: 1;
24
+ position: relative;
25
+ font-family: @segoeFontFamily;
26
+ }
27
+ }
28
+
29
+ .vertical-menu {
30
+
31
+ #menu > .init;
32
+
33
+ li {
34
+ #menu > .item-vertical;
35
+
36
+ a {
37
+ display: block;
38
+ text-decoration: none;
39
+ .menu-item;
40
+ //line-height: 18pt;
41
+ color: inherit;
42
+
43
+ &:hover {
44
+ //text-decoration: underline;
45
+ }
46
+ }
47
+
48
+ &.title {
49
+ .menu-title;
50
+ margin-bottom: 20px;
51
+ }
52
+ }
53
+
54
+ &.compact {
55
+ a {
56
+ //.menu-item-secondary;
57
+ font-weight: normal;
58
+ font-size: 10.5pt;
59
+ line-height: 12pt;
60
+ color: inherit;
61
+ }
62
+ li.title {
63
+ margin-bottom: 10px;
64
+ .item-title;
65
+ }
66
+ }
67
+
68
+ & ul.secondary {
69
+ #menu > .init;
70
+ margin-left: 15px;
71
+ li {
72
+ a {
73
+ .menu-item-secondary;
74
+ color: inherit;
75
+ }
76
+ }
77
+ }
78
+ }
79
+
80
+ .horizontal-menu {
81
+ #menu > .init;
82
+ padding: 0px;
83
+
84
+
85
+ li {
86
+ #menu > .item-horizontal;
87
+
88
+ a {
89
+ display: inline-block;
90
+ text-decoration: none;
91
+ .menu-item;
92
+ color: inherit;
93
+ padding: @subunitSize ;
94
+
95
+
96
+ &:hover {
97
+ background: inherit;
98
+ }
99
+ }
100
+ }
101
+
102
+ &.compact {
103
+ li {
104
+ margin-left: 5px;
105
+ }
106
+ a {
107
+ //.menu-item-secondary;
108
+ font-weight: normal;
109
+ font-size: 10.5pt;
110
+ color: inherit;
111
+ }
112
+ .dropdown-toggle {
113
+ &:after {
114
+ bottom: 2px;
115
+ }
116
+ }
117
+ }
118
+
119
+ li:first-child {
120
+ margin-left: 0px;
121
+ }
122
+
123
+ li:hover > .dropdown-menu[data-show="hover"] {
124
+ display: block;
125
+ }
126
+ }
127
+
128
+ .side-menu {
129
+ .vertical-menu;
130
+ position: relative;
131
+ background: @white;
132
+ min-width: 200px;
133
+ width: auto;
134
+ border: 1px solid rgba(0, 0, 0, 0.2);
135
+
136
+ li {
137
+ margin: 5px 0 0;
138
+ width: 100%;
139
+
140
+ &:last-child {
141
+ margin-bottom: @subunitSize;
142
+ }
143
+ }
144
+
145
+ a {
146
+ padding: 8px 20px !important;
147
+ color: inherit;
148
+ font-size: 15px !important;
149
+ line-height: 14px !important;
150
+ }
151
+
152
+ li:hover {
153
+ background: @cyan;
154
+ color: @white;
155
+ }
156
+
157
+ .divider {
158
+ padding: 0;
159
+ height: 1px;
160
+ margin: 9px 1px;
161
+ overflow: hidden;
162
+ background-color: #e5e5e5;
163
+ &:hover {
164
+ background: #e5e5e5;
165
+ }
166
+ }
167
+
168
+ .dropdown-menu {
169
+ left: 100%;
170
+ top: -10%;
171
+ }
172
+
173
+ &.left {
174
+ .dropdown-menu {
175
+ left: -100%;
176
+ }
177
+ }
178
+
179
+ > li:hover > .dropdown-menu[data-show="hover"] {
180
+ display: block;
181
+ }
182
+
183
+ & > li > a.dropdown-toggle {
184
+
185
+ &:after {
186
+ font-family: @sysIconFontName;
187
+ font-size: .8em;
188
+ content: "\e156";
189
+ left: 85%;
190
+ top: .75em;
191
+ .rotate(0deg);
192
+ }
193
+ }
194
+
195
+ &.text-right {
196
+ li {
197
+ text-align: right;
198
+ }
199
+ }
200
+ }
201
+
202
+
203
+ .dropdown-menu {
204
+ .vertical-menu;
205
+ position: absolute;
206
+ display: none;
207
+ z-index: @zindexDropdown;
208
+ background: @white;
209
+ min-width: 220px;
210
+ width: auto;
211
+ border: 1px solid @menuBorder;
212
+ //box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
213
+
214
+ &.shadow {
215
+ box-shadow: 3px 3px 0 @menuShadowA;
216
+ }
217
+
218
+ li {
219
+ margin: 5px 0 0;
220
+ width: 100%;
221
+ border: 1px transparent solid;
222
+
223
+ &:last-child {
224
+ margin-bottom: @subunitSize;
225
+ }
226
+
227
+ &.disabled, &.disabled:hover {
228
+ cursor: default !important;
229
+ background: transparent !important;
230
+ color: @grayLighter;
231
+ a {
232
+ color: inherit;
233
+ cursor: inherit;
234
+ background: inherit;
235
+ }
236
+ }
237
+ }
238
+
239
+ a {
240
+ padding: 8px 32px !important;
241
+ color: inherit;
242
+ font-size: 15px !important;
243
+ line-height: 14px !important;
244
+ cursor: pointer;
245
+ }
246
+
247
+ li:hover {
248
+ background: @menuItemHoverBackground;
249
+ border-color: @menuItemHoverBorder;
250
+ //color: @white;
251
+ }
252
+
253
+ li.checked a, li.checked-partial a, li.unchecked a {
254
+ &:before {
255
+ font-family: @sysIconFontName;
256
+ position: absolute;
257
+ left: 10px;
258
+ content: "\e004";
259
+ }
260
+ }
261
+
262
+ li.checked-partial a {
263
+ &:before {
264
+ content: "\e005";
265
+ }
266
+ }
267
+
268
+ li.unchecked a {
269
+ &:before {
270
+ content: "\e005";
271
+ }
272
+ }
273
+
274
+ &.place-right {
275
+ right: -15px;
276
+ left: auto;
277
+ }
278
+
279
+ .divider {
280
+ padding: 0;
281
+ height: 1px;
282
+ margin: 9px 1px;
283
+ overflow: hidden;
284
+ background-color: #e5e5e5;
285
+ border-width: 0;
286
+ &:hover {
287
+ background: #e5e5e5;
288
+ }
289
+ }
290
+
291
+ &.open {
292
+ display: block !important;
293
+ }
294
+
295
+ .dropdown-menu {
296
+ left: 100%;
297
+ top: -10%;
298
+ }
299
+
300
+ > li:hover > .dropdown-menu[data-show="hover"] {
301
+ display: block;
302
+ }
303
+
304
+ & > li > a.dropdown-toggle {
305
+
306
+ &:after {
307
+ font-family: @sysIconFontName;
308
+ font-size: .7em;
309
+ content: "\e001";
310
+ left: 90%;
311
+ top: 50%;
312
+ margin-top: -1.4em;
313
+ .rotate(-90deg);
314
+ }
315
+ }
316
+
317
+ &.drop-left {
318
+ left: -100%;
319
+ //right: auto;
320
+ }
321
+ &.drop-up {
322
+ top: auto;
323
+ bottom: 0;
324
+ }
325
+
326
+ .menu-title {
327
+ background-color: @menuItemTitleBackground;
328
+ font-size: 12px;
329
+ //font-weight: bold;
330
+ line-height: 14px;
331
+ padding: 4px 8px;
332
+ border: 0;
333
+ border-bottom: 1px @menuBorder solid;
334
+ border-top: 1px @menuBorder solid;
335
+ color: #646464;
336
+ &:first-child {
337
+ margin: 0;
338
+ border-top-width: 0;
339
+ &:hover {
340
+ border-top-width: 0;
341
+ }
342
+ }
343
+ &:hover {
344
+ background-color: @menuItemTitleBackground;
345
+ cursor: default;
346
+ border: 0;
347
+ border-bottom: 1px @menuBorder solid;
348
+ border-top: 1px @menuBorder solid;
349
+ }
350
+ }
351
+
352
+ &.inverse {
353
+ border: 2px #3b3b3b solid;
354
+
355
+ li {
356
+ border: 0;
357
+ a {
358
+ padding: 9px 32px !important;
359
+ }
360
+ }
361
+
362
+ li:hover {
363
+ border: 0;
364
+ background-color: #e5e5e5;
365
+ }
366
+
367
+ .menu-title {
368
+ &:hover {
369
+ background-color: @menuItemTitleBackground;
370
+ }
371
+ }
372
+
373
+ .divider {
374
+ margin-left: 0;
375
+ margin-right: 0;
376
+ }
377
+ }
378
+
379
+ &.dark {
380
+ background-color: @grayDark;
381
+ border: 2px @grayDark solid;
382
+ color: @white;
383
+
384
+ &.opacity {
385
+ background-color: rgba(61,61,61,.9);
386
+ }
387
+
388
+ li {
389
+ border: 0;
390
+ color: inherit;
391
+ a {
392
+ padding: 9px 32px !important;
393
+ color: inherit;
394
+ }
395
+ &.disabled, &.disabled:hover {
396
+ cursor: default !important;
397
+ background: transparent !important;
398
+ color: @gray;
399
+ a {
400
+ color: inherit;
401
+ cursor: inherit;
402
+ background: inherit;
403
+ }
404
+ }
405
+ }
406
+
407
+ li:hover {
408
+ border: 0;
409
+ background-color: saturate(@dark, 10%);
410
+ color: @white;
411
+ }
412
+
413
+ .menu-title {
414
+ background-color: #3b3b3b;
415
+ &:hover {
416
+ background-color: #3b3b3b;
417
+ }
418
+ }
419
+
420
+ .divider {
421
+ margin-left: 0;
422
+ margin-right: 0;
423
+ background-color: @gray;
424
+ &:hover {
425
+ background: @gray;
426
+ }
427
+ }
428
+ }
429
+ }
430
+
431
+ .dropdown-toggle {
432
+ &:after {
433
+ position: absolute;
434
+ margin-left: .45em;
435
+ bottom: 0;
436
+ font-family: @sysIconFontName;
437
+ font-size: .7em;
438
+ content: '\e001';
439
+ }
440
+
441
+ &.no-marker {
442
+ &:after {
443
+ content: "";
444
+ }
445
+ }
446
+ }
447
+
448
+ .contextmenu {
449
+ z-index:1000;
450
+ position: absolute;
451
+ background-color:#FFFFFF;
452
+ border: 2.5px solid rgb(42,42,42);
453
+ padding: 2px;
454
+ .no-user-select;
455
+
456
+ .item:active {
457
+ background-color:rgb(0,0,0);
458
+ color:rgb(255,255,255);
459
+ }
460
+ .item:hover {
461
+ background-color:rgb(222,222,222);
462
+ }
463
+ .item {
464
+ background-color:#FFFFFF;
465
+ width:auto;
466
+ padding: 12px;
467
+ margin:-2px;
468
+ }
469
+ }