arctic_admin 4.0.1.alpha → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{Readme.md → README.md} +15 -16
- data/app/assets/javascripts/arctic_admin/main.js +1 -1
- data/app/assets/stylesheets/arctic_admin/components/_inputs.scss +1 -1
- data/app/assets/stylesheets/arctic_admin/components/_select2.scss +2 -2
- data/app/assets/stylesheets/arctic_admin/components/_tables.scss +11 -6
- data/app/assets/stylesheets/arctic_admin/mixins/_buttons_mixins.scss +2 -1
- data/app/assets/stylesheets/arctic_admin/pages/_index.scss +16 -2
- data/lib/arctic_admin/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f527d7e2caa4c8209125ef8b4e0819d9dfac5056622e62fbb78f2bfc7950028
|
4
|
+
data.tar.gz: c137632694ed36dc983279e9e161b2415d4100b7c6daef0bcc8353f7d7514a4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81d7c39c6fc5201af8f6543dc8033d642782489bcca767a6da9ab1badc108f546e34d9260750e1c4d46bc67dc938c84e393b4b930f1ba00915a7d49654c061a9
|
7
|
+
data.tar.gz: ab34c1df077f84627182680c0686986204c0636ea4d0e668ea9921c17136088b652933e388b90c504081be9b35e642ae72057362ac1a93a43d724cd3b82c9cb1
|
data/{Readme.md → README.md}
RENAMED
@@ -14,7 +14,7 @@ Simple theme for ActiveAdmin :ok_hand:
|
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
17
|
-
|
17
|
+
### For Sprockets users
|
18
18
|
|
19
19
|
- Add this to your Gemfile:
|
20
20
|
|
@@ -32,9 +32,17 @@ config.meta_tags = meta_tags_options
|
|
32
32
|
config.meta_tags_for_logged_out_pages = meta_tags_options
|
33
33
|
```
|
34
34
|
|
35
|
-
|
35
|
+
### For webpacker / jsbundling-rails or other JS-based asset solutions
|
36
36
|
|
37
|
-
|
37
|
+
Install the needed assets with npm or yarn:
|
38
|
+
|
39
|
+
```bash
|
40
|
+
yarn add arctic_admin @fortawesome/fontawesome-free
|
41
|
+
```
|
42
|
+
|
43
|
+
## Use with Sprockets
|
44
|
+
|
45
|
+
### 1a - CSS
|
38
46
|
|
39
47
|
In your `active_admin.css`, include the css file:
|
40
48
|
|
@@ -48,7 +56,7 @@ In your `active_admin.css`, include the css file:
|
|
48
56
|
|
49
57
|
Then restart your webserver if it was previously running.
|
50
58
|
|
51
|
-
### Sass Support
|
59
|
+
### 1b - Sass Support
|
52
60
|
|
53
61
|
:exclamation: **Remove the line `@import "active_admin/base"`**
|
54
62
|
|
@@ -67,7 +75,7 @@ add this to your `active_admin.sass` file:
|
|
67
75
|
@import arctic_admin/base
|
68
76
|
```
|
69
77
|
|
70
|
-
### JS
|
78
|
+
### 2 - JS
|
71
79
|
|
72
80
|
In your `active_admin.js`, include the js file:
|
73
81
|
|
@@ -79,16 +87,7 @@ In your `active_admin.js`, include the js file:
|
|
79
87
|
|
80
88
|
## Use with webpacker
|
81
89
|
|
82
|
-
### 1 -
|
83
|
-
|
84
|
-
Install the needed assets with npm or yarn:
|
85
|
-
|
86
|
-
```
|
87
|
-
yarn add arctic_admin @fortawesome/fontawesome-free
|
88
|
-
```
|
89
|
-
|
90
|
-
|
91
|
-
### 2 - CSS
|
90
|
+
### 1 - CSS
|
92
91
|
|
93
92
|
In your `app/javascript/stylesheets/active_admin.scss`, add the line:
|
94
93
|
|
@@ -103,7 +102,7 @@ Remove:
|
|
103
102
|
@import "~@activeadmin/activeadmin/src/scss/base";
|
104
103
|
```
|
105
104
|
|
106
|
-
###
|
105
|
+
### 2 - JS
|
107
106
|
|
108
107
|
Search for `app/javascript/packs/active_admin.js` in your rails project and add the following lines:
|
109
108
|
|
@@ -5,7 +5,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|
5
5
|
if (sidebar) {
|
6
6
|
sidebar.addEventListener('click', event => {
|
7
7
|
const insideSection = document.querySelector('#filters_sidebar_section')
|
8
|
-
if (!(event.target === insideSection || insideSection.contains(event.target))) {
|
8
|
+
if (!(event.target === insideSection || insideSection.contains(event.target)) && event.target.className != "select2-selection__choice__remove") {
|
9
9
|
sidebar.classList.toggle('sidebar_open')
|
10
10
|
}
|
11
11
|
})
|
@@ -34,7 +34,7 @@
|
|
34
34
|
}
|
35
35
|
|
36
36
|
.select2-container--default .select2-results__option[aria-selected=true]{
|
37
|
-
|
37
|
+
background-color: $body-background;
|
38
38
|
}
|
39
39
|
|
40
40
|
.select2-search--dropdown .select2-search__field{
|
@@ -47,4 +47,4 @@
|
|
47
47
|
|
48
48
|
.select2-results__option{
|
49
49
|
padding-left: 12px;
|
50
|
-
}
|
50
|
+
}
|
@@ -39,12 +39,6 @@ thead th {
|
|
39
39
|
}
|
40
40
|
|
41
41
|
tbody tr {
|
42
|
-
border: 1px solid $border-color;
|
43
|
-
|
44
|
-
&:hover {
|
45
|
-
background-color: rgba(228, 234, 236, 0.3);
|
46
|
-
}
|
47
|
-
|
48
42
|
th {
|
49
43
|
font-size: $font-size;
|
50
44
|
}
|
@@ -64,3 +58,14 @@ tbody tr {
|
|
64
58
|
}
|
65
59
|
}
|
66
60
|
}
|
61
|
+
|
62
|
+
// style only for table
|
63
|
+
.index_as_table {
|
64
|
+
tbody tr {
|
65
|
+
border: 1px solid $border-color;
|
66
|
+
|
67
|
+
&:hover {
|
68
|
+
background-color: rgba(228, 234, 236, 0.3);
|
69
|
+
}
|
70
|
+
}
|
71
|
+
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@use "sass:math";
|
2
|
+
|
1
3
|
body.index {
|
2
4
|
|
3
5
|
.resource_selection_toggle_cell, .resource_selection_cell {
|
@@ -41,7 +43,19 @@ body.index {
|
|
41
43
|
}
|
42
44
|
|
43
45
|
.indexes.table_tools_segmented_control {
|
44
|
-
|
46
|
+
display: flex;
|
47
|
+
justify-content: right;
|
48
|
+
|
49
|
+
a {
|
50
|
+
@include secondary-button($primary-color);
|
51
|
+
}
|
52
|
+
|
53
|
+
.index {
|
54
|
+
margin-right: 4px;
|
55
|
+
&:last-child {
|
56
|
+
margin-right: 0;
|
57
|
+
}
|
58
|
+
}
|
45
59
|
}
|
46
60
|
}
|
47
61
|
|
@@ -66,7 +80,7 @@ body.index {
|
|
66
80
|
@include transform(translateY(-50%));
|
67
81
|
|
68
82
|
@media screen and (min-width: $md-width) {
|
69
|
-
font-size: $font-size
|
83
|
+
// font-size: math.div($font-size, 1px);
|
70
84
|
}
|
71
85
|
}
|
72
86
|
|
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: 4.
|
4
|
+
version: 4.1.0
|
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:
|
11
|
+
date: 2023-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,7 +79,7 @@ extensions: []
|
|
79
79
|
extra_rdoc_files: []
|
80
80
|
files:
|
81
81
|
- LICENCE.txt
|
82
|
-
-
|
82
|
+
- README.md
|
83
83
|
- app/assets/fonts/Lato-Bold.eot
|
84
84
|
- app/assets/fonts/Lato-Bold.ttf
|
85
85
|
- app/assets/fonts/Lato-Bold.woff
|
@@ -154,11 +154,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
154
154
|
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- - "
|
157
|
+
- - ">="
|
158
158
|
- !ruby/object:Gem::Version
|
159
|
-
version:
|
159
|
+
version: '0'
|
160
160
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
161
|
+
rubygems_version: 3.3.26
|
162
162
|
signing_key:
|
163
163
|
specification_version: 4
|
164
164
|
summary: Arctic Admin theme for ActiveAdmin
|