activeadmin_blaze_theme 0.7.0 → 0.7.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +37 -7
- 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 +1 -1
- 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 +2 -2
- metadata +64 -381
- data/.github/workflows/specs.yml +0 -26
- 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: f1b6d87b900c42ffc7a7b4a7a33ae6acaf67e53c34ef574774016549cbef66c2
|
4
|
+
data.tar.gz: 42889705731dc8f37c37af61bd5f88ef7ad819ea610c7045dd5c040d4ea924d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab3212dc089edd18f07ecb58cda6b6df0a3996df2aec511e0eb7340dccc7e0a7f31a8de7cd5ebb2b89927fbbcbb29b265dffe5ea45fc0f8bb336626e2413c139
|
7
|
+
data.tar.gz: 02d14553a44b076631ab4a14d08a76dc806a3068abc68ad7fd7e76c17c835fb0e8360ea5adcd2b0fcdd122fe7f7bca635e512624d88285607fb2a97003fac0a2
|
data/README.md
CHANGED
@@ -1,9 +1,13 @@
|
|
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)
|
3
|
+
[![gem downloads](https://badgen.net/rubygems/dt/activeadmin_blaze_theme)](https://rubygems.org/gems/activeadmin_blaze_theme)
|
4
|
+
[![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)
|
5
|
+
[![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
6
|
|
4
|
-
A theme for Active Admin
|
7
|
+
A theme for Active Admin based on [Blaze CSS](http://blazecss.com) 3.x
|
5
8
|
|
6
9
|
Features:
|
10
|
+
|
7
11
|
- CSS only theme with clean UI
|
8
12
|
- compact nested forms
|
9
13
|
- [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
|
@@ -12,18 +16,22 @@ Features:
|
|
12
16
|
|
13
17
|
See some [screenshots](#screenshots).
|
14
18
|
|
19
|
+
Please :star: if you like it.
|
20
|
+
|
15
21
|
## Install
|
16
|
-
- Add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
|
17
22
|
|
18
|
-
|
23
|
+
First, add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
|
24
|
+
|
25
|
+
Then, if you installed Active Admin **without Webpacker** support (so using Sprockets):
|
19
26
|
|
27
|
+
- Add a SASS/SCSS gem to your Gemfile (ex. `gem 'sassc'`)
|
20
28
|
- Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
|
21
29
|
|
22
30
|
```scss
|
23
31
|
@import "activeadmin_blaze_theme/theme";
|
24
32
|
```
|
25
33
|
|
26
|
-
|
34
|
+
Otherwise, **with Webpacker**:
|
27
35
|
|
28
36
|
- Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
|
29
37
|
- Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
|
@@ -32,10 +40,21 @@ If you are using Webpacker:
|
|
32
40
|
require('activeadmin_blaze_theme');
|
33
41
|
```
|
34
42
|
|
35
|
-
-
|
43
|
+
- Another option is appending to _app/javascript/stylesheets/active_admin.scss_ (in this case the JS require line is not needed):
|
44
|
+
|
45
|
+
```scss
|
46
|
+
// ...
|
47
|
+
// optionally add custom colors variables here
|
48
|
+
@import "~activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme";
|
49
|
+
```
|
50
|
+
|
51
|
+
- 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
52
|
|
37
53
|
## Customize
|
38
|
-
|
54
|
+
|
55
|
+
- Colors customization is available using some Sass variables;
|
56
|
+
- With Sprockets: you need to update your Active Admin styles (before **activeadmin_blaze_theme/theme** import line);
|
57
|
+
- With Webpacker: you need to import the theme using the Sass/Scss option as described above.
|
39
58
|
|
40
59
|
```scss
|
41
60
|
// blaze colors
|
@@ -104,6 +123,7 @@ body.active_admin .cke {
|
|
104
123
|
## Custom fields / components
|
105
124
|
|
106
125
|
### Toggle
|
126
|
+
|
107
127
|
In *form* \ *inputs* block:
|
108
128
|
|
109
129
|
```ruby
|
@@ -125,6 +145,7 @@ f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }
|
|
125
145
|
```
|
126
146
|
|
127
147
|
### Sidebar menu
|
148
|
+
|
128
149
|
A sidebar menu (*priority* option permit to put the sidebar above the filters):
|
129
150
|
|
130
151
|
```ruby
|
@@ -144,6 +165,7 @@ end
|
|
144
165
|
```
|
145
166
|
|
146
167
|
### Accordion
|
168
|
+
|
147
169
|
An accordion group in a form:
|
148
170
|
|
149
171
|
```ruby
|
@@ -164,6 +186,7 @@ end
|
|
164
186
|
```
|
165
187
|
|
166
188
|
### Readonly field
|
189
|
+
|
167
190
|
Some readonly fields in a form:
|
168
191
|
|
169
192
|
```ruby
|
@@ -192,6 +215,7 @@ end
|
|
192
215
|
```
|
193
216
|
|
194
217
|
## Blaze widgets
|
218
|
+
|
195
219
|
See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
|
196
220
|
|
197
221
|
Badge example:
|
@@ -215,9 +239,11 @@ end
|
|
215
239
|
```
|
216
240
|
|
217
241
|
## Notes
|
242
|
+
|
218
243
|
- 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
244
|
|
220
245
|
## Screenshots
|
246
|
+
|
221
247
|
Index:
|
222
248
|
![index](extra/index.png)
|
223
249
|
|
@@ -225,12 +251,16 @@ Edit:
|
|
225
251
|
![edit](extra/edit.png)
|
226
252
|
|
227
253
|
## Do you like it? Star it!
|
254
|
+
|
228
255
|
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
256
|
|
230
257
|
Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
|
231
258
|
|
232
259
|
## Contributors
|
260
|
+
|
233
261
|
- [Mattia Roccoberton](http://blocknot.es): author
|
262
|
+
- The good guys that opened issues and pull requests from time to time
|
234
263
|
|
235
264
|
## License
|
265
|
+
|
236
266
|
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
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-breadcrumbs {
|
4
|
+
display: block;
|
5
|
+
margin: $breadcrumb-margin;
|
6
|
+
padding: $breadcrumb-padding;
|
7
|
+
list-style: none;
|
8
|
+
}
|
9
|
+
|
10
|
+
.c-breadcrumbs__crumb {
|
11
|
+
display: inline-block;
|
12
|
+
width: auto;
|
13
|
+
padding: $breadcrumb-crumb-padding;
|
14
|
+
|
15
|
+
&:not(:last-child):after {
|
16
|
+
padding: $breadcrumb-crumb-separator-padding;
|
17
|
+
color: $breadcrumb-crumb-separator-color;
|
18
|
+
content: $breadcrumb-crumb-separator-content;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
@import "mixins/settings.global";
|
2
|
+
|
3
|
+
.c-bubble {
|
4
|
+
display: inline-block;
|
5
|
+
position: relative;
|
6
|
+
padding: $bubble-padding;
|
7
|
+
border-radius: $bubble-border-radius;
|
8
|
+
background-color: $bubble-background-color;
|
9
|
+
color: $bubble-color;
|
10
|
+
text-align: $bubble-text-align;
|
11
|
+
white-space: nowrap;
|
12
|
+
|
13
|
+
&:after {
|
14
|
+
display: block;
|
15
|
+
position: absolute;
|
16
|
+
width: 0;
|
17
|
+
height: 0;
|
18
|
+
border: $bubble-arrow-width solid transparent;
|
19
|
+
content: "";
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.c-bubble--top:after {
|
24
|
+
bottom: -($bubble-arrow-width * 2);
|
25
|
+
left: 50%;
|
26
|
+
transform: translateX(-50%);
|
27
|
+
border-top-color: $bubble-background-color;
|
28
|
+
}
|
29
|
+
|
30
|
+
.c-bubble--right:after {
|
31
|
+
top: 50%;
|
32
|
+
left: -($bubble-arrow-width * 2);
|
33
|
+
transform: translateY(-50%);
|
34
|
+
border-right-color: $bubble-background-color;
|
35
|
+
}
|
36
|
+
|
37
|
+
.c-bubble--bottom:after {
|
38
|
+
top: -($bubble-arrow-width * 2);
|
39
|
+
left: 50%;
|
40
|
+
transform: translateX(-50%);
|
41
|
+
border-bottom-color: $bubble-background-color;
|
42
|
+
}
|
43
|
+
|
44
|
+
.c-bubble--left:after {
|
45
|
+
top: 50%;
|
46
|
+
right: -($bubble-arrow-width * 2);
|
47
|
+
transform: translateY(-50%);
|
48
|
+
border-left-color: $bubble-background-color;
|
49
|
+
}
|
@@ -0,0 +1,77 @@
|
|
1
|
+
@import "mixins/components.buttons";
|
2
|
+
|
3
|
+
.c-button {
|
4
|
+
@include button;
|
5
|
+
}
|
6
|
+
|
7
|
+
.c-button--close {
|
8
|
+
@include button-color(transparent, inherit);
|
9
|
+
position: absolute;
|
10
|
+
right: $spacing-small;
|
11
|
+
padding: 0;
|
12
|
+
outline: 0;
|
13
|
+
font-size: $button-close-font-size;
|
14
|
+
font-weight: $button-close-font-weight;
|
15
|
+
line-height: 1;
|
16
|
+
}
|
17
|
+
|
18
|
+
.c-button--block {
|
19
|
+
display: inline-block;
|
20
|
+
width: 100%;
|
21
|
+
}
|
22
|
+
|
23
|
+
.c-button--rounded {
|
24
|
+
border-radius: $button-rounded-border-radius;
|
25
|
+
}
|
26
|
+
|
27
|
+
.c-button--brand {
|
28
|
+
@include button-color($button-brand-background-color, $button-brand-color);
|
29
|
+
}
|
30
|
+
|
31
|
+
.c-button--info {
|
32
|
+
@include button-color($button-info-background-color, $button-info-color);
|
33
|
+
}
|
34
|
+
|
35
|
+
.c-button--warning {
|
36
|
+
@include button-color($button-warning-background-color, $button-warning-color);
|
37
|
+
}
|
38
|
+
|
39
|
+
.c-button--success {
|
40
|
+
@include button-color($button-success-background-color, $button-success-color);
|
41
|
+
}
|
42
|
+
|
43
|
+
.c-button--error {
|
44
|
+
@include button-color($button-error-background-color, $button-error-color);
|
45
|
+
}
|
46
|
+
|
47
|
+
.c-button--ghost {
|
48
|
+
@include button-ghost;
|
49
|
+
}
|
50
|
+
|
51
|
+
.c-button--ghost-brand {
|
52
|
+
@include button-ghost($button-ghost-brand-color, $button-ghost-brand-hover-color);
|
53
|
+
}
|
54
|
+
|
55
|
+
.c-button--ghost-info {
|
56
|
+
@include button-ghost($button-ghost-info-color, $button-ghost-info-hover-color);
|
57
|
+
}
|
58
|
+
|
59
|
+
.c-button--ghost-warning {
|
60
|
+
@include button-ghost($button-ghost-warning-color, $button-ghost-warning-hover-color);
|
61
|
+
}
|
62
|
+
|
63
|
+
.c-button--ghost-success {
|
64
|
+
@include button-ghost($button-ghost-success-color, $button-ghost-success-hover-color);
|
65
|
+
}
|
66
|
+
|
67
|
+
.c-button--ghost-error {
|
68
|
+
@include button-ghost($button-ghost-error-color, $button-ghost-error-hover-color);
|
69
|
+
}
|
70
|
+
|
71
|
+
.c-button__icon-left {
|
72
|
+
padding-right: $button-icon-left-padding;
|
73
|
+
}
|
74
|
+
|
75
|
+
.c-button__icon-right {
|
76
|
+
padding-left: $button-icon-right-padding;
|
77
|
+
}
|