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,23 @@
1
+ .rotate45 {.rotate(45deg);}
2
+ .rotate90 {.rotate(90deg);}
3
+ .rotate135 {.rotate(135deg);}
4
+ .rotate180 {.rotate(180deg);}
5
+ .rotate225 {.rotate(225deg);}
6
+ .rotate270 {.rotate(270deg);}
7
+ .rotate360 {.rotate(360deg);}
8
+
9
+ .rotateX45 {.rotateX(45deg);}
10
+ .rotateX90 {.rotateX(90deg);}
11
+ .rotateX135 {.rotateX(135deg);}
12
+ .rotateX180 {.rotateX(180deg);}
13
+ .rotateX225 {.rotateX(225deg);}
14
+ .rotateX270 {.rotateX(270deg);}
15
+ .rotateX360 {.rotateX(360deg);}
16
+
17
+ .rotateY45 {.rotateY(45deg);}
18
+ .rotateY90 {.rotateY(90deg);}
19
+ .rotateY135 {.rotateY(135deg);}
20
+ .rotateY180 {.rotateY(180deg);}
21
+ .rotateY225 {.rotateY(225deg);}
22
+ .rotateY270 {.rotateY(270deg);}
23
+ .rotateY360 {.rotateY(360deg);}
@@ -0,0 +1,96 @@
1
+ .treeview {
2
+ background-color: #fdfdfd;
3
+ color: @gray;
4
+ display: block;
5
+ list-style: none;
6
+ margin: 0;
7
+ padding: 0;
8
+
9
+ ul {
10
+ color: @gray;
11
+ display: block;
12
+ list-style: none;
13
+ margin: 0;
14
+ padding: 0;
15
+
16
+ li {
17
+ a {
18
+ padding: 0 0 0 15px;
19
+ }
20
+ }
21
+ }
22
+
23
+ a {
24
+ font-size: 12px;
25
+ color: inherit;
26
+ display: block;
27
+ }
28
+
29
+ .node {
30
+ & > a {
31
+ margin-bottom: 5px;
32
+ padding: 0 0 0 15px;
33
+ font-size: 12px;
34
+ position: relative;
35
+ color: #000;
36
+ white-space: nowrap;
37
+ text-overflow: ellipsis;
38
+ }
39
+
40
+ &:not(:first-child) {
41
+ margin-top: 0;
42
+ }
43
+ }
44
+
45
+ .node-toggle {
46
+ display: inline-block;
47
+ position: relative;
48
+ float: left;
49
+ margin-right: 3px;
50
+ width: 10px;
51
+ height: 10px;
52
+ &:before {
53
+ position: absolute;
54
+ display: block;
55
+ left: 2px;
56
+ top: 0;
57
+ content: '';
58
+
59
+ width: 0;
60
+ height: 0;
61
+ border-left: 7px solid transparent;
62
+ border-top: 7px solid transparent;
63
+ border-bottom: 7px @dark solid;
64
+ }
65
+ &:hover {
66
+ &:before {
67
+ border-bottom-color: @cobalt;
68
+ }
69
+ }
70
+ }
71
+
72
+ li.collapsed {
73
+ .node-toggle:before {
74
+ .rotate(-45deg);
75
+ margin-left: -4px;
76
+ }
77
+ }
78
+
79
+ li {
80
+ a:hover {
81
+ background-color: @lwListBackgroundHoverColor;
82
+ }
83
+ }
84
+
85
+ .active {
86
+ background-color: #e1e1e1;
87
+ font-weight: bold;
88
+ color: @dark;
89
+ }
90
+
91
+ a {
92
+ .value {
93
+ color: #0067cb;
94
+ }
95
+ }
96
+ }
@@ -0,0 +1,382 @@
1
+ // Font is used to replace Cambria Font
2
+ @font-face {
3
+ font-family: "PT Serif Caption";
4
+ font-style: normal;
5
+ font-weight: 400;
6
+ src: local("Cambria"), local("PT Serif Caption"), local("PTSerif-Caption"), url(https://themes.googleusercontent.com/static/fonts/ptserifcaption/v4/7xkFOeTxxO1GMC1suOUYWWhBabBbEjGd1iRmpyoZukE.woff) format('woff');
7
+ }
8
+
9
+ // Font is used to replace Segoe UI Font
10
+
11
+ // Replace Segoe UI Light
12
+ @font-face {
13
+ font-family: "Open Sans Light";
14
+ font-style: normal;
15
+ font-weight: 300;
16
+ src: local("Segoe UI Light"), local("Open Sans Light"), local("OpenSans-Light"), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/DXI1ORHCpsQm3Vp6mXoaTZ1r3JsPcQLi8jytr04NNhU.woff) format('woff');
17
+ }
18
+
19
+ // Replace Segoe UI
20
+ @font-face {
21
+ font-family: "Open Sans";
22
+ font-style: normal;
23
+ font-weight: 400;
24
+ src: local("Segoe UI"), local("Open Sans"), local("OpenSans"), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/K88pR3goAWT7BTt32Z01mz8E0i7KZn-EPnyo3HZu7kw.woff) format('woff');
25
+ }
26
+
27
+ // Replace Segoe UI Bold
28
+ @font-face {
29
+ font-family: "Open Sans Bold";
30
+ font-style: normal;
31
+ font-weight: 700;
32
+ src: local("Segoe UI Bold"), local("Open Sans Bold"), local("OpenSans-Bold"), url(https://themes.googleusercontent.com/static/fonts/opensans/v6/k3k702ZOKiLJc3WVjuplzJ1r3JsPcQLi8jytr04NNhU.woff) format('woff');
33
+ }
34
+
35
+ .text-rest-state {color: rgba(0, 0, 0, 1.0);}
36
+ .text-rest2-state {color: rgba(0, 0, 0, 0.6);}
37
+ .text-hover-state {color: rgba(0, 0, 0, 0.8);}
38
+ .text-pressed-state {color: rgba(0, 0, 0, 0.4);}
39
+
40
+ #font {
41
+ .light {
42
+ font-weight: 300;
43
+ }
44
+
45
+ .normal {
46
+ font-weight: normal;
47
+ font-style: normal;
48
+ }
49
+
50
+ .bold {
51
+ font-weight: bold;
52
+ }
53
+
54
+ .italic {
55
+ font-style: italic;
56
+ }
57
+
58
+ .segoe {
59
+ font-family: @segoeFontFamily;
60
+ }
61
+
62
+ .segoe-bold {
63
+ font-family: @segoeBoldFontFamily;
64
+ }
65
+
66
+ .segoe-light {
67
+ font-family: @segoeLightFontFamily;
68
+ }
69
+
70
+ .cambria {
71
+ font-family: @cambriaFontFamily;
72
+ }
73
+
74
+ .mono {
75
+ font-family: @monoFontFamily;
76
+ }
77
+
78
+ .serif {
79
+ font-family: @serifFontFamily;
80
+ }
81
+
82
+ .sans {
83
+ font-family: @sansFontFamily;
84
+ }
85
+ }
86
+
87
+
88
+ .header, .subheader {
89
+ #font > .segoe-light;
90
+ #font > .light;
91
+ .text-rest-state;
92
+ letter-spacing: 0.00em;
93
+ }
94
+
95
+ .header {
96
+ .font-height(4.8rem);
97
+ }
98
+
99
+ .subheader {
100
+ .font-height(2.5rem);
101
+ letter-spacing: 0.01em;
102
+ }
103
+
104
+ .subheader-secondary {
105
+ .subheader;
106
+ .text-rest2-state;
107
+ .font-height(2.2rem);
108
+ //font-weight: bold;
109
+ }
110
+
111
+ .item-title {
112
+ #font > .segoe-bold;
113
+ #font > .bold;
114
+ .text-rest-state;
115
+ .font-height(1.6rem);
116
+ letter-spacing: 0.02em;
117
+ }
118
+
119
+ .item-title-secondary {
120
+ .item-title;
121
+ .text-rest2-state;
122
+ .font-height(1.4rem);
123
+ }
124
+
125
+ .navigation {
126
+ #font > .segoe;
127
+ #font > .normal;
128
+ .text-rest2-state;
129
+ .font-height(1.2rem);
130
+ letter-spacing: 0.02em;
131
+ }
132
+
133
+ .body-text {
134
+ #font > .segoe;
135
+ #font > .normal;
136
+ .text-rest-state;
137
+ font-size: 11pt;
138
+ line-height: 15pt;
139
+ letter-spacing: 0.02em;
140
+ }
141
+
142
+ .code-text {
143
+ .body-text;
144
+ #font > .mono;
145
+ }
146
+
147
+ .tertiary-text {
148
+ #font > .segoe;
149
+ .text-rest-state;
150
+ .font-size(1.3rem);
151
+ .line-height(1.5rem);
152
+ font-weight: normal !important;
153
+ }
154
+
155
+ .tertiary-text-secondary {
156
+ .tertiary-text;
157
+ .text-rest2-state;
158
+ }
159
+
160
+ .readable-text {
161
+ #font > .cambria;
162
+ #font > .normal;
163
+ .font-size(1.8rem);
164
+ .line-height(2rem);
165
+ }
166
+
167
+ .menu-title {
168
+ .subheader;
169
+ //font-size: 30pt;
170
+ .font-size(4.0rem);
171
+ }
172
+
173
+ .menu-item {
174
+ .subheader-secondary;
175
+ //font-size: 14pt;
176
+ .font-size(2.2rem);
177
+ }
178
+
179
+ .menu-item-secondary {
180
+ .item-title;
181
+ #font > .normal;
182
+ .line-height(1.4rem);
183
+ }
184
+
185
+ h1, h2, h3, h4, h5, h6 {
186
+ padding: 0;
187
+ margin: 10px 0;
188
+ }
189
+
190
+ h1 { .header;}
191
+ h2 { .subheader }
192
+ h3 { .subheader-secondary; font-weight: bold; }
193
+ h4 { .item-title }
194
+ h5 { .item-title-secondary }
195
+ h6 { .body-text; #font > .bold; font-size: 9pt;}
196
+
197
+ h1 small { font-size: @baseFontSize * 1.75; }
198
+ h2 small { font-size: @baseFontSize * 1.25; }
199
+ h3 small { font-size: @baseFontSize; }
200
+ h4 small { font-size: @baseFontSize; }
201
+
202
+ a, .link {
203
+ color: @linkColor;
204
+ &:hover {
205
+ color: @linkColorHover;
206
+ }
207
+ &:focus, &:active {
208
+ color: @linkColorActive;
209
+ }
210
+ }
211
+
212
+ div, span, p {
213
+ #font > .segoe;
214
+ #font > .normal;
215
+ }
216
+
217
+ p {
218
+ margin: 0 0 @baseLineHeight / 2;
219
+ .body-text;
220
+ }
221
+
222
+ small {}
223
+ strong {
224
+ #font > .segoe-bold;
225
+ #font > .bold;
226
+ }
227
+ em {}
228
+
229
+ .text-muted {color: @grayLight !important;}
230
+ .text-info {color: @cyan !important;}
231
+ .text-alert {color: @red !important;}
232
+ .text-warning {color: @orange !important;}
233
+ .text-success {color: @green !important;}
234
+
235
+ abbr {
236
+ text-decoration: none;
237
+ border-bottom: 1px @grayLight dotted;
238
+ cursor: help;
239
+ }
240
+
241
+ address {
242
+ #font > .segoe;
243
+ #font > .normal;
244
+ margin-bottom: 7pt;
245
+ }
246
+
247
+ blockquote {
248
+ margin: 0;
249
+ padding: 0;
250
+ border-left: 4px @grayLight solid;
251
+ padding-left: @unitSize / 2;
252
+
253
+ small {
254
+ color: @grayLight;
255
+
256
+ &:before {
257
+ content: "\2014 \00A0";
258
+ }
259
+ }
260
+
261
+ &.place-right {
262
+ border: 0;
263
+ border-right: 4px @grayLight solid;
264
+ padding-right: @unitSize / 2;
265
+ .text-right;
266
+
267
+ small {
268
+ &:before {
269
+ content: "";
270
+ }
271
+ &:after {
272
+ content: " \00A0 \2014";
273
+ }
274
+ }
275
+ }
276
+ }
277
+
278
+ .unstyled {
279
+ padding-left: 0;
280
+ list-style: none;
281
+ li {
282
+ & ul, & ol {
283
+ list-style: none;
284
+ padding-left: 25px;
285
+ }
286
+ }
287
+ }
288
+
289
+ .inline {
290
+ list-style: none;
291
+ li {
292
+ display: inline-block;
293
+ padding-left: 5px;
294
+ padding-right: 5px;
295
+ }
296
+ }
297
+
298
+ ul, ol {
299
+ margin-left: 5px;
300
+ padding-left: 15px;
301
+ .body-text;
302
+
303
+ li {
304
+ line-height: 20px;
305
+
306
+ & ul, & ol {
307
+ padding-left: 25px;
308
+ }
309
+ }
310
+ }
311
+
312
+ ol.styled {
313
+ counter-reset:li;
314
+ margin-left:0;
315
+ padding-left:0;
316
+ .readable-text;
317
+ }
318
+ ol.styled > li {
319
+ position:relative;
320
+ margin:0 0 6px 2em;
321
+ padding:4px 12px;
322
+ list-style:none;
323
+ }
324
+ ol.styled > li:before {
325
+ content:counter(li);
326
+ counter-increment:li;
327
+ position:absolute;
328
+ top:-2px;
329
+ left: -2em;
330
+ box-sizing:border-box;
331
+ width: 2em;
332
+ margin-right:8px;
333
+ padding:4px;
334
+ color:#fff;
335
+ background:#666;
336
+ font-weight:bold;
337
+ font-family:"Helvetica Neue", Arial, sans-serif;
338
+ text-align:center;
339
+ }
340
+
341
+ ol.styled.rounded > li:before {
342
+ border-radius: 100%;
343
+ }
344
+
345
+ dl {
346
+
347
+ dt, dd {
348
+ line-height: 20px;
349
+ }
350
+
351
+ dt {
352
+ #font > .segoe-bold;
353
+ }
354
+
355
+ dd {
356
+ margin-left: 15px;
357
+ }
358
+
359
+ &.horizontal {
360
+ dt {
361
+ float: left;
362
+ width: 160px;
363
+ overflow: hidden;
364
+ clear: left;
365
+ text-align: right;
366
+ text-overflow: ellipsis;
367
+ white-space: nowrap;
368
+ }
369
+
370
+ dd {
371
+ margin-left: 180px;
372
+ }
373
+ }
374
+ }
375
+
376
+ .prettyprint {
377
+ * {
378
+ .code-text;
379
+ font-size: .9em !important;
380
+ line-height: 10pt;
381
+ }
382
+ }