flattened_active_admin 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +21 -0
  5. data/app/assets/stylesheets/flattened_active_admin/_base.css.scss +42 -0
  6. data/app/assets/stylesheets/flattened_active_admin/_forms.css.scss +355 -0
  7. data/app/assets/stylesheets/flattened_active_admin/_header.css.scss +156 -0
  8. data/app/assets/stylesheets/flattened_active_admin/_mixins.css.scss +1 -0
  9. data/app/assets/stylesheets/flattened_active_admin/_typography.css.scss +100 -0
  10. data/app/assets/stylesheets/flattened_active_admin/components/_batch_actions.css.scss +11 -0
  11. data/app/assets/stylesheets/flattened_active_admin/components/_blank_slates.scss +31 -0
  12. data/app/assets/stylesheets/flattened_active_admin/components/_breadcrumbs.scss +20 -0
  13. data/app/assets/stylesheets/flattened_active_admin/components/_buttons.scss +11 -0
  14. data/app/assets/stylesheets/flattened_active_admin/components/_columns.scss +3 -0
  15. data/app/assets/stylesheets/flattened_active_admin/components/_comments.css.scss +41 -0
  16. data/app/assets/stylesheets/flattened_active_admin/components/_date_picker.css.scss +127 -0
  17. data/app/assets/stylesheets/flattened_active_admin/components/_dropdown_menu.scss +150 -0
  18. data/app/assets/stylesheets/flattened_active_admin/components/_flash_messages.css.scss +39 -0
  19. data/app/assets/stylesheets/flattened_active_admin/components/_grid.scss +9 -0
  20. data/app/assets/stylesheets/flattened_active_admin/components/_index_list.scss +12 -0
  21. data/app/assets/stylesheets/flattened_active_admin/components/_links.scss +5 -0
  22. data/app/assets/stylesheets/flattened_active_admin/components/_modal_dialog.scss +31 -0
  23. data/app/assets/stylesheets/flattened_active_admin/components/_pagination.scss +34 -0
  24. data/app/assets/stylesheets/flattened_active_admin/components/_panels.scss +6 -0
  25. data/app/assets/stylesheets/flattened_active_admin/components/_popovers.css.scss +123 -0
  26. data/app/assets/stylesheets/flattened_active_admin/components/_scopes.scss +10 -0
  27. data/app/assets/stylesheets/flattened_active_admin/components/_status_tags.scss +16 -0
  28. data/app/assets/stylesheets/flattened_active_admin/components/_table_tools.css.scss +64 -0
  29. data/app/assets/stylesheets/flattened_active_admin/components/_tables.css.scss +110 -0
  30. data/app/assets/stylesheets/flattened_active_admin/mixins/_all.css.scss +11 -0
  31. data/app/assets/stylesheets/flattened_active_admin/mixins/_buttons.css.scss +64 -0
  32. data/app/assets/stylesheets/flattened_active_admin/mixins/_gradients.css.scss +47 -0
  33. data/app/assets/stylesheets/flattened_active_admin/mixins/_icons.css.scss +20 -0
  34. data/app/assets/stylesheets/flattened_active_admin/mixins/_reset.css.scss +165 -0
  35. data/app/assets/stylesheets/flattened_active_admin/mixins/_rounded.css.scss +43 -0
  36. data/app/assets/stylesheets/flattened_active_admin/mixins/_sections.css.scss +31 -0
  37. data/app/assets/stylesheets/flattened_active_admin/mixins/_shadows.css.scss +22 -0
  38. data/app/assets/stylesheets/flattened_active_admin/mixins/_typography.scss +3 -0
  39. data/app/assets/stylesheets/flattened_active_admin/mixins/_utilities.scss +26 -0
  40. data/app/assets/stylesheets/flattened_active_admin/mixins/_variables.css.scss +45 -0
  41. data/app/assets/stylesheets/flattened_active_admin/pages/_logged_out.scss +44 -0
  42. data/app/assets/stylesheets/flattened_active_admin/print.css.scss +284 -0
  43. data/app/assets/stylesheets/flattened_active_admin/structure/_footer.scss +14 -0
  44. data/app/assets/stylesheets/flattened_active_admin/structure/_main_structure.scss +29 -0
  45. data/app/assets/stylesheets/flattened_active_admin/structure/_title_bar.scss +45 -0
  46. data/config/routes.rb +2 -0
  47. data/lib/flattened_active_admin/engine.rb +4 -0
  48. data/lib/flattened_active_admin/version.rb +3 -0
  49. data/lib/flattened_active_admin.rb +4 -0
  50. data/lib/generators/flattened_active_admin/variables/USAGE +8 -0
  51. data/lib/generators/flattened_active_admin/variables/templates/variables.css.scss +44 -0
  52. data/lib/generators/flattened_active_admin/variables/variables_generator.rb +9 -0
  53. data/lib/tasks/flattened_active_admin_tasks.rake +4 -0
  54. metadata +125 -0
@@ -0,0 +1,64 @@
1
+ .table_tools {
2
+ @include clearfix;
3
+ margin-bottom: 16px;
4
+ }
5
+
6
+ .table_tools .dropdown_menu {
7
+ float: left;
8
+ }
9
+
10
+ a.table_tools_button, .table_tools .dropdown_menu_button {
11
+ @include light-button;
12
+ @include border-colors(#d9d9d9, #d0d0d0, #c5c5c5);
13
+ font-size: 0.9em;
14
+ padding: 4px 14px 4px;
15
+ margin: 0;
16
+
17
+ &:not(.disabled) {
18
+ &:hover {
19
+ background: #FFF;
20
+ }
21
+
22
+ &:active {
23
+ @include border-colors(#d7d7d7, #c8c8c8, #c3c3c3);
24
+ box-shadow: 0 1px 1px 0 rgba(0,0,0,0.17) inset;
25
+ // @include gradient(#FFFFFF, #E8E8E8);
26
+ }
27
+ }
28
+ }
29
+
30
+ .table_tools_segmented_control {
31
+ list-style-type: none;
32
+ padding: 0;
33
+ margin: 0;
34
+
35
+ li {
36
+ float: left;
37
+
38
+ a {
39
+ border-width: 1px .5px 1px .5px;
40
+ border-radius: 0;
41
+ }
42
+
43
+ &:first-child a {
44
+ border-left-width: 1px;
45
+ border-radius: 12px 0 0 12px;
46
+ }
47
+
48
+ &:last-child a {
49
+ border-right-width: 1px;
50
+ border-radius: 0 12px 12px 0;
51
+ }
52
+
53
+ &.selected a {
54
+ @include gradient(#F0F0F0, #FDFDFD);
55
+ box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1) inset;
56
+ cursor: default;
57
+
58
+ &:hover {
59
+ @include gradient(#F0F0F0, #FDFDFD);
60
+ }
61
+ }
62
+
63
+ }
64
+ }
@@ -0,0 +1,110 @@
1
+ //= depend_on_asset "active_admin/orderable.png"
2
+ // ----------------------------------- Tables
3
+
4
+ table tr {
5
+ td {
6
+ vertical-align: top;
7
+ }
8
+ }
9
+
10
+ // --------- Index Tables
11
+
12
+ table.index_table {
13
+ width: 100%;
14
+ margin-bottom: 10px;
15
+ border: 0;
16
+ border-spacing: 0;
17
+
18
+ th {
19
+ @include section-header;
20
+ border-right: none;
21
+ text-align: left;
22
+ padding-left: $cell-horizontal-padding;
23
+ padding-right: $cell-horizontal-padding;
24
+
25
+ a, a:link, a:visited {
26
+ color: $section-header-text-color;
27
+ text-decoration: none;
28
+ display: block;
29
+ white-space: nowrap;
30
+ -webkit-font-smoothing: antialiased;
31
+ }
32
+
33
+ &.sortable a {
34
+ background: image-url('active_admin/orderable.png') no-repeat 0 4px; padding-left: 13px;
35
+ }
36
+
37
+ &.sorted-asc a { background-position: 0 -27px; }
38
+ &.sorted-desc a { background-position: 0 -56px;}
39
+
40
+ &.sorted-asc, &.sorted-desc {
41
+ background: $title-bar-background; // @include gradient(darken($secondary-gradient-start, 5%), darken($secondary-gradient-stop, 5%));
42
+ }
43
+
44
+ &:last-child {
45
+ border-right: solid 1px #d4d4d4;
46
+ }
47
+
48
+ }
49
+
50
+ tr.even td { background: $table-stripe-color; }
51
+
52
+ tr.selected td {
53
+ background: $table-selected-color;
54
+ }
55
+
56
+ td {
57
+ padding: 10px $cell-horizontal-padding 8px $cell-horizontal-padding;
58
+ border-bottom: 1px solid #e8e8e8;
59
+ vertical-align: top;
60
+ }
61
+ }
62
+
63
+ // --------- Tables inside Panels
64
+
65
+ .panel_contents table {
66
+ margin-top: 5px;
67
+ th {
68
+ padding-top: 10px;
69
+ background: none;
70
+ color: $primary-color;
71
+ @include no-shadow;
72
+ text-transform: uppercase;
73
+ border-bottom: 1px solid #ccc;
74
+ }
75
+ tr.odd td { background: darken($table-stripe-color, 3%); }
76
+ tr.even td { background: $table-stripe-color; }
77
+ }
78
+
79
+ // -------------------------------------- Resource Attributes Table
80
+ .attributes_table { overflow: hidden; }
81
+
82
+ .attributes_table table {
83
+ col.even { background: $table-stripe-color; }
84
+ col.odd { background: darken($table-stripe-color, 3%); }
85
+ th, td {
86
+ padding: 8px $cell-horizontal-padding 6px $cell-horizontal-padding;
87
+ vertical-align: top;
88
+ border-bottom: 1px solid #e8e8e8;
89
+ }
90
+ th {
91
+ @include no-shadow;
92
+ @include no-gradient;
93
+ width: 150px;
94
+ font-size: 0.9em;
95
+ padding-left: 0;
96
+ text-transform: uppercase;
97
+ color: $primary-color;
98
+ @include text-shadow;
99
+ }
100
+ td {
101
+ .empty {
102
+ color: #bbb;
103
+ font-size: 0.8em;
104
+ text-transform: uppercase;
105
+ letter-spacing: 0.2em;
106
+ }
107
+ }
108
+ }
109
+
110
+ .sidebar_section .attributes_table th { width: 50px; }
@@ -0,0 +1,11 @@
1
+ @import "flattened_active_admin/mixins/variables";
2
+ @import "flattened_active_admin/mixins/reset";
3
+ @import "flattened_active_admin/mixins/gradients";
4
+ @import "flattened_active_admin/mixins/shadows";
5
+ @import "flattened_active_admin/mixins/icons";
6
+ @import "flattened_active_admin/mixins/rounded";
7
+ @import "flattened_active_admin/mixins/buttons";
8
+ @import "flattened_active_admin/mixins/sections";
9
+ @import "flattened_active_admin/mixins/utilities";
10
+ @import "flattened_active_admin/mixins/typography";
11
+ @import "bourbon";
@@ -0,0 +1,64 @@
1
+ @mixin basic-button {
2
+ @include rounded(200px);
3
+ display: inline-block;
4
+ font-weight: bold;
5
+ font-size: 1.0em;
6
+ @include sans-family;
7
+ line-height: 12px;
8
+ margin-right: 3px;
9
+ padding: 7px 16px 6px;
10
+ text-decoration: none;
11
+ -webkit-font-smoothing: antialiased;
12
+
13
+ &.disabled {
14
+ opacity: 0.5;
15
+ cursor: default;
16
+ }
17
+
18
+ }
19
+
20
+ @mixin default-button {
21
+ @include basic-button;
22
+ background: $primary-color;
23
+ // @include text-shadow(#000);
24
+ // box-shadow: 0 1px 1px rgba(0,0,0,0.10), 0 1px 0 0px rgba(255,255,255, 0.2) inset;
25
+ border: solid 1px #686868;
26
+ color: #efefef;
27
+
28
+ &:not(.disabled) {
29
+ &:hover{
30
+ background: darken($primary-color, 10%)
31
+ }
32
+
33
+ &:active {
34
+ box-shadow: 0 1px 3px rgba(0,0,0,0.40) inset, 0 1px 0 0px #FFF;
35
+ @include gradient(lighten($primary-color, 8%), darken($primary-color, 17%));
36
+ }
37
+ }
38
+ }
39
+
40
+ @mixin light-button {
41
+ @include basic-button;
42
+ background: $action-button-default-background;
43
+ border: solid 1px #c7c7c7;
44
+ @include border-colors(#d3d3d3, #c7c7c7, #c2c2c2);
45
+ @include text-shadow;
46
+ color: $primary-color;
47
+
48
+ &:not(.disabled) {
49
+ &:hover {
50
+ background: $action-button-hover-background;
51
+ }
52
+
53
+ &:active {
54
+ box-shadow: 0 1px 2px rgba(0,0,0,0.22) inset, 0 1px 0 0px #EEE;
55
+ @include border-colors(#c2c2c2, #b9b9b9, #b7b7b7);
56
+ background: $action-button-active-background;
57
+ }
58
+ }
59
+
60
+ }
61
+
62
+ @mixin dark-button {
63
+ @include default-button;
64
+ }
@@ -0,0 +1,47 @@
1
+ $secondary-gradient-start: #efefef !default;
2
+ $secondary-gradient-stop: #dfe1e2 !default;
3
+
4
+ @mixin gradient($start, $end){
5
+ background: $start;
6
+ background: -webkit-linear-gradient(-90deg, $start, $end);
7
+ background: -moz-linear-gradient(-90deg, $start, $end);
8
+ background: linear-gradient(-90deg, $start, $end);
9
+ // IE 6 & 7
10
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start)}', endColorstr='#{ie-hex-str($end)}');
11
+ // IE 8
12
+ -ms-filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($start)}', endColorstr='#{ie-hex-str($end)}');
13
+ }
14
+
15
+ @mixin header-background-gradient {
16
+ background: $page-header-background-color;
17
+ }
18
+
19
+ @mixin title-bar-gradient {
20
+ background: $title-bar-background;
21
+ }
22
+
23
+ @mixin primary-gradient {
24
+ // background: $secondary-color;
25
+ @include gradient(lighten($primary-color, 5%), darken($primary-color, 7%));
26
+ border-bottom: 1px solid darken($primary-color, 11%);
27
+ }
28
+
29
+ // @mixin secondary-gradient {
30
+ // @include gradient($secondary-gradient-start, $secondary-gradient-stop);
31
+ // }
32
+
33
+ @mixin highlight-gradient {
34
+ @include gradient(#75a1c2, #608cb4);
35
+ }
36
+
37
+ @mixin reverse-highlight-gradient {
38
+ @include gradient(#608cb4, #75a1c2);
39
+ }
40
+
41
+ @mixin no-gradient {
42
+ background: none;
43
+ // IE 6 & 7
44
+ filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
45
+ // IE 8
46
+ -ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
47
+ }
@@ -0,0 +1,20 @@
1
+ span.icon { vertical-align: middle; display: inline-block; }
2
+ span.icon svg { vertical-align: baseline; }
3
+
4
+
5
+ @mixin icon-color ($color) {
6
+ span.icon svg {
7
+ path, polygon, rect, circle { fill: $color !important; }
8
+ }
9
+ }
10
+
11
+ @mixin icon-size ($size) {
12
+ span.icon { width: $size; height: $size; }
13
+ }
14
+
15
+ @mixin icon($color, $size) {
16
+ @include icon-color($color);
17
+ @include icon-size($size);
18
+ }
19
+
20
+ @include icon-size(0.8em);
@@ -0,0 +1,165 @@
1
+ // FROM The Compass Framework (compass-style.org)
2
+ //
3
+ // Copyright (c) 2009 Christopher M. Eppstein
4
+ //
5
+ // Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ // this software and associated documentation files (the "Software"), to deal in
7
+ // the Software without restriction, including without limitation the rights to
8
+ // use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ // the Software, and to permit persons to whom the Software is furnished to do so,
10
+ // subject to the following conditions:
11
+ //
12
+ // The above copyright notice and this permission notice shall be included in all
13
+ // copies or substantial portions of the Software. No attribution is required by
14
+ // products that make use of this software.
15
+ //
16
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18
+ // FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19
+ // COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20
+ // IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21
+ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
+ //
23
+ // Except as contained in this notice, the name(s) of the above copyright holders
24
+ // shall not be used in advertising or otherwise to promote the sale, use or other
25
+ // dealings in this Software without prior written authorization.
26
+ //
27
+ // Contributors to this project agree to grant all rights to the copyright holder
28
+ // of the primary product. Attribution is maintained in the source control history
29
+ // of the product.
30
+ //
31
+ // Based on [Eric Meyer's reset](http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/)
32
+ // Global reset rules.
33
+ // For more specific resets, use the reset mixins provided below
34
+ //
35
+ // *Please Note*: tables still need `cellspacing="0"` in the markup.
36
+ @mixin global-reset {
37
+ html, body, div, span, applet, object, iframe,
38
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
39
+ a, abbr, acronym, address, big, cite, code,
40
+ del, dfn, em, font, img, ins, kbd, q, s, samp,
41
+ small, strike, strong, sub, sup, tt, var,
42
+ dl, dt, dd, ol, ul, li,
43
+ fieldset, form, label, legend,
44
+ table, caption, tbody, tfoot, thead, tr, th, td {
45
+ @include reset-box-model;
46
+ @include reset-font; }
47
+ body {
48
+ @include reset-body; }
49
+ ol, ul {
50
+ @include reset-list-style; }
51
+ table {
52
+ @include reset-table; }
53
+ caption, th, td {
54
+ @include reset-table-cell; }
55
+ q, blockquote {
56
+ @include reset-quotation; }
57
+ a img {
58
+ @include reset-image-anchor-border; } }
59
+
60
+ // Reset all elements within some selector scope. To reset the selector itself,
61
+ // mixin the appropriate reset mixin for that element type as well. This could be
62
+ // useful if you want to style a part of your page in a dramatically different way.
63
+ //
64
+ // *Please Note*: tables still need `cellspacing="0"` in the markup.
65
+ @mixin nested-reset {
66
+ div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
67
+ pre, a, abbr, acronym, address, code, del, dfn, em, img,
68
+ dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
69
+ @include reset-box-model;
70
+ @include reset-font; }
71
+ table {
72
+ @include reset-table; }
73
+ caption, th, td {
74
+ @include reset-table-cell; }
75
+ q, blockquote {
76
+ @include reset-quotation; }
77
+ a img {
78
+ @include reset-image-anchor-border; } }
79
+
80
+ // Reset the box model measurements.
81
+ @mixin reset-box-model {
82
+ margin: 0;
83
+ padding: 0;
84
+ border: 0;
85
+ outline: 0; }
86
+
87
+ // Reset the font and vertical alignment.
88
+ @mixin reset-font {
89
+ font: {
90
+ weight: inherit;
91
+ style: inherit;
92
+ size: 100%;
93
+ family: inherit; };
94
+ vertical-align: baseline; }
95
+
96
+ // Resets the outline when focus.
97
+ // For accessibility you need to apply some styling in its place.
98
+ @mixin reset-focus {
99
+ outline: 0; }
100
+
101
+ // Reset a body element.
102
+ @mixin reset-body {
103
+ line-height: 1;
104
+ color: black;
105
+ background: white; }
106
+
107
+ // Reset the list style of an element.
108
+ @mixin reset-list-style {
109
+ list-style: none; }
110
+
111
+ // Reset a table
112
+ @mixin reset-table {
113
+ border-collapse: separate;
114
+ border-spacing: 0;
115
+ vertical-align: middle; }
116
+
117
+ // Reset a table cell (`th`, `td`)
118
+ @mixin reset-table-cell {
119
+ text-align: left;
120
+ font-weight: normal;
121
+ vertical-align: middle; }
122
+
123
+ // Reset a quotation (`q`, `blockquote`)
124
+ @mixin reset-quotation {
125
+ quotes: "" "";
126
+ &:before, &:after {
127
+ content: ""; } }
128
+
129
+ // Resets the border.
130
+ @mixin reset-image-anchor-border {
131
+ border: none; }
132
+
133
+ // Unrecognized elements are displayed inline.
134
+ // This reset provides a basic reset for html5 elements
135
+ // so they are rendered correctly in browsers that don't recognize them
136
+ // and reset in browsers that have default styles for them.
137
+ @mixin reset-html5 {
138
+ article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary {
139
+ @include reset-box-model;
140
+ display: block; } }
141
+
142
+ // Resets the display of inline and block elements to their default display
143
+ // according to their tag type. Elements that have a default display that varies across
144
+ // versions of html or browser are not handled here, but this covers the 90% use case.
145
+ // Usage Example:
146
+ //
147
+ // // Turn off the display for both of these classes
148
+ // .unregistered-only, .registered-only
149
+ // display: none
150
+ // // Now turn only one of them back on depending on some other context.
151
+ // body.registered
152
+ // +reset-display(".registered-only")
153
+ // body.unregistered
154
+ // +reset-display(".unregistered-only")
155
+ @mixin reset-display($selector: "", $important: false) {
156
+ #{append-selector(elements-of-type("inline"), $selector)} {
157
+ @if $important {
158
+ display: inline !important; }
159
+ @else {
160
+ display: inline; } }
161
+ #{append-selector(elements-of-type("block"), $selector)} {
162
+ @if $important {
163
+ display: block !important; }
164
+ @else {
165
+ display: block; } } }
@@ -0,0 +1,43 @@
1
+ @mixin rounded($radius: 3px) {
2
+ -webkit-border-radius: $radius;
3
+ -moz-border-radius: $radius;
4
+ border-radius: $radius;
5
+ }
6
+
7
+ @mixin rounded-all($top-left:3px, $top-right:3px, $bottom-right:3px, $bottom-left:3px) {
8
+ border-top-right-radius: $top-right;
9
+ -moz-border-radius-topright: $top-right;
10
+ -webkit-border-top-right-radius: $top-right;
11
+
12
+ border-top-left-radius: $top-left;
13
+ -moz-border-radius-topleft: $top-left;
14
+ -webkit-border-top-left-radius: $top-left;
15
+
16
+ border-bottom-right-radius: $bottom-right;
17
+ -moz-border-radius-bottomright: $bottom-right;
18
+ -webkit-border-bottom-right-radius: $bottom-right;
19
+
20
+ border-bottom-left-radius: $bottom-left;
21
+ -moz-border-radius-bottomleft: $bottom-left;
22
+ -webkit-border-bottom-left-radius: $bottom-left;
23
+ }
24
+
25
+ @mixin rounded-top($radius: 3px) {
26
+ @include rounded(0);
27
+ border-top-right-radius: $radius;
28
+ border-top-left-radius: $radius;
29
+ -moz-border-radius-topright: $radius;
30
+ -moz-border-radius-topleft: $radius;
31
+ -webkit-border-top-right-radius: $radius;
32
+ -webkit-border-top-left-radius: $radius;
33
+ }
34
+
35
+ @mixin rounded-bottom($radius: 3px) {
36
+ @include rounded(0);
37
+ border-bottom-right-radius: $radius;
38
+ border-bottom-left-radius: $radius;
39
+ -moz-border-radius-bottomright: $radius;
40
+ -moz-border-radius-bottomleft: $radius;
41
+ -webkit-border-bottom-right-radius: $radius;
42
+ -webkit-border-bottom-left-radius: $radius;
43
+ }
@@ -0,0 +1,31 @@
1
+ @mixin section-header {
2
+ border-left: solid 1px #cdcdcd;
3
+ background: $title-bar-background;
4
+ font-size: 1.0em;
5
+ font-weight: bold;
6
+ line-height: 18px;
7
+ margin-bottom: 0.5em;
8
+ color: $section-header-text-color;
9
+ @include icon($section-header-text-color, 1.0em);
10
+
11
+ padding: 5px 10px 3px 10px;
12
+ }
13
+
14
+ @mixin section-background {
15
+ background: #fafafa;
16
+ @include rounded(4px);
17
+ }
18
+
19
+ @mixin section {
20
+ @include section-background;
21
+ margin-bottom: 20px;
22
+
23
+ > h3 { @include section-header; }
24
+
25
+ > div { padding: 3px $section-padding $section-padding $section-padding; }
26
+
27
+ hr {
28
+ border: none;
29
+ border-bottom: 1px solid #E8E8E8;
30
+ }
31
+ }
@@ -0,0 +1,22 @@
1
+ @mixin shadow($x: 0, $y: 1px, $blur: 2px, $color: rgba(0,0,0,0.37)) {
2
+ box-shadow: $x $y $blur $color;
3
+ -moz-box-shadow: $x $y $blur $color;
4
+ -webkit-box-shadow: $x $y $blur $color;
5
+ }
6
+
7
+ @mixin no-shadow {
8
+ box-shadow: none;
9
+ -moz-box-shadow: none;
10
+ -webkit-box-shadow: none;
11
+ }
12
+
13
+ @mixin inset-shadow($x: 0, $y: 1px, $blur: 2px, $color: #aaa) {
14
+ box-shadow: inset $x $y $blur $color;
15
+ -moz-box-shadow: inset $x $y $blur $color;
16
+ -webkit-box-shadow: inset $x $y $blur $color;
17
+ }
18
+
19
+ @mixin text-shadow($color: #fff, $x: 0, $y: 1px, $blur: 0) {
20
+ text-shadow: $color $x $y $blur;
21
+ }
22
+
@@ -0,0 +1,3 @@
1
+ @mixin sans-family {
2
+ font-family: Helvetica, Arial, sans-serif;
3
+ }
@@ -0,0 +1,26 @@
1
+ @mixin clearfix {
2
+ &:after {
3
+ visibility: hidden;
4
+ display: block;
5
+ content: "";
6
+ clear: both;
7
+ height: 0;
8
+ }
9
+ }
10
+
11
+ @mixin box-sizing($value: border-box) {
12
+ -moz-box-sizing: $value;
13
+ -webkit-box-sizing: $value;
14
+ -o-box-sizing: $value;
15
+ -ms-box-sizing: $value;
16
+ box-sizing: $value;
17
+ }
18
+
19
+
20
+ @mixin border-colors($top, $sides, $bottom) {
21
+ border-color: $sides;
22
+ border-top-color: $top;
23
+ border-right-color: $sides;
24
+ border-bottom-color: $bottom;
25
+ border-left-color: $sides;
26
+ }
@@ -0,0 +1,45 @@
1
+ // Variables used throughout Active Admin.
2
+ // They can be overridden by your own
3
+
4
+ // Colors
5
+ $body-background-color: #FFF !default;
6
+ $title-bar-background: #efefef !default;
7
+ $primary-color: #5E6469 !default;
8
+ $secondary-color: #f0f0f0 !default;
9
+ $current-menu-item-background: lighten($primary-color, 12%) !default;
10
+ $hover-menu-item-background: lighten($primary-color, 12%) !default;
11
+ $table-stripe-color: lighten($primary-color, 57%) !default;
12
+ $table-selected-color: #d9e4ec !default;
13
+ $error-color: #932419 !default;
14
+ $blank-slate-primary-color: #AAA !default;
15
+ $breadcrumbs-color: #8a949e !default;
16
+ $breadcrumbs-separator-color: #aab2ba !default;
17
+ $required-field-marker-color: #aaa !default;
18
+ $page-header-background-color: #5E6469 !default;
19
+
20
+ // Text
21
+ $text-color: #323537 !default;
22
+ $link-color: #38678b !default;
23
+ $header-dropdown-menu-text-color: #cdcdcd !default;
24
+ $section-header-text-color: $primary-color !default;
25
+ $page-header-text-color: #cdcdcd !default;
26
+ $form-label-color: $section-header-text-color !default;
27
+
28
+
29
+
30
+ // // Buttons
31
+ $action-button-default-background: #fbfbfb !default;
32
+ $action-button-hover-background: #FFF !default;
33
+ $action-button-active-background: #fafafa !default;
34
+
35
+ // Sizes
36
+ $border-width: 1px !default;
37
+ $horizontal-page-margin: 30px !default;
38
+ $sidebar-width: 270px !default;
39
+ $cell-padding: 5px 10px 3px 10px !default;
40
+ $cell-horizontal-padding: 12px !default;
41
+ $section-padding: 15px !default;
42
+ $text-input-horizontal-padding: 10px !default;
43
+ $text-input-total-padding: $text-input-horizontal-padding * 2 + $border-width * 2;
44
+
45
+ $blank-slate-border: 1px dashed #DADADA !default;