flattened_active_admin 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 39020149e138d40355c38e5b38328aed04bc48e5
4
+ data.tar.gz: 381e8869fd98674b40abdec0fc0c44c8ae4b0a02
5
+ SHA512:
6
+ metadata.gz: 41bbb0be79a6705b7c984519ec9a634a5cb2a8d904fdd99bae11d8c242b11dfb3067ed87083b55b4cfb555d794e8aed59a6638d3bcab9882483531391289abff
7
+ data.tar.gz: ce87352d9665569f830f3d0bebc8b295930699dd997407816c7712370079f5510f56fd42d8d47a813bd2cbe9d671ee48d1c85fcfd86e90997dd0d96a644186bf
data/MIT-LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright 2014 YOURNAME
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.rdoc ADDED
@@ -0,0 +1,3 @@
1
+ = FlattenedActiveAdmin
2
+
3
+ This project rocks and uses MIT-LICENSE.
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ begin
2
+ require 'bundler/setup'
3
+ rescue LoadError
4
+ puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
5
+ end
6
+
7
+ require 'rdoc/task'
8
+
9
+ RDoc::Task.new(:rdoc) do |rdoc|
10
+ rdoc.rdoc_dir = 'rdoc'
11
+ rdoc.title = 'FlattenedActiveAdmin'
12
+ rdoc.options << '--line-numbers'
13
+ rdoc.rdoc_files.include('README.rdoc')
14
+ rdoc.rdoc_files.include('lib/**/*.rb')
15
+ end
16
+
17
+
18
+
19
+
20
+ Bundler::GemHelper.install_tasks
21
+
@@ -0,0 +1,42 @@
1
+ /* Active Admin CSS */
2
+ // Reset Away!
3
+ @include global-reset;
4
+
5
+ // Partials
6
+ @import "flattened_active_admin/typography";
7
+ @import "flattened_active_admin/header";
8
+ @import "flattened_active_admin/forms";
9
+ @import "flattened_active_admin/components/comments";
10
+ @import "flattened_active_admin/components/flash_messages";
11
+ @import "flattened_active_admin/components/date_picker";
12
+ @import "flattened_active_admin/components/popovers";
13
+ @import "flattened_active_admin/components/tables";
14
+ @import "flattened_active_admin/components/batch_actions";
15
+ @import "flattened_active_admin/components/modal_dialog";
16
+ @import "flattened_active_admin/components/blank_slates";
17
+ @import "flattened_active_admin/components/breadcrumbs";
18
+ @import "flattened_active_admin/components/dropdown_menu";
19
+ @import "flattened_active_admin/components/buttons";
20
+ @import "flattened_active_admin/components/grid";
21
+ @import "flattened_active_admin/components/links";
22
+ @import "flattened_active_admin/components/pagination";
23
+ @import "flattened_active_admin/components/panels";
24
+ @import "flattened_active_admin/components/columns";
25
+ @import "flattened_active_admin/components/scopes";
26
+ @import "flattened_active_admin/components/status_tags";
27
+ @import "flattened_active_admin/components/table_tools";
28
+ @import "flattened_active_admin/components/index_list";
29
+ @import "flattened_active_admin/pages/logged_out";
30
+ @import "flattened_active_admin/structure/footer";
31
+ @import "flattened_active_admin/structure/main_structure";
32
+ @import "flattened_active_admin/structure/title_bar";
33
+
34
+ body {
35
+ @include sans-family;
36
+ line-height: 150%;
37
+ font-size: 72%;
38
+ background: $body-background-color;
39
+ margin: 0;
40
+ padding: 0;
41
+ color: $text-color;
42
+ }
@@ -0,0 +1,355 @@
1
+ //= depend_on_asset "active_admin/datepicker/datepicker-input-icon.png"
2
+ // -------------------------------------- Active Admin Forms
3
+ form {
4
+ /* Reset margins & Padding */
5
+ ul, ol, li, fieldset, legend, input, textarea, select, p { margin:0; padding:0; }
6
+ ol, ul { list-style: none }
7
+
8
+ fieldset {
9
+ border: 0;
10
+ padding: 10px 0;
11
+ margin-bottom: 20px;
12
+
13
+ &.inputs { @include section-background; }
14
+
15
+ legend {
16
+ width: 100%;
17
+ span { display: block; @include section-header; }
18
+ }
19
+
20
+ ol > li {
21
+ padding: 10px;
22
+ label {
23
+ display: block;
24
+ width: 20%;
25
+ float: left;
26
+ font-size: 1.0em;
27
+ font-weight: bold;
28
+ color: $form-label-color;
29
+ abbr {
30
+ border: none;
31
+ color: $required-field-marker-color;
32
+ }
33
+ }
34
+ }
35
+
36
+ ol > li.has_many_container {
37
+ padding: 20px 10px;
38
+ h3 {
39
+ font-size: 12px;
40
+ font-weight: bold;
41
+ }
42
+ .has_many_fields { margin: 10px 0 }
43
+ }
44
+
45
+ ol > li > li label {
46
+ line-height:100%;
47
+ padding-top:0;
48
+ input {
49
+ line-height:100%;
50
+ vertical-align:middle;
51
+ margin-top:-0.1em;
52
+ }
53
+ }
54
+ }
55
+
56
+ // relative so the absolutely-positioned handle will fit
57
+ .has_many_fields { position: relative }
58
+
59
+ .has_many_container {
60
+ .handle {
61
+ position: absolute;
62
+ @include icon-size(3em);
63
+ top: calc(50% - 3em / 2);
64
+ right: 2px;
65
+ padding: 0;
66
+ cursor: move;
67
+ }
68
+
69
+ // If a sortable is nested in a sortable, give the parent handle space!
70
+ &.ui-sortable .has_many_container {
71
+ margin-right: 2em;
72
+ }
73
+ }
74
+
75
+ .ui-sortable {
76
+ // give the handle space!
77
+ input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
78
+ width: calc(80% - #{$text-input-total-padding} - 2em - 1px);
79
+ }
80
+ }
81
+
82
+ /* Nested Fieldsets and Legends */
83
+
84
+ fieldset > ol > li {
85
+ fieldset {
86
+ position:relative;
87
+ padding: 0;
88
+ margin-bottom: 0;
89
+
90
+ legend {
91
+ position:absolute;
92
+ width:95%;
93
+ padding-top:0.1em;
94
+ left: 0px;
95
+ font-size: 100%;
96
+ font-weight: normal;
97
+ span { position:absolute; }
98
+ &.label label { position:absolute; }
99
+ }
100
+
101
+ &:not(.has_many_fields) ol {
102
+ float: left;
103
+ width: 74%;
104
+ margin: 0;
105
+ padding: 0 0 0 20%;
106
+
107
+ li {
108
+ padding: 0;
109
+ border: 0;
110
+ }
111
+ }
112
+
113
+ &.has_many_fields ol {
114
+ float: left;
115
+ width: 100%;
116
+ margin: 0;
117
+ padding: 0;
118
+ }
119
+ }
120
+ }
121
+
122
+ /* Text Fields */
123
+ input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
124
+ width: calc(80% - #{$text-input-total-padding});
125
+ border: $border-width solid #c9d0d6;
126
+ @include rounded;
127
+ font-size: 0.95em;
128
+ @include sans-family;
129
+ outline: none;
130
+ padding: 8px $text-input-horizontal-padding 7px;
131
+
132
+ &:focus {
133
+ border: $border-width solid #99a2aa;
134
+ @include shadow(0,0,4px,#99a2aa);
135
+ }
136
+ }
137
+
138
+ // Selects
139
+ select {
140
+ width: 264px;
141
+ padding-left: 5px;
142
+ line-height: 1;
143
+ border: 1px solid #5e6469;
144
+ border-radius: 5px;
145
+ height: 30px;
146
+ -webkit-appearance: none;
147
+ background: #fff image-url('active_admin/orderable.png') no-repeat 95% 10px;
148
+ }
149
+
150
+ fieldset > ol > li {
151
+
152
+ /* Hints */
153
+ p.inline-hints {
154
+ font-size: 0.95em;
155
+ font-style: italic;
156
+ color:#666;
157
+ margin: 0.5em 0 0 20%;
158
+ }
159
+
160
+ /* Date and Time Fields */
161
+ &.date, &.time, &.datetime, &.date_select {
162
+ fieldset ol li {
163
+ float:left; width:auto; margin:0 0.5em 0 0;
164
+ label { display: none; }
165
+ input { display:inline; margin:0; padding:0; }
166
+ }
167
+ }
168
+
169
+ /* Check Boxes or Radio fields */
170
+ &.check_boxes, &.radio {
171
+ fieldset ol {
172
+ margin-bottom:-0.6em;
173
+ li {
174
+ margin:0.1em 0 0.5em 0;
175
+ label {
176
+ float:none;
177
+ width:100%;
178
+ input { margin-right:0.2em; }
179
+ }
180
+ }
181
+ }
182
+ }
183
+
184
+ /* Boolean Field */
185
+ &.boolean {
186
+ height: 1.1em;
187
+ label {
188
+ width: 80%;
189
+ padding-left:20%;
190
+ padding-right: 10px;
191
+ text-transform: none !important;
192
+ font-weight: normal;
193
+ input { margin:0 0.5em 0 0.2em; }
194
+ }
195
+ }
196
+
197
+ /* Hidden fields */
198
+ &.hidden {
199
+ padding: 0;
200
+ }
201
+
202
+ /* Errors */
203
+ p.inline-errors {
204
+ color: $error-color;
205
+ font-weight: bold;
206
+ margin:0.3em 0 0 20%;
207
+ }
208
+ ul.errors {
209
+ color: $error-color;
210
+ margin:0.5em 0 0 20%;
211
+ list-style:square;
212
+ li { padding:0; border:none; display:list-item; }
213
+ }
214
+
215
+ &.error {
216
+ input[type=text], input[type=password], input[type=email], input[type=number], input[type=url], input[type=tel], textarea {
217
+ border: $border-width solid $error-color;
218
+ }
219
+ }
220
+ }
221
+
222
+ /* semantic_errors */
223
+ ul.errors {
224
+ background: lighten($error-color, 60%);
225
+ @include rounded(4px);
226
+ color: $error-color;
227
+ font-weight: bold;
228
+ margin-bottom: 10px;
229
+ padding: 10px;
230
+ list-style:square;
231
+ li { margin-left:15px; padding:0; border:none; display:list-item; }
232
+ }
233
+
234
+ /* Buttons */
235
+
236
+ input[type=submit] {
237
+ @include dark-button;
238
+ cursor: pointer;
239
+
240
+ }
241
+
242
+ .buttons, .actions {
243
+ margin-top: 15px;
244
+ input[type=submit] { margin-right: 10px; }
245
+ }
246
+
247
+ fieldset.buttons li, fieldset.actions li {
248
+ float:left;
249
+ padding: 0;
250
+
251
+ &.cancel {
252
+ a {
253
+ @include light-button; @include icon(#777, 9px);
254
+ }
255
+ }
256
+ }
257
+
258
+ }
259
+
260
+ // -------------------------------------- Sidebar Forms
261
+
262
+ $sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
263
+
264
+ .sidebar_section {
265
+
266
+ label {
267
+ display: block;
268
+ text-transform: uppercase;
269
+ color: $form-label-color;
270
+ font-size: 0.9em;
271
+ font-weight: bold;
272
+ }
273
+
274
+ select {
275
+ width: $sidebar-inner-content-width;
276
+ padding-left: 5px;
277
+ line-height: 1;
278
+ border: 1px solid #5e6469;
279
+ border-radius: 5px;
280
+ height: 30px;
281
+ -webkit-appearance: none;
282
+ background: #fff image-url('active_admin/orderable.png') no-repeat 95% 10px;
283
+ }
284
+
285
+ input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], textarea {
286
+ width: $sidebar-inner-content-width - ($text-input-horizontal-padding * 2);
287
+ }
288
+
289
+ }
290
+
291
+ // -------------------------------------- Filter Forms
292
+
293
+ $filter-field-seperator-width: 12px;
294
+
295
+ $side-by-side-filter-input-width: ($sidebar-inner-content-width / 2) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
296
+ $side-by-side-filter-select-width: ($sidebar-inner-content-width / 2) - $filter-field-seperator-width;
297
+
298
+ $date-range-filter-input-right-padding: 27px;
299
+ $date-range-filter-input-horizontal-padding: $date-range-filter-input-right-padding + $text-input-horizontal-padding;
300
+ $date-range-filter-input-width: ($sidebar-inner-content-width / 2) - $filter-field-seperator-width - $date-range-filter-input-horizontal-padding;
301
+
302
+ form.filter_form {
303
+ .filter_form_field {
304
+ margin-bottom: 10px;
305
+ clear: both;
306
+
307
+ &.select_and_search {
308
+ input[type=text] {
309
+ margin-left: $filter-field-seperator-width + 4;
310
+ width: $side-by-side-filter-input-width;
311
+ }
312
+ select {
313
+ width: $side-by-side-filter-select-width;
314
+ padding-left: 5px;
315
+ line-height: 1;
316
+ border: 1px solid #5e6469;
317
+ border-radius: 5px;
318
+ height: 30px;
319
+ -webkit-appearance: none;
320
+ background: #fff image-url('active_admin/orderable.png') no-repeat 95% 10px;
321
+ }
322
+ }
323
+
324
+ &.filter_check_boxes {
325
+ label { margin-bottom: 3px; }
326
+ fieldset {
327
+ margin-bottom: 0px;
328
+ padding-bottom: 0px;
329
+ }
330
+ .check_boxes_wrapper label {
331
+ font-weight: normal;
332
+ margin-bottom: 3px;
333
+ text-transform: none;
334
+ font-size: 1.0em;
335
+ input { vertical-align: baseline; }
336
+ }
337
+ }
338
+
339
+ &.filter_date_range {
340
+ .seperator {
341
+ display: inline-block;
342
+ text-align: center;
343
+ width: $filter-field-seperator-width;
344
+ }
345
+
346
+ input[type=text] {
347
+ background: #fff image-url('active_admin/datepicker/datepicker-input-icon.png') no-repeat 100% 7px;
348
+ padding-right: $date-range-filter-input-right-padding;
349
+ width: $date-range-filter-input-width;
350
+ }
351
+ }
352
+ }
353
+ a.clear_filters_btn { @include light-button; }
354
+ }
355
+
@@ -0,0 +1,156 @@
1
+ //= depend_on_asset "active_admin/nested_menu_arrow.gif"
2
+ //= depend_on_asset "active_admin/nested_menu_arrow_dark.gif"
3
+ // ----------------------------------- Header
4
+ #header {
5
+ @include header-background-gradient;
6
+ // @include shadow;
7
+ // @include text-shadow(#000);
8
+ display: table;
9
+ height: 20px;
10
+ width: 100%;
11
+ overflow: visible;
12
+ position: inherit;
13
+ padding: 5px 0;
14
+ z-index: 900;
15
+
16
+ h1 {
17
+ display: table-cell;
18
+ vertical-align: middle;
19
+ white-space: nowrap;
20
+ color: $page-header-text-color;
21
+ margin-right: 20px;
22
+ margin-bottom: 0px;
23
+ padding: 3px $horizontal-page-margin 0 $horizontal-page-margin;
24
+ font-size: 1.3em;
25
+ font-weight: normal;
26
+ line-height: 1.2;
27
+
28
+ a {
29
+ text-decoration: none;
30
+
31
+ &:hover {
32
+ color: #fff;
33
+ }
34
+ }
35
+
36
+ img {
37
+ position: relative;
38
+ top: -2px;
39
+ }
40
+ }
41
+
42
+ a, a:link { color: $page-header-text-color; }
43
+
44
+ .header-item {
45
+ top: 2px;
46
+ position: relative;
47
+ height: 20px
48
+ }
49
+
50
+ ul.tabs {
51
+ display: table-cell;
52
+ vertical-align: middle;
53
+ height: 100%;
54
+ margin: 0;
55
+ padding: 0;
56
+
57
+ & > li {
58
+ display: inline-block;
59
+ margin-right: 4px;
60
+ margin-top: 5px;
61
+ margin-bottom: 5px;
62
+ font-size: 1.0em;
63
+ position: relative;
64
+
65
+ a {
66
+ text-decoration: none;
67
+ padding: 6px 10px 4px 10px;
68
+ position: relative;
69
+ @include rounded(10px);
70
+ }
71
+
72
+ &.current > a {
73
+ background: $current-menu-item-background;
74
+ color: #fff;
75
+ }
76
+
77
+ &.has_nested > a {
78
+ background: image-url('active_admin/nested_menu_arrow.gif') no-repeat calc(100% - 7px) 50%;
79
+ padding-right: 20px;
80
+ }
81
+
82
+ &.has_nested.current > a {
83
+ background: $current-menu-item-background image-url('active_admin/nested_menu_arrow_dark.gif') no-repeat calc(100% - 7px) 50%;
84
+ padding-right: 20px;
85
+ }
86
+
87
+ &:hover > a {
88
+ background: lighten($current-menu-item-background, 10%);
89
+ color: #fff;
90
+ }
91
+
92
+ &.has_nested:hover > a {
93
+ @include rounded-top(10px);
94
+ border-bottom: 5px solid lighten($current-menu-item-background, 10%);
95
+ background: lighten($current-menu-item-background, 10%) image-url('active_admin/nested_menu_arrow_dark.gif') no-repeat calc(100% - 7px) 50%;
96
+ z-index: 1020;
97
+ }
98
+
99
+
100
+ /* Hover on li, display the ul */
101
+ &:hover ul { display: block;}
102
+ /* Drop down menus */
103
+ ul {
104
+ background: lighten($current-menu-item-background, 10%);
105
+ @include rounded-all(0,5px,5px,5px);
106
+ position: absolute;
107
+ width: 120%;
108
+ min-width: 175px;
109
+ max-width: calc(100% + 20px);
110
+ margin-top: 5px;
111
+ float: left;
112
+ display: none;
113
+ padding: 3px 0px 5px 0;
114
+ list-style: none;
115
+ z-index: 1010;
116
+
117
+ li {
118
+ margin: 0px;
119
+ a {
120
+ color: $header-dropdown-menu-text-color;
121
+ background: none;
122
+ display: block;
123
+ &:hover { color: #fff; background: lighten($current-menu-item-background, 5%);; }
124
+ }
125
+
126
+ &.current {
127
+ a { @include rounded(0) }
128
+ }
129
+ }
130
+ }
131
+ }
132
+
133
+ }
134
+
135
+ #tabs {
136
+ width: 100%;
137
+ }
138
+
139
+ #utility_nav {
140
+ color: #aaa;
141
+ display: table-cell;
142
+ white-space: nowrap;
143
+ margin: 0;
144
+ padding: 0;
145
+ padding-right: 26px;
146
+ text-align: right;
147
+
148
+ a { text-decoration: none; }
149
+ a:hover { color: #fff; }
150
+
151
+ li {
152
+ display:inline;
153
+ }
154
+ }
155
+
156
+ }
@@ -0,0 +1 @@
1
+ @import "flattened_active_admin/mixins/all";
@@ -0,0 +1,100 @@
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 { font-size:100.01%; }
28
+ body { font-size: 75%; font-family: "Helvetica Neue", Arial, Helvetica, sans-serif; }
29
+
30
+ // Headings
31
+ h1,h2,h3,h4,h5,h6 {
32
+ font-weight: normal;
33
+ color: $primary-color;
34
+ img { margin: 0; }
35
+ }
36
+
37
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
38
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
39
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
40
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
41
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
42
+ h6 { font-size: 1em; font-weight: bold; }
43
+
44
+
45
+ p {
46
+ margin: 0 0 1.5em;
47
+
48
+ .left { margin: 1.5em 1.5em 1.5em 0; padding: 0; }
49
+ .right { margin: 1.5em 0 1.5em 1.5em; padding: 0; }
50
+ }
51
+
52
+ .left { float: left !important; }
53
+ .right { float: right !important; }
54
+
55
+ blockquote { margin: 1.5em; color: #666; font-style: italic; }
56
+ strong,dfn { font-weight: bold; }
57
+ em,dfn { font-style: italic; }
58
+ sup, sub { line-height: 0; }
59
+
60
+ abbr,
61
+ acronym { border-bottom: 1px dotted #666; }
62
+ address { margin: 0 0 1.5em; font-style: italic; }
63
+ del { color:#666; }
64
+
65
+ pre { margin: 1.5em 0; white-space: pre; }
66
+ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
67
+
68
+ // Lists
69
+ li ul,
70
+ li ol { margin: 0; }
71
+ ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; }
72
+
73
+ ul { list-style-type: disc; }
74
+ ol { list-style-type: decimal; }
75
+
76
+ dl { margin: 0 0 1.5em 0; }
77
+ dl dt { font-weight: bold; }
78
+ dd { margin-left: 1.5em;}
79
+
80
+ // Tables
81
+ table { margin-bottom: 1.4em; width:100%; }
82
+ th { font-weight: bold; }
83
+ thead th { background: #c3d9ff; }
84
+ th,td,caption { padding: 4px 10px 4px 5px; }
85
+
86
+ // Helper Classes
87
+ .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
88
+ .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
89
+ .hide { display: none; }
90
+
91
+ .quiet { color: #666; }
92
+ .loud { color: #000; }
93
+ .highlight { background:#ff0; }
94
+ .added { background:#060; color: #fff; }
95
+ .removed { background:#900; color: #fff; }
96
+
97
+ .first { margin-left:0; padding-left:0; }
98
+ .last { margin-right:0; padding-right:0; }
99
+ .top { margin-top:0; padding-top:0; }
100
+ .bottom { margin-bottom:0; padding-bottom:0; }