activeadmin_blaze_theme 0.6.2 → 0.7.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -5
- data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +1 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +3 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +1 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +30 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +43 -49
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +59 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +36 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +20 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +49 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +77 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +69 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +213 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +14 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +27 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +163 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +135 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +31 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +60 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +126 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +33 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +51 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +114 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +88 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +72 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +42 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +74 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_components.tooltips.scss → components.tooltips.scss} +30 -28
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +47 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +95 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +13 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +8 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +43 -82
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +40 -2
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +22 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +29 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +89 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +5 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +6 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +10 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +10 -38
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +864 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +34 -13
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +125 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +46 -6
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +29 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +88 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.responsive.scss → objects.grid.responsive.scss} +14 -14
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.scss → objects.grid.scss} +2 -2
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.images.scss → objects.images.scss} +1 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.media.scss → objects.media.scss} +3 -3
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +58 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.panels.scss → objects.panels.scss} +11 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +7 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_utilities.alignment.scss → utilities.alignment.scss} +1 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +101 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +19 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +25 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.visibility.scss +45 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +2 -2
- data/index.js +2 -0
- data/lib/activeadmin/views/activeadmin_form.rb +1 -1
- data/lib/activeadmin_blaze_theme/version.rb +1 -1
- data/lib/activeadmin_blaze_theme.rb +3 -3
- data/package.json +13 -0
- metadata +65 -367
- data/.circleci/config.yml +0 -33
- data/.gitignore +0 -13
- data/.rspec +0 -2
- data/.rubocop.yml +0 -27
- data/Gemfile +0 -5
- data/Rakefile +0 -16
- data/activeadmin_blaze_theme.gemspec +0 -35
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.addresses.scss +0 -11
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.alerts.scss +0 -78
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.avatars.scss +0 -38
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.back-to-top.scss +0 -17
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.badges.scss +0 -71
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.breadcrumbs.scss +0 -24
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss +0 -91
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.calendars.scss +0 -80
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.cards.scss +0 -195
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.divider.scss +0 -39
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.file-upload.scss +0 -24
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.github-buttons.scss +0 -131
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.headings.scss +0 -12
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.hints.scss +0 -21
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.input-groups.scss +0 -164
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.inputs.scss +0 -128
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.links.scss +0 -72
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.lists.scss +0 -64
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.navs.scss +0 -83
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.overlays.scss +0 -23
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.pagination.scss +0 -31
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.progress.scss +0 -83
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.ranges.scss +0 -176
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tables.scss +0 -86
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tabs.scss +0 -68
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tags.scss +0 -39
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.timelines.scss +0 -113
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.toggles.scss +0 -89
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.trees.scss +0 -48
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_generics.global.scss +0 -17
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.containers.scss +0 -37
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.drawers.scss +0 -91
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.forms.scss +0 -25
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.modals.scss +0 -70
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.boxing.scss +0 -111
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.elevation.scss +0 -17
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.radius.scss +0 -11
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.sizes.scss +0 -23
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.typography.scss +0 -160
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.visibility.scss +0 -54
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_variables.scss +0 -93
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.states.scss +0 -7
- data/bin/rails +0 -29
- data/bin/rake +0 -29
- data/bin/rspec +0 -29
- data/bin/rubocop +0 -29
- data/extra/edit.png +0 -0
- data/extra/index.png +0 -0
- data/spec/dummy/.ruby-version +0 -1
- data/spec/dummy/.tool-versions +0 -1
- data/spec/dummy/Rakefile +0 -6
- data/spec/dummy/app/admin/authors.rb +0 -57
- data/spec/dummy/app/admin/dashboard.rb +0 -32
- data/spec/dummy/app/admin/posts.rb +0 -50
- data/spec/dummy/app/admin/tags.rb +0 -4
- data/spec/dummy/app/assets/config/manifest.js +0 -3
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js +0 -1
- data/spec/dummy/app/assets/stylesheets/active_admin.scss +0 -4
- data/spec/dummy/app/assets/stylesheets/application.css +0 -15
- data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
- data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
- data/spec/dummy/app/controllers/application_controller.rb +0 -2
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +0 -2
- data/spec/dummy/app/javascript/packs/application.js +0 -15
- data/spec/dummy/app/jobs/application_job.rb +0 -7
- data/spec/dummy/app/mailers/application_mailer.rb +0 -4
- data/spec/dummy/app/models/application_record.rb +0 -7
- data/spec/dummy/app/models/author.rb +0 -26
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/post.rb +0 -25
- data/spec/dummy/app/models/post_tag.rb +0 -9
- data/spec/dummy/app/models/profile.rb +0 -9
- data/spec/dummy/app/models/tag.rb +0 -6
- data/spec/dummy/app/views/layouts/application.html.erb +0 -14
- data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
- data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
- data/spec/dummy/bin/rails +0 -4
- data/spec/dummy/bin/rake +0 -4
- data/spec/dummy/bin/setup +0 -33
- data/spec/dummy/config/application.rb +0 -18
- data/spec/dummy/config/boot.rb +0 -5
- data/spec/dummy/config/cable.yml +0 -10
- data/spec/dummy/config/database.yml +0 -8
- data/spec/dummy/config/environment.rb +0 -5
- data/spec/dummy/config/environments/development.rb +0 -62
- data/spec/dummy/config/environments/production.rb +0 -112
- data/spec/dummy/config/environments/test.rb +0 -49
- data/spec/dummy/config/initializers/active_admin.rb +0 -335
- data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
- data/spec/dummy/config/initializers/assets.rb +0 -12
- data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
- data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/dummy/config/initializers/inflections.rb +0 -16
- data/spec/dummy/config/initializers/mime_types.rb +0 -4
- data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
- data/spec/dummy/config/locales/en.yml +0 -33
- data/spec/dummy/config/puma.rb +0 -38
- data/spec/dummy/config/routes.rb +0 -3
- data/spec/dummy/config/spring.rb +0 -6
- data/spec/dummy/config/storage.yml +0 -7
- data/spec/dummy/config.ru +0 -5
- data/spec/dummy/db/migrate/20170806125915_create_active_storage_tables.active_storage.rb +0 -27
- data/spec/dummy/db/migrate/20180101010101_create_active_admin_comments.rb +0 -16
- data/spec/dummy/db/migrate/20180607053251_create_authors.rb +0 -13
- data/spec/dummy/db/migrate/20180607053254_create_profiles.rb +0 -12
- data/spec/dummy/db/migrate/20180607053255_create_tags.rb +0 -11
- data/spec/dummy/db/migrate/20180607053257_create_post_tags.rb +0 -12
- data/spec/dummy/db/migrate/20180607053739_create_posts.rb +0 -17
- data/spec/dummy/db/schema.rb +0 -99
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +0 -67
- data/spec/dummy/public/422.html +0 -67
- data/spec/dummy/public/500.html +0 -66
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +0 -36
- data/spec/spec_helper.rb +0 -20
- data/spec/support/capybara.rb +0 -3
- data/spec/support/drivers.rb +0 -7
- data/spec/system/theme_spec.rb +0 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 569d10c9b72f7056d613b35872c3905779ad2b511ff93bca93383e9addc8b906
|
4
|
+
data.tar.gz: 7fe4c32ac73e0d7a1067b04a27bc00d6ed8310005bb5bb0b00493218e2791410
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93606aa0b70e5d2eedbea16d08c95380861afc613c28067dbb6837d83b61e67635fd8aa3493907f9d058446a5204f650ed68623fae3cfe1fbd3d4be6dc4b68ed
|
7
|
+
data.tar.gz: d4f5eb3b15f5d87e16b7d15d32f58f66353c715fbd29344bf51d4c501820ac69265ac1491902be8ba572ff135aa4a4eecc7ce16a6e2e8e4714f4bf2f5ce2321c
|
data/README.md
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
# Active Admin Blaze Theme
|
2
|
-
[![
|
2
|
+
[![gem version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_blaze_theme)](https://rubygems.org/gems/activeadmin_blaze_theme) [![linters](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/linters.yml) [![specs](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml)
|
3
3
|
|
4
|
-
A theme for Active Admin
|
4
|
+
A theme for Active Admin based on [Blaze CSS](http://blazecss.com) 3.x
|
5
5
|
|
6
6
|
Features:
|
7
|
+
|
7
8
|
- CSS only theme with clean UI
|
8
9
|
- compact nested forms
|
9
10
|
- [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
|
@@ -12,17 +13,44 @@ Features:
|
|
12
13
|
|
13
14
|
See some [screenshots](#screenshots).
|
14
15
|
|
16
|
+
Please :star: if you like it.
|
17
|
+
|
15
18
|
## Install
|
16
|
-
|
17
|
-
|
19
|
+
|
20
|
+
First, add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
|
21
|
+
|
22
|
+
Then, if you installed Active Admin **without Webpacker** support (so using Sprockets):
|
23
|
+
|
18
24
|
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
|
19
25
|
|
20
26
|
```scss
|
21
27
|
@import "activeadmin_blaze_theme/theme";
|
22
28
|
```
|
23
29
|
|
30
|
+
Otherwise, **with Webpacker**:
|
31
|
+
|
32
|
+
- Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
|
33
|
+
- Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
|
34
|
+
|
35
|
+
```js
|
36
|
+
require('activeadmin_blaze_theme');
|
37
|
+
```
|
38
|
+
|
39
|
+
- Another option is appending to _app/javascript/stylesheets/active_admin.scss_ (in this case the JS require line is not needed):
|
40
|
+
|
41
|
+
```scss
|
42
|
+
// ...
|
43
|
+
// optionally add custom colors variables here
|
44
|
+
@import "~activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme";
|
45
|
+
```
|
46
|
+
|
47
|
+
- 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`
|
48
|
+
|
24
49
|
## Customize
|
25
|
-
|
50
|
+
|
51
|
+
- Colors customization is available using some Sass variables;
|
52
|
+
- With Sprockets: you need to update your Active Admin styles (before **activeadmin_blaze_theme/theme** import line);
|
53
|
+
- With Webpacker: you need to import the theme using the Sass/Scss option as described above.
|
26
54
|
|
27
55
|
```scss
|
28
56
|
// blaze colors
|
@@ -91,6 +119,7 @@ body.active_admin .cke {
|
|
91
119
|
## Custom fields / components
|
92
120
|
|
93
121
|
### Toggle
|
122
|
+
|
94
123
|
In *form* \ *inputs* block:
|
95
124
|
|
96
125
|
```ruby
|
@@ -112,6 +141,7 @@ f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }
|
|
112
141
|
```
|
113
142
|
|
114
143
|
### Sidebar menu
|
144
|
+
|
115
145
|
A sidebar menu (*priority* option permit to put the sidebar above the filters):
|
116
146
|
|
117
147
|
```ruby
|
@@ -131,6 +161,7 @@ end
|
|
131
161
|
```
|
132
162
|
|
133
163
|
### Accordion
|
164
|
+
|
134
165
|
An accordion group in a form:
|
135
166
|
|
136
167
|
```ruby
|
@@ -151,6 +182,7 @@ end
|
|
151
182
|
```
|
152
183
|
|
153
184
|
### Readonly field
|
185
|
+
|
154
186
|
Some readonly fields in a form:
|
155
187
|
|
156
188
|
```ruby
|
@@ -179,6 +211,7 @@ end
|
|
179
211
|
```
|
180
212
|
|
181
213
|
## Blaze widgets
|
214
|
+
|
182
215
|
See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
|
183
216
|
|
184
217
|
Badge example:
|
@@ -202,9 +235,11 @@ end
|
|
202
235
|
```
|
203
236
|
|
204
237
|
## Notes
|
238
|
+
|
205
239
|
- 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)
|
206
240
|
|
207
241
|
## Screenshots
|
242
|
+
|
208
243
|
Index:
|
209
244
|
![index](extra/index.png)
|
210
245
|
|
@@ -212,12 +247,16 @@ Edit:
|
|
212
247
|
![edit](extra/edit.png)
|
213
248
|
|
214
249
|
## Do you like it? Star it!
|
250
|
+
|
215
251
|
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).
|
216
252
|
|
217
253
|
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
|
218
254
|
|
219
255
|
## Contributors
|
256
|
+
|
220
257
|
- [Mattia Roccoberton](http://blocknot.es): author
|
258
|
+
- The good guys that opened issues and pull requests from time to time
|
221
259
|
|
222
260
|
## License
|
261
|
+
|
223
262
|
The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
|
@@ -47,6 +47,7 @@ body.active_admin {
|
|
47
47
|
}
|
48
48
|
|
49
49
|
// buttons
|
50
|
+
a.button.has_many_add,
|
50
51
|
button,
|
51
52
|
input[type='button'],
|
52
53
|
input[type='submit'],
|
@@ -66,6 +67,7 @@ body.active_admin {
|
|
66
67
|
}
|
67
68
|
}
|
68
69
|
|
70
|
+
a.button.has_many_add:hover,
|
69
71
|
button:hover,
|
70
72
|
input[type='button']:hover,
|
71
73
|
input[type='submit']:hover,
|
@@ -75,6 +77,7 @@ body.active_admin {
|
|
75
77
|
background-color: #aaa;
|
76
78
|
background-image: none;
|
77
79
|
}
|
80
|
+
|
78
81
|
> .actions {
|
79
82
|
margin: 5px 0 0 0;
|
80
83
|
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
//
|
4
|
+
// Colors
|
5
|
+
//
|
6
|
+
@each $name, $value in $colors {
|
7
|
+
.u-color-#{$name} {
|
8
|
+
color: $value;
|
9
|
+
}
|
10
|
+
|
11
|
+
.u-bg-#{$name} {
|
12
|
+
background-color: $value;
|
13
|
+
}
|
14
|
+
|
15
|
+
.u-fill-#{$name} {
|
16
|
+
fill: $value;
|
17
|
+
}
|
18
|
+
|
19
|
+
.u-stroke-#{$name} {
|
20
|
+
stroke: $value;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
.u-stroke-none {
|
25
|
+
stroke: none;
|
26
|
+
}
|
27
|
+
|
28
|
+
.u-fill-none {
|
29
|
+
fill: none;
|
30
|
+
}
|
@@ -1,49 +1,43 @@
|
|
1
|
-
//
|
2
|
-
@import
|
3
|
-
@import
|
4
|
-
@import
|
5
|
-
@import
|
6
|
-
@import
|
7
|
-
@import
|
8
|
-
@import
|
9
|
-
@import
|
10
|
-
@import
|
11
|
-
@import
|
12
|
-
@import
|
13
|
-
@import
|
14
|
-
@import
|
15
|
-
@import
|
16
|
-
@import
|
17
|
-
@import
|
18
|
-
@import
|
19
|
-
@import
|
20
|
-
@import
|
21
|
-
@import
|
22
|
-
@import
|
23
|
-
@import
|
24
|
-
@import
|
25
|
-
@import
|
26
|
-
@import
|
27
|
-
@import
|
28
|
-
@import
|
29
|
-
@import
|
30
|
-
@import
|
31
|
-
@import
|
32
|
-
@import
|
33
|
-
@import
|
34
|
-
@import
|
35
|
-
@import
|
36
|
-
@import
|
37
|
-
@import
|
38
|
-
@import
|
39
|
-
@import
|
40
|
-
@import
|
41
|
-
@import
|
42
|
-
@import
|
43
|
-
@import
|
44
|
-
@import 'utilities.boxing';
|
45
|
-
@import 'utilities.elevation';
|
46
|
-
@import 'utilities.radius';
|
47
|
-
@import 'utilities.sizes';
|
48
|
-
@import 'utilities.typography';
|
49
|
-
@import 'utilities.visibility';
|
1
|
+
// v3.6.3
|
2
|
+
@import "generics.global";
|
3
|
+
@import "objects.containers";
|
4
|
+
@import "objects.grid";
|
5
|
+
@import "objects.grid.responsive";
|
6
|
+
@import "objects.images";
|
7
|
+
@import "objects.panels";
|
8
|
+
@import "objects.media";
|
9
|
+
@import "objects.forms";
|
10
|
+
@import "objects.modals";
|
11
|
+
@import "objects.drawers";
|
12
|
+
@import "components.typography";
|
13
|
+
@import "components.badges";
|
14
|
+
@import "components.headings";
|
15
|
+
@import "components.addresses";
|
16
|
+
@import "components.tables";
|
17
|
+
@import "components.cards";
|
18
|
+
@import "components.buttons";
|
19
|
+
@import "components.links";
|
20
|
+
@import "components.lists";
|
21
|
+
@import "components.breadcrumbs";
|
22
|
+
@import "components.trees";
|
23
|
+
@import "components.tabs";
|
24
|
+
@import "components.inputs";
|
25
|
+
@import "components.input-groups";
|
26
|
+
@import "components.hints";
|
27
|
+
@import "components.toggles";
|
28
|
+
@import "components.tags";
|
29
|
+
@import "components.ranges";
|
30
|
+
@import "components.pagination";
|
31
|
+
@import "components.overlays";
|
32
|
+
@import "components.bubbles";
|
33
|
+
@import "components.tooltips";
|
34
|
+
@import "components.alerts";
|
35
|
+
@import "components.calendars";
|
36
|
+
@import "components.navs";
|
37
|
+
@import "components.progress";
|
38
|
+
@import "components.avatars";
|
39
|
+
@import "utilities.alignment";
|
40
|
+
@import "utilities.boxing";
|
41
|
+
@import "utilities.elevation";
|
42
|
+
@import "utilities.sizes";
|
43
|
+
@import "utilities.visibility";
|
@@ -0,0 +1,59 @@
|
|
1
|
+
@import "mixins/components.alerts";
|
2
|
+
|
3
|
+
.c-alerts {
|
4
|
+
display: block;
|
5
|
+
position: absolute;
|
6
|
+
width: $alerts-width;
|
7
|
+
max-height: 100%;
|
8
|
+
background-color: $alerts-background-color;
|
9
|
+
z-index: $alerts-z-index;
|
10
|
+
overflow-y: auto;
|
11
|
+
}
|
12
|
+
|
13
|
+
.c-alerts--topleft {
|
14
|
+
top: $alerts-margin;
|
15
|
+
left: $alerts-margin;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-alerts--topright {
|
19
|
+
top: $alerts-margin;
|
20
|
+
right: $alerts-margin;
|
21
|
+
}
|
22
|
+
|
23
|
+
.c-alerts--bottomleft {
|
24
|
+
bottom: 0;
|
25
|
+
left: $alerts-margin;
|
26
|
+
}
|
27
|
+
|
28
|
+
.c-alerts--bottomright {
|
29
|
+
right: $alerts-margin;
|
30
|
+
bottom: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
.c-alert {
|
34
|
+
@include alert-color;
|
35
|
+
position: relative;
|
36
|
+
margin: $alert-margin;
|
37
|
+
padding: $alert-padding;
|
38
|
+
border-radius: $alert-border-radius;
|
39
|
+
}
|
40
|
+
|
41
|
+
.c-alert--brand {
|
42
|
+
@include alert-color($alert-brand-background-color);
|
43
|
+
}
|
44
|
+
|
45
|
+
.c-alert--info {
|
46
|
+
@include alert-color($alert-info-background-color);
|
47
|
+
}
|
48
|
+
|
49
|
+
.c-alert--warning {
|
50
|
+
@include alert-color($alert-warning-background-color);
|
51
|
+
}
|
52
|
+
|
53
|
+
.c-alert--success {
|
54
|
+
@include alert-color($alert-success-background-color);
|
55
|
+
}
|
56
|
+
|
57
|
+
.c-alert--error {
|
58
|
+
@include alert-color($alert-error-background-color);
|
59
|
+
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-avatar {
|
4
|
+
display: inline-block;
|
5
|
+
position: relative;
|
6
|
+
width: $avatar-medium-size;
|
7
|
+
height: $avatar-medium-size;
|
8
|
+
margin: $avatar-margin;
|
9
|
+
border-radius: $avatar-img-border-radius;
|
10
|
+
background-color: $avatar-background-color;
|
11
|
+
color: $avatar-color;
|
12
|
+
}
|
13
|
+
|
14
|
+
.c-avatar[data-text]:after {
|
15
|
+
position: absolute;
|
16
|
+
top: 50%;
|
17
|
+
left: 50%;
|
18
|
+
transform: translate(-50%, -50%);
|
19
|
+
content: attr(data-text);
|
20
|
+
}
|
21
|
+
|
22
|
+
.c-avatar__img {
|
23
|
+
display: block;
|
24
|
+
width: 100%;
|
25
|
+
height: 100%;
|
26
|
+
border-radius: $avatar-img-border-radius;
|
27
|
+
overflow: hidden;
|
28
|
+
}
|
29
|
+
|
30
|
+
.c-avatar__img + .c-avatar__img {
|
31
|
+
position: absolute;
|
32
|
+
right: 0;
|
33
|
+
bottom: 0;
|
34
|
+
width: $avatar-inner-img-size;
|
35
|
+
height: $avatar-inner-img-size;
|
36
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
@import "mixins/components.badges";
|
2
|
+
|
3
|
+
.c-badge {
|
4
|
+
@include badge($badge-background-color, $badge-color, $badge-background-color);
|
5
|
+
display: inline-block;
|
6
|
+
margin: $badge-margin;
|
7
|
+
padding: $badge-padding;
|
8
|
+
border-radius: $badge-border-radius;
|
9
|
+
font-size: $badge-font-size;
|
10
|
+
font-weight: $badge-font-weight;
|
11
|
+
line-height: $badge-line-height;
|
12
|
+
|
13
|
+
&.c-badge--ghost {
|
14
|
+
@include badge($badge-ghost-background-color, $badge-ghost-color)
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-badge--rounded {
|
19
|
+
border-radius: $badge-border-radius-rounded;
|
20
|
+
}
|
21
|
+
|
22
|
+
.c-badge--brand {
|
23
|
+
@include badge($badge-brand-background-color, $badge-brand-color, $badge-brand-background-color);
|
24
|
+
|
25
|
+
&.c-badge--ghost {
|
26
|
+
@include badge($badge-ghost-brand-background-color, $badge-ghost-brand-color)
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.c-badge--info {
|
31
|
+
@include badge($badge-info-background-color, $badge-info-color, $badge-info-background-color);
|
32
|
+
|
33
|
+
&.c-badge--ghost {
|
34
|
+
@include badge($badge-ghost-info-background-color, $badge-ghost-info-color)
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.c-badge--warning {
|
39
|
+
@include badge($badge-warning-background-color, $badge-warning-color, $badge-warning-background-color);
|
40
|
+
|
41
|
+
&.c-badge--ghost {
|
42
|
+
@include badge($badge-ghost-warning-background-color, $badge-ghost-warning-color)
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.c-badge--success {
|
47
|
+
@include badge($badge-success-background-color, $badge-success-color, $badge-success-background-color);
|
48
|
+
|
49
|
+
&.c-badge--ghost {
|
50
|
+
@include badge($badge-ghost-success-background-color, $badge-ghost-success-color)
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.c-badge--error {
|
55
|
+
@include badge($badge-error-background-color, $badge-error-color, $badge-error-background-color);
|
56
|
+
|
57
|
+
&.c-badge--ghost {
|
58
|
+
@include badge($badge-ghost-error-background-color, $badge-ghost-error-color)
|
59
|
+
}
|
60
|
+
}
|