activeadmin 3.2.3 → 4.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -57
- data/CONTRIBUTING.md +25 -108
- data/README.md +19 -32
- data/app/assets/config/active_admin_manifest.js +2 -0
- data/app/controllers/active_admin/base_controller/menu.rb +39 -0
- data/{lib → app/controllers}/active_admin/base_controller.rb +46 -18
- data/{lib → app/controllers}/active_admin/page_controller.rb +0 -4
- data/{lib → app/controllers}/active_admin/resource_controller/action_builder.rb +1 -1
- data/{lib → app/controllers}/active_admin/resource_controller/data_access.rb +2 -2
- data/{lib → app/controllers}/active_admin/resource_controller/scoping.rb +1 -1
- data/{lib → app/controllers}/active_admin/resource_controller/streaming.rb +2 -2
- data/app/controllers/active_admin/resource_controller.rb +102 -0
- data/app/helpers/active_admin/auto_link_helper.rb +66 -0
- data/app/helpers/active_admin/breadcrumb_helper.rb +41 -0
- data/app/helpers/active_admin/display_helper.rb +117 -0
- data/app/helpers/active_admin/form_helper.rb +95 -0
- data/app/helpers/active_admin/index_helper.rb +40 -0
- data/app/helpers/active_admin/layout_helper.rb +63 -0
- data/app/javascript/active_admin/features/batch_actions.js +89 -0
- data/app/javascript/active_admin/features/dark_mode_toggle.js +37 -0
- data/app/javascript/active_admin/features/filters.js +34 -0
- data/app/javascript/active_admin/features/has_many.js +28 -0
- data/app/javascript/active_admin/features/main_menu.js +12 -0
- data/app/javascript/active_admin/features/per_page.js +9 -0
- data/app/javascript/active_admin/utils/dom.js +17 -0
- data/app/javascript/active_admin.js +10 -0
- data/app/views/active_admin/_flash_messages.html.erb +22 -0
- data/app/views/active_admin/_html_head.html.erb +13 -0
- data/app/views/active_admin/_main_navigation.html.erb +28 -0
- data/app/views/active_admin/_page_header.html.erb +27 -0
- data/app/views/active_admin/_sidebar.html.erb +5 -0
- data/app/views/active_admin/_site_footer.html.erb +7 -0
- data/app/views/active_admin/_site_header.html.erb +30 -0
- data/app/views/active_admin/devise/confirmations/new.html.erb +5 -3
- data/app/views/active_admin/devise/passwords/edit.html.erb +5 -3
- data/app/views/active_admin/devise/passwords/new.html.erb +5 -4
- data/app/views/active_admin/devise/registrations/new.html.erb +6 -4
- data/app/views/active_admin/devise/sessions/new.html.erb +6 -4
- data/app/views/active_admin/devise/shared/_links.erb +3 -1
- data/app/views/active_admin/devise/unlocks/new.html.erb +6 -4
- data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_gap.html.erb +3 -1
- data/app/views/active_admin/kaminari/_next_page.html.erb +16 -0
- data/app/views/active_admin/kaminari/_page.html.erb +14 -0
- data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_paginator.html.erb +1 -2
- data/app/views/active_admin/kaminari/_prev_page.html.erb +16 -0
- data/app/views/active_admin/page/index.html.arb +5 -1
- data/app/views/active_admin/resource/_active_filters.html.erb +32 -0
- data/app/views/active_admin/resource/_batch_actions_dropdown.html.erb +19 -0
- data/app/views/active_admin/resource/_form.html.arb +16 -0
- data/app/views/active_admin/resource/_form_default.html.arb +12 -0
- data/app/views/active_admin/resource/_index_as_table_default.html.arb +9 -0
- data/app/views/active_admin/resource/_index_blank_slate.html.erb +14 -0
- data/app/views/active_admin/resource/_index_empty_results.html.erb +5 -0
- data/app/views/active_admin/resource/_index_table_actions_default.html.erb +9 -0
- data/app/views/active_admin/resource/_show_default.html.arb +3 -0
- data/app/views/active_admin/resource/edit.html.arb +1 -1
- data/app/views/active_admin/resource/index.html.arb +94 -1
- data/app/views/active_admin/resource/new.html.arb +1 -1
- data/app/views/active_admin/resource/show.html.arb +12 -1
- data/app/views/active_admin/shared/_action_items.html.erb +3 -0
- data/app/views/active_admin/shared/_download_format_links.html.erb +7 -0
- data/app/views/active_admin/shared/_resource_comments.html.erb +51 -0
- data/app/views/active_admin/shared/_sidebar_section.html.arb +7 -0
- data/app/views/active_admin/shared/_sidebar_sections.html.erb +5 -0
- data/app/views/layouts/active_admin.html.erb +20 -0
- data/app/views/layouts/active_admin_logged_out.html.erb +8 -45
- data/config/locales/ar.yml +0 -16
- data/config/locales/az.yml +0 -16
- data/config/locales/bg.yml +0 -9
- data/config/locales/bs.yml +0 -7
- data/config/locales/ca.yml +0 -9
- data/config/locales/cs.yml +0 -9
- data/config/locales/da.yml +0 -16
- data/config/locales/de-CH.yml +0 -10
- data/config/locales/de.yml +0 -16
- data/config/locales/el.yml +0 -13
- data/config/locales/en-CA.yml +0 -16
- data/config/locales/en-GB.yml +0 -16
- data/config/locales/en.yml +18 -28
- data/config/locales/eo.yml +0 -17
- data/config/locales/es-MX.yml +0 -9
- data/config/locales/es.yml +0 -16
- data/config/locales/fa.yml +0 -9
- data/config/locales/fi.yml +0 -9
- data/config/locales/fr.yml +32 -26
- data/config/locales/he.yml +0 -16
- data/config/locales/hr.yml +0 -9
- data/config/locales/hu.yml +0 -6
- data/config/locales/id.yml +0 -16
- data/config/locales/it.yml +0 -16
- data/config/locales/ja.yml +0 -16
- data/config/locales/ko.yml +0 -9
- data/config/locales/lt.yml +0 -16
- data/config/locales/lv.yml +0 -6
- data/config/locales/mk.yml +0 -15
- data/config/locales/nb.yml +0 -12
- data/config/locales/nl.yml +21 -29
- data/config/locales/pl.yml +0 -16
- data/config/locales/pt-BR.yml +0 -16
- data/config/locales/pt-PT.yml +0 -6
- data/config/locales/ro.yml +0 -6
- data/config/locales/ru.yml +0 -16
- data/config/locales/sk.yml +0 -16
- data/config/locales/sv-SE.yml +0 -16
- data/config/locales/tr.yml +0 -16
- data/config/locales/uk.yml +0 -16
- data/config/locales/vi.yml +0 -16
- data/config/locales/zh-CN.yml +0 -16
- data/config/locales/zh-TW.yml +0 -16
- data/lib/active_admin/application.rb +1 -9
- data/lib/active_admin/batch_actions/controller.rb +1 -4
- data/lib/active_admin/batch_actions/resource_extension.rb +6 -13
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +0 -6
- data/lib/active_admin/batch_actions/views/selection_cells.rb +2 -2
- data/lib/active_admin/batch_actions.rb +0 -5
- data/lib/active_admin/callbacks.rb +6 -4
- data/lib/active_admin/component.rb +0 -1
- data/lib/active_admin/csv_builder.rb +1 -1
- data/lib/active_admin/devise.rb +3 -3
- data/lib/active_admin/dsl.rb +2 -2
- data/lib/active_admin/dynamic_settings_node.rb +4 -4
- data/lib/active_admin/engine.rb +19 -6
- data/lib/active_admin/filters/active.rb +6 -4
- data/lib/active_admin/filters/active_filter.rb +1 -3
- data/lib/active_admin/filters/forms.rb +1 -42
- data/lib/active_admin/filters/resource_extension.rb +17 -9
- data/lib/active_admin/filters.rb +0 -2
- data/lib/active_admin/form_builder.rb +15 -14
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +8 -10
- data/lib/active_admin/inputs/filters/base.rb +1 -1
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -6
- data/lib/active_admin/inputs/filters/date_range_input.rb +4 -2
- data/lib/active_admin/inputs.rb +0 -3
- data/lib/active_admin/menu.rb +10 -7
- data/lib/active_admin/menu_collection.rb +1 -1
- data/lib/active_admin/menu_item.rb +24 -3
- data/lib/active_admin/namespace.rb +2 -44
- data/lib/active_admin/namespace_settings.rb +2 -35
- data/lib/active_admin/order_clause.rb +4 -1
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +3 -75
- data/lib/active_admin/orm/active_record/comments.rb +10 -5
- data/lib/active_admin/pundit_adapter.rb +1 -1
- data/lib/active_admin/resource/action_items.rb +15 -20
- data/lib/active_admin/resource/attributes.rb +1 -8
- data/lib/active_admin/resource/naming.rb +1 -2
- data/lib/active_admin/resource.rb +1 -0
- data/lib/active_admin/resource_dsl.rb +1 -1
- data/lib/active_admin/scope.rb +1 -1
- data/lib/active_admin/settings_node.rb +1 -1
- data/lib/active_admin/sidebar_section.rb +0 -5
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers.rb +0 -12
- data/lib/active_admin/views/components/active_admin_form.rb +20 -16
- data/lib/active_admin/views/components/attributes_table.rb +4 -12
- data/lib/active_admin/views/components/index_list.rb +10 -23
- data/lib/active_admin/views/components/paginated_collection.rb +34 -39
- data/lib/active_admin/views/components/panel.rb +2 -10
- data/lib/active_admin/views/components/scopes.rb +12 -21
- data/lib/active_admin/views/components/status_tag.rb +22 -19
- data/lib/active_admin/views/components/table_for.rb +19 -24
- data/lib/active_admin/views/components/tabs.rb +10 -11
- data/lib/active_admin/views/index_as_table.rb +24 -97
- data/lib/active_admin.rb +7 -11
- data/lib/generators/active_admin/assets/assets_generator.rb +4 -4
- data/lib/generators/active_admin/assets/templates/active_admin.css +3 -0
- data/lib/generators/active_admin/assets/templates/tailwind.config.js +18 -0
- data/lib/generators/active_admin/install/install_generator.rb +2 -8
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +10 -87
- data/lib/generators/active_admin/install/templates/dashboard.rb +8 -25
- data/lib/generators/active_admin/page/page_generator.rb +0 -1
- data/lib/generators/active_admin/resource/resource_generator.rb +46 -7
- data/lib/generators/active_admin/resource/templates/resource.rb.erb +42 -0
- data/lib/generators/active_admin/views_generator.rb +18 -0
- metadata +67 -214
- data/app/assets/javascripts/active_admin/base.js +0 -521
- data/app/assets/stylesheets/active_admin/_base.scss +0 -57
- data/app/assets/stylesheets/active_admin/_forms.scss +0 -315
- data/app/assets/stylesheets/active_admin/_header.scss +0 -188
- data/app/assets/stylesheets/active_admin/_mixins.scss +0 -1
- data/app/assets/stylesheets/active_admin/_normalize.scss +0 -349
- data/app/assets/stylesheets/active_admin/_print.scss +0 -287
- data/app/assets/stylesheets/active_admin/_typography.scss +0 -100
- data/app/assets/stylesheets/active_admin/components/_batch_actions.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +0 -30
- data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +0 -20
- data/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_columns.scss +0 -3
- data/app/assets/stylesheets/active_admin/components/_comments.scss +0 -41
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +0 -148
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -154
- data/app/assets/stylesheets/active_admin/components/_flash_messages.scss +0 -37
- data/app/assets/stylesheets/active_admin/components/_grid.scss +0 -9
- data/app/assets/stylesheets/active_admin/components/_index_list.scss +0 -12
- data/app/assets/stylesheets/active_admin/components/_links.scss +0 -5
- data/app/assets/stylesheets/active_admin/components/_modal_dialog.scss +0 -34
- data/app/assets/stylesheets/active_admin/components/_pagination.scss +0 -58
- data/app/assets/stylesheets/active_admin/components/_panels.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_scopes.scss +0 -13
- data/app/assets/stylesheets/active_admin/components/_status_tags.scss +0 -12
- data/app/assets/stylesheets/active_admin/components/_table_tools.scss +0 -70
- data/app/assets/stylesheets/active_admin/components/_tables.scss +0 -112
- data/app/assets/stylesheets/active_admin/components/_tabs.scss +0 -68
- data/app/assets/stylesheets/active_admin/components/_unsupported_browser.scss +0 -16
- data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -8
- data/app/assets/stylesheets/active_admin/mixins/_buttons.scss +0 -65
- data/app/assets/stylesheets/active_admin/mixins/_gradients.scss +0 -28
- data/app/assets/stylesheets/active_admin/mixins/_rounded.scss +0 -22
- data/app/assets/stylesheets/active_admin/mixins/_sections.scss +0 -41
- data/app/assets/stylesheets/active_admin/mixins/_shadows.scss +0 -15
- data/app/assets/stylesheets/active_admin/mixins/_typography.scss +0 -3
- data/app/assets/stylesheets/active_admin/mixins/_utilities.scss +0 -17
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +0 -51
- data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +0 -44
- data/app/assets/stylesheets/active_admin/structure/_footer.scss +0 -19
- data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +0 -29
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -43
- data/app/javascript/active_admin/base.js +0 -28
- data/app/javascript/active_admin/ext/jquery-ui.js +0 -7
- data/app/javascript/active_admin/ext/jquery.js +0 -9
- data/app/javascript/active_admin/initializers/batch-actions.js +0 -61
- data/app/javascript/active_admin/initializers/checkbox-toggler.js +0 -3
- data/app/javascript/active_admin/initializers/datepicker.js +0 -16
- data/app/javascript/active_admin/initializers/dropdown-menu.js +0 -9
- data/app/javascript/active_admin/initializers/filters.js +0 -10
- data/app/javascript/active_admin/initializers/has-many.js +0 -98
- data/app/javascript/active_admin/initializers/per-page.js +0 -13
- data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +0 -3
- data/app/javascript/active_admin/initializers/tabs.js +0 -6
- data/app/javascript/active_admin/lib/checkbox-toggler.js +0 -49
- data/app/javascript/active_admin/lib/dropdown-menu.js +0 -116
- data/app/javascript/active_admin/lib/filters.js +0 -39
- data/app/javascript/active_admin/lib/modal-dialog.js +0 -63
- data/app/javascript/active_admin/lib/per-page.js +0 -38
- data/app/javascript/active_admin/lib/table-checkbox-toggler.js +0 -38
- data/app/javascript/active_admin/lib/utils.js +0 -40
- data/app/views/kaminari/active_admin/_first_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_gap.html.erb +0 -8
- data/app/views/kaminari/active_admin/_last_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_next_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_page.html.erb +0 -12
- data/app/views/kaminari/active_admin/_paginator.html.erb +0 -25
- data/app/views/kaminari/active_admin/_prev_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_first_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_next_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_page.html.erb +0 -12
- data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +0 -11
- data/app/views/layouts/active_admin.html.arb +0 -2
- data/lib/active_admin/abstract_view_factory.rb +0 -48
- data/lib/active_admin/asset_registration.rb +0 -30
- data/lib/active_admin/base_controller/menu.rb +0 -35
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +0 -59
- data/lib/active_admin/filters/active_sidebar.rb +0 -28
- data/lib/active_admin/generators/boilerplate.rb +0 -54
- data/lib/active_admin/helpers/collection.rb +0 -21
- data/lib/active_admin/helpers/i18n.rb +0 -8
- data/lib/active_admin/inputs/datepicker_input.rb +0 -28
- data/lib/active_admin/inputs/filters/date_picker_input.rb +0 -14
- data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +0 -24
- data/lib/active_admin/orm/mongoid.rb +0 -2
- data/lib/active_admin/resource_controller/sidebars.rb +0 -19
- data/lib/active_admin/resource_controller.rb +0 -68
- data/lib/active_admin/view_factory.rb +0 -28
- data/lib/active_admin/view_helpers/active_admin_application_helper.rb +0 -13
- data/lib/active_admin/view_helpers/auto_link_helper.rb +0 -46
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +0 -34
- data/lib/active_admin/view_helpers/display_helper.rb +0 -119
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +0 -60
- data/lib/active_admin/view_helpers/fields_for.rb +0 -51
- data/lib/active_admin/view_helpers/flash_helper.rb +0 -15
- data/lib/active_admin/view_helpers/form_helper.rb +0 -21
- data/lib/active_admin/view_helpers/scope_name_helper.rb +0 -17
- data/lib/active_admin/view_helpers/sidebar_helper.rb +0 -16
- data/lib/active_admin/view_helpers/title_helper.rb +0 -12
- data/lib/active_admin/view_helpers/view_factory_helper.rb +0 -12
- data/lib/active_admin/views/action_items.rb +0 -18
- data/lib/active_admin/views/components/active_filters_sidebar_content.rb +0 -59
- data/lib/active_admin/views/components/blank_slate.rb +0 -18
- data/lib/active_admin/views/components/columns.rb +0 -162
- data/lib/active_admin/views/components/dropdown_menu.rb +0 -69
- data/lib/active_admin/views/components/menu.rb +0 -33
- data/lib/active_admin/views/components/menu_item.rb +0 -59
- data/lib/active_admin/views/components/sidebar.rb +0 -14
- data/lib/active_admin/views/components/sidebar_section.rb +0 -35
- data/lib/active_admin/views/components/site_title.rb +0 -55
- data/lib/active_admin/views/components/unsupported_browser.rb +0 -12
- data/lib/active_admin/views/footer.rb +0 -32
- data/lib/active_admin/views/header.rb +0 -20
- data/lib/active_admin/views/index_as_block.rb +0 -37
- data/lib/active_admin/views/index_as_blog.rb +0 -156
- data/lib/active_admin/views/index_as_grid.rb +0 -81
- data/lib/active_admin/views/pages/base.rb +0 -134
- data/lib/active_admin/views/pages/form.rb +0 -65
- data/lib/active_admin/views/pages/index.rb +0 -166
- data/lib/active_admin/views/pages/layout.rb +0 -27
- data/lib/active_admin/views/pages/page.rb +0 -31
- data/lib/active_admin/views/pages/show.rb +0 -60
- data/lib/active_admin/views/tabbed_navigation.rb +0 -12
- data/lib/active_admin/views/title_bar.rb +0 -56
- data/lib/generators/active_admin/assets/templates/active_admin.js +0 -1
- data/lib/generators/active_admin/assets/templates/active_admin.scss +0 -17
- data/lib/generators/active_admin/resource/templates/admin.rb.erb +0 -46
- data/lib/generators/active_admin/webpacker/plugins/jquery.js +0 -7
- data/lib/generators/active_admin/webpacker/templates/active_admin.js +0 -5
- data/lib/generators/active_admin/webpacker/templates/active_admin.scss +0 -17
- data/lib/generators/active_admin/webpacker/templates/print.scss +0 -2
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +0 -27
- data/vendor/assets/javascripts/jquery-ui/data.js +0 -45
- data/vendor/assets/javascripts/jquery-ui/disable-selection.js +0 -51
- data/vendor/assets/javascripts/jquery-ui/focusable.js +0 -89
- data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +0 -83
- data/vendor/assets/javascripts/jquery-ui/form.js +0 -25
- data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/keycode.js +0 -51
- data/vendor/assets/javascripts/jquery-ui/labels.js +0 -71
- data/vendor/assets/javascripts/jquery-ui/plugin.js +0 -49
- data/vendor/assets/javascripts/jquery-ui/position.js +0 -513
- data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
- data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
- data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +0 -50
- data/vendor/assets/javascripts/jquery-ui/tabbable.js +0 -41
- data/vendor/assets/javascripts/jquery-ui/unique-id.js +0 -54
- data/vendor/assets/javascripts/jquery-ui/version.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/widget.js +0 -758
- data/vendor/assets/javascripts/jquery-ui/widgets/button.js +0 -454
- data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +0 -294
- data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +0 -304
- data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +0 -2243
- data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +0 -971
- data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +0 -1268
- data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +0 -241
- data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +0 -1228
- data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +0 -1622
- data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +0 -931
- /data/{lib → app/controllers}/active_admin/base_controller/authorization.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/decorators.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/polymorphic_routes.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/resource_class_methods.rb +0 -0
- /data/lib/{active_admin/orm/mongoid/.gitkeep → generators/active_admin/assets/templates/builds/.keep} +0 -0
@@ -1,112 +0,0 @@
|
|
1
|
-
// ----------------------------------- Tables
|
2
|
-
|
3
|
-
table tr {
|
4
|
-
td {
|
5
|
-
vertical-align: top;
|
6
|
-
}
|
7
|
-
|
8
|
-
th {
|
9
|
-
text-align: left;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
// --------- Index Tables
|
14
|
-
|
15
|
-
table.index_table {
|
16
|
-
width: 100%;
|
17
|
-
margin-bottom: 10px;
|
18
|
-
border: 0;
|
19
|
-
border-spacing: 0;
|
20
|
-
|
21
|
-
th {
|
22
|
-
@include section-header;
|
23
|
-
border-right: none;
|
24
|
-
padding-left: $cell-horizontal-padding;
|
25
|
-
padding-right: $cell-horizontal-padding;
|
26
|
-
|
27
|
-
a, a:link, a:visited {
|
28
|
-
color: $section-header-text-color;
|
29
|
-
text-decoration: none;
|
30
|
-
display: block;
|
31
|
-
white-space: nowrap;
|
32
|
-
}
|
33
|
-
|
34
|
-
&.sortable a {
|
35
|
-
background: url($orderable-icon-url) no-repeat 0 4px; padding-left: 13px;
|
36
|
-
}
|
37
|
-
|
38
|
-
&.sorted-asc a { background-position: 0 -27px; }
|
39
|
-
&.sorted-desc a { background-position: 0 -56px;}
|
40
|
-
|
41
|
-
&.sorted-asc, &.sorted-desc {
|
42
|
-
@include gradient(darken($secondary-gradient-start, 5%), darken($secondary-gradient-stop, 5%));
|
43
|
-
}
|
44
|
-
|
45
|
-
&:last-child {
|
46
|
-
border-right: solid 1px #d4d4d4;
|
47
|
-
}
|
48
|
-
|
49
|
-
}
|
50
|
-
|
51
|
-
tr.even td { background: $table-stripe-color; }
|
52
|
-
|
53
|
-
tr.selected td {
|
54
|
-
background: $table-selected-color;
|
55
|
-
}
|
56
|
-
|
57
|
-
td {
|
58
|
-
padding: 10px $cell-horizontal-padding 8px $cell-horizontal-padding;
|
59
|
-
border-bottom: 1px solid #e8e8e8;
|
60
|
-
vertical-align: top;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
|
64
|
-
// --------- Tables inside Panels
|
65
|
-
|
66
|
-
.panel_contents table {
|
67
|
-
margin-top: 5px;
|
68
|
-
th {
|
69
|
-
padding-top: 10px;
|
70
|
-
background: none;
|
71
|
-
color: $primary-color;
|
72
|
-
@include no-shadow;
|
73
|
-
@include text-shadow;
|
74
|
-
text-transform: uppercase;
|
75
|
-
border-bottom: 1px solid #ccc;
|
76
|
-
}
|
77
|
-
tr.odd td { background: darken($table-stripe-color, 3%); }
|
78
|
-
tr.even td { background: $table-stripe-color; }
|
79
|
-
}
|
80
|
-
|
81
|
-
// -------------------------------------- Resource Attributes Table
|
82
|
-
.attributes_table { overflow: hidden; }
|
83
|
-
|
84
|
-
.attributes_table table {
|
85
|
-
col.even { background: $table-stripe-color; }
|
86
|
-
col.odd { background: darken($table-stripe-color, 3%); }
|
87
|
-
th, td {
|
88
|
-
padding: 8px $cell-horizontal-padding 6px $cell-horizontal-padding;
|
89
|
-
vertical-align: top;
|
90
|
-
border-bottom: 1px solid #e8e8e8;
|
91
|
-
}
|
92
|
-
th {
|
93
|
-
@include no-shadow;
|
94
|
-
@include no-gradient;
|
95
|
-
width: 150px;
|
96
|
-
font-size: 0.9em;
|
97
|
-
padding-left: 0;
|
98
|
-
text-transform: uppercase;
|
99
|
-
color: $primary-color;
|
100
|
-
@include text-shadow;
|
101
|
-
}
|
102
|
-
td {
|
103
|
-
.empty {
|
104
|
-
color: #bbb;
|
105
|
-
font-size: 0.8em;
|
106
|
-
text-transform: uppercase;
|
107
|
-
letter-spacing: 0.2em;
|
108
|
-
}
|
109
|
-
}
|
110
|
-
}
|
111
|
-
|
112
|
-
.sidebar_section .attributes_table th { width: 50px; }
|
@@ -1,68 +0,0 @@
|
|
1
|
-
.ui-tabs-nav {
|
2
|
-
list-style: none;
|
3
|
-
display: block;
|
4
|
-
width: auto;
|
5
|
-
margin-bottom: -12px;
|
6
|
-
padding-left: 0;
|
7
|
-
overflow: auto;
|
8
|
-
margin-left: 15px;
|
9
|
-
|
10
|
-
li {
|
11
|
-
display: block;
|
12
|
-
position: relative;
|
13
|
-
margin: 0;
|
14
|
-
padding: 0;
|
15
|
-
float: left;
|
16
|
-
|
17
|
-
&:first-child a {
|
18
|
-
border-left-width: 1px;
|
19
|
-
border-top-left-radius: 12px;
|
20
|
-
border-bottom-left-radius: 12px;
|
21
|
-
}
|
22
|
-
|
23
|
-
&:last-child a {
|
24
|
-
border-right-width: 1px;
|
25
|
-
border-top-right-radius: 12px;
|
26
|
-
border-bottom-right-radius: 12px;
|
27
|
-
}
|
28
|
-
|
29
|
-
a {
|
30
|
-
@include light-button;
|
31
|
-
|
32
|
-
& {
|
33
|
-
@include gradient(#FFFFFF, #F0F0F0);
|
34
|
-
@include border-colors(#d9d9d9, #d0d0d0, #c5c5c5);
|
35
|
-
text-decoration: none;
|
36
|
-
border-radius: 0;
|
37
|
-
border-width: 1px .5px 1px .5px;
|
38
|
-
margin-right: 0;
|
39
|
-
padding: 4px 14px 4px;
|
40
|
-
}
|
41
|
-
|
42
|
-
&:not(.disabled) {
|
43
|
-
&:hover {
|
44
|
-
@include gradient(#FFFFFF, #F6F6F6);
|
45
|
-
}
|
46
|
-
}
|
47
|
-
}
|
48
|
-
|
49
|
-
&.ui-tabs-active {
|
50
|
-
a {
|
51
|
-
cursor: default;
|
52
|
-
@include gradient(#F0F0F0, #FDFDFD);
|
53
|
-
box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1) inset;
|
54
|
-
|
55
|
-
a:hover {
|
56
|
-
@include gradient(#F0F0F0, #FDFDFD);
|
57
|
-
}
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
}
|
62
|
-
|
63
|
-
.tab-content {
|
64
|
-
border: 1px solid #D3D3D3;
|
65
|
-
padding: 15px;
|
66
|
-
padding-top: 30px;
|
67
|
-
text-align: left;
|
68
|
-
}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
.unsupported_browser {
|
2
|
-
padding: 10px 30px;
|
3
|
-
color: #211e14;
|
4
|
-
background-color: #fae692;
|
5
|
-
@include gradient(#feefae, #fae692);
|
6
|
-
border-bottom: 1px solid #b3a569;
|
7
|
-
|
8
|
-
h1 {
|
9
|
-
font-size: 13px;
|
10
|
-
font-weight: bold;
|
11
|
-
}
|
12
|
-
|
13
|
-
p {
|
14
|
-
margin-bottom: 0.5em;
|
15
|
-
}
|
16
|
-
}
|
@@ -1,65 +0,0 @@
|
|
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
|
-
|
12
|
-
&.disabled {
|
13
|
-
opacity: 0.5;
|
14
|
-
cursor: default;
|
15
|
-
}
|
16
|
-
|
17
|
-
}
|
18
|
-
|
19
|
-
@mixin default-button {
|
20
|
-
@include gradient(lighten($primary-color, 15%), darken($primary-color, 12%));
|
21
|
-
@include text-shadow(#000);
|
22
|
-
box-shadow: 0 1px 1px rgba(0,0,0,0.10), 0 1px 0 0px rgba(255,255,255, 0.2) inset;
|
23
|
-
border: solid 1px #484e53;
|
24
|
-
@include border-colors(#616a71, #484e53, #363b3f);
|
25
|
-
color: #efefef;
|
26
|
-
@include basic-button;
|
27
|
-
|
28
|
-
&:not(.disabled) {
|
29
|
-
&:hover{
|
30
|
-
@include gradient(lighten($primary-color, 18%), darken($primary-color, 9%));
|
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 gradient(#FFFFFF, #E7E7E7);
|
42
|
-
box-shadow: 0 1px 1px rgba(0,0,0,0.10), 0 1px 0 0 rgba(255,255,255, 0.8) inset;
|
43
|
-
border: solid 1px #c7c7c7;
|
44
|
-
@include border-colors(#d3d3d3, #c7c7c7, #c2c2c2);
|
45
|
-
@include text-shadow;
|
46
|
-
color: $primary-color;
|
47
|
-
@include basic-button;
|
48
|
-
|
49
|
-
&:not(.disabled) {
|
50
|
-
&:hover {
|
51
|
-
@include gradient(#FFFFFF, #F1F1F1);
|
52
|
-
}
|
53
|
-
|
54
|
-
&:active {
|
55
|
-
box-shadow: 0 1px 2px rgba(0,0,0,0.22) inset, 0 1px 0 0px #EEE;
|
56
|
-
@include border-colors(#c2c2c2, #b9b9b9, #b7b7b7);
|
57
|
-
@include gradient(#F3F3F3, #D8D8D8);
|
58
|
-
}
|
59
|
-
}
|
60
|
-
|
61
|
-
}
|
62
|
-
|
63
|
-
@mixin dark-button {
|
64
|
-
@include default-button;
|
65
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
$secondary-gradient-start: #efefef !default;
|
2
|
-
$secondary-gradient-stop: #dfe1e2 !default;
|
3
|
-
|
4
|
-
@mixin gradient($start, $end){
|
5
|
-
background-color: $start;
|
6
|
-
background-image: linear-gradient(180deg, $start, $end);
|
7
|
-
}
|
8
|
-
|
9
|
-
@mixin primary-gradient {
|
10
|
-
@include gradient(lighten($primary-color, 5%), darken($primary-color, 7%));
|
11
|
-
border-bottom: 1px solid darken($primary-color, 11%);
|
12
|
-
}
|
13
|
-
|
14
|
-
@mixin secondary-gradient {
|
15
|
-
@include gradient($secondary-gradient-start, $secondary-gradient-stop);
|
16
|
-
}
|
17
|
-
|
18
|
-
@mixin highlight-gradient {
|
19
|
-
@include gradient(#75a1c2, #608cb4);
|
20
|
-
}
|
21
|
-
|
22
|
-
@mixin reverse-highlight-gradient {
|
23
|
-
@include gradient(#608cb4, #75a1c2);
|
24
|
-
}
|
25
|
-
|
26
|
-
@mixin no-gradient {
|
27
|
-
background: none;
|
28
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
@mixin rounded($radius: 3px) {
|
2
|
-
border-radius: $radius;
|
3
|
-
}
|
4
|
-
|
5
|
-
@mixin rounded-all($top-left:3px, $top-right:3px, $bottom-right:3px, $bottom-left:3px) {
|
6
|
-
border-top-right-radius: $top-right;
|
7
|
-
border-top-left-radius: $top-left;
|
8
|
-
border-bottom-right-radius: $bottom-right;
|
9
|
-
border-bottom-left-radius: $bottom-left;
|
10
|
-
}
|
11
|
-
|
12
|
-
@mixin rounded-top($radius: 3px) {
|
13
|
-
@include rounded(0);
|
14
|
-
border-top-right-radius: $radius;
|
15
|
-
border-top-left-radius: $radius;
|
16
|
-
}
|
17
|
-
|
18
|
-
@mixin rounded-bottom($radius: 3px) {
|
19
|
-
@include rounded(0);
|
20
|
-
border-bottom-right-radius: $radius;
|
21
|
-
border-bottom-left-radius: $radius;
|
22
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
@mixin section-header {
|
2
|
-
@include secondary-gradient;
|
3
|
-
@include text-shadow;
|
4
|
-
border: solid 1px #cdcdcd;
|
5
|
-
@include border-colors(#e6e6e6, #d4d4d4, #cdcdcd);
|
6
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 0 1px #FFF inset;
|
7
|
-
|
8
|
-
font-size: 1em;
|
9
|
-
font-weight: bold;
|
10
|
-
line-height: 18px;
|
11
|
-
margin-bottom: 0.5em;
|
12
|
-
color: $section-header-text-color;
|
13
|
-
|
14
|
-
padding: 5px 10px 3px 10px;
|
15
|
-
}
|
16
|
-
|
17
|
-
@mixin section-background {
|
18
|
-
background: #f4f4f4;
|
19
|
-
@include rounded(4px);
|
20
|
-
@include inset-shadow(0,1px,4px, #ddd);
|
21
|
-
}
|
22
|
-
|
23
|
-
@mixin section {
|
24
|
-
@include section-background;
|
25
|
-
margin-bottom: 20px;
|
26
|
-
|
27
|
-
> h3 {
|
28
|
-
@include section-header;
|
29
|
-
|
30
|
-
.header_action {
|
31
|
-
float: right;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
|
-
> div { padding: 3px $section-padding $section-padding $section-padding; }
|
36
|
-
|
37
|
-
hr {
|
38
|
-
border: none;
|
39
|
-
border-bottom: 1px solid #E8E8E8;
|
40
|
-
}
|
41
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
@mixin shadow($x: 0, $y: 1px, $blur: 2px, $color: rgba(0,0,0,0.37)) {
|
2
|
-
box-shadow: $x $y $blur $color;
|
3
|
-
}
|
4
|
-
|
5
|
-
@mixin no-shadow {
|
6
|
-
box-shadow: none;
|
7
|
-
}
|
8
|
-
|
9
|
-
@mixin inset-shadow($x: 0, $y: 1px, $blur: 2px, $color: #aaa) {
|
10
|
-
box-shadow: inset $x $y $blur $color;
|
11
|
-
}
|
12
|
-
|
13
|
-
@mixin text-shadow($color: #fff, $x: 0, $y: 1px, $blur: 0) {
|
14
|
-
text-shadow: $color $x $y $blur;
|
15
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
@mixin clearfix {
|
2
|
-
&:after {
|
3
|
-
visibility: hidden;
|
4
|
-
display: block;
|
5
|
-
content: "";
|
6
|
-
clear: both;
|
7
|
-
height: 0;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
@mixin border-colors($top, $sides, $bottom) {
|
12
|
-
border-color: $sides;
|
13
|
-
border-top-color: $top;
|
14
|
-
border-right-color: $sides;
|
15
|
-
border-bottom-color: $bottom;
|
16
|
-
border-left-color: $sides;
|
17
|
-
}
|
@@ -1,51 +0,0 @@
|
|
1
|
-
// Variables used throughout Active Admin.
|
2
|
-
// They can be overridden by prepending your own
|
3
|
-
// to 'app/assets/stylesheets/active_admin.scss'.
|
4
|
-
|
5
|
-
// Images
|
6
|
-
$menu-arrow-light-icon-url: 'data:image/png;base64,R0lGODlhBwAEAKIAAL6+vry8vIiIiJWVlf///3t7ewAAAAAAACH5BAEAAAUALAAAAAAHAAQAAAMLWLol80MoF5mQKgEAOw==' !default;
|
7
|
-
$menu-arrow-dark-icon-url: 'data:image/png;base64,R0lGODlhBwAEAKIAAG1tbWxsbElJSVBQUP///0JCQgAAAAAAACH5BAEAAAUALAAAAAAHAAQAAAMLWLol80MoF5mQKgEAOw==' !default;
|
8
|
-
$menu-arrow-right-light-icon-url: 'data:image/gif;base64,R0lGODlhBAAHAKECAKqqqszMzPkVFfkVFSH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAIALAAAAAAEAAcAAAIJlA0XKbH9nmAFADs=' !default;
|
9
|
-
$menu-arrow-right-dark-icon-url: 'data:image/gif;base64,R0lGODlhBAAHAMIEAG1tbWxsbElJSVBQUPkVFfkVFfkVFfkVFSH+EUNyZWF0ZWQgd2l0aCBHSU1QACH5BAEKAAEALAAAAAAEAAcAAAMKGKqy02G8OGeACQA7' !default;
|
10
|
-
|
11
|
-
$orderable-icon-url: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAABGCAYAAAAAVo4aAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAH5JREFUeNpi3LhlOwMU1AExGxDXwARYoHQLEFdD2cxAXAliMKFJgEAFEHfBJEHGMKLhMpgkTsAEdch/NNwCk2xCdiEQtML4LEgCf6EubUX3Cgh0oNvJ+P//f7wOGpUclRwYSZb41CyidNbB8giNM+9oXhmVHHm5bJjUSAABBgDKKiwMMUxPwgAAAABJRU5ErkJggg==' !default;
|
12
|
-
|
13
|
-
// Colors
|
14
|
-
$body-background-color: #FFF !default;
|
15
|
-
$primary-color: #5E6469 !default;
|
16
|
-
$secondary-color: #f0f0f0 !default;
|
17
|
-
$text-color: #323537 !default;
|
18
|
-
$link-color: #38678b !default;
|
19
|
-
$section-header-text-color: $primary-color !default;
|
20
|
-
$current-menu-item-background: lighten($primary-color, 12%) !default;
|
21
|
-
$hover-menu-item-background: lighten($primary-color, 12%) !default;
|
22
|
-
$table-stripe-color: lighten($primary-color, 57%) !default;
|
23
|
-
$table-selected-color: #d9e4ec !default;
|
24
|
-
$error-color: #932419 !default;
|
25
|
-
$blank-slate-primary-color: #AAA !default;
|
26
|
-
$breadcrumbs-color: #8a949e !default;
|
27
|
-
$breadcrumbs-separator-color: #aab2ba !default;
|
28
|
-
$required-field-marker-color: #aaa !default;
|
29
|
-
$form-label-color: $section-header-text-color !default;
|
30
|
-
$page-header-text-color: #cdcdcd !default;
|
31
|
-
|
32
|
-
// Sizes
|
33
|
-
$border-width: 1px !default;
|
34
|
-
$horizontal-page-margin: 30px !default;
|
35
|
-
$sidebar-width: 270px !default;
|
36
|
-
$cell-padding: 5px 10px 3px 10px !default;
|
37
|
-
$cell-horizontal-padding: 12px !default;
|
38
|
-
$section-padding: 15px !default;
|
39
|
-
$text-input-horizontal-padding: 10px !default;
|
40
|
-
$text-input-total-padding: $text-input-horizontal-padding * 2 + $border-width * 2;
|
41
|
-
|
42
|
-
$blank-slate-border: 1px dashed #DADADA !default;
|
43
|
-
|
44
|
-
// Sidebar Forms
|
45
|
-
$sidebar-inner-content-width: $sidebar-width - ($section-padding * 2);
|
46
|
-
|
47
|
-
// Filter Forms
|
48
|
-
$filter-field-seperator-width: 12px !default;
|
49
|
-
$side-by-side-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($text-input-horizontal-padding * 2) - $filter-field-seperator-width;
|
50
|
-
$side-by-side-filter-select-width: ($sidebar-inner-content-width * 0.5) - $filter-field-seperator-width;
|
51
|
-
$date-range-filter-input-width: ($sidebar-inner-content-width * 0.5) - ($filter-field-seperator-width * 0.5);
|
@@ -1,44 +0,0 @@
|
|
1
|
-
body.logged_out {
|
2
|
-
background: #e8e9ea;
|
3
|
-
|
4
|
-
#content_wrapper{
|
5
|
-
width: 500px;
|
6
|
-
margin: 70px auto;
|
7
|
-
#active_admin_content {
|
8
|
-
@include shadow;
|
9
|
-
background: #fff;
|
10
|
-
padding: 13px 30px;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
|
14
|
-
h2 {
|
15
|
-
@include section-header;
|
16
|
-
@include primary-gradient;
|
17
|
-
@include text-shadow(#000);
|
18
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.3);
|
19
|
-
border: none;
|
20
|
-
color: #fff;
|
21
|
-
margin: -13px -30px 20px -30px;
|
22
|
-
}
|
23
|
-
|
24
|
-
#login {
|
25
|
-
/* Login Form */
|
26
|
-
form {
|
27
|
-
fieldset {
|
28
|
-
@include no-shadow;
|
29
|
-
background: none;
|
30
|
-
padding: 0;
|
31
|
-
margin-bottom: 0;
|
32
|
-
li { padding: 10px 0; }
|
33
|
-
|
34
|
-
input[type=text], input[type=email], input[type=password] {
|
35
|
-
width: 70%;
|
36
|
-
}
|
37
|
-
&.buttons { margin-left: 20%; }
|
38
|
-
}
|
39
|
-
}
|
40
|
-
|
41
|
-
a { float: right; margin-top: -32px; }
|
42
|
-
}
|
43
|
-
|
44
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
#footer {
|
2
|
-
padding: 30px 30px;
|
3
|
-
font-size: 0.8em;
|
4
|
-
clear: both;
|
5
|
-
|
6
|
-
p {
|
7
|
-
padding-top: 10px
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
// -------------------------------------- Index Footer (Under Table)
|
12
|
-
#index_footer {
|
13
|
-
padding-top: 5px;
|
14
|
-
text-align: right;
|
15
|
-
font-size: 0.85em;
|
16
|
-
@include clearfix;
|
17
|
-
}
|
18
|
-
|
19
|
-
.index_content { clear: both; }
|
@@ -1,29 +0,0 @@
|
|
1
|
-
#wrapper {
|
2
|
-
width: 100%;
|
3
|
-
}
|
4
|
-
|
5
|
-
.index #wrapper {
|
6
|
-
display: table;
|
7
|
-
}
|
8
|
-
|
9
|
-
#active_admin_content {
|
10
|
-
margin: 0;
|
11
|
-
padding: $horizontal-page-margin;
|
12
|
-
|
13
|
-
#main_content_wrapper {
|
14
|
-
float: left;
|
15
|
-
width: 100%;
|
16
|
-
|
17
|
-
#main_content{
|
18
|
-
margin-right: $sidebar-width + ($section-padding * 2);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
|
22
|
-
&.without_sidebar #main_content_wrapper #main_content{ margin-right: 0; }
|
23
|
-
|
24
|
-
#sidebar {
|
25
|
-
float: left;
|
26
|
-
width: $sidebar-width;
|
27
|
-
margin-left: -$sidebar-width;
|
28
|
-
}
|
29
|
-
}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
#title_bar {
|
2
|
-
@include section-header;
|
3
|
-
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.37);
|
4
|
-
display: table;
|
5
|
-
border-bottom-color: #EEE;
|
6
|
-
width: 100%;
|
7
|
-
position: relative;
|
8
|
-
margin: 0;
|
9
|
-
padding: 10px $horizontal-page-margin;
|
10
|
-
z-index: 800;
|
11
|
-
@include clearfix;
|
12
|
-
|
13
|
-
#titlebar_left, #titlebar_right {
|
14
|
-
height: 50px;
|
15
|
-
vertical-align: middle;
|
16
|
-
display: table-cell;
|
17
|
-
}
|
18
|
-
|
19
|
-
#titlebar_right {
|
20
|
-
text-align: right;
|
21
|
-
}
|
22
|
-
|
23
|
-
h2 {
|
24
|
-
margin: 0;
|
25
|
-
padding: 0;
|
26
|
-
font-size: 2.6em;
|
27
|
-
line-height: 100%;
|
28
|
-
font-weight: bold;
|
29
|
-
}
|
30
|
-
|
31
|
-
.action_items {
|
32
|
-
span.action_item {
|
33
|
-
& > a, & > .dropdown_menu > a {
|
34
|
-
@include light-button;
|
35
|
-
|
36
|
-
& {
|
37
|
-
padding: 12px 17px 10px;
|
38
|
-
margin: 0px;
|
39
|
-
}
|
40
|
-
}
|
41
|
-
}
|
42
|
-
}
|
43
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import "jquery"
|
2
|
-
import "jquery-ui/ui/widgets/datepicker"
|
3
|
-
import "jquery-ui/ui/widgets/dialog"
|
4
|
-
import "jquery-ui/ui/widgets/sortable"
|
5
|
-
import "jquery-ui/ui/widgets/tabs"
|
6
|
-
import "jquery-ui/ui/widget"
|
7
|
-
import "jquery-ujs"
|
8
|
-
|
9
|
-
import "./ext/jquery"
|
10
|
-
import "./ext/jquery-ui"
|
11
|
-
import "./initializers/batch-actions"
|
12
|
-
import "./initializers/checkbox-toggler"
|
13
|
-
import "./initializers/datepicker"
|
14
|
-
import "./initializers/dropdown-menu"
|
15
|
-
import "./initializers/filters"
|
16
|
-
import "./initializers/has-many"
|
17
|
-
import "./initializers/per-page"
|
18
|
-
import "./initializers/table-checkbox-toggler"
|
19
|
-
import "./initializers/tabs"
|
20
|
-
|
21
|
-
import ModalDialog from "./lib/modal-dialog";
|
22
|
-
|
23
|
-
function modal_dialog(message, inputs, callback) {
|
24
|
-
console.warn("ActiveAdmin.modal_dialog is deprecated in favor of ActiveAdmin.ModalDialog, please update usage.");
|
25
|
-
return ModalDialog(message, inputs, callback);
|
26
|
-
}
|
27
|
-
|
28
|
-
export { ModalDialog, modal_dialog };
|
@@ -1,7 +0,0 @@
|
|
1
|
-
// Short-circuits `_focusTabbable` to focus on the modal itself instead of
|
2
|
-
// elements inside the modal. Without this, if a datepicker is the first input,
|
3
|
-
// it'll immediately pop up when the modal opens.
|
4
|
-
// See this ticket for more info: http://bugs.jqueryui.com/ticket/4731
|
5
|
-
$.ui.dialog.prototype._focusTabbable = function() {
|
6
|
-
this.uiDialog.focus();
|
7
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
// `serializeArray` generates => [{ name: 'foo', value: 'bar' }]
|
2
|
-
// This function remaps it to => { foo: 'bar' }
|
3
|
-
$.fn.serializeObject = function() {
|
4
|
-
return this.serializeArray()
|
5
|
-
.reduce((obj, item) => {
|
6
|
-
obj[item.name] = item.value
|
7
|
-
return obj
|
8
|
-
}, {});
|
9
|
-
};
|