Skip to content

Commit

Permalink
v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
blocknotes committed Oct 18, 2020
1 parent 70086a2 commit b8b1501
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2017 Mattia Roccoberton
Copyright (c) 2020 Mattia Roccoberton

MIT License

Expand Down
52 changes: 28 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion lib/activeadmin_blaze_theme/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ActiveAdminBlazeTheme
VERSION = '0.5.16'
VERSION = '0.6.0'
end

0 comments on commit b8b1501

Please sign in to comment.