active_admin_theme 1.1.4 → 2.0.0

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
  SHA256:
3
- metadata.gz: ec31976cbdf4f20ee07f9827db94a40d42023a0581933461fb7976e75f760502
4
- data.tar.gz: af024287164f0e34afc878063dfa44bb2f7835ff948be29bd0f8c5db9d41af22
3
+ metadata.gz: a75c79a18d9bfc4496a7a904b69b6c67793e99cef416efc2d83f940288126044
4
+ data.tar.gz: 7c2f5832d4eba831188aca71c2655629593028aeb52df3ce8dfef16098ea414b
5
5
  SHA512:
6
- metadata.gz: a61c3d78bd118172f63355da1cfdf00033d5acd8b53b4f94ad835bb349e683a68acebae3daa95bcdd8d451aea2f27e9cd7ce486c57954f05ae5a05757f126cc3
7
- data.tar.gz: 5b18fdcb6679185cc33b7e52ad60640ccc51cafd99ba633b564f3349ce1cb7c372935e73cd917e2eef032e240e5892fb7a9987945581cdcf65c0c9ca76838a9f
6
+ metadata.gz: 955af2c21c919bfc020cfa9cfcd6ddbd6509484002c2e4923e2270b1b3cec0f2c48ea795193550996e89b9c616c9812c959cdfc9a70c91a4e9a90e3783b7dc79
7
+ data.tar.gz: c1335fa69158330d170d9ea3f03a9811f11028c8b796410dd23b2658e747e78931ee574ec5ba33f0b2dc254ff8148e25aac6666179a9dce2a43b794221eabb0f
data/README.md CHANGED
@@ -6,6 +6,7 @@ Custom ActiveAdmin templates
6
6
  ## Installation
7
7
  As active_skin is the css theme for the [activeadmin](https://github.com/activeadmin/activeadmin) administration framework - you have to install if first.
8
8
 
9
+ #### As a Gem
9
10
  Having active admin installed add the following line to your application's Gemfile:
10
11
 
11
12
 
@@ -21,11 +22,41 @@ Or install it yourself as:
21
22
 
22
23
  $ gem install active_admin_theme
23
24
 
25
+ #### As a NPM module (Yarn package)
26
+ Execute:
27
+
28
+ $ npm i @activeadmin-plugins/active_admin_theme
29
+
30
+ Or
31
+
32
+ $ yarn add @activeadmin-plugins/active_admin_theme
33
+
34
+ Or add manually to `package.json`:
35
+
36
+ ```
37
+ "dependencies": {
38
+ "@activeadmin-plugins/active_admin_theme": "^2.0.0"
39
+ }
40
+ ```
41
+ and execute:
42
+
43
+ $ yarn
44
+
24
45
  ## Usage
25
46
 
47
+ In your base stylesheet entry point `active_admin.scss` (as example), add line:
48
+
49
+ #### As a Gem via Sprockets
26
50
  ```css
27
- @import "wigu/active_admin_theme";
51
+ @import 'wigu/active_admin_theme';
28
52
  ```
53
+
54
+ #### As a NPM module (Yarn package) via Webpacker or any other assets bundler
55
+
56
+ ```css
57
+ @import '@activeadmin-plugins/active_admin_theme';
58
+ ```
59
+
29
60
  You can change basic colors of the theme by setting some variable above active_admin_theme import line in active_admin.css.scss
30
61
 
31
62
  ```css
@@ -34,7 +65,7 @@ $skinMainFirstColor: #A5A7AA!default;
34
65
  $skinMainSecondColor: #0066CC!default;
35
66
  $skinBorderWindowColor: #B8BABE!default;
36
67
 
37
- @import "wigu/active_admin_theme";
68
+ @import 'wigu/active_admin_theme';
38
69
  ...
39
70
  ```
40
71
 
@@ -10,14 +10,15 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["igor.f@didww.com", "alex.s@didww.com"]
11
11
  spec.summary = %q{Flat design for ActiveAdmin}
12
12
  spec.description = %q{Flat design for activeadmin gem }
13
- spec.homepage = "https://github.com/didww/active_admin_theme"
13
+ spec.homepage = "https://github.com/activeadmin-plugins/active_admin_theme"
14
14
  spec.license = "MIT"
15
15
 
16
+ spec.required_ruby_version = '>= 3.1.0'
17
+
16
18
  spec.files = `git ls-files -z`.split("\x0")
17
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
21
  spec.require_paths = ["lib"]
20
22
 
21
- spec.add_development_dependency "bundler", "~> 1.7"
22
- spec.add_development_dependency "rake", "~> 10.0"
23
+ spec.add_dependency "activeadmin", ">= 3.0", "< 4.0"
23
24
  end
@@ -376,6 +376,15 @@ body.active_admin {
376
376
  padding: $skinTablePadding 12px $skinTablePadding 12px;
377
377
  }
378
378
  }
379
+ // active_admin_sidebar: align toggle button with sidebar section (no top margin in theme)
380
+ #active_admin_content.collapsible_sidebar .sidebar_toggle_btn {
381
+ top: 0;
382
+ background-color: $skinMainSecondColor;
383
+ &:hover {
384
+ background-color: lighten($skinMainSecondColor, 5%);
385
+ }
386
+ }
387
+
379
388
  .sidebar_section.panel {
380
389
  background-image: none;
381
390
  box-shadow: none;
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminTheme
2
- VERSION = "1.1.4"
2
+ VERSION = "2.0.0"
3
3
  end
data/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@activeadmin-plugins/active_admin_theme",
3
+ "version": "2.0.0",
4
+ "description": "Flat design for ActiveAdmin",
5
+ "main": "src/active_admin_theme.scss",
6
+ "author": "Igor Fedoronchuk <igor.f@didww.com>",
7
+ "license": "MIT",
8
+ "private": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/activeadmin-plugins/active_admin_theme.git"
12
+ },
13
+ "bugs": {
14
+ "url": "https://github.com/activeadmin-plugins/active_admin_theme/issues"
15
+ },
16
+ "homepage": "https://github.com/activeadmin-plugins/active_admin_theme#readme",
17
+ "keywords": [
18
+ "active",
19
+ "admin",
20
+ "theme"
21
+ ],
22
+ "files": [
23
+ "src/**/*"
24
+ ],
25
+ "scripts": {
26
+ "prepublishOnly": "rm -rf src && cp -R app/assets/stylesheets/wigu/ src"
27
+ }
28
+ }
metadata CHANGED
@@ -1,44 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_admin_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Fedoronchuk
8
8
  - Alex Sikorskiy
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2021-02-04 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: bundler
14
+ name: activeadmin
16
15
  requirement: !ruby/object:Gem::Requirement
17
16
  requirements:
18
- - - "~>"
17
+ - - ">="
19
18
  - !ruby/object:Gem::Version
20
- version: '1.7'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - "~>"
19
+ version: '3.0'
20
+ - - "<"
26
21
  - !ruby/object:Gem::Version
27
- version: '1.7'
28
- - !ruby/object:Gem::Dependency
29
- name: rake
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - "~>"
33
- - !ruby/object:Gem::Version
34
- version: '10.0'
35
- type: :development
22
+ version: '4.0'
23
+ type: :runtime
36
24
  prerelease: false
37
25
  version_requirements: !ruby/object:Gem::Requirement
38
26
  requirements:
39
- - - "~>"
27
+ - - ">="
40
28
  - !ruby/object:Gem::Version
41
- version: '10.0'
29
+ version: '3.0'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4.0'
42
33
  description: 'Flat design for activeadmin gem '
43
34
  email:
44
35
  - igor.f@didww.com
@@ -56,11 +47,11 @@ files:
56
47
  - img/wigu.png
57
48
  - lib/active_admin_theme.rb
58
49
  - lib/active_admin_theme/version.rb
59
- homepage: https://github.com/didww/active_admin_theme
50
+ - package.json
51
+ homepage: https://github.com/activeadmin-plugins/active_admin_theme
60
52
  licenses:
61
53
  - MIT
62
54
  metadata: {}
63
- post_install_message:
64
55
  rdoc_options: []
65
56
  require_paths:
66
57
  - lib
@@ -68,16 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
59
  requirements:
69
60
  - - ">="
70
61
  - !ruby/object:Gem::Version
71
- version: '0'
62
+ version: 3.1.0
72
63
  required_rubygems_version: !ruby/object:Gem::Requirement
73
64
  requirements:
74
65
  - - ">="
75
66
  - !ruby/object:Gem::Version
76
67
  version: '0'
77
68
  requirements: []
78
- rubyforge_project:
79
- rubygems_version: 2.7.6.2
80
- signing_key:
69
+ rubygems_version: 3.7.1
81
70
  specification_version: 4
82
71
  summary: Flat design for ActiveAdmin
83
72
  test_files: []