activeadmin_blaze_theme 0.2.0 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc7aee2eeb76864ffe690c64e5ebb35467c45bd7
4
- data.tar.gz: ae25d8209466f127c2c45ad849f5f85e152fdf2d
3
+ metadata.gz: 8de268e234775dd6ec714336cdfcfa3099977b51
4
+ data.tar.gz: 709120d8309e679ea00eb6f9442ac9853efcf7f1
5
5
  SHA512:
6
- metadata.gz: 7e1f97d0db8ccc77f517f169346db5f0e01498ac47cf8eb83703d152398ef2a44b9a14b18754bd8a8f29a9de35a0a95cb4625424377138a7f001f0225772604e
7
- data.tar.gz: 7579babf1e7397f7b3ad3f61e7c42e2d7a9a542773d2bd784e80a63885ea4a811eaca98bd8e936164e21c23b7b2fb8406b6680e629d7baf00eac09800c56fb27
6
+ metadata.gz: b4fe541aafdf5014663e453658b560ed3dc493ca62f53ecb1a029822f4b069501f4e21a67fcbca4b6fd761f6db389f555b139570dc7c698769b8996ffd1c9276
7
+ data.tar.gz: 675c8ea900807a83b0a7d504ea9507085a5ab8b510b8692891478086667ff3d290b89f00680803333cd689b0e345d5899290e8a029e0ea62e43220e41e215ee1
data/README.md CHANGED
@@ -5,10 +5,10 @@ A theme for Active Admin using [Blaze CSS](http://blazecss.com/)
5
5
  Features:
6
6
 
7
7
  - clean UI
8
- - customizable
9
- - compact edit form
10
- - some custom fields: toggle
11
- - Blaze CSS widgets available
8
+ - compact nested forms
9
+ - [customizable](#customize)
10
+ - custom boolean input: [toggle](#toggle)
11
+ - Blaze CSS [widgets](#blaze-widgets)
12
12
 
13
13
  ## Install
14
14
 
@@ -43,8 +43,10 @@ $bg-header: $color-brand; // bg header bar
43
43
  $bg-inputs: #fff; // bg forms inputs
44
44
  $bg-menu-active: #7b929e; // bg menu item current / hover
45
45
  $fg-box-title: #fff;
46
- $fg-link2: #eee;
46
+ $fg-button-link: #fff;
47
+ $fg-menu-items: #f8f8f8;
47
48
  $fg-table-borders: #e4e4e4;
49
+ $fg-table-link: #eee;
48
50
  /* other variables */
49
51
  $form-padding: 10px;
50
52
  $inputs-spacing: 10px;
@@ -66,13 +68,37 @@ To change toggle color:
66
68
 
67
69
  Available: `c-toggle--brand, c-toggle--info, c-toggle--warning, c-toggle--success, c-toggle--error`
68
70
 
71
+ ## Blaze widgets
72
+
73
+ See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
74
+
75
+ Badge example:
76
+
77
+ ```ruby
78
+ f.input :price, label: raw( 'Price <span class="c-badge c-badge--warning" style="position: relative; top: -5px">in $</span>' )
79
+ ```
80
+
81
+ Button example:
82
+
83
+ ```ruby
84
+ a 'clear form', href: '#', class: 'c-button c-button--error', onclick: 'event.preventDefault();document.forms[0].reset();'
85
+ ```
86
+
87
+ Progress bar example:
88
+
89
+ ```ruby
90
+ div class: 'c-progress' do
91
+ div class: 'c-progress__bar c-progress__bar--success', style: "width: #{f.object.a_field}%;"
92
+ end
93
+ ```
94
+
69
95
  ## Screenshots
70
96
 
71
97
  Index:
72
98
 
73
99
  ![index](screenshot1.jpg)
74
100
 
75
- Edit:
101
+ Edit (with `$form-padding: 2px;`):
76
102
 
77
103
  ![edit](screenshot2.jpg)
78
104
 
@@ -18,5 +18,5 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency 'activeadmin'
21
+ spec.add_runtime_dependency 'activeadmin', '~> 1.0'
22
22
  end
@@ -11,9 +11,10 @@ $bg-header: $color-brand !default; // bg header bar
11
11
  $bg-inputs: #fff !default; // bg forms inputs
12
12
  $bg-menu-active: #7b929e !default; // bg menu item current / hover
13
13
  $fg-box-title: #fff !default;
14
+ $fg-button-link: #fff !default;
14
15
  $fg-menu-items: #f8f8f8 !default;
15
- $fg-link2: #eee !default;
16
16
  $fg-table-borders: #e4e4e4 !default;
17
+ $fg-table-link: #eee !default;
17
18
 
18
19
  // other variables
19
20
  $form-padding: 10px !default;
@@ -211,11 +212,12 @@ body.active_admin {
211
212
  }
212
213
  }
213
214
  }
214
- > fieldset.inputs {
215
+ > fieldset.inputs, .ui-tabs-panel > fieldset.inputs {
215
216
  > legend {
216
217
  @extend .c-card__item;
217
218
  @extend .c-card__item--brand;
218
219
  border-radius: 5px 5px 0 0;
220
+ box-shadow: 0 0 1px rgba(17, 17, 17, 0.6), 0 5px 10px -3px rgba(17, 17, 17, 0.4);
219
221
  color: $fg-box-title;
220
222
  padding: 8px 11px;
221
223
  text-shadow: $text-shadow 0 1px 0;
@@ -269,6 +271,18 @@ body.active_admin {
269
271
  margin-right: 10px;
270
272
  }
271
273
  }
274
+
275
+ // tabs
276
+ .ui-tabs > .tab-content {
277
+ padding-bottom: 0;
278
+ padding-top: 25px;
279
+ }
280
+
281
+ // misc
282
+ a.c-button {
283
+ color: $fg-button-link;
284
+ text-decoration: none;
285
+ }
272
286
  }
273
287
 
274
288
  // header
@@ -338,6 +352,12 @@ body.active_admin {
338
352
  margin-right: 2px;
339
353
  padding: 0;
340
354
  }
355
+ .prev {
356
+ margin-right: 16px;
357
+ }
358
+ .next {
359
+ margin-left: 14px;
360
+ }
341
361
  .page {
342
362
  @extend .c-pagination__page;
343
363
  display: inline-block;
@@ -430,7 +450,7 @@ body.active_admin {
430
450
  @extend .button-base;
431
451
  margin-right: 10px;
432
452
  span {
433
- color: $fg-link2;
453
+ color: $fg-table-link;
434
454
  }
435
455
  }
436
456
  a:hover,
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBlazeTheme
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.2"
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require 'activeadmin_blaze_theme/version'
2
2
 
3
+ # require 'formtastic/inputs/blaze_array_input'
3
4
  require 'formtastic/inputs/blaze_toggle_input'
4
5
 
5
6
  module ActiveAdminBlazeTheme
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_blaze_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-20 00:00:00.000000000 Z
11
+ date: 2017-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: '1.0'
27
27
  description: An ActiveAdmin theme which use Blaze CSS UI toolkit
28
28
  email:
29
29
  - mat@blocknot.es