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,283 @@
1
+ // ----------------------------------- Header
2
+ #header {
3
+ @include header-background-gradient;
4
+
5
+ background: $page-header-background-color;
6
+ height: 50px;
7
+ width: 100%;
8
+ position: inherit;
9
+ padding: 0;
10
+ z-index: 900;
11
+ border: none;
12
+ text-shadow: none;
13
+
14
+ // overflow: visible;
15
+ // display: table;
16
+ text-align: center;
17
+ display: flex;
18
+ flex-direction: row;
19
+ justify-content: flex-start;
20
+ align-items: center;
21
+ flex-wrap: no-wrap;
22
+ align-content: center;
23
+
24
+ h1 {
25
+ vertical-align: middle;
26
+ white-space: nowrap;
27
+ color: $page-header-text-color;
28
+ margin-right: 5px;
29
+ margin-bottom: 0px;
30
+ padding: 3px $horizontal-page-header-padding 0 $horizontal-page-header-padding;
31
+ font-size: 1.3em;
32
+ font-weight: normal;
33
+ line-height: 1.2;
34
+
35
+ //flex-basis: 160px;
36
+ align-self: stretch;
37
+
38
+ &.site_title {
39
+ background-color: $main-background-color;
40
+ background: $skinLogo;
41
+ padding-left: $logo-width;
42
+ color: $skinTextColor;
43
+ text-indent: -9999px;
44
+ width: $skinLogoWidth;
45
+ }
46
+
47
+ a {
48
+ text-decoration: none;
49
+
50
+ &:hover {
51
+ color: darken($skinTextColor, 15%);
52
+ }
53
+ }
54
+
55
+ img {
56
+ display: inline-block;
57
+ position: relative;
58
+
59
+ //top: -2px;
60
+
61
+ }
62
+ }
63
+
64
+ a, a:link {
65
+ color: $skinTextColor;
66
+ }
67
+
68
+ .header-item {
69
+ top: 2px;
70
+ position: relative;
71
+ height: 20px;
72
+ }
73
+
74
+ ul.tabs {
75
+ display: flex;
76
+ align-items: center;
77
+ align-content: stretch;
78
+ justify-content: flex-start;
79
+ flex-flow: row wrap;
80
+ align-content: center;
81
+ height: 100%;
82
+ margin: 0;
83
+ padding: 0;
84
+
85
+ > li a {
86
+ font-size: 1.1em;
87
+ }
88
+
89
+ & > li {
90
+ display: inline-block;
91
+ margin-right: 2px;
92
+ margin-top: 3px;
93
+ margin-bottom: 3px;
94
+ position: relative;
95
+
96
+ a {
97
+ text-decoration: none;
98
+ padding: 13px 20px;
99
+ margin: 0;
100
+ position: relative;
101
+
102
+ @include rounded(10px);
103
+
104
+ transition: $link_transition_dutarion;
105
+ }
106
+
107
+ &.has_nested > a {
108
+ //TODO !!!
109
+ //background-position: 93% 50%;
110
+ background-color: $skinActiveColor;
111
+
112
+ //background: image-url('active_admin/nested_menu_arrow.gif') no-repeat calc(100% - 7px) 50%;
113
+ padding-right: 20px;
114
+ }
115
+
116
+ &.has_nested.current > a {
117
+ //background: $current-menu-item-background image-url('active_admin/nested_menu_arrow_dark.gif') no-repeat calc(100% - 7px) 50%;
118
+ padding-right: 20px;
119
+ }
120
+
121
+ &:hover > a {
122
+ color: $skinTextActiveColor;
123
+ background: darken($skinActiveColor, 10%);
124
+
125
+ @include rounded(0);
126
+
127
+ margin: (-10px) 0;
128
+ }
129
+
130
+ &.current > a {
131
+ color: $skinTextActiveColor;
132
+ background: $skinActiveColor;
133
+
134
+ @include rounded(0);
135
+
136
+ margin: (-10px) 0;
137
+ }
138
+
139
+ &.has_nested:hover > a {
140
+ // TODO!!
141
+ @include rounded-top(10px);
142
+
143
+ //border-bottom: 5px solid lighten($current-menu-item-background, 10%);
144
+ border: none;
145
+
146
+ //background: lighten($current-menu-item-background, 10%) image-url('active_admin/nested_menu_arrow_dark.gif') no-repeat calc(100% - 7px) 50%;
147
+
148
+ z-index: 1020;
149
+ }
150
+
151
+ /* Hover on li, display the ul */
152
+ &:hover ul {
153
+ display: block;
154
+ }
155
+
156
+ /* Drop down menus */
157
+ ul {
158
+ background: lighten($skinActiveColor, 20%);
159
+
160
+ //@include rounded-all(0,5px,5px,5px);
161
+ @include no-shadow;
162
+
163
+ @include rounded(0);
164
+
165
+ border: none;
166
+ position: absolute;
167
+ width: 120%;
168
+ min-width: 175px;
169
+ max-width: calc(100% + 20px);
170
+ margin-top: 5px;
171
+ float: left;
172
+ display: none;
173
+ padding: 3px 0px 5px 0;
174
+ list-style: none;
175
+ z-index: 1010;
176
+
177
+ li {
178
+ margin: 0px;
179
+
180
+ a {
181
+ color: $header-dropdown-menu-text-color;
182
+ background: none;
183
+ display: block;
184
+
185
+ &:hover {
186
+ color: #fff;
187
+ background: lighten($skinActiveColor, 10%);
188
+ }
189
+ }
190
+
191
+ &.current {
192
+ a {
193
+ @include rounded(0);
194
+ }
195
+ }
196
+ }
197
+ }
198
+ }
199
+ }
200
+
201
+ #tabs {
202
+ li {
203
+ a {
204
+ padding: 3px 20px;
205
+ }
206
+ }
207
+ }
208
+
209
+ #utility_nav {
210
+ color: #aaa;
211
+ white-space: nowrap;
212
+ text-align: right;
213
+ background: $main-background-color;
214
+ margin-left: auto;
215
+ flex-shrink: 5;
216
+ position: relative;
217
+
218
+ &:before {
219
+ display: block;
220
+ content: '';
221
+ background: $skinActiveColor;
222
+ height: 3px;
223
+ width: 100%;
224
+ position: absolute;
225
+ }
226
+
227
+ a {
228
+ text-decoration: none;
229
+ padding: 5px 20px;
230
+ }
231
+
232
+ li {
233
+ &:hover {
234
+ background: $skinActiveColor;
235
+ transition: $link_transition_dutarion;
236
+
237
+ a::before {
238
+ color: lighten($skinActiveColor, 35%);
239
+ }
240
+ }
241
+
242
+ // a {
243
+ // &:hover {
244
+ // background: none;
245
+ // color: $skinTextColor;
246
+ // }
247
+ // }
248
+
249
+ }
250
+ }
251
+
252
+ #current_user {
253
+ a {
254
+ position: relative;
255
+
256
+ &:before {
257
+ font-family: 'FontAwesome';
258
+ color: $skinActiveColor;
259
+ position: relative;
260
+ left: -7px;
261
+ content: "\f007";
262
+ font-size: 1.5em;
263
+ }
264
+ }
265
+ }
266
+ }
267
+
268
+ #logout {
269
+ a {
270
+ font-weight: bold;
271
+ text-decoration: underline;
272
+ position: relative;
273
+
274
+ &:before {
275
+ font-family: 'FontAwesome';
276
+ color: lighten($skinActiveColor, 20%);
277
+ position: relative;
278
+ left: -7px;
279
+ content: "\f08b";
280
+ font-size: 1.5em;
281
+ }
282
+ }
283
+ }
@@ -0,0 +1 @@
1
+ @import "face_of_active_admin/mixins/all";
@@ -0,0 +1,250 @@
1
+ // Adapted from Blueprint CSS Framework
2
+ //
3
+ // Copyright (c) 2007 - 2010 blueprintcss.org
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person
6
+ // obtaining a copy of this software and associated documentation
7
+ // files (the "Software"), to deal in the Software without
8
+ // restriction, including without limitation the rights to use,
9
+ // copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ // copies of the Software, and to permit persons to whom the
11
+ // Software is furnished to do so, subject to the following
12
+ // conditions:
13
+ //
14
+ // The above copyright notice and this permission notice shall be
15
+ // included in all copies or substantial portions of the Software.
16
+ //
17
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
19
+ // OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
21
+ // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
22
+ // WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
23
+ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
24
+ // OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ // Default font settings. The font-size percentage is of 16px. (0.75 * 16px = 12px) */
27
+ html {
28
+ font-size: 100.01%;
29
+ }
30
+
31
+ body {
32
+ font-size: 75%;
33
+ font-family: $default-font, "Helvetica Neue", Arial, Helvetica, sans-serif;
34
+ }
35
+
36
+ // Headings
37
+ h1, h2, h3, h4, h5, h6 {
38
+ font-weight: normal;
39
+ color: $primary-color;
40
+
41
+ img {
42
+ margin: 0;
43
+ }
44
+ }
45
+
46
+ h1 {
47
+ font-size: 3em;
48
+ line-height: 1;
49
+ margin-bottom: 0.5em;
50
+ }
51
+
52
+ h2 {
53
+ font-size: 2em;
54
+ margin-bottom: 0.75em;
55
+ }
56
+
57
+ h3 {
58
+ font-size: 1.5em;
59
+ line-height: 1;
60
+ margin-bottom: 1em;
61
+ }
62
+
63
+ h4 {
64
+ font-size: 1.2em;
65
+ line-height: 1.25;
66
+ margin-bottom: 1.25em;
67
+ }
68
+
69
+ h5 {
70
+ font-size: 1em;
71
+ font-weight: bold;
72
+ margin-bottom: 1.5em;
73
+ }
74
+
75
+ h6 {
76
+ font-size: 1em;
77
+ font-weight: bold;
78
+ }
79
+
80
+ p {
81
+ margin: 0 0 1.5em;
82
+
83
+ .left {
84
+ margin: 1.5em 1.5em 1.5em 0;
85
+ padding: 0;
86
+ }
87
+
88
+ .right {
89
+ margin: 1.5em 0 1.5em 1.5em;
90
+ padding: 0;
91
+ }
92
+ }
93
+
94
+ .left {
95
+ float: left !important;
96
+ }
97
+
98
+ .right {
99
+ float: right !important;
100
+ }
101
+
102
+ blockquote {
103
+ margin: 1.5em;
104
+ color: #666;
105
+ font-style: italic;
106
+ }
107
+
108
+ strong, dfn {
109
+ font-weight: bold;
110
+ }
111
+
112
+ em, dfn {
113
+ font-style: italic;
114
+ }
115
+
116
+ sup, sub {
117
+ line-height: 0;
118
+ }
119
+
120
+ abbr,
121
+ acronym {
122
+ border-bottom: 1px dotted #666;
123
+ }
124
+
125
+ address {
126
+ margin: 0 0 1.5em;
127
+ font-style: italic;
128
+ }
129
+
130
+ del {
131
+ color: #666;
132
+ }
133
+
134
+ pre {
135
+ margin: 1.5em 0;
136
+ white-space: pre;
137
+ }
138
+
139
+ pre, code, tt {
140
+ font: 1em 'andale mono', 'lucida console', monospace;
141
+ line-height: 1.5;
142
+ }
143
+
144
+ // Lists
145
+ li ul,
146
+ li ol {
147
+ margin: 0;
148
+ }
149
+
150
+ ul, ol {
151
+ margin: 0 1.5em 1.5em 0;
152
+ padding-left: 1.5em;
153
+ }
154
+
155
+ ul {
156
+ list-style-type: disc;
157
+ }
158
+
159
+ ol {
160
+ list-style-type: decimal;
161
+ }
162
+
163
+ dl {
164
+ margin: 0 0 1.5em 0;
165
+ }
166
+
167
+ dl dt {
168
+ font-weight: bold;
169
+ }
170
+
171
+ dd {
172
+ margin-left: 1.5em;
173
+ }
174
+
175
+ // Tables
176
+ table {
177
+ margin-bottom: 1.4em;
178
+ width: 100%;
179
+ }
180
+
181
+ th {
182
+ font-weight: bold;
183
+ }
184
+
185
+ thead th {
186
+ background: #c3d9ff;
187
+ }
188
+
189
+ th, td, caption {
190
+ padding: 4px 10px 4px 5px;
191
+ }
192
+
193
+ // Helper Classes
194
+ .small {
195
+ font-size: .8em;
196
+ margin-bottom: 1.875em;
197
+ line-height: 1.875em;
198
+ }
199
+
200
+ .large {
201
+ font-size: 1.2em;
202
+ line-height: 2.5em;
203
+ margin-bottom: 1.25em;
204
+ }
205
+
206
+ .hide {
207
+ display: none;
208
+ }
209
+
210
+ .quiet {
211
+ color: #666;
212
+ }
213
+
214
+ .loud {
215
+ color: #000;
216
+ }
217
+
218
+ .highlight {
219
+ background: #ff0;
220
+ }
221
+
222
+ .added {
223
+ background: #060;
224
+ color: #fff;
225
+ }
226
+
227
+ .removed {
228
+ background: #900;
229
+ color: #fff;
230
+ }
231
+
232
+ .first {
233
+ margin-left: 0;
234
+ padding-left: 0;
235
+ }
236
+
237
+ .last {
238
+ margin-right: 0;
239
+ padding-right: 0;
240
+ }
241
+
242
+ .top {
243
+ margin-top: 0;
244
+ padding-top: 0;
245
+ }
246
+
247
+ .bottom {
248
+ margin-bottom: 0;
249
+ padding-bottom: 0;
250
+ }
@@ -0,0 +1,13 @@
1
+ #collection_selection_toggle_panel {
2
+ @include clearfix;
3
+
4
+ > .resource_selection_toggle_cell {
5
+ float: left;
6
+ }
7
+
8
+ #collection_selection_toggle_explaination {
9
+ float: left;
10
+ margin-left: 5px;
11
+ font-style: italic;
12
+ }
13
+ }
@@ -0,0 +1,32 @@
1
+ .blank_slate_container {
2
+ clear: both;
3
+ text-align: center;
4
+
5
+ .blank_slate {
6
+ @include rounded;
7
+
8
+ -webkit-font-smoothing: antialiased;
9
+ border: $blank-slate-border;
10
+ color: $blank-slate-primary-color;
11
+ display: inline-block;
12
+ font-size: 1.2em;
13
+ font-weight: bold;
14
+ padding: 14px 25px;
15
+ text-align: center;
16
+
17
+ small {
18
+ display: block;
19
+ font-size: 0.9em;
20
+ font-weight: normal;
21
+ }
22
+ }
23
+ }
24
+
25
+ .admin_dashboard .blank_slate_container .blank_slate {
26
+ margin-top: 40px;
27
+ margin-bottom: 40px;
28
+ }
29
+
30
+ .with_sidebar .blank_slate_container .blank_slate {
31
+ margin-top: 80px;
32
+ }
@@ -0,0 +1,27 @@
1
+ .breadcrumb {
2
+ display: block;
3
+ font-size: 0.9em;
4
+ font-weight: normal;
5
+ line-height: 1.0em;
6
+ margin-bottom: 12px;
7
+ text-transform: uppercase;
8
+
9
+ a, a:link, a:visited, a:active {
10
+ color: $breadcrumbs-color;
11
+ text-decoration: none;
12
+ padding-left: 5px;
13
+ padding-right: 5px;
14
+ }
15
+
16
+ a:hover {
17
+ text-decoration: underline;
18
+ background: $skinActiveColor;
19
+ padding: 5px;
20
+ color: $skinHeaderTextColor;
21
+ }
22
+
23
+ .breadcrumb_sep {
24
+ margin: 0 2px;
25
+ color: $breadcrumbs-separator-color;
26
+ }
27
+ }
@@ -0,0 +1,16 @@
1
+ td, p {
2
+ @include icon(#B3BCC1, 0.8em);
3
+
4
+ span.icon {
5
+ margin: 0 3px;
6
+ }
7
+ }
8
+
9
+ a.member_link {
10
+ margin-right: 7px;
11
+ white-space: nowrap;
12
+ }
13
+
14
+ a.button, a:link.button, a:visited.button, input[type=submit] {
15
+ @include dark-button;
16
+ }
@@ -0,0 +1,6 @@
1
+ li.ckeditor {
2
+ label {
3
+ width: 100%;
4
+ padding-left: 5px;
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ .columns {
2
+ margin-bottom: 10px;
3
+ }
@@ -0,0 +1,52 @@
1
+ // -------------------------------------- Admin Notes
2
+ .comments {
3
+ .active_admin_comment {
4
+ clear: both;
5
+ margin-top: 10px;
6
+ margin-bottom: 40px;
7
+ max-width: 700px;
8
+
9
+ .active_admin_comment_meta {
10
+ width: 130px;
11
+ float: left;
12
+ overflow: hidden;
13
+ font-size: 0.9em;
14
+ color: lighten($primary-color, 10%);
15
+
16
+ .active_admin_comment_author {
17
+ font-size: 1.2em;
18
+ font-weight: bold;
19
+ margin: 0;
20
+ color: $primary-color;
21
+ }
22
+ }
23
+
24
+ .active_admin_comment_body {
25
+ margin-left: 150px;
26
+ }
27
+ }
28
+
29
+ form.active_admin_comment {
30
+ margin: 0;
31
+ padding: 0;
32
+ margin-left: 150px;
33
+
34
+ fieldset.inputs {
35
+ border: none;
36
+ margin: 0;
37
+ padding: 0;
38
+ background: none;
39
+
40
+ @include no-shadow;
41
+ }
42
+
43
+ li {
44
+ padding: 0;
45
+ }
46
+
47
+ fieldset.buttons {
48
+ padding: 0;
49
+ margin-top: 5px;
50
+ }
51
+ }
52
+ }