arctic_admin 4.0.1.alpha → 4.1.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ac5204d1d381efd50fab0fd34bfbe1ea01ac93f99498695e6792223b17fe72e
4
- data.tar.gz: 66c5c5b151dd6592c35059a0b029923cd108a1f9630d03b8220a84dda91486e2
3
+ metadata.gz: 4f527d7e2caa4c8209125ef8b4e0819d9dfac5056622e62fbb78f2bfc7950028
4
+ data.tar.gz: c137632694ed36dc983279e9e161b2415d4100b7c6daef0bcc8353f7d7514a4f
5
5
  SHA512:
6
- metadata.gz: 9e588e7530142d7dd7d81bb2049e8a6ac5519545578184c4a2d595a8c0505462b8a2dd65f355af9cc5c748a780e95fd0f6b4c63b25bb3ad2069aa06feecad7e5
7
- data.tar.gz: 76540e14071b7f9a75739aee25e1a9665b98ea549a79689346f53b1d73634a3414f9c696dffc06095dba55614f6627bc54cdafa06b59a329a3ce667d2aa77ff0
6
+ metadata.gz: 81d7c39c6fc5201af8f6543dc8033d642782489bcca767a6da9ab1badc108f546e34d9260750e1c4d46bc67dc938c84e393b4b930f1ba00915a7d49654c061a9
7
+ data.tar.gz: ab34c1df077f84627182680c0686986204c0636ea4d0e668ea9921c17136088b652933e388b90c504081be9b35e642ae72057362ac1a93a43d724cd3b82c9cb1
@@ -14,7 +14,7 @@ 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**
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
- ## Usage
35
+ ### For webpacker / jsbundling-rails or other JS-based asset solutions
36
36
 
37
- ### CSS
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 - Preparation
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
- ### 3 - JS
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
  })
@@ -62,7 +62,7 @@ input[type="checkbox"] {
62
62
 
63
63
  &:checked {
64
64
  border-color: $primary-color;
65
- background-color: $primary-color;
65
+ background-color: $primary-color !important;
66
66
  }
67
67
  }
68
68
 
@@ -34,7 +34,7 @@
34
34
  }
35
35
 
36
36
  .select2-container--default .select2-results__option[aria-selected=true]{
37
- background_color: $body-background;
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
+ }
@@ -37,6 +37,7 @@
37
37
  background-color: #fff;
38
38
  color: $color;
39
39
  border: 1px solid $color;
40
+ padding: 4px 8px;
40
41
  @include button();
41
42
 
42
43
  &:hover {
@@ -117,4 +118,4 @@
117
118
 
118
119
  @mixin little-button() {
119
120
  padding: 6px 12px;
120
- }
121
+ }
@@ -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
- text-align: right;
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/1;
83
+ // font-size: math.div($font-size, 1px);
70
84
  }
71
85
  }
72
86
 
@@ -1,3 +1,3 @@
1
1
  module ArcticAdmin
2
- VERSION = "4.0.1.alpha"
2
+ VERSION = "4.1.0"
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.1.alpha
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: 2020-12-07 00:00:00.000000000 Z
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
- - Readme.md
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: 1.3.1
159
+ version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.0.3
161
+ rubygems_version: 3.3.26
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Arctic Admin theme for ActiveAdmin