diff --git a/LICENSE.txt b/LICENSE.txt index 6faf81d..0db71d5 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright (c) 2017 Mattia Roccoberton +Copyright (c) 2020 Mattia Roccoberton MIT License diff --git a/README.md b/README.md index a012c7c..ac5a56e 100644 --- a/README.md +++ b/README.md @@ -13,41 +13,45 @@ Features: ## 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";` +- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): + +```scss +@import "activeadmin_blaze_theme/theme"; +``` ## Customize -- To change colors add before your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): +- To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import): ```scss // blaze colors -$color-brand: #2C3E50; +$color-brand: #2c3e50; $color-info: #4dabf5; $color-warning: #ff9800; $color-success: #4caf50; $color-error: #f44336; // main variables -$bg-footer: #dfdfdf !default; // bg footer bar -$bg-form1: #f4f4f4 !default; // bg 1st level forms -$bg-form2: darken($bg-form1, 3%) !default; // bg 2nd level forms (nested) -$bg-form3: darken($bg-form1, 6%) !default; // bg 3rd level forms (nested) -$bg-form4: darken($bg-form1, 9%) !default; // bg 4th level forms (nested) -$bg-form-sub-headings: lighten( $color-brand, 64% ) !default; // bg nested forms title -$bg-header: $color-brand !default; // bg header bar -$bg-inputs: #fff !default; // bg forms inputs -$bg-menu-active: #7b929e !default; // bg menu item current / hover -$bg-sidebar: #efefef; // bg sidebar -$fg-box-title: #fff !default; -$fg-button-link: #fff !default; -$fg-menu-items: #f8f8f8 !default; -$fg-table-borders: #e4e4e4 !default; -$fg-table-link: #eee !default; +$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 !default; -$inputs-spacing: 10px !default; -$height-inputs: 26px !default; -$height-topbar: 40px !default; -$height-titlebar: 38px !default; -$text-shadow: #000 !default; +$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): diff --git a/lib/activeadmin_blaze_theme/version.rb b/lib/activeadmin_blaze_theme/version.rb index 493a390..c4ce529 100644 --- a/lib/activeadmin_blaze_theme/version.rb +++ b/lib/activeadmin_blaze_theme/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module ActiveAdminBlazeTheme - VERSION = '0.5.16' + VERSION = '0.6.0' end