active_material 2.1.4 → 2.1.5
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 +7 -18
- data/app/assets/javascripts/active_material.js +1 -1
- data/lib/active_material/version.rb +1 -1
- data/package.json +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0cbdf7aa1d4dc702b1cc9e73ef3ca71802f336d77259ed6f51b860aca25d1b7
|
4
|
+
data.tar.gz: a513278dc99979fab411a92a979da920fcd1b8a57273b050555eef81b351d8f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c0bc8145ec3e87b87c02dbf4e832c2a574d49a1fd1fbedfd4f41a4a739edc6d3735370e6e1d1306bfc87681d63796a9772e3e3a64b19610829c8c5958cd2a0
|
7
|
+
data.tar.gz: d10d7d0013ba505d45e27a0504cb5b047d40c2b330195ef544dad66ee614bc2f916764267c9e8a427f2e4d3a988169c70c45fe88bcb6ccc1371a5c66ba4ebd2f
|
data/README.md
CHANGED
@@ -5,33 +5,22 @@ An ActiveAdmin skin based on Google's Material Design.
|
|
5
5
|
<img src="http://i.imgur.com/kDkGzYe.png">
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
### Importmap
|
9
8
|
|
9
|
+
### Importmap
|
10
10
|
- Add `gem 'active_material'` to `Gemfile` and run `bundle install`
|
11
|
-
- Add `import "active_material"` to JS entrypoint (a JS file that is included for activeadmin)
|
12
|
-
- Add `@import "active_material";` in your CSS style file (the active_material SCSS files are included in the asset path automatically, but you will need to have SCSS build capabilities, using dartsass-rails or similar)
|
13
11
|
|
14
12
|
NOTE: no need to pin the import in your application. That's handled internally by the gem.
|
15
13
|
|
16
14
|
### npm
|
17
15
|
- `npm install --save active_material` or `yarn add active_material`
|
18
|
-
- Add `import "active_material"` to your JS pack file
|
19
|
-
- Add `@import "active_material/app/assets/stylesheets/active_material.scss";` to your CSS style file
|
20
|
-
|
21
|
-
## Options
|
22
16
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
1. If you want to change to another font:
|
28
|
-
- In your application config, set `config.active_material.font_url` to your font url
|
29
|
-
- In your SCSS file, just before `@import "active_material";`, add `$am-font-sans: 'Roboto';`, replacing `Roboto` with your font name.
|
30
|
-
2. If you want to disable font loading altogether, you can use `config.active_material.load_font = true`
|
31
|
-
|
32
|
-
### Other customizations
|
17
|
+
## Usage
|
18
|
+
- Add `import "active_material"` to JS entrypoint (a JS file that is included for activeadmin)
|
19
|
+
- Add `@use "active_material";` in your CSS style file
|
20
|
+
- NOTE: the active_material SCSS files are included in the asset path automatically for importmap, but you will need to have SCSS build capabilities, using dartsass-rails or similar
|
33
21
|
|
34
|
-
|
22
|
+
## Customization
|
23
|
+
For customization options, see [customization.md](./docs/customization.md)
|
35
24
|
|
36
25
|
## Contributing
|
37
26
|
|
data/package.json
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "active_material",
|
3
|
-
"version": "2.1.
|
3
|
+
"version": "2.1.5",
|
4
4
|
"description": "ActiveAdmin skin based on Google's Material Design.",
|
5
|
-
"main": "
|
5
|
+
"main": "app/assets/javascripts/active_material.js",
|
6
6
|
"directories": {
|
7
7
|
"lib": "lib"
|
8
8
|
},
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_material
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Derek Kniffin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-06-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|