arctic_admin 1.3.0 → 1.3.1
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 +8 -0
- data/app/assets/javascripts/arctic_admin/base.js +2 -2
- data/app/assets/stylesheets/arctic_admin/components/_inputs.scss +3 -1
- data/app/assets/stylesheets/arctic_admin/mixins/_prefix_mixins.scss +6 -3
- data/app/assets/stylesheets/arctic_admin/pages/_form.scss +6 -1
- data/app/assets/stylesheets/arctic_admin/pages/_login.scss +2 -1
- data/app/assets/stylesheets/arctic_admin/variables/_colors.scss +1 -1
- data/lib/arctic_admin/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3610b54020c1a8a6be1cb2f888e91822f9959b62
|
4
|
+
data.tar.gz: 75731b485dea5622a071109e2dcb1f2498f74862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e25f6cc8253fb5dd772d1129fdeb3aebba749f9608e874b65345a4fa6cf8dd3053c6dcddba2ac1b59fe6eef92d3db9ab4bc2560ffb00d1e2d17ffc6468b4ef5
|
7
|
+
data.tar.gz: 82a99dea74b0556c84d3a368449c4474e2feff10b9e6243fff26df6ef0a83747ac3d74d397069b5aad2477b8798bd1e00f11760c3b9fcb344c018ee77b479750
|
data/Readme.md
CHANGED
@@ -21,6 +21,12 @@ gem 'arctic_admin'
|
|
21
21
|
|
22
22
|
and run `bundle install`.
|
23
23
|
|
24
|
+
if you use ActiveAdmin from Github, use the branch `2-0-alpha` like this :
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
gem 'arctic_admin', github: 'activeadmin/activeadmin', branch: '2-0-alpha'
|
28
|
+
```
|
29
|
+
|
24
30
|
## Usage
|
25
31
|
|
26
32
|
### CSS
|
@@ -64,6 +70,8 @@ In your `active_admin.js`, include the js file:
|
|
64
70
|
//= require arctic_admin/base
|
65
71
|
```
|
66
72
|
|
73
|
+
**Remove the line `//= require active_admin/base`**
|
74
|
+
|
67
75
|
### Customization
|
68
76
|
|
69
77
|
For this, you need to use sass to custom the theme.
|
@@ -29,7 +29,7 @@ $(function() {
|
|
29
29
|
$('#utility_nav').click(function (e) {
|
30
30
|
var position = $(this).position();
|
31
31
|
var tabs = $('#tabs');
|
32
|
-
var width = tabs.
|
32
|
+
var width = Math.round(tabs[0].getBoundingClientRect().width);
|
33
33
|
|
34
34
|
if (e.pageX < (position.left + 40)) {
|
35
35
|
if(animationDone == true) {
|
@@ -53,7 +53,7 @@ $(function() {
|
|
53
53
|
|
54
54
|
$('body').click(function (e) {
|
55
55
|
var tabs = $('#tabs');
|
56
|
-
var width = tabs.
|
56
|
+
var width = Math.round(tabs[0].getBoundingClientRect().width);
|
57
57
|
if (tabs.css('left') == '0px') {
|
58
58
|
if (e.pageX > width && e.pageY > 60) {
|
59
59
|
if(animationDone == true) {
|
@@ -72,7 +72,7 @@ input[type="radio"] {
|
|
72
72
|
width: 15px;
|
73
73
|
height: 15px;
|
74
74
|
border-radius: 50%;
|
75
|
-
margin: 1px;
|
75
|
+
margin: 1px 5px 1px 1px;
|
76
76
|
display: inline-flex;
|
77
77
|
@include outline();
|
78
78
|
@include transition-button();
|
@@ -88,6 +88,8 @@ select {
|
|
88
88
|
border: 1px solid $border-color;
|
89
89
|
outline: 0;
|
90
90
|
border-radius: $border-radius;
|
91
|
+
font-size: 14px;
|
92
|
+
color: #5a5a5a;
|
91
93
|
@include transition(border-color ease-in-out .15s);
|
92
94
|
|
93
95
|
&:focus {
|
@@ -2,13 +2,16 @@
|
|
2
2
|
-webkit-transform: $var;
|
3
3
|
-moz-transform: $var;
|
4
4
|
-ms-transform: $var;
|
5
|
+
-o-transform: $var;
|
5
6
|
transform: $var;
|
6
7
|
}
|
7
8
|
|
8
9
|
@mixin appearance($effect:none) {
|
9
10
|
-webkit-appearance: $effect;
|
10
|
-
|
11
|
-
|
11
|
+
-moz-appearance: $effect;
|
12
|
+
-ms-appearance: $effect;
|
13
|
+
-o-appearance: $effect;
|
14
|
+
appearance: $effect;
|
12
15
|
}
|
13
16
|
|
14
17
|
@mixin transition($args...) {
|
@@ -57,4 +60,4 @@
|
|
57
60
|
-moz-osx-font-smoothing: grayscale;
|
58
61
|
font: normal normal normal 14px/1 FontAwesome;
|
59
62
|
content: $code-icon;
|
60
|
-
}
|
63
|
+
}
|
@@ -25,7 +25,6 @@ body.logged_in {
|
|
25
25
|
padding-right: 20px;
|
26
26
|
}
|
27
27
|
}
|
28
|
-
|
29
28
|
input, textarea {
|
30
29
|
@media screen and (min-width: $sm-width) {
|
31
30
|
width: 50%;
|
@@ -33,6 +32,8 @@ body.logged_in {
|
|
33
32
|
|
34
33
|
&[type='radio'] {
|
35
34
|
width: 15px;
|
35
|
+
float: left;
|
36
|
+
margin-top: 3px;
|
36
37
|
}
|
37
38
|
|
38
39
|
&[type='checkbox'] {
|
@@ -95,6 +96,10 @@ body.logged_in {
|
|
95
96
|
|
96
97
|
li.choice {
|
97
98
|
margin-left: 25%;
|
99
|
+
|
100
|
+
.field_with_errors {
|
101
|
+
float: left;
|
102
|
+
}
|
98
103
|
}
|
99
104
|
|
100
105
|
.inline-errors {
|
data/lib/arctic_admin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: arctic_admin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clément Prod'homme
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activeadmin
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.1.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.1.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: jquery-rails
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|