active_admin_theme 1.0.1 → 1.0.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 +4 -4
- data/README.md +21 -3
- data/app/assets/stylesheets/wigu/active_admin_theme.css.scss +51 -17
- data/img/wigu.png +0 -0
- data/lib/active_admin_theme/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df9c446a0ec74050cc7f8b4f8ff9c098b9ca711d
|
4
|
+
data.tar.gz: 3c5b3802b20d46824c81a55cf9d003ee46384507
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d4a98f57ca5b39925dd2a97e99af04c16729e9304f37c1463d2bbe143b45c8e49589287373e97bbe89e54ef1744e2d464332d987d307677f5a0aa933da8016
|
7
|
+
data.tar.gz: 0639b1ad3f9ed165a0c4e138166e83b6d48138f5c0d8e36f48b7c2fd2101095198a884dcef69de9ecf1cebfc0370e6ad89e553fb491a6d1a47e1b2482325f3d6
|
data/README.md
CHANGED
@@ -2,9 +2,12 @@
|
|
2
2
|
|
3
3
|
Custom ActiveAdmin templates
|
4
4
|
|
5
|
+
|
5
6
|
## Installation
|
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
|
+
|
9
|
+
Having active admin installed add the following line to your application's Gemfile:
|
6
10
|
|
7
|
-
Add this line to your application's Gemfile:
|
8
11
|
|
9
12
|
```ruby
|
10
13
|
gem 'active_admin_theme'
|
@@ -20,14 +23,29 @@ Or install it yourself as:
|
|
20
23
|
|
21
24
|
## Usage
|
22
25
|
|
26
|
+
```css
|
27
|
+
@import "wigu/active_admin_theme";
|
23
28
|
```
|
29
|
+
You can change basic colors of the theme by setting some variable above active_admin_theme import line in active_admin.css.scss
|
30
|
+
|
31
|
+
```css
|
32
|
+
...
|
33
|
+
$skinMainFirstColor: #A5A7AA!default;
|
34
|
+
$skinMainSecondColor: #0066CC!default;
|
35
|
+
$skinBorderWindowColor: #B8BABE!default;
|
36
|
+
|
24
37
|
@import "wigu/active_admin_theme";
|
38
|
+
...
|
25
39
|
```
|
26
|
-
|
40
|
+
|
41
|
+
## Screen
|
42
|
+
|
43
|
+
<a href="./img/wigu.png"><img src="./img/wigu.png"></a>
|
44
|
+
|
27
45
|
|
28
46
|
## Contributing
|
29
47
|
|
30
|
-
1. Fork it ( https://github.com/
|
48
|
+
1. Fork it ( https://github.com/activeadmin-plugins/active_admin_theme/fork )
|
31
49
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
32
50
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
33
51
|
4. Push to the branch (`git push origin my-new-feature`)
|
@@ -85,6 +85,20 @@ body.active_admin {
|
|
85
85
|
ul {
|
86
86
|
background-color: $skinMainSecondColor;
|
87
87
|
@include rounded($skinBorderRadius);
|
88
|
+
li > a {
|
89
|
+
padding-left: 15px;
|
90
|
+
}
|
91
|
+
li.current > a::before, li:hover > a::before {
|
92
|
+
content: '';
|
93
|
+
display: block;
|
94
|
+
width: 7px;
|
95
|
+
height: 4px;
|
96
|
+
position: absolute;
|
97
|
+
top: 12px;
|
98
|
+
left: 4px;
|
99
|
+
background: transparent image-url('active_admin/nested_menu_arrow_dark.gif') no-repeat 0 0;
|
100
|
+
transform: rotate(-90deg);
|
101
|
+
}
|
88
102
|
}
|
89
103
|
}
|
90
104
|
li.has_nested:hover {
|
@@ -530,23 +544,23 @@ form fieldset.inputs {
|
|
530
544
|
background-color: #ffffff;
|
531
545
|
border: 1px solid $skinBorderWindowColor;
|
532
546
|
border-bottom: 2px solid $skinBorderWindowColor;
|
533
|
-
h3 {
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
547
|
+
> h3 {
|
548
|
+
background-image: none;
|
549
|
+
box-shadow: none;
|
550
|
+
text-shadow: none;
|
551
|
+
box-shadow: none;
|
552
|
+
background-color: $skinMainSecondColor;
|
553
|
+
color: #ffffff;
|
554
|
+
border: none;
|
555
|
+
padding: 8px 15px;
|
556
|
+
font-weight: 400;
|
543
557
|
|
544
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
558
|
+
-webkit-border-top-left-radius: $skinBorderRadius;
|
559
|
+
-webkit-border-top-right-radius: $skinBorderRadius;
|
560
|
+
-moz-border-radius-topleft: $skinBorderRadius;
|
561
|
+
-moz-border-radius-topright: $skinBorderRadius;
|
562
|
+
border-top-left-radius: $skinBorderRadius;
|
563
|
+
border-top-right-radius: $skinBorderRadius;
|
550
564
|
}
|
551
565
|
.panel_contents {
|
552
566
|
font-weight: 400;
|
@@ -736,4 +750,24 @@ form fieldset > ol > li fieldset ol li {
|
|
736
750
|
//becouse of sidebar border 2px
|
737
751
|
form.filter_form .filter_form_field.filter_date_range .seperator {
|
738
752
|
width: 10px;
|
739
|
-
}
|
753
|
+
}
|
754
|
+
|
755
|
+
//filter select box border radius
|
756
|
+
.filter_form_field select{
|
757
|
+
border-radius: 3px;
|
758
|
+
}
|
759
|
+
|
760
|
+
//radio button color change
|
761
|
+
input[type='radio'] {
|
762
|
+
&:before {
|
763
|
+
content:'';
|
764
|
+
display:block;
|
765
|
+
width:50%;
|
766
|
+
height:50%;
|
767
|
+
margin: 20% auto;
|
768
|
+
border-radius:50%;
|
769
|
+
}
|
770
|
+
&:checked:before{
|
771
|
+
background: $skinMainSecondColor;
|
772
|
+
}
|
773
|
+
}
|
data/img/wigu.png
ADDED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_admin_theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Fedoronchuk
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -53,6 +53,7 @@ files:
|
|
53
53
|
- Rakefile
|
54
54
|
- active_admin_theme.gemspec
|
55
55
|
- app/assets/stylesheets/wigu/active_admin_theme.css.scss
|
56
|
+
- img/wigu.png
|
56
57
|
- lib/active_admin_theme.rb
|
57
58
|
- lib/active_admin_theme/version.rb
|
58
59
|
homepage: https://github.com/didww/active_admin_theme
|
@@ -75,9 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
76
|
version: '0'
|
76
77
|
requirements: []
|
77
78
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
79
|
+
rubygems_version: 2.4.6
|
79
80
|
signing_key:
|
80
81
|
specification_version: 4
|
81
82
|
summary: Flat design for ActiveAdmin
|
82
83
|
test_files: []
|
83
|
-
has_rdoc:
|