All Projects → blocknotes → Activeadmin_blaze_theme

blocknotes / Activeadmin_blaze_theme

Licence: mit
ActiveAdmin theme based on Blaze CSS toolkit

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Activeadmin blaze theme

Arctic admin
Responsive Theme for ActiveAdmin
Stars: ✭ 201 (+474.29%)
Mutual labels:  activeadmin, rails, scss
Activeadmin quill editor
Quill Rich Text Editor for ActiveAdmin
Stars: ✭ 76 (+117.14%)
Mutual labels:  activeadmin, rails, rails5
Activeadmin trumbowyg
Trumbowyg Editor for ActiveAdmin
Stars: ✭ 29 (-17.14%)
Mutual labels:  activeadmin, rails, rails5
Activeadmin froala editor
Froala WYSIWYG editor for ActiveAdmin
Stars: ✭ 30 (-14.29%)
Mutual labels:  activeadmin, rails, rails5
Activeadmin dynamic fields
ActiveAdmin plugin to add dynamic behaviors to fields
Stars: ✭ 73 (+108.57%)
Mutual labels:  activeadmin, rails, rails5
Formadmin
Modern and responsive theme for Active Admin used by Formaweb.
Stars: ✭ 79 (+125.71%)
Mutual labels:  activeadmin, rails
Activeadmin
The administration framework for Ruby on Rails applications.
Stars: ✭ 9,096 (+25888.57%)
Mutual labels:  activeadmin, rails
Active admin theme
👍 flat skin for activeadmin
Stars: ✭ 154 (+340%)
Mutual labels:  activeadmin, scss
Demo.activeadmin.info
A store application to use in tutorials for Active Admin
Stars: ✭ 253 (+622.86%)
Mutual labels:  activeadmin, rails
activeadmin active resource
Active Admin + Active Resource: to use a REST API in place of a local database as data source
Stars: ✭ 20 (-42.86%)
Mutual labels:  activeadmin, rails5
Render async
render_async lets you include pages asynchronously with AJAX
Stars: ✭ 974 (+2682.86%)
Mutual labels:  rails, rails5
Second level cache
Write Through and Read Through caching library inspired by CacheMoney and cache_fu, support ActiveRecord 4, 5 and 6.
Stars: ✭ 380 (+985.71%)
Mutual labels:  rails, rails5
Tolaria
A Rails CMS framework for making your editors happy.
Stars: ✭ 33 (-5.71%)
Mutual labels:  rails, rails5
Activeadmin Themes
Awesome themes for ActiveAdmin.
Stars: ✭ 141 (+302.86%)
Mutual labels:  activeadmin, rails
Arbre
An Object Oriented DOM Tree in Ruby
Stars: ✭ 610 (+1642.86%)
Mutual labels:  activeadmin, rails
Activeadmin settings cached
UI interface for rails-settings-cached in active admin
Stars: ✭ 51 (+45.71%)
Mutual labels:  activeadmin, rails
Spina
Spina CMS
Stars: ✭ 1,926 (+5402.86%)
Mutual labels:  rails, rails5
Vuejs Rails Starterkit
Vue.js + Rails Starting Kit GitHub Template to develop Hybrid Mobile Application: https://vuejs-rails-starterkit.herokuapp.com
Stars: ✭ 205 (+485.71%)
Mutual labels:  rails, rails5
Pluck to hash
Extend ActiveRecord pluck to return array of hashes
Stars: ✭ 275 (+685.71%)
Mutual labels:  rails, rails5
Activeadmin addons
Extends ActiveAdmin to enable a set of great optional UX improving add-ons
Stars: ✭ 574 (+1540%)
Mutual labels:  activeadmin, rails

Active Admin Blaze Theme

Gem Version CircleCI

A theme for Active Admin using Blaze CSS.

Features:

See some screenshots.

Install

  • Add to your Gemfile: gem 'activeadmin_blaze_theme'
  • Execute bundle
  • Add at the end of your Active Admin styles (app/assets/stylesheets/active_admin.scss):
@import "activeadmin_blaze_theme/theme";

Customize

  • To change colors add to your Active Admin styles (before activeadmin_blaze_theme/theme import):
// blaze colors
$color-brand: #2c3e50;
$color-info: #4dabf5;
$color-warning: #ff9800;
$color-success: #4caf50;
$color-error: #f44336;
// main variables
$bg-footer: #dfdfdf;               // bg footer bar
$bg-form1: #f4f4f4;                // bg 1st level forms
$bg-form2: darken($bg-form1, 3%);  // bg 2nd level forms (nested)
$bg-form3: darken($bg-form1, 6%);  // bg 3rd level forms (nested)
$bg-form4: darken($bg-form1, 9%);  // bg 4th level forms (nested)
$bg-form-sub-headings: lighten($color-brand, 64%);  // bg nested forms title
$bg-header: $color-brand;          // bg header bar
$bg-inputs: #fff;                  // bg forms inputs
$bg-menu-active: #7b929e;          // bg menu item current / hover
$bg-sidebar: #efefef;              // bg sidebar
$fg-box-title: #fff;
$fg-button-link: #fff;
$fg-menu-items: #f8f8f8;
$fg-table-borders: #e4e4e4;
$fg-table-link: #eee;
// other variables
$form-padding: 10px;
$inputs-spacing: 10px;
$height-inputs: 26px;
$height-topbar: 40px;
$height-titlebar: 38px;
$text-shadow: #000;
  • To move sidebar on the left add to your Active Admin styles (after blaze theme import):
#active_admin_content.with_sidebar {
  @extend .sidebar_left;
}
  • Squared style (no rounded borders):
#active_admin_content, .active_admin #title_bar {
  @extend .no_rounded;
}
  • More options:
// scrollable table cells
body.active_admin .index_content table {
  @extend .scrollable_cells;
}
// fix ckeditor width
body.active_admin .cke {
  @extend .ckeditor_width_fix
}

Custom fields / components

Toggle

In form \ inputs block:

f.input :boolean, as: :blaze_toggle

To change toggle color:

f.input :boolean, as: :blaze_toggle, input_html: { toggle_class: 'c-toggle--brand' }

Available: c-toggle--brand, c-toggle--info, c-toggle--warning, c-toggle--success, c-toggle--error

Standard checkbox with label on the left:

f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }

Sidebar menu

A sidebar menu (priority option permit to put the sidebar above the filters):

sidebar :help, priority: 0 do
  ul class: 'blaze-menu' do
    li do
      link_to 'Menu item 1', admin_root_path
    end
    li do
      link_to 'Menu item 2', admin_root_path
    end
    li do
      link_to 'Menu item 3', admin_root_path
    end
  end
end

Accordion

An accordion group in a form:

f.accordion_group do
  f.accordion 'First accordion' do
    f.inputs for: [:detail, f.object.detail || Detail.new] do |f2|
      f2.input :meta_title
      f2.input :meta_keywords
    end
  end
  f.accordion 'Second accordion' do
    f.inputs for: [:more_detail, f.object.morel_detail || Detail.new] do |f2|
      f2.input :meta_title
      f2.input :meta_keywords
    end
  end
end

Readonly field

Some readonly fields in a form:

f.readonly :position
f.readonly :position, f.object.position * 2
f.readonly 'Code', 'Automatically set after save', class: 'a-wrapper-class'
f.readonly nil, 'Value only, no label'

Styled table

Table styles:

table_for User.all, class: 'blaze-table table-rows table-striped' do
  # ...
end

Blaze widgets

See components available in Blaze CSS docs.

Badge example:

f.input :price, label: raw( 'Price <span class="c-badge c-badge--warning" style="position: relative; top: -5px">in $</span>' )

Button example:

a 'clear form', href: '#', class: 'c-button c-button--error', onclick: 'event.preventDefault();document.forms[0].reset();'

Progress bar example:

div class: 'c-progress' do
  div class: 'c-progress__bar c-progress__bar--success', style: "width: #{f.object.a_field}%;"
end

Notes

  • To use this plugins with Active Admin 1.x please use the version 0.5.12

Screenshots

Index: index

Edit: edit

Do you like it? Star it!

If you use this component just star it. A developer is more motivated to improve a project when there is some interest.

Take a look at other Active Admin components if you are curious.

Contributors

License

The gem is available as open-source under the terms of the MIT.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].