You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Active Admin Blaze Theme [](https://badge.fury.io/rb/activeadmin_blaze_theme)[](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml)
3
2
4
3
A theme for Active Admin using [Blaze CSS](http://blazecss.com/) 9.x.
5
4
6
5
Features:
6
+
7
7
- CSS only theme with clean UI
8
8
- compact nested forms
9
9
-[customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
@@ -13,17 +13,18 @@ Features:
13
13
See some [screenshots](#screenshots).
14
14
15
15
## Install
16
-
- Add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
17
16
18
-
If you installed Active Admin **without** Webpacker support:
17
+
First, add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
18
+
19
+
Then, if you installed Active Admin **without Webpacker** support (so using Sprockets):
19
20
20
21
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
21
22
22
23
```scss
23
24
@import"activeadmin_blaze_theme/theme";
24
25
```
25
26
26
-
If you are using Webpacker:
27
+
Otherwise, **with Webpacker**:
27
28
28
29
- Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
29
30
- Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
@@ -32,10 +33,21 @@ If you are using Webpacker:
32
33
require('activeadmin_blaze_theme');
33
34
```
34
35
35
-
- Sometimes it could be necessary to remove the _node_modules_ path a recreate it (`yarn install --check-files`), or to clean the tmp path: `bin/rails tmp:clear`
36
+
- Another option is appending to _app/javascript/stylesheets/active_admin.scss_ (in this case the JS require line is not needed):
- Sometimes it could be necessary to remove the _node_modules_ path and recreate it (using `yarn install --check-files`) or to clean the tmp path: `bin/rails tmp:clear`
36
45
37
46
## Customize
38
-
- To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import):
47
+
48
+
- Colors customization is available using some Sass variables;
49
+
- With Sprockets: you need to update your Active Admin styles (before **activeadmin_blaze_theme/theme** import line);
50
+
- With Webpacker: you need to import the theme using the Sass/Scss option as described above.
A sidebar menu (*priority* option permit to put the sidebar above the filters):
129
143
130
144
```ruby
@@ -144,6 +158,7 @@ end
144
158
```
145
159
146
160
### Accordion
161
+
147
162
An accordion group in aform:
148
163
149
164
```ruby
@@ -164,6 +179,7 @@ end
164
179
```
165
180
166
181
### Readonly field
182
+
167
183
Some readonly fields in aform:
168
184
169
185
```ruby
@@ -192,6 +208,7 @@ end
192
208
```
193
209
194
210
## Blaze widgets
211
+
195
212
See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
196
213
197
214
Badge example:
@@ -215,22 +232,27 @@ end
215
232
```
216
233
217
234
## Notes
235
+
218
236
- To use this plugins with Active Admin 1.x please use the version [0.5.12](https://github.com/blocknotes/activeadmin_blaze_theme/releases/tag/v0.5.12)
219
237
220
238
## Screenshots
239
+
221
240
Index:
222
241

223
242
224
243
Edit:
225
244

226
245
227
246
## Do you like it? Star it!
247
+
228
248
If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source).
229
249
230
250
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
0 commit comments