formadmin 0.1.6 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4bc960cccefece40138861241e964b1a8b18533
4
- data.tar.gz: e060a1d57c130d6d6948358ddd317d429cc44b9c
3
+ metadata.gz: dfcc2bc786cd25925749049cb200539a96a7a98f
4
+ data.tar.gz: bbf8755a5408985323dc0471a4dc6159f34cb01e
5
5
  SHA512:
6
- metadata.gz: 4320c2658d952a99d871d3cdfbeed77c79f09a7f8ce8b0d037fa0d1d262651231348886e020162a9e22f455461feefe4d88ef5fc3d0cd203ce1f4e289f85fd76
7
- data.tar.gz: 49e8e2995d1e3b76abf3affa3c1e5d693ebab1d2e93442850069843af536d53556ccfb37d74e94337d3e6ca340021540816577f0d3da42f3f8980f1a507f50cb
6
+ metadata.gz: a9d485df6e8c4e62ba90db291a693c669fb4ce7dccd2d09c228261a9778c6a22842709c3303de6518bb60314d1469c91e81491a2f106200ac7411f6644b5eca8
7
+ data.tar.gz: 3dfc10f0525090157ddc6578a8de1f7ca9314e455c4be8263e6b55c620c8da33cf500ebd46cc6eacd96345e874745b7bd30a8fb36c1503cd9ab577fb79210969
data/README.md CHANGED
@@ -6,21 +6,21 @@ Modern and responsive theme for Active Admin used by Formaweb.
6
6
 
7
7
  ## Installation
8
8
 
9
- Please make sure that you are using Active Admin from their Github repo:
9
+ Please make sure that you are using Active Admin:
10
10
 
11
- ```
12
- gem 'activeadmin', github: 'activeadmin/activeadmin'
11
+ ```ruby
12
+ gem 'activeadmin'
13
13
  ```
14
14
 
15
15
  Add this gem in your `Gemfile`:
16
16
 
17
- ```
17
+ ```ruby
18
18
  gem 'formadmin'
19
19
  ```
20
20
 
21
21
  So, bundle...
22
22
 
23
- ```
23
+ ```console
24
24
  $ bundle install
25
25
  ```
26
26
 
@@ -28,19 +28,46 @@ $ bundle install
28
28
 
29
29
  All you have to do is change your `assets/stylesheets/active_admin.scss`:
30
30
 
31
- Instead loading defaults...
31
+ **Remove** the loading defaults...
32
32
 
33
- ```
33
+ ```sass
34
34
  @import 'active_admin/mixins';
35
35
  @import 'active_admin/base';
36
36
  ```
37
37
 
38
- ...load Formadmin:
38
+ **Replace** with Formadmin:
39
39
 
40
+ ```sass
41
+ @import 'formadmin/formadmin';
40
42
  ```
43
+
44
+ ### Overriding colors
45
+
46
+ You can override the default colors (as defined in `app/assets/stylesheets/formadmin/core/_settings.scss`) by setting the color variable in your `assets/stylesheets/active_admin.scss` before `formadmin` is loaded.
47
+
48
+ For example, to change the primary color, use:
49
+
50
+ ```sass
51
+ $primary-color: #c0ffee;
41
52
  @import 'formadmin/formadmin';
42
53
  ```
43
54
 
44
55
  ## Video
45
56
 
46
57
  ![Formadmin](formadmin.gif)
58
+
59
+ ## Contributing
60
+
61
+ 1. Fork it ( https://github.com/formaweb/formadmin/fork )
62
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
63
+ 3. Commit your changes (`git commit -am "Add some feature"`)
64
+ 4. Push to the branch (`git push origin my-new-feature`)
65
+ 5. Create a new Pull Request
66
+
67
+ ### Testing
68
+
69
+ All you need to do is set the local path on your project `Gemfile`, like this:
70
+
71
+ ```ruby
72
+ gem 'formadmin', path: '/path/to/formadmin'
73
+ ```
@@ -69,26 +69,26 @@ $gray: #3f3f3f;
69
69
  $black: #000000;
70
70
 
71
71
  //--- Emotive ---//
72
- $positive-color: $green;
73
- $negative-color: $red;
74
- $info-color: $blue;
75
- $warning-color: $yellow;
72
+ $positive-color: $green !default;
73
+ $negative-color: $red !default;
74
+ $info-color: $blue !default;
75
+ $warning-color: $yellow !default;
76
76
 
77
77
  //--- Theme ---//
78
- $primary-color: #4d5256;
79
- $secondary-color: $silver;
78
+ $primary-color: #4d5256 !default;
79
+ $secondary-color: $silver !default;
80
80
 
81
81
  //--- Page ---//
82
- $background-color: #eeeeee;
83
- $text-color: $gray;
82
+ $background-color: #eeeeee !default;
83
+ $text-color: $gray !default;
84
84
 
85
85
  //--- Highlighting ---//
86
- $highlight-background: rgba($primary-color, 0.5);
87
- $highlight-color: $white;
86
+ $highlight-background: rgba($primary-color, 0.5) !default;
87
+ $highlight-color: $white !default;
88
88
 
89
89
 
90
90
  //-------------//
91
91
  // Borders //
92
92
  //-------------//
93
- $radius: 4px;
94
- $circular-radius: 500rem;
93
+ $radius: 4px !default;
94
+ $circular-radius: 500rem !default;
@@ -81,7 +81,6 @@
81
81
  background: tint($primary-color, 25%);
82
82
  border-radius: 0 $radius $radius $radius;
83
83
  height: 0;
84
- max-width: calc(100% + 20px);
85
84
  min-width: 175px;
86
85
  opacity: 0;
87
86
  padding: 5px 0;
@@ -89,7 +88,6 @@
89
88
  transform: scale(0);
90
89
  transform-origin: left top;
91
90
  transition: opacity 250ms, transform 250ms;
92
- width: 20%;
93
91
  z-index: 11;
94
92
 
95
93
  a {
@@ -19,7 +19,9 @@
19
19
  #sidebar {
20
20
  float: left;
21
21
  margin-left: -270px;
22
+ position: relative;
22
23
  width: 270px;
24
+ z-index: 1;
23
25
 
24
26
  .panel_contents {
25
27
  padding: 0;
@@ -1,3 +1,3 @@
1
1
  module Formadmin
2
- VERSION = '0.1.6'
2
+ VERSION = '0.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Tarifa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-13 00:00:00.000000000 Z
11
+ date: 2017-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin