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,47 @@
1
+ @font-face {
2
+ font-family: 'iconFont';
3
+ src:url('../fonts/iconFont.eot');
4
+ src:url('../fonts/iconFont.eot?#iefix') format('embedded-opentype'),
5
+ url('../fonts/iconFont.woff') format('woff'),
6
+ url('../fonts/iconFont.ttf') format('truetype'),
7
+ url('../fonts/iconFont.svg#iconFont') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ [data-icon]:before {
13
+ font-family: 'iconFont';
14
+ content: attr(data-icon);
15
+ speak: none;
16
+ font-weight: normal;
17
+ font-variant: normal;
18
+ text-transform: none;
19
+ line-height: 1;
20
+ -webkit-font-smoothing: antialiased;
21
+ }
22
+
23
+ [class*="icon-"] {
24
+ font-family: 'iconFont' !important;
25
+ speak: none;
26
+ font-style: normal;
27
+ font-weight: normal !important;
28
+ font-variant: normal;
29
+ text-transform: none;
30
+ text-decoration: inherit;
31
+ line-height: 1;
32
+ display: inline-block;
33
+ vertical-align: -8%;
34
+ -webkit-font-smoothing: antialiased;
35
+ font-size: inherit;
36
+
37
+ &.smaller {
38
+ font-size: .7em;
39
+ vertical-align: 6%;
40
+ }
41
+ &.large {
42
+ font-size: 1.2em;
43
+ vertical-align: -10%;
44
+ }
45
+ }
46
+
47
+ @import "iconFont-content";
@@ -0,0 +1,10 @@
1
+ @sysIconFontName: metroSysIcons;
2
+
3
+ @font-face {
4
+ font-family: 'metroSysIcons';
5
+ src: url('../fonts/metroSysIcons.woff') format('woff'),
6
+ url('../fonts/metroSysIcons.ttf') format('truetype'),
7
+ url('../fonts/metroSysIcons.svg#metroSysIcons') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
@@ -0,0 +1,75 @@
1
+ img {
2
+ max-width: 100%;
3
+
4
+ &.rounded, &.cycle, &.polaroid {
5
+ background-color: @white;
6
+ .border;
7
+ }
8
+
9
+ &.rounded {
10
+ border-radius: 10px;
11
+ }
12
+ &.cycle {
13
+ border-radius: 50%;
14
+ }
15
+ &.polaroid {
16
+ padding: @subunitSize * 2;
17
+ }
18
+ }
19
+
20
+ .image-container {
21
+ position: relative;
22
+ padding: 0;
23
+ background-color: @grayDark;
24
+ width: 240px;
25
+ overflow: hidden;
26
+
27
+ &.full-size {
28
+ width: 100%;
29
+ }
30
+
31
+ img {
32
+ margin: 0;
33
+ width: 100%;
34
+ height: auto;
35
+ }
36
+
37
+ & > .overlay, & > .overlay-fluid {
38
+ position: absolute;
39
+ width: 100%;
40
+ height: 55px;
41
+ overflow: hidden;
42
+ background-color: #1e1e1e;
43
+ padding: 5px 10px;
44
+ opacity: .8;
45
+ bottom: 0;
46
+ font-size: 8pt;
47
+ color: #fff;
48
+ }
49
+
50
+ & > .overlay-fluid {
51
+ bottom: -55px;
52
+ font-size: 8pt;
53
+ color: #fff;
54
+ }
55
+
56
+ &:hover {
57
+ .overlay-fluid {
58
+ -webkit-transform: translate(0, -55px);
59
+ -ms-transform: translate(0, -55px);
60
+ -o-transform: translate(0, -55px);
61
+ -moz-transform: translate(0, -55px);
62
+ transform: translate(0, -55px);
63
+
64
+ -webkit-transition: all @overlay-speed ease;
65
+ -moz-transition: all @overlay-speed ease;
66
+ -o-transition: all @overlay-speed ease;
67
+ -ms-transition: all @overlay-speed ease;
68
+ transition: all @overlay-speed ease;
69
+ }
70
+ }
71
+
72
+ &.selected {
73
+ #element > .selected;
74
+ }
75
+ }
@@ -0,0 +1,137 @@
1
+ .container {
2
+ margin: 0 auto;
3
+ // width: @containerDesktopSize;
4
+ }
5
+
6
+ .page {
7
+ .clearfix;
8
+ width: 100%;
9
+ min-height: 100%;
10
+ margin: 0;
11
+ padding: 0;
12
+
13
+ .page-header {
14
+
15
+ .page-header-content {
16
+ .clearfix;
17
+ //min-height: @unitSize * 5;
18
+ min-height: auto;
19
+
20
+ .branding {
21
+ display: inline-block;
22
+ width: auto;
23
+ padding: 10px 0;
24
+ margin-right: 20px;
25
+
26
+ .brand-title {
27
+ .subheader;
28
+ display: block;
29
+ }
30
+
31
+ .brand-slogan {
32
+ .item-title-secondary;
33
+ #font > .normal;
34
+ font-family: @segoeLightFontFamily;
35
+ display: block;
36
+ }
37
+
38
+ .brand-title, .brand-slogan {
39
+ margin: 0;
40
+ }
41
+
42
+ a + .brand-title, a + .brand-slogan {
43
+ text-decoration: none !important;
44
+ }
45
+ }
46
+
47
+ }
48
+ }
49
+
50
+ .page-region {
51
+
52
+ .page-region-content {
53
+ .clearfix;
54
+ min-height: 500px;
55
+ }
56
+ }
57
+
58
+ .page-footer {
59
+ .page-footer-content {
60
+ .clearfix;
61
+ height: @unitSize * 5;
62
+ }
63
+ }
64
+ }
65
+
66
+ .page {
67
+ &.secondary {
68
+ .page-region-content, .page-header-content {
69
+ padding-left: @unitSize * 4;
70
+ }
71
+ }
72
+ }
73
+
74
+ .app-bar {
75
+ position: fixed;
76
+ bottom: 0;
77
+ left: 0;
78
+ right: 0;
79
+ min-height: 100px;
80
+ background-color: @dark;
81
+ z-index: @zindexCharms;
82
+ }
83
+
84
+ .charms {
85
+ position: fixed;
86
+ right: 0;
87
+ top: 0;
88
+ bottom: 0;
89
+ height: 100%;
90
+ min-width: 200px;
91
+ width: auto;
92
+ z-index: @zindexCharms;
93
+
94
+ &.place-left {
95
+ left: 0;
96
+ right: auto;
97
+ }
98
+
99
+ &.search {}
100
+ &.sharing{}
101
+ &.appsets{}
102
+ &.apphelp{}
103
+ }
104
+
105
+ .message-dialog {
106
+ position: fixed;
107
+ left: 0;
108
+ right: 0;
109
+ height: auto;
110
+ min-height: 100px;
111
+ top: 30%;
112
+ padding: 10px 10px 0;
113
+ z-index: @zindexModal;
114
+ }
115
+
116
+ .flyouts{}
117
+
118
+ .error-bar, .warning-bar, .info-bar {
119
+ position: fixed;
120
+ top: 0;
121
+ left: 0;
122
+ right: 0;
123
+ padding: 10px 20px;
124
+ color: #fff;
125
+ min-height: 100px;
126
+ z-index: @zindexModal;
127
+ }
128
+ .error-bar {
129
+ .bg-darkRed;
130
+ }
131
+ .warning-bar {
132
+ .bg-darkOrange;
133
+ }
134
+ .info-bar {
135
+ .bg-lightBlue;
136
+ }
137
+
@@ -0,0 +1,258 @@
1
+ .listview {
2
+ .list {
3
+ border: 4px transparent solid;
4
+ width: 300px;
5
+ height: auto;
6
+ position: relative;
7
+ display: block;
8
+ cursor: pointer;
9
+ color: inherit;
10
+ margin: 0 0 10px 0;
11
+
12
+ .list-content {
13
+ padding: 10px;
14
+ position: relative;
15
+ display: block;
16
+ color: inherit;
17
+ .clearfix;
18
+ }
19
+
20
+ &:hover {
21
+ outline: 3px #ccc solid;
22
+ }
23
+ &:active {
24
+ outline: 3px #3e3e3e solid;
25
+ }
26
+ }
27
+ }
28
+
29
+ .listview {
30
+ .list {
31
+ .border;
32
+ .list-content {
33
+ .icon {
34
+ display: block;
35
+ width: 56px;
36
+ height: 56px;
37
+ font-size: 40px;
38
+ float: left;
39
+ margin-right: 10px;
40
+ }
41
+ [class*="icon-"] {
42
+ &.icon {
43
+ padding: 8px;
44
+ }
45
+ }
46
+
47
+ .data {
48
+ //float: left;
49
+ display: block;
50
+ padding: 0;
51
+ margin: 0;
52
+ margin-left: 66px;
53
+ min-width: 200px;
54
+ position: relative;
55
+ }
56
+
57
+ .list-title, .list-remark {
58
+ margin: 0;
59
+ padding: 0;
60
+ display: block;
61
+ .text-ellipsis;
62
+ }
63
+
64
+ .list-title {
65
+ font-size: 14px;
66
+ line-height: 16px;
67
+ }
68
+ .list-remark {
69
+ font-size: 11px;
70
+ line-height: 12px;
71
+ }
72
+ [class*="span"] {
73
+ float: none;
74
+ }
75
+ .rating {
76
+ color: inherit;
77
+ }
78
+ .progress-bar {
79
+ margin: 5px 0;
80
+ }
81
+ }
82
+ }
83
+ }
84
+
85
+ .listview {
86
+ &.small {
87
+ .list-content {
88
+ .icon {
89
+ display: block;
90
+ width: 32px;
91
+ height: 32px;
92
+ line-height: 14px;
93
+ font-size: 28px;
94
+ float: left;
95
+ margin-right: 10px;
96
+ }
97
+ [class*="icon-"] {
98
+ &.icon {
99
+ padding: 8px 0;
100
+ }
101
+ &.border {
102
+ font-size: 22px;
103
+ padding: 8px 4px;
104
+ }
105
+ }
106
+ .data {
107
+ margin-left: 40px;
108
+ }
109
+ }
110
+ }
111
+ }
112
+
113
+ .listview {
114
+ .list.selected {#element > .selected;}
115
+ }
116
+
117
+ .listview-outlook {
118
+ position: relative;
119
+ display: block;
120
+ .listview;
121
+
122
+ .list {
123
+ display: block;
124
+ width: 100%;
125
+ //min-height: 50px;
126
+ border: 0;
127
+ border-bottom: 1px @lwListBorderColor solid;
128
+ padding: 2px 0;
129
+ color: @gray;
130
+ margin-bottom: 0;
131
+
132
+ .list-content {
133
+ //padding: @lwListContentPadding !important;
134
+ margin: 2px 0;
135
+ padding: 2px 20px;
136
+ #font > .segoe;
137
+ font-size: @lwFontSize;
138
+ color: inherit;
139
+ border-left: 3px transparent solid;
140
+
141
+ .list-title, .list-subtitle, .list-remark {
142
+ width: 100%;
143
+ display: block;
144
+ color: inherit;
145
+ .text-ellipsis;
146
+ }
147
+
148
+ .list-title {
149
+ font-size: @lwFontSize;
150
+ line-height: @lwFontSize+4;
151
+ }
152
+ .list-subtitle, .list-remark {
153
+ font-size: @lwSubtitleSize;
154
+ font-weight: normal;
155
+ line-height: @lwSubtitleSize+4;
156
+ color: @dark;
157
+ }
158
+ .list-subtitle {
159
+ font-weight: bold;
160
+ color: #0067cb;
161
+ }
162
+ }
163
+ }
164
+ }
165
+
166
+ .listview-outlook {
167
+ .list {
168
+ &.marked {
169
+ .list-content {
170
+ border-left: 3px @lwMarkerColor solid !important;
171
+ }
172
+ }
173
+
174
+ &:active, &:focus, &.active {
175
+ background-color: @lwListBackgroundActiveColor !important;
176
+ outline: 1px @grayLight dotted;
177
+ color: @gray !important;
178
+ }
179
+
180
+ &:hover {
181
+ background-color: @lwListBackgroundHoverColor;
182
+ outline: none;
183
+ .list-content {
184
+ border-left: 3px @lwMarkerInactiveColor solid;
185
+ }
186
+ }
187
+ }
188
+ }
189
+
190
+ .listview-outlook {
191
+ .list-group {
192
+ display: block;
193
+ position: relative;
194
+
195
+ .group-title {
196
+ display: block;
197
+ margin-bottom: 2px;
198
+ background-color: #f0f0f0;
199
+ padding: 4px 20px;
200
+ #font > .segoe;
201
+ font-size: @lwSubtitleSize;
202
+ font-weight: bold;
203
+ color: @grayDark;
204
+ padding-left: 24px;
205
+
206
+ &:before {
207
+ position: absolute;
208
+ display: block;
209
+ left: 10px;
210
+ top: 1px;
211
+ content: '';
212
+
213
+ width: 0;
214
+ height: 0;
215
+ border-left: 7px solid transparent;
216
+ border-top: 7px solid transparent;
217
+ border-bottom: 7px solid black;
218
+ }
219
+ }
220
+
221
+ .group-content {
222
+ display: block;
223
+ }
224
+
225
+ &.collapsed {
226
+ .group-title {
227
+ &:before {
228
+ .rotate(-45deg);
229
+ margin-left: -4px;
230
+ }
231
+ }
232
+
233
+ .group-content {
234
+ }
235
+ }
236
+
237
+ .group-title {
238
+ &:hover {
239
+ &:before {
240
+ border-bottom-color: #0067cb;
241
+ }
242
+ }
243
+ }
244
+
245
+ }
246
+ }
247
+
248
+ .listview-outlook {
249
+ .list-content {
250
+ .list-icon {
251
+ float: left;
252
+ width: 48px;
253
+ max-height: 48px;
254
+ margin-right: 10px;
255
+ margin-top: 5px;
256
+ }
257
+ }
258
+ }