arctic_admin 4.0.0.alpha → 4.0.1.alpha

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
  SHA256:
3
- metadata.gz: d80f79149e44a52c1d586e425e82313f2d83aea8455d59eaba12a72fb94abc30
4
- data.tar.gz: ff9b250756327bb54eb0ee374d4cacb0a9cb7b6090da861ee85beceda2534f62
3
+ metadata.gz: 2ac5204d1d381efd50fab0fd34bfbe1ea01ac93f99498695e6792223b17fe72e
4
+ data.tar.gz: 66c5c5b151dd6592c35059a0b029923cd108a1f9630d03b8220a84dda91486e2
5
5
  SHA512:
6
- metadata.gz: 6844d6c0fbd22ce592aa64c9f5f27e93033564f44bd7856a3e9d2f3f0ab52ffb5c8a44c106ec9eac85e7dd50c6213649930bfa303a451b4ea867405bc9ded0fd
7
- data.tar.gz: 159bce7c3570d89754af6964c035497b6adbc0a87f6f709a06fa556c4ddfdd924a48866518336e6424a81cd0efa6ae87df472c3e9f8442d10bf4ef846bb62548
6
+ metadata.gz: 9e588e7530142d7dd7d81bb2049e8a6ac5519545578184c4a2d595a8c0505462b8a2dd65f355af9cc5c748a780e95fd0f6b4c63b25bb3ad2069aa06feecad7e5
7
+ data.tar.gz: 76540e14071b7f9a75739aee25e1a9665b98ea549a79689346f53b1d73634a3414f9c696dffc06095dba55614f6627bc54cdafa06b59a329a3ce667d2aa77ff0
data/Readme.md CHANGED
@@ -14,6 +14,8 @@ Simple theme for ActiveAdmin :ok_hand:
14
14
 
15
15
  ## Installation
16
16
 
17
+ >**⚠️ If you are using webpacker (Standard with Rails 6) look below**
18
+
17
19
  - Add this to your Gemfile:
18
20
 
19
21
  ```ruby
@@ -79,10 +81,10 @@ In your `active_admin.js`, include the js file:
79
81
 
80
82
  ### 1 - Preparation
81
83
 
82
- Install the assets from npm or yarn
84
+ Install the needed assets with npm or yarn:
83
85
 
84
86
  ```
85
- yarn add arctic_admin
87
+ yarn add arctic_admin @fortawesome/fontawesome-free
86
88
  ```
87
89
 
88
90
 
@@ -103,26 +105,24 @@ Remove:
103
105
 
104
106
  ### 3 - JS
105
107
 
106
- In your `app/javascript/packs/active_admin.js`, add the line:
108
+ Search for `app/javascript/packs/active_admin.js` in your rails project and add the following lines:
107
109
 
108
110
  ```js
111
+ import "@fortawesome/fontawesome-free/css/all.css";
109
112
  import 'arctic_admin'
110
113
  ```
111
114
 
112
115
 
113
116
  ### Customization
114
117
 
115
- For this, you need to use sass to custom the theme.
116
-
117
- You can even change basic color of the theme by placing some other variables:
118
+ For this, you need to use SASS to customize the theming.
118
119
 
119
- If you use the [SCSS](http://sass-lang.com/documentation/file.SASS_REFERENCE.html), add this to your
120
- `active_admin.scss` file:
120
+ Right now you can change the primary color of the theme by placing the following variable in your `active_admin.scss` file:
121
121
 
122
122
  ```scss
123
123
  $primary-color: #2dbb43;
124
124
 
125
- @import "arctic_admin/base";
125
+ @import "~arctic_admin/src/scss/main";
126
126
  ```
127
127
 
128
128
  If you use the
@@ -132,7 +132,7 @@ add this to your `active_admin.sass` file:
132
132
  ```sass
133
133
  $primary-color: #2dbb43
134
134
 
135
- @import arctic_admin/base
135
+ @import ~arctic_admin/src/scss/main
136
136
  ```
137
137
 
138
138
  Then restart your webserver if it was previously running.
@@ -39,12 +39,14 @@ document.addEventListener('DOMContentLoaded', () => {
39
39
  })
40
40
 
41
41
  // toggle of nested menu items
42
- const nestedMenuItem = document.querySelector('#tabs .has_nested')
43
- if (nestedMenuItem) {
44
- nestedMenuItem.addEventListener('click', (e) => {
45
- e.stopPropagation()
46
- nestedMenuItem.classList.toggle('open')
47
- })
48
- }
42
+ const nestedMenuItems = document.querySelectorAll('#tabs .has_nested')
43
+ nestedMenuItems.forEach(
44
+ (nestedMenuItem) => {
45
+ nestedMenuItem.addEventListener('click', (e) => {
46
+ e.stopPropagation()
47
+ nestedMenuItem.classList.toggle('open')
48
+ })
49
+ }
50
+ )
49
51
 
50
52
  })
@@ -101,7 +101,7 @@
101
101
  }
102
102
  }
103
103
 
104
- ul {
104
+ & > ul {
105
105
  display: block;
106
106
  }
107
107
  }
@@ -39,6 +39,10 @@ body.index {
39
39
  position: absolute;
40
40
  z-index: 1;
41
41
  }
42
+
43
+ .indexes.table_tools_segmented_control {
44
+ text-align: right;
45
+ }
42
46
  }
43
47
 
44
48
  .paginated_collection_contents {
@@ -89,6 +93,10 @@ body.index {
89
93
  .scopes {
90
94
  .scope {
91
95
  @include group-button($primary-color);
96
+
97
+ a {
98
+ margin-right: .25rem;
99
+ }
92
100
  }
93
101
  }
94
102
 
@@ -1,3 +1,3 @@
1
1
  module ArcticAdmin
2
- VERSION = "4.0.0.alpha"
2
+ VERSION = "4.0.1.alpha"
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: 4.0.0.alpha
4
+ version: 4.0.1.alpha
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: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler