face_of_active_admin 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/Rakefile +21 -0
  4. data/app/assets/images/face_of_active_admin/logo.jpg +0 -0
  5. data/app/assets/javascripts/face_of_active_admin/base.js.coffee +34 -0
  6. data/app/assets/stylesheets/face_of_active_admin/_base.scss +38 -0
  7. data/app/assets/stylesheets/face_of_active_admin/_forms.scss +551 -0
  8. data/app/assets/stylesheets/face_of_active_admin/_header.scss +283 -0
  9. data/app/assets/stylesheets/face_of_active_admin/_mixins.scss +1 -0
  10. data/app/assets/stylesheets/face_of_active_admin/_typography.scss +250 -0
  11. data/app/assets/stylesheets/face_of_active_admin/components/_batch_actions.scss +13 -0
  12. data/app/assets/stylesheets/face_of_active_admin/components/_blank_slates.scss +32 -0
  13. data/app/assets/stylesheets/face_of_active_admin/components/_breadcrumbs.scss +27 -0
  14. data/app/assets/stylesheets/face_of_active_admin/components/_buttons.scss +16 -0
  15. data/app/assets/stylesheets/face_of_active_admin/components/_ckeditor.scss +6 -0
  16. data/app/assets/stylesheets/face_of_active_admin/components/_columns.scss +3 -0
  17. data/app/assets/stylesheets/face_of_active_admin/components/_comments.scss +52 -0
  18. data/app/assets/stylesheets/face_of_active_admin/components/_date_picker.scss +315 -0
  19. data/app/assets/stylesheets/face_of_active_admin/components/_dropdown_menu.scss +161 -0
  20. data/app/assets/stylesheets/face_of_active_admin/components/_flash_messages.scss +44 -0
  21. data/app/assets/stylesheets/face_of_active_admin/components/_grid.scss +57 -0
  22. data/app/assets/stylesheets/face_of_active_admin/components/_index_list.scss +12 -0
  23. data/app/assets/stylesheets/face_of_active_admin/components/_init.scss +16 -0
  24. data/app/assets/stylesheets/face_of_active_admin/components/_links.scss +8 -0
  25. data/app/assets/stylesheets/face_of_active_admin/components/_modal_dialog.scss +67 -0
  26. data/app/assets/stylesheets/face_of_active_admin/components/_nav.scss +64 -0
  27. data/app/assets/stylesheets/face_of_active_admin/components/_pagination.scss +70 -0
  28. data/app/assets/stylesheets/face_of_active_admin/components/_panels.scss +89 -0
  29. data/app/assets/stylesheets/face_of_active_admin/components/_popovers.scss +124 -0
  30. data/app/assets/stylesheets/face_of_active_admin/components/_scopes.scss +10 -0
  31. data/app/assets/stylesheets/face_of_active_admin/components/_status_tags.scss +28 -0
  32. data/app/assets/stylesheets/face_of_active_admin/components/_table_tools.scss +70 -0
  33. data/app/assets/stylesheets/face_of_active_admin/components/_tables.scss +305 -0
  34. data/app/assets/stylesheets/face_of_active_admin/mixins/_all.scss +11 -0
  35. data/app/assets/stylesheets/face_of_active_admin/mixins/_buttons.scss +71 -0
  36. data/app/assets/stylesheets/face_of_active_admin/mixins/_gradients.scss +52 -0
  37. data/app/assets/stylesheets/face_of_active_admin/mixins/_icons.scss +31 -0
  38. data/app/assets/stylesheets/face_of_active_admin/mixins/_reset.scss +214 -0
  39. data/app/assets/stylesheets/face_of_active_admin/mixins/_rounded.scss +42 -0
  40. data/app/assets/stylesheets/face_of_active_admin/mixins/_sections.scss +38 -0
  41. data/app/assets/stylesheets/face_of_active_admin/mixins/_select.scss +22 -0
  42. data/app/assets/stylesheets/face_of_active_admin/mixins/_shadows.scss +21 -0
  43. data/app/assets/stylesheets/face_of_active_admin/mixins/_utilities.scss +17 -0
  44. data/app/assets/stylesheets/face_of_active_admin/mixins/_variables.scss +69 -0
  45. data/app/assets/stylesheets/face_of_active_admin/pages/_logged_out.scss +96 -0
  46. data/app/assets/stylesheets/face_of_active_admin/print.scss +283 -0
  47. data/app/assets/stylesheets/face_of_active_admin/structure/_footer.scss +28 -0
  48. data/app/assets/stylesheets/face_of_active_admin/structure/_main_structure.scss +86 -0
  49. data/app/assets/stylesheets/face_of_active_admin/structure/_title_bar.scss +69 -0
  50. data/config/routes.rb +2 -0
  51. data/lib/face_of_active_admin/version.rb +3 -0
  52. data/lib/face_of_active_admin.rb +10 -0
  53. data/lib/generators/face_of_active_admin/variables/USAGE +8 -0
  54. data/lib/generators/face_of_active_admin/variables/variables_generator.rb +12 -0
  55. metadata +126 -0
@@ -0,0 +1,315 @@
1
+ // -------------------------------------- Date Picker
2
+ .ui-datepicker {
3
+ background: $skinActiveColor;
4
+ background-image: none;
5
+ background-clip: padding-box;
6
+ color: #fff;
7
+ display: none;
8
+ margin-top: 2px;
9
+ padding: 0;
10
+ text-align: center;
11
+ width: 160px;
12
+
13
+ a {
14
+ text-decoration: none;
15
+
16
+ &:hover {
17
+ cursor: pointer;
18
+ }
19
+ }
20
+
21
+ .ui-datepicker-header {
22
+ background: none;
23
+ height: 14px;
24
+ padding: 16px 7px 8px;
25
+ margin: 0px 0px 2px 2px;
26
+ width: 147px;
27
+ border-top-left-radius: 7px;
28
+ border-top-right-radius: 7px;
29
+ position: relative;
30
+ z-index: 2000;
31
+
32
+ .ui-datepicker-title {
33
+ .ui-datepicker-month,
34
+ .ui-datepicker-year {
35
+ font-size: 1.1em;
36
+ }
37
+
38
+ @include text-shadow(#000, 1px, 1px, 3px);
39
+
40
+ color: $panelHeaderTextColor;
41
+ display: block;
42
+ font-size: 1.1em;
43
+ font-weight: bold;
44
+ line-height: 0.8em;
45
+ text-align: center;
46
+ vertical-align: top;
47
+
48
+ .ui-datepicker-month {
49
+ margin: -1px 0 0 0;
50
+ }
51
+
52
+ .ui-datepicker-year {
53
+ margin: -1px 0 0 0;
54
+ }
55
+ }
56
+
57
+ a {
58
+ color: $panelHeaderTextColor;
59
+ display: block;
60
+ height: 19px;
61
+ margin-top: -4px;
62
+ width: 20px;
63
+
64
+ &.ui-datepicker-prev {
65
+ float: left;
66
+
67
+ @extend .fa;
68
+
69
+ @extend .fa-angle-left;
70
+
71
+ background: none;
72
+ position: relative;
73
+ top: 4px;
74
+ }
75
+
76
+ &.ui-datepicker-next {
77
+ float: right;
78
+
79
+ @extend .fa;
80
+
81
+ @extend .fa-angle-right;
82
+
83
+ background: none;
84
+ position: relative;
85
+ top: 4px;
86
+ }
87
+
88
+ span {
89
+ display: none;
90
+ }
91
+ }
92
+ }
93
+
94
+ table.ui-datepicker-calendar {
95
+ @include rounded-bottom;
96
+
97
+ @include shadow(0, 1px, 6px, rgba(0, 0, 0, 0.26));
98
+
99
+ background-color: #f4f4f4;
100
+ border: solid 1px #63686e;
101
+ left: 2px;
102
+ margin-bottom: 0px;
103
+ position: relative;
104
+ top: -2px;
105
+ width: 156px;
106
+
107
+ td, th {
108
+ padding: 0px;
109
+ text-align: center;
110
+ }
111
+
112
+ thead th {
113
+ background-color: #dbdddf;
114
+ color: #333333;
115
+ font-weight: normal;
116
+ font-size: 0.8em;
117
+ padding-top: 1px;
118
+ }
119
+
120
+ tbody {
121
+ color: #666666;
122
+
123
+ td {
124
+ border: none;
125
+ height: 24px;
126
+ width: 22px;
127
+
128
+ a {
129
+ @include rounded;
130
+
131
+ color: #666666;
132
+ font-weight: bold;
133
+ font-size: 0.85em;
134
+ padding: 4px;
135
+
136
+ &.ui-state-active {
137
+ background-color: #5a5f64;
138
+ color: #fff;
139
+
140
+ &.ui-state-hover {
141
+ background-color: #5a5f64;
142
+ color: #fff;
143
+ }
144
+ }
145
+
146
+ &.ui-state-hover {
147
+ background-color: #eceef0;
148
+ }
149
+
150
+ &.ui-state-highlight {
151
+ background-color: #dbdddf;
152
+ }
153
+ }
154
+ }
155
+ }
156
+ }
157
+ }
158
+
159
+ // default
160
+ //.ui-datepicker {
161
+ // background: #fff;
162
+ // -webkit-background-clip: padding-box;
163
+ // -moz-background-clip: padding-box;
164
+ // background-clip: padding-box;
165
+ // color: #fff;
166
+ // display: none;
167
+ // margin-top: 2px;
168
+ // padding: 0;
169
+ // text-align: center;
170
+ // width: 160px;
171
+ //
172
+ // a {
173
+ // text-decoration: none;
174
+ // &:hover {
175
+ // cursor: pointer;
176
+ // }
177
+ // }
178
+ //
179
+ // .ui-datepicker-header {
180
+ // height: 14px;
181
+ // @include primary-gradient;
182
+ // padding: 12px 5px 7px 4px;
183
+ // margin: 0px 0px 2px 2px;
184
+ // width: 147px;
185
+ // border-top-left-radius: 7px;
186
+ // border-top-right-radius: 7px;
187
+ // position: relative;
188
+ // z-index: 2000;
189
+ //
190
+ // &:before {
191
+ // content: "";
192
+ // position: absolute;
193
+ // right: 45%;
194
+ // top: -6px;
195
+ // width: 0px;
196
+ // height: 0px;
197
+ // border-left: 8.5px solid rgba(0, 0, 0, 0);
198
+ // border-right: 8.5px solid rgba(0, 0, 0, 0);
199
+ // border-bottom: 10px solid #676e73;
200
+ // }
201
+ //
202
+ // .ui-datepicker-title {
203
+ // // Date picker styling
204
+ // .ui-datepicker-month,
205
+ // .ui-datepicker-year{
206
+ // font-size: 1.1em;
207
+ // }
208
+ // @include text-shadow(#000);
209
+ // color: #fff;
210
+ // display: block;
211
+ // font-size: 1.1em;
212
+ // font-weight: bold;
213
+ // line-height: 0.8em;
214
+ // text-align: center;
215
+ // vertical-align: top;
216
+ //
217
+ // .ui-datepicker-month {
218
+ // margin: -1px 0 0 0;
219
+ // }
220
+ // .ui-datepicker-year {
221
+ // margin: -1px 0 0 0;
222
+ // }
223
+ // }
224
+ //
225
+ //
226
+ // a {
227
+ // color: #fff;
228
+ // display: block;
229
+ // height: 19px;
230
+ // margin-top: -4px;
231
+ // width: 10px;
232
+ //
233
+ // &.ui-datepicker-prev {
234
+ // float: left;
235
+ // width: 0;
236
+ // height: 0;
237
+ // margin: 0px 0px 0px 4px;
238
+ // border-top: 5px solid transparent;
239
+ // border-right: 5px solid white;
240
+ // border-bottom: 5px solid transparent;
241
+ // }
242
+ // &.ui-datepicker-next {
243
+ // float: right;
244
+ // width: 0;
245
+ // height: 0;
246
+ // margin: 0px 4px 0px 0px;
247
+ // border-top: 5px solid transparent;
248
+ // border-left: 5px solid white;
249
+ // border-bottom: 5px solid transparent;
250
+ // }
251
+ //
252
+ // span {
253
+ // display: none;
254
+ // }
255
+ // }
256
+ // }
257
+ //
258
+ // table.ui-datepicker-calendar {
259
+ // @include rounded-bottom;
260
+ // @include shadow(0,1px,6px,rgba(0,0,0,0.26));
261
+ // background-color: #f4f4f4;
262
+ // border: solid 1px #63686e;
263
+ // left: 2px;
264
+ // margin-bottom: 0px;
265
+ // position: relative;
266
+ // top: -2px;
267
+ // width: 156px;
268
+ //
269
+ // td, th {
270
+ // padding: 0px;
271
+ // text-align: center;
272
+ // }
273
+ //
274
+ // thead th {
275
+ // background-color: #dbdddf;
276
+ // color: #333333;
277
+ // font-weight: normal;
278
+ // font-size: 0.8em;
279
+ // padding-top: 1px;
280
+ // }
281
+ //
282
+ // tbody {
283
+ // color: #666666;
284
+ //
285
+ // td {
286
+ // border: none;
287
+ // height: 24px;
288
+ // width: 22px;
289
+ //
290
+ // a {
291
+ // @include rounded;
292
+ // color: #666666;
293
+ // font-weight: bold;
294
+ // font-size: 0.85em;
295
+ // padding: 4px;
296
+ //
297
+ // &.ui-state-active {
298
+ // background-color: #5a5f64;
299
+ // color: #fff;
300
+ // &.ui-state-hover {
301
+ // background-color: #5a5f64;
302
+ // color: #fff;
303
+ // }
304
+ // }
305
+ // &.ui-state-hover {
306
+ // background-color: #eceef0;
307
+ // }
308
+ // &.ui-state-highlight {
309
+ // background-color: #dbdddf;
310
+ // }
311
+ // }
312
+ // }
313
+ // }
314
+ // }
315
+ //}
@@ -0,0 +1,161 @@
1
+ .dropdown_menu {
2
+ display: inline;
3
+
4
+ .dropdown_menu_button {
5
+ //@include light-button;
6
+ position: relative;
7
+ padding-right: 22px !important;
8
+ cursor: pointer;
9
+
10
+ &:before {
11
+ content: ' ';
12
+ position: absolute;
13
+ width: 0;
14
+ height: 0;
15
+ border-width: 3px 3px 0;
16
+ border-style: solid;
17
+ border-color: #FFF transparent;
18
+ right: 12px;
19
+ top: 45%;
20
+ }
21
+
22
+ &:after {
23
+ content: ' ';
24
+ position: absolute;
25
+ width: 0;
26
+ height: 0;
27
+ border-width: 3px 3px 0;
28
+ border-style: solid;
29
+ border-color: darken($skinActiveColor, 30%) transparent;
30
+ right: 12px;
31
+ top: 45%;
32
+ }
33
+ }
34
+
35
+ .dropdown_menu_nipple {
36
+ // The nipple's border
37
+ content: "";
38
+ position: absolute;
39
+ top: -6px;
40
+ display: block;
41
+ width: 0;
42
+ height: 0;
43
+ border-width: 0 6px 6px;
44
+ border-style: solid;
45
+ border-color: darken($primary-color, 4%) transparent;
46
+ z-index: 3000;
47
+
48
+ // The nipple's inner shadow
49
+
50
+ &:before {
51
+ content: ' ';
52
+ position: absolute;
53
+ width: 0;
54
+ height: 0;
55
+ border-width: 0 7px 7px;
56
+ border-style: solid;
57
+ border-color: darken($skinActiveColor, 10%) transparent;
58
+ left: -7px;
59
+ top: 1px;
60
+ }
61
+
62
+ // The nipple's background color
63
+
64
+ &:after {
65
+ content: ' ';
66
+ position: absolute;
67
+ width: 0;
68
+ height: 0;
69
+ border-width: 0 7px 7px;
70
+ border-style: solid;
71
+ border-color: darken($skinActiveColor, 30%) transparent;
72
+ left: -7px;
73
+ top: 0px;
74
+ }
75
+ }
76
+
77
+ .dropdown_menu_list_wrapper {
78
+ display: inline-block;
79
+ position: absolute;
80
+ background-color: white;
81
+ padding: 2px;
82
+
83
+ //box-shadow: rgba(0,0,0,0.4) 0 1px 3px, lighten($primary-color, 15%) 0px 1px 0px 0px inset;
84
+ background-color: $primary-color;
85
+
86
+ //border: solid 1px darken($primary-color, 10%);
87
+ //border-top-color: darken($primary-color, 4%);
88
+ //border-bottom-color: darken($primary-color, 17%);
89
+
90
+ border-radius: 4px;
91
+ background-color: darken($skinActiveColor, 30%);
92
+
93
+ //background-color: $primary-color !important;
94
+ //border: solid 1px $primary-color !important;
95
+
96
+ .dropdown_menu_list {
97
+ display: block;
98
+ background-color: #FFF;
99
+ border: solid 1px darken($skinActiveColor, 30%);
100
+
101
+ //box-shadow: lighten($skinActiveColor, 15%) 0px 1px 0px 0px;
102
+ border-radius: 3px;
103
+ margin: 0;
104
+ overflow: hidden;
105
+ padding: 8px;
106
+ list-style-type: none;
107
+ padding: 0;
108
+ z-index: 3000;
109
+ position: relative;
110
+
111
+ li {
112
+ display: block;
113
+
114
+ //border-bottom: solid 1px #ebebeb;
115
+ box-sizing: border-box;
116
+
117
+ a {
118
+ display: block;
119
+ box-sizing: padding-box;
120
+ font-size: 0.95em;
121
+ font-weight: bold;
122
+ padding: 7px 16px 5px;
123
+ text-decoration: none;
124
+ text-align: center;
125
+ -webkit-font-smoothing: antialiased;
126
+ color: $skinActiveColor;
127
+ transition: $link_transition_dutarion;
128
+
129
+ &:hover {
130
+ //@include highlight-gradient;
131
+ //@include text-shadow(#5a83aa);
132
+ background: lighten($skinActiveColor, 10%);
133
+ color: #FFF;
134
+ }
135
+
136
+ &:active {
137
+ @include reverse-highlight-gradient;
138
+
139
+ color: #FFF;
140
+ }
141
+ }
142
+
143
+ &:first-child {
144
+ a {
145
+ border-top-left-radius: 2px;
146
+ border-top-right-radius: 2px;
147
+ }
148
+ }
149
+
150
+ &:last-child {
151
+ a {
152
+ border-bottom-left-radius: 2px;
153
+ border-bottom-right-radius: 2px;
154
+ }
155
+
156
+ border: none;
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
@@ -0,0 +1,44 @@
1
+ body.logged_in {
2
+ .flashes {
3
+ .flash {
4
+ background-color: #f7f1d3;
5
+ border-bottom: 1px solid #eee098;
6
+ color: #cb9810;
7
+ font-weight: bold;
8
+ font-size: 1.1em;
9
+ line-height: 1.0em;
10
+ padding: 13px 30px 11px;
11
+ position: relative;
12
+ top: 0px;
13
+ text-shadow: none;
14
+
15
+ &.flash_notice {
16
+ background-color: #dce9dd;
17
+ border-bottom: 1px solid #adcbaf;
18
+ border-top: 1px solid #adcbaf;
19
+ color: #416347;
20
+ }
21
+
22
+ &.flash_error {
23
+ background: #f5e4e4;
24
+ border-bottom: 1px solid #e0c2c0;
25
+ color: #b33c33;
26
+ }
27
+ }
28
+ }
29
+ }
30
+
31
+ body.logged_out {
32
+ .flash {
33
+ @include no-shadow;
34
+
35
+ @include text-shadow(#fff);
36
+
37
+ background: none;
38
+ color: #666;
39
+ font-weight: bold;
40
+ line-height: 1.0em;
41
+ padding: 0;
42
+ margin-bottom: 8px;
43
+ }
44
+ }
@@ -0,0 +1,57 @@
1
+ // -------------------------------------- Index as Grid
2
+ table.index_grid td {
3
+ border: none;
4
+ background: none;
5
+ padding: 0 20px 20px 0;
6
+ margin: 0;
7
+ }
8
+
9
+ // -------------------------------------- Columns
10
+ .columns {
11
+ clear: both;
12
+ padding: 0;
13
+
14
+ .column {
15
+ float: left;
16
+ }
17
+ }
18
+
19
+ .width10 {
20
+ width: 10%;
21
+ }
22
+
23
+ .width20 {
24
+ width: 20%;
25
+ }
26
+
27
+ .width30 {
28
+ width: 30%;
29
+ }
30
+
31
+ .width40 {
32
+ width: 40%;
33
+ }
34
+
35
+ .width50 {
36
+ width: 50%;
37
+ }
38
+
39
+ .width60 {
40
+ width: 60%;
41
+ }
42
+
43
+ .width70 {
44
+ width: 70%;
45
+ }
46
+
47
+ .width80 {
48
+ width: 80%;
49
+ }
50
+
51
+ .width90 {
52
+ width: 90%;
53
+ }
54
+
55
+ .width100 {
56
+ width: 100%;
57
+ }
@@ -0,0 +1,12 @@
1
+ .indexes {
2
+ float: right;
3
+
4
+ li {
5
+ .count {
6
+ color: #8e979e;
7
+ font-weight: normal;
8
+ font-size: 0.9em;
9
+ line-height: 10px;
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,16 @@
1
+ html {
2
+ height: 100%;
3
+ min-height: 100%;
4
+ background: $body-background-color;
5
+ font-family: $skinFontFamily;
6
+ }
7
+
8
+ body.active_admin {
9
+ background: $body-background-color;
10
+ font-family: $skinFontFamily;
11
+ padding-bottom: 80px;
12
+ }
13
+
14
+ strong, b {
15
+ font-weight: 600;
16
+ }
@@ -0,0 +1,8 @@
1
+ a, a:link, a:visited {
2
+ color: $primary-color;
3
+ text-decoration: underline;
4
+ }
5
+
6
+ a:hover {
7
+ text-decoration: none;
8
+ }
@@ -0,0 +1,67 @@
1
+ .ui-widget-overlay {
2
+ position: fixed;
3
+ background: rgba(0, 0, 0, 0.2);
4
+ top: 0;
5
+ left: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ z-index: 1001;
9
+ }
10
+
11
+ .ui-dialog {
12
+ position: fixed;
13
+ z-index: 1002;
14
+
15
+ @include section-background;
16
+
17
+ box-shadow: rgba(0, 0, 0, 0.5) 0 0 10px;
18
+
19
+ .ui-dialog-titlebar {
20
+ // Popover styling
21
+ @include section-header;
22
+
23
+ span {
24
+ font-size: 1.1em;
25
+ }
26
+
27
+ text-align: center;
28
+ font-size: 1.3em;
29
+ padding: 20px;
30
+ background: 0;
31
+ line-height: 24px;
32
+ }
33
+
34
+ .ui-dialog-titlebar-close {
35
+ display: none;
36
+ }
37
+
38
+ ul {
39
+ list-style-type: none;
40
+ }
41
+
42
+ li {
43
+ margin: 10px 0;
44
+ }
45
+
46
+ label {
47
+ margin-right: 10px;
48
+ }
49
+
50
+ .ui-dialog-buttonpane, form {
51
+ padding: 7px 15px 13px;
52
+ }
53
+
54
+ .ui-dialog-buttonpane button {
55
+ &:first-child {
56
+ @include dark-button;
57
+ }
58
+
59
+ // OK
60
+ &:last-child {
61
+ @include light-button;
62
+ }
63
+
64
+ // Cancel
65
+
66
+ }
67
+ }