active_admin_theme 1.1.3 → 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 +4 -4
- data/README.md +33 -2
- data/active_admin_theme.gemspec +4 -3
- data/app/assets/stylesheets/wigu/active_admin_theme.scss +12 -3
- data/lib/active_admin_theme/version.rb +1 -1
- data/package.json +28 -0
- metadata +17 -27
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a75c79a18d9bfc4496a7a904b69b6c67793e99cef416efc2d83f940288126044
|
|
4
|
+
data.tar.gz: 7c2f5832d4eba831188aca71c2655629593028aeb52df3ce8dfef16098ea414b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
68
|
+
@import 'wigu/active_admin_theme';
|
|
38
69
|
...
|
|
39
70
|
```
|
|
40
71
|
|
data/active_admin_theme.gemspec
CHANGED
|
@@ -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/
|
|
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.
|
|
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;
|
|
@@ -440,7 +449,7 @@ form fieldset.buttons li.cancel a, form fieldset.actions li.cancel a, form.filte
|
|
|
440
449
|
text-shadow: none;
|
|
441
450
|
background-color: #ffffff;
|
|
442
451
|
@include rounded($skinBorderRadius);
|
|
443
|
-
padding:
|
|
452
|
+
padding: 9px 20px 9px 20px;
|
|
444
453
|
border-color: #E4E4E4;
|
|
445
454
|
&:hover {
|
|
446
455
|
background-image: none!important;
|
|
@@ -695,7 +704,7 @@ form fieldset > ol > li fieldset ol li {
|
|
|
695
704
|
display: block;
|
|
696
705
|
margin-bottom: 5px;
|
|
697
706
|
}
|
|
698
|
-
input[type="text"], input[type="datepicker"], textarea {
|
|
707
|
+
input[type="text"], input[type="number"], input[type="datepicker"], textarea {
|
|
699
708
|
padding: 8px 10px 7px;
|
|
700
709
|
border: 1px solid #e6e9ee;
|
|
701
710
|
background-color: #fdfefe;
|
|
@@ -735,7 +744,7 @@ form fieldset > ol > li fieldset ol li {
|
|
|
735
744
|
box-shadow: none;
|
|
736
745
|
background-color: #ffffff;
|
|
737
746
|
@include rounded($skinBorderRadius);
|
|
738
|
-
padding:
|
|
747
|
+
padding: 9px 20px 9px 20px;
|
|
739
748
|
border-color: #E4E4E4;
|
|
740
749
|
&:hover {
|
|
741
750
|
background-image: none!important;
|
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:
|
|
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:
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
14
|
+
name: activeadmin
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
16
|
requirements:
|
|
18
|
-
- - "
|
|
17
|
+
- - ">="
|
|
19
18
|
- !ruby/object:Gem::Version
|
|
20
|
-
version: '
|
|
21
|
-
|
|
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: '
|
|
28
|
-
|
|
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: '
|
|
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
|
-
|
|
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,15 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
68
59
|
requirements:
|
|
69
60
|
- - ">="
|
|
70
61
|
- !ruby/object:Gem::Version
|
|
71
|
-
version:
|
|
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
|
-
rubygems_version: 3.
|
|
79
|
-
signing_key:
|
|
69
|
+
rubygems_version: 3.7.1
|
|
80
70
|
specification_version: 4
|
|
81
71
|
summary: Flat design for ActiveAdmin
|
|
82
72
|
test_files: []
|