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.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +2 -1
- data/active_administration.gemspec +2 -1
- data/app/assets/javascripts/active_administration/README.md +0 -0
- data/app/assets/javascripts/active_administration/metro-accordion.js +70 -0
- data/app/assets/javascripts/active_administration/metro-button-set.js +88 -0
- data/app/assets/javascripts/active_administration/metro-calendar.js +437 -0
- data/app/assets/javascripts/active_administration/metro-carousel.js +304 -0
- data/app/assets/javascripts/active_administration/metro-core.js +39 -0
- data/app/assets/javascripts/active_administration/metro-countdown.js +200 -0
- data/app/assets/javascripts/active_administration/metro-date-format.js +137 -0
- data/app/assets/javascripts/active_administration/metro-datepicker.js +138 -0
- data/app/assets/javascripts/active_administration/metro-dialog.js +221 -0
- data/app/assets/javascripts/active_administration/metro-drag-tile.js +46 -0
- data/app/assets/javascripts/active_administration/metro-dropdown.js +112 -0
- data/app/assets/javascripts/active_administration/metro-fluentmenu.js +57 -0
- data/app/assets/javascripts/active_administration/metro-global.js +4 -0
- data/app/assets/javascripts/active_administration/metro-hint.js +104 -0
- data/app/assets/javascripts/active_administration/metro-initiator.js +271 -0
- data/app/assets/javascripts/active_administration/metro-input-control.js +318 -0
- data/app/assets/javascripts/active_administration/metro-listview.js +53 -0
- data/app/assets/javascripts/active_administration/metro-live-tile.js +162 -0
- data/app/assets/javascripts/active_administration/metro-loader.js +46 -0
- data/app/assets/javascripts/active_administration/metro-locale.js +132 -0
- data/app/assets/javascripts/active_administration/metro-notify.js +120 -0
- data/app/assets/javascripts/active_administration/metro-panel.js +41 -0
- data/app/assets/javascripts/active_administration/metro-plugin-template.js +21 -0
- data/app/assets/javascripts/active_administration/metro-progressbar.js +97 -0
- data/app/assets/javascripts/active_administration/metro-pull.js +38 -0
- data/app/assets/javascripts/active_administration/metro-rating.js +99 -0
- data/app/assets/javascripts/active_administration/metro-scroll.js +756 -0
- data/app/assets/javascripts/active_administration/metro-slider.js +304 -0
- data/app/assets/javascripts/active_administration/metro-stepper.js +105 -0
- data/app/assets/javascripts/active_administration/metro-streamer.js +214 -0
- data/app/assets/javascripts/active_administration/metro-tab-control.js +96 -0
- data/app/assets/javascripts/active_administration/metro-table.js +74 -0
- data/app/assets/javascripts/active_administration/metro-tile-transform.js +65 -0
- data/app/assets/javascripts/active_administration/metro-times.js +190 -0
- data/app/assets/javascripts/active_administration/metro-touch-handler.js +65 -0
- data/app/assets/javascripts/active_administration/metro-treeview.js +64 -0
- data/app/assets/javascripts/active_administration/metro-wizard.js +148 -0
- data/app/assets/stylesheets/active_administration/accordion.less +64 -0
- data/app/assets/stylesheets/active_administration/balloon.less +88 -0
- data/app/assets/stylesheets/active_administration/breadcrumbs.less +118 -0
- data/app/assets/stylesheets/active_administration/buttons.less +383 -0
- data/app/assets/stylesheets/active_administration/calendar.less +123 -0
- data/app/assets/stylesheets/active_administration/carousel.less +118 -0
- data/app/assets/stylesheets/active_administration/colors.less +589 -0
- data/app/assets/stylesheets/active_administration/countdown.less +57 -0
- data/app/assets/stylesheets/active_administration/dataTables.less +134 -0
- data/app/assets/stylesheets/active_administration/fluent-menu.less +231 -0
- data/app/assets/stylesheets/active_administration/forms.less +414 -0
- data/app/assets/stylesheets/active_administration/funcs.less +178 -0
- data/app/assets/stylesheets/active_administration/grid.less +91 -0
- data/app/assets/stylesheets/active_administration/hint.less +120 -0
- data/app/assets/stylesheets/active_administration/iconFont-content.less +1353 -0
- data/app/assets/stylesheets/active_administration/iconFont.less +47 -0
- data/app/assets/stylesheets/active_administration/icons.less +10 -0
- data/app/assets/stylesheets/active_administration/images.less +75 -0
- data/app/assets/stylesheets/active_administration/layout.less +137 -0
- data/app/assets/stylesheets/active_administration/lists.less +258 -0
- data/app/assets/stylesheets/active_administration/menus.less +469 -0
- data/app/assets/stylesheets/active_administration/metro-bootstrap-responsive.less +300 -0
- data/app/assets/stylesheets/active_administration/metro-bootstrap.less +68 -0
- data/app/assets/stylesheets/active_administration/misc.less +72 -0
- data/app/assets/stylesheets/active_administration/navigation-bar.less +317 -0
- data/app/assets/stylesheets/active_administration/notice.less +52 -0
- data/app/assets/stylesheets/active_administration/notify.less +43 -0
- data/app/assets/stylesheets/active_administration/pagination.less +83 -0
- data/app/assets/stylesheets/active_administration/panels.less +38 -0
- data/app/assets/stylesheets/active_administration/progress-bar.less +25 -0
- data/app/assets/stylesheets/active_administration/rating.less +103 -0
- data/app/assets/stylesheets/active_administration/reset.less +219 -0
- data/app/assets/stylesheets/active_administration/scroll.less +141 -0
- data/app/assets/stylesheets/active_administration/sidebar.less +158 -0
- data/app/assets/stylesheets/active_administration/slider.less +106 -0
- data/app/assets/stylesheets/active_administration/stepper.less +80 -0
- data/app/assets/stylesheets/active_administration/streamer.less +250 -0
- data/app/assets/stylesheets/active_administration/tab-control.less +79 -0
- data/app/assets/stylesheets/active_administration/tables.less +170 -0
- data/app/assets/stylesheets/active_administration/tiles.less +599 -0
- data/app/assets/stylesheets/active_administration/transform.less +23 -0
- data/app/assets/stylesheets/active_administration/treeview.less +96 -0
- data/app/assets/stylesheets/active_administration/typography.less +382 -0
- data/app/assets/stylesheets/active_administration/utils.less +180 -0
- data/app/assets/stylesheets/active_administration/variables.less +250 -0
- data/app/assets/stylesheets/active_administration/window.less +225 -0
- data/app/assets/stylesheets/active_administration/wizard.less +53 -0
- data/lib/active_admin/version.rb +1 -1
- metadata +103 -10
@@ -0,0 +1,383 @@
|
|
1
|
+
.button {
|
2
|
+
padding: 4px 12px;
|
3
|
+
text-align: center;
|
4
|
+
vertical-align: middle !important;
|
5
|
+
background-color: @inputRestState;
|
6
|
+
border: 1px transparent solid;
|
7
|
+
color: @grayDarker;
|
8
|
+
border-radius: 0;
|
9
|
+
cursor: pointer;
|
10
|
+
// position: relative;
|
11
|
+
display: inline-block;
|
12
|
+
outline: none;
|
13
|
+
font-family: @segoeLightFontFamily;
|
14
|
+
font-size: 14px;
|
15
|
+
line-height: 16px;
|
16
|
+
//margin: @inputMargin auto;
|
17
|
+
margin: auto;
|
18
|
+
|
19
|
+
&.default {
|
20
|
+
background-color: #008287;
|
21
|
+
color: #fff;
|
22
|
+
}
|
23
|
+
|
24
|
+
&:active {
|
25
|
+
// top: 1px;
|
26
|
+
// left: 1px;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:focus {
|
30
|
+
outline: 0;
|
31
|
+
border: 1px #353535 dotted;
|
32
|
+
}
|
33
|
+
|
34
|
+
&:disabled, &.disabled {
|
35
|
+
background-color: #eaeaea !important;
|
36
|
+
color: #bebebe !important;
|
37
|
+
cursor: not-allowed !important;
|
38
|
+
}
|
39
|
+
|
40
|
+
* {
|
41
|
+
color: inherit;
|
42
|
+
&:hover {
|
43
|
+
color: inherit;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
a.button {
|
49
|
+
&:hover {
|
50
|
+
color: inherit;
|
51
|
+
}
|
52
|
+
* {
|
53
|
+
color: inherit;
|
54
|
+
&:hover {
|
55
|
+
color: inherit;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
.button {
|
61
|
+
&.primary {
|
62
|
+
background-color: @darkBlue !important;
|
63
|
+
color: @white !important;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.info {
|
67
|
+
background-color: @lightBlue !important;
|
68
|
+
color: @white !important;
|
69
|
+
}
|
70
|
+
|
71
|
+
&.success {
|
72
|
+
background-color: @green !important;
|
73
|
+
color: @white !important;
|
74
|
+
}
|
75
|
+
|
76
|
+
&.warning {
|
77
|
+
background-color: @orange !important;
|
78
|
+
color: @white !important;
|
79
|
+
}
|
80
|
+
|
81
|
+
&.danger {
|
82
|
+
background-color: @darkRed !important;
|
83
|
+
color: @white !important;
|
84
|
+
}
|
85
|
+
|
86
|
+
&.inverse {
|
87
|
+
background-color: @dark !important;
|
88
|
+
color: @white !important;
|
89
|
+
}
|
90
|
+
|
91
|
+
&.link {
|
92
|
+
background-color: transparent !important;
|
93
|
+
color: @linkColor !important;
|
94
|
+
&:hover {
|
95
|
+
text-decoration: underline;
|
96
|
+
}
|
97
|
+
&:disabled, &.disabled {
|
98
|
+
background-color: transparent !important;
|
99
|
+
color: #bebebe !important;
|
100
|
+
cursor: not-allowed !important;
|
101
|
+
}
|
102
|
+
[class*="icon-"] {
|
103
|
+
text-decoration: none !important;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
|
109
|
+
button {
|
110
|
+
.button;
|
111
|
+
}
|
112
|
+
|
113
|
+
.command-button {
|
114
|
+
.button;
|
115
|
+
text-align: left;
|
116
|
+
font-size: 14pt;
|
117
|
+
width: auto;
|
118
|
+
small {
|
119
|
+
display: block;
|
120
|
+
.tertiary-text-secondary;
|
121
|
+
color: inherit;
|
122
|
+
}
|
123
|
+
[class*="icon-"] {
|
124
|
+
font-size: 1.7em;
|
125
|
+
margin-top: 0;
|
126
|
+
}
|
127
|
+
[class*="icon-"] {
|
128
|
+
&.on-left {float: left;}
|
129
|
+
&.on-right {float: right;}
|
130
|
+
}
|
131
|
+
|
132
|
+
[class*="icon-"] {
|
133
|
+
&.on-left + small {
|
134
|
+
margin-left: 40px;
|
135
|
+
}
|
136
|
+
&.on-right + small {
|
137
|
+
margin-right: 40px;
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.toolbar {
|
143
|
+
width: auto;
|
144
|
+
margin-bottom: 10px;
|
145
|
+
.clearfix;
|
146
|
+
|
147
|
+
&.transparent, .transparent {
|
148
|
+
button, .button {
|
149
|
+
background-color: transparent;
|
150
|
+
|
151
|
+
&:hover {
|
152
|
+
background-color: @grayLighter;
|
153
|
+
border: 1px @white solid;
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
|
158
|
+
button, .button {
|
159
|
+
color: inherit;
|
160
|
+
padding: 4px 8px;
|
161
|
+
display: block;
|
162
|
+
float: left;
|
163
|
+
font-size: 12pt;
|
164
|
+
line-height: 12pt;
|
165
|
+
margin-right: 2px;
|
166
|
+
|
167
|
+
&:last-child {
|
168
|
+
margin-right: 0;
|
169
|
+
}
|
170
|
+
}
|
171
|
+
|
172
|
+
&.no-spaces, .toolbar-group.no-spaces {
|
173
|
+
button, .button {
|
174
|
+
margin-right: 0;
|
175
|
+
&:active {
|
176
|
+
background-color: @dark;
|
177
|
+
color: @white;
|
178
|
+
top: auto;
|
179
|
+
left: auto;
|
180
|
+
}
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
.divider {
|
185
|
+
display: block;
|
186
|
+
float: left;
|
187
|
+
height: 12px;
|
188
|
+
width: 1px;
|
189
|
+
margin: 8px 8px;
|
190
|
+
background-color: @grayLight;
|
191
|
+
vertical-align: middle !important;
|
192
|
+
}
|
193
|
+
|
194
|
+
.toolbar-group {
|
195
|
+
padding: 0;
|
196
|
+
margin: 0;
|
197
|
+
display: inline-block;
|
198
|
+
margin-right: 10px;
|
199
|
+
color: inherit;
|
200
|
+
.clearfix;
|
201
|
+
}
|
202
|
+
}
|
203
|
+
|
204
|
+
.button-dropdown {
|
205
|
+
position: relative;
|
206
|
+
display: inline-block;
|
207
|
+
|
208
|
+
.dropdown-menu.place-right {
|
209
|
+
right: 0;
|
210
|
+
left: auto;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
button.dropdown-toggle, .button.dropdown-toggle {
|
215
|
+
padding-right: 16px;
|
216
|
+
border: 0;
|
217
|
+
&:before {
|
218
|
+
position: absolute;
|
219
|
+
font-family: @sysIconFontName;
|
220
|
+
font-size: 12px;
|
221
|
+
right: 1px;
|
222
|
+
z-index: 2;
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
.image-button {
|
227
|
+
.button;
|
228
|
+
position: relative;
|
229
|
+
border: 0;
|
230
|
+
padding-right: 45px;
|
231
|
+
|
232
|
+
img, &:active img, [class*="icon-"] {
|
233
|
+
display: block;
|
234
|
+
position: absolute;
|
235
|
+
float: right;
|
236
|
+
right: 0;
|
237
|
+
top: 0;
|
238
|
+
padding: 5px;
|
239
|
+
height: 100%;
|
240
|
+
margin-left: 0px;
|
241
|
+
box-sizing: border-box;
|
242
|
+
border: 1px transparent solid;
|
243
|
+
z-index: 2;
|
244
|
+
text-align: center;
|
245
|
+
}
|
246
|
+
[class*="icon-"] {
|
247
|
+
vertical-align: middle !important;
|
248
|
+
font-size: 12pt;
|
249
|
+
line-height: 12pt;
|
250
|
+
top: 0;
|
251
|
+
right: 0;
|
252
|
+
}
|
253
|
+
&.image-left {
|
254
|
+
padding-right: 12px;
|
255
|
+
padding-left: 45px;
|
256
|
+
|
257
|
+
img, &:active img, [class*="icon-"] {
|
258
|
+
right: auto;
|
259
|
+
left: 0;
|
260
|
+
}
|
261
|
+
}
|
262
|
+
|
263
|
+
&:focus {
|
264
|
+
border: 0;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
|
268
|
+
.shortcut {
|
269
|
+
.button;
|
270
|
+
height: 92px;
|
271
|
+
width: 92px;
|
272
|
+
text-align: center;
|
273
|
+
font-size: 12pt;
|
274
|
+
border: 0;
|
275
|
+
border-bottom: 2px solid transparent;
|
276
|
+
display: inline-block;
|
277
|
+
position: relative;
|
278
|
+
|
279
|
+
[class*="icon-"] {
|
280
|
+
display: block;
|
281
|
+
margin: 10px;
|
282
|
+
font-size: 1.5em;
|
283
|
+
}
|
284
|
+
|
285
|
+
small {
|
286
|
+
display: block;
|
287
|
+
position: absolute;
|
288
|
+
top: 0;
|
289
|
+
right: 0;
|
290
|
+
padding: 2px 4px;
|
291
|
+
min-height: 10px;
|
292
|
+
min-width: 10px;
|
293
|
+
text-align: center;
|
294
|
+
vertical-align: middle;
|
295
|
+
font-family: @segoeBoldFontFamily;
|
296
|
+
}
|
297
|
+
|
298
|
+
&:hover {
|
299
|
+
border-color: @red;
|
300
|
+
}
|
301
|
+
|
302
|
+
&.link {
|
303
|
+
border: 1px @linkColor solid;
|
304
|
+
text-decoration: none !important;
|
305
|
+
&:hover {
|
306
|
+
border-bottom-width: 2px;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
}
|
310
|
+
|
311
|
+
a.shortcut {
|
312
|
+
padding: 12px 0;
|
313
|
+
&:hover {
|
314
|
+
color: inherit;
|
315
|
+
}
|
316
|
+
}
|
317
|
+
|
318
|
+
.button-set {
|
319
|
+
.clearfix;
|
320
|
+
//margin: @inputMargin auto;
|
321
|
+
|
322
|
+
.button, button {
|
323
|
+
display: block;
|
324
|
+
float: left;
|
325
|
+
margin:0;
|
326
|
+
margin-right: 2px;
|
327
|
+
|
328
|
+
|
329
|
+
&.active {
|
330
|
+
background-color: @gray;
|
331
|
+
color: @white;
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
&.no-spaces {
|
336
|
+
button, .button {
|
337
|
+
&:active {
|
338
|
+
background-color: @dark;
|
339
|
+
color: @white;
|
340
|
+
top: auto;
|
341
|
+
left: auto;
|
342
|
+
}
|
343
|
+
margin-right: 0 !important;
|
344
|
+
}
|
345
|
+
}
|
346
|
+
|
347
|
+
&.transparent {
|
348
|
+
.button, button {
|
349
|
+
background-color: transparent;
|
350
|
+
|
351
|
+
&.active {
|
352
|
+
background-color: @gray;
|
353
|
+
color: @white;
|
354
|
+
}
|
355
|
+
}
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
.button {
|
360
|
+
&:active {
|
361
|
+
.button > .inverse;
|
362
|
+
border-color: transparent;
|
363
|
+
}
|
364
|
+
}
|
365
|
+
|
366
|
+
.button, button {
|
367
|
+
&.large {
|
368
|
+
padding: 11px 19px;
|
369
|
+
font-size: 17.5px;
|
370
|
+
//line-height: 19.5px;
|
371
|
+
}
|
372
|
+
&.small {
|
373
|
+
padding: 2px 10px;
|
374
|
+
font-size: 11.9px;
|
375
|
+
//line-height: 13.9px;
|
376
|
+
}
|
377
|
+
&.mini {
|
378
|
+
padding: 0px 6px;
|
379
|
+
font-size: 10.5px;
|
380
|
+
//line-height: 12.5px;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
|
@@ -0,0 +1,123 @@
|
|
1
|
+
.calendar {
|
2
|
+
width: 250px;
|
3
|
+
border: 1px @grayLighter solid;
|
4
|
+
font-size: 10pt;
|
5
|
+
|
6
|
+
table {
|
7
|
+
width: 100%;
|
8
|
+
border-collapse: collapse;
|
9
|
+
}
|
10
|
+
|
11
|
+
td, th {
|
12
|
+
padding: 0;
|
13
|
+
width: 14.28%;
|
14
|
+
}
|
15
|
+
|
16
|
+
td {
|
17
|
+
border: 1px solid;
|
18
|
+
border-color: lighten(@cyan, 45%);
|
19
|
+
&:first-child {
|
20
|
+
border-left: 0;
|
21
|
+
}
|
22
|
+
&:last-child {
|
23
|
+
border-right: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
}
|
27
|
+
|
28
|
+
tr:last-child td{
|
29
|
+
border-bottom: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
.day-of-week {
|
33
|
+
padding: @subunitSize;
|
34
|
+
cursor: default;
|
35
|
+
}
|
36
|
+
|
37
|
+
a {
|
38
|
+
display: block;
|
39
|
+
padding: @subunitSize;
|
40
|
+
|
41
|
+
&:hover {
|
42
|
+
background-color: @grayLighter;
|
43
|
+
color: @dark;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
.calendar-header {
|
48
|
+
background-color: @cyan;
|
49
|
+
color: @white;
|
50
|
+
td, th {
|
51
|
+
border: 0 !important;
|
52
|
+
a {
|
53
|
+
color: @white;
|
54
|
+
&:hover {
|
55
|
+
background-color: @cyan;
|
56
|
+
color: @white;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.calendar-actions {
|
63
|
+
td, th {
|
64
|
+
padding: 10px;
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
.today {
|
69
|
+
a {
|
70
|
+
background-color: lighten(@green, 25%);
|
71
|
+
color: @dark;
|
72
|
+
|
73
|
+
&:hover {
|
74
|
+
background-color: @darkGreen;
|
75
|
+
color: @white;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
.day {
|
81
|
+
|
82
|
+
a {
|
83
|
+
display: block;
|
84
|
+
position: relative;
|
85
|
+
border: 2px transparent solid;
|
86
|
+
}
|
87
|
+
|
88
|
+
a.selected {
|
89
|
+
#element > .selected;
|
90
|
+
border-width: 1px;
|
91
|
+
&:after {
|
92
|
+
border-top-width: 12px;
|
93
|
+
border-left-width: 12px;
|
94
|
+
}
|
95
|
+
&:before {
|
96
|
+
//content: "";
|
97
|
+
font-size: 4pt;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.month, .year {
|
103
|
+
a {
|
104
|
+
padding-top: 20px;
|
105
|
+
padding-bottom: 20px;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
.empty {
|
110
|
+
}
|
111
|
+
|
112
|
+
.other-day {
|
113
|
+
display: block;
|
114
|
+
text-align: center;
|
115
|
+
color: @grayLight;
|
116
|
+
}
|
117
|
+
|
118
|
+
}
|
119
|
+
|
120
|
+
.calendar-dropdown {
|
121
|
+
border: 0;
|
122
|
+
.shadow;
|
123
|
+
}
|