arctic_admin 1.3.0 → 1.3.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4455243fcba4fdc5ce766fafa0a94d9d6da32c2
4
- data.tar.gz: 67c5d72d9dab23275d022fcee1c148b40bb22b2c
3
+ metadata.gz: 3610b54020c1a8a6be1cb2f888e91822f9959b62
4
+ data.tar.gz: 75731b485dea5622a071109e2dcb1f2498f74862
5
5
  SHA512:
6
- metadata.gz: 58e1842c9208ca4ee9ea0f6f8504449cb22398f6307bb7f53cf1f8850c8e85a145e3fd5809fe11ac89935a1ac6d60d973f5ab7cdf61197222ece06c844c2e2ce
7
- data.tar.gz: 40e2e11bf268fc34fe0de41d5d60f6b75bed678057ee65f3ecccf847c2079d1eb2bf38400d14002b8faeca298039b36da9486c1c8e9ab3c1744766eea42a2d3b
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.width() + 1;
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.width() + 1;
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
- -moz-appearance: $effect;
11
- appearance: $effect;
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 {
@@ -6,7 +6,8 @@ body.logged_out {
6
6
  #active_admin_content {
7
7
  height: 100vh;
8
8
  width: 100%;
9
- display: inline-flex;
9
+ display: flex;
10
+ align-items: center;
10
11
  }
11
12
  }
12
13
 
@@ -4,7 +4,7 @@ $green: #00897B;
4
4
  $blue: #4bacfe;
5
5
  $black: #36393D;
6
6
 
7
- $error: #f96868 !default;
7
+ $error: #dc4747 !default;
8
8
  $warning: #f2a654 !default;
9
9
  $success: #46be8a !default;
10
10
  $info: #57c7d4 !default;
@@ -1,3 +1,3 @@
1
1
  module ArcticAdmin
2
- VERSION = "1.3.0"
2
+ VERSION = "1.3.1"
3
3
  end
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.0
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-09-08 00:00:00.000000000 Z
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