active_admin_face 0.0.9

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/active_admin_face/logo.jpg +0 -0
  5. data/app/assets/javascripts/active_admin_face/base.js.coffee +34 -0
  6. data/app/assets/stylesheets/active_admin_face/_base.scss +38 -0
  7. data/app/assets/stylesheets/active_admin_face/_forms.scss +551 -0
  8. data/app/assets/stylesheets/active_admin_face/_header.scss +283 -0
  9. data/app/assets/stylesheets/active_admin_face/_mixins.scss +1 -0
  10. data/app/assets/stylesheets/active_admin_face/_typography.scss +250 -0
  11. data/app/assets/stylesheets/active_admin_face/components/_batch_actions.scss +13 -0
  12. data/app/assets/stylesheets/active_admin_face/components/_blank_slates.scss +32 -0
  13. data/app/assets/stylesheets/active_admin_face/components/_breadcrumbs.scss +27 -0
  14. data/app/assets/stylesheets/active_admin_face/components/_buttons.scss +16 -0
  15. data/app/assets/stylesheets/active_admin_face/components/_ckeditor.scss +6 -0
  16. data/app/assets/stylesheets/active_admin_face/components/_columns.scss +3 -0
  17. data/app/assets/stylesheets/active_admin_face/components/_comments.scss +52 -0
  18. data/app/assets/stylesheets/active_admin_face/components/_date_picker.scss +315 -0
  19. data/app/assets/stylesheets/active_admin_face/components/_dropdown_menu.scss +161 -0
  20. data/app/assets/stylesheets/active_admin_face/components/_flash_messages.scss +44 -0
  21. data/app/assets/stylesheets/active_admin_face/components/_grid.scss +57 -0
  22. data/app/assets/stylesheets/active_admin_face/components/_index_list.scss +12 -0
  23. data/app/assets/stylesheets/active_admin_face/components/_init.scss +16 -0
  24. data/app/assets/stylesheets/active_admin_face/components/_links.scss +8 -0
  25. data/app/assets/stylesheets/active_admin_face/components/_modal_dialog.scss +67 -0
  26. data/app/assets/stylesheets/active_admin_face/components/_nav.scss +64 -0
  27. data/app/assets/stylesheets/active_admin_face/components/_pagination.scss +70 -0
  28. data/app/assets/stylesheets/active_admin_face/components/_panels.scss +89 -0
  29. data/app/assets/stylesheets/active_admin_face/components/_popovers.scss +124 -0
  30. data/app/assets/stylesheets/active_admin_face/components/_scopes.scss +10 -0
  31. data/app/assets/stylesheets/active_admin_face/components/_status_tags.scss +28 -0
  32. data/app/assets/stylesheets/active_admin_face/components/_table_tools.scss +70 -0
  33. data/app/assets/stylesheets/active_admin_face/components/_tables.scss +305 -0
  34. data/app/assets/stylesheets/active_admin_face/mixins/_all.scss +11 -0
  35. data/app/assets/stylesheets/active_admin_face/mixins/_buttons.scss +71 -0
  36. data/app/assets/stylesheets/active_admin_face/mixins/_gradients.scss +52 -0
  37. data/app/assets/stylesheets/active_admin_face/mixins/_icons.scss +31 -0
  38. data/app/assets/stylesheets/active_admin_face/mixins/_reset.scss +214 -0
  39. data/app/assets/stylesheets/active_admin_face/mixins/_rounded.scss +42 -0
  40. data/app/assets/stylesheets/active_admin_face/mixins/_sections.scss +38 -0
  41. data/app/assets/stylesheets/active_admin_face/mixins/_select.scss +22 -0
  42. data/app/assets/stylesheets/active_admin_face/mixins/_shadows.scss +21 -0
  43. data/app/assets/stylesheets/active_admin_face/mixins/_utilities.scss +17 -0
  44. data/app/assets/stylesheets/active_admin_face/mixins/_variables.scss +69 -0
  45. data/app/assets/stylesheets/active_admin_face/pages/_logged_out.scss +96 -0
  46. data/app/assets/stylesheets/active_admin_face/print.scss +283 -0
  47. data/app/assets/stylesheets/active_admin_face/structure/_footer.scss +28 -0
  48. data/app/assets/stylesheets/active_admin_face/structure/_main_structure.scss +86 -0
  49. data/app/assets/stylesheets/active_admin_face/structure/_title_bar.scss +69 -0
  50. data/config/routes.rb +2 -0
  51. data/lib/active_admin_face.rb +11 -0
  52. data/lib/active_admin_face/version.rb +3 -0
  53. data/lib/generators/active_admin_face/variables/USAGE +8 -0
  54. data/lib/generators/active_admin_face/variables/variables_generator.rb +15 -0
  55. metadata +126 -0
@@ -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
+ }
@@ -0,0 +1,64 @@
1
+ .ui-tabs-nav {
2
+ width: 100%;
3
+ margin-bottom: 0;
4
+ padding-left: 0;
5
+
6
+ // Override default ul/ol
7
+ list-style: none;
8
+
9
+ @include clearfix;
10
+
11
+ > li {
12
+ float: left;
13
+ position: relative;
14
+
15
+ // Make the list-items overlay the bottom border
16
+ margin-bottom: -1px;
17
+ display: inline-block;
18
+ min-width: 1%;
19
+
20
+ // Actual tabs (as links)
21
+ > a {
22
+ position: relative;
23
+ display: block;
24
+ padding: 10px 15px;
25
+ margin-right: 2px;
26
+ line-height: 1.5;
27
+ border: 1px solid transparent;
28
+ border-radius: 4px 4px 0 0;
29
+ text-align: center;
30
+ margin-bottom: 5px;
31
+ transition: $link_transition_dutarion;
32
+
33
+ &:hover,
34
+ &:focus {
35
+ text-decoration: none;
36
+ background-color: darken($skinActiveColor, 10%);
37
+ }
38
+ }
39
+
40
+ a {
41
+ &:active {
42
+ background: $skinActiveColor;
43
+ }
44
+
45
+ &:hover {
46
+ background: lighten($skinActiveColor, 20%);
47
+ }
48
+
49
+ &:focus {
50
+ background: darken($skinActiveColor, 10%);
51
+ }
52
+ }
53
+
54
+ &.ui-tabs-active > a {
55
+ background: $skinActiveColor;
56
+ }
57
+ }
58
+
59
+ border-bottom: 0;
60
+
61
+ > li > a > img {
62
+ max-width: none;
63
+ }
64
+ }
@@ -0,0 +1,70 @@
1
+ .paginated_collection_contents {
2
+ clear: both;
3
+ }
4
+
5
+ .pagination {
6
+ float: right;
7
+ font-size: 0.9em;
8
+ margin-left: 10px;
9
+ margin-top: -2px;
10
+ padding: 5px 7px;
11
+
12
+ a, span.page.current {
13
+ transition: $link_transition_dutarion;
14
+ font-family: $skinFontFamily;
15
+
16
+ // border: 1px solid #d3d8dc;
17
+ background: $main-background-color;
18
+
19
+ @include no-shadow;
20
+
21
+ text-shadow: none;
22
+ font-size: 1.1em;
23
+ font-weight: normal;
24
+ padding: 5px 7px;
25
+ margin-right: 1px;
26
+ }
27
+
28
+ span.page.current, span.page.current:hover {
29
+ background: $skinActiveColor;
30
+ color: #fff;
31
+ }
32
+
33
+ span.page.current {
34
+ font-weight: 600;
35
+
36
+ &:not(.disabled):not(.current):hover > a {
37
+ background: lighten($skinActiveColor, 20%);
38
+ }
39
+ }
40
+
41
+ a:not(.disabled):hover {
42
+ background: lighten($skinActiveColor, 20%);
43
+ }
44
+
45
+ .page.gap {
46
+ display: none;
47
+ }
48
+ }
49
+
50
+ .pagination_information {
51
+ float: right;
52
+ margin-bottom: 5px;
53
+ font-size: 12px;
54
+ color: $skinTextTable;
55
+
56
+ b {
57
+ color: #5c6469;
58
+ }
59
+ }
60
+
61
+ .download_links {
62
+ float: left;
63
+ color: $skinTextTable;
64
+ font-size: 12px;
65
+
66
+ a {
67
+ color: $skinActiveColor;
68
+ font-weight: bold;
69
+ }
70
+ }