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.
Files changed (206) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -5
  3. data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +1 -0
  4. data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +3 -0
  5. data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +1 -1
  6. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +30 -0
  7. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +43 -49
  8. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +12 -0
  9. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +59 -0
  10. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +36 -0
  11. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +60 -0
  12. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +20 -0
  13. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +49 -0
  14. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +77 -0
  15. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +69 -0
  16. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +213 -0
  17. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +14 -0
  18. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +27 -0
  19. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +163 -0
  20. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +135 -0
  21. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +31 -0
  22. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +60 -0
  23. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +126 -0
  24. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +33 -0
  25. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +42 -0
  26. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +51 -0
  27. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +114 -0
  28. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +88 -0
  29. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +72 -0
  30. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +42 -0
  31. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +74 -0
  32. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_components.tooltips.scss → components.tooltips.scss} +30 -28
  33. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +47 -0
  34. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +95 -0
  35. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +13 -0
  36. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +6 -0
  37. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +8 -0
  38. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +43 -82
  39. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +40 -2
  40. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +22 -0
  41. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +10 -0
  42. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +29 -0
  43. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +89 -0
  44. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +5 -0
  45. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +6 -0
  46. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +25 -0
  47. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +10 -0
  48. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +10 -38
  49. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +864 -0
  50. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +34 -13
  51. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +125 -0
  52. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +46 -6
  53. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +29 -0
  54. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +88 -0
  55. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +25 -0
  56. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.responsive.scss → objects.grid.responsive.scss} +14 -14
  57. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.grid.scss → objects.grid.scss} +2 -2
  58. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.images.scss → objects.images.scss} +1 -1
  59. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.media.scss → objects.media.scss} +3 -3
  60. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +58 -0
  61. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_objects.panels.scss → objects.panels.scss} +11 -1
  62. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +7 -0
  63. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{_utilities.alignment.scss → utilities.alignment.scss} +1 -1
  64. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +101 -0
  65. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +19 -0
  66. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +25 -0
  67. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.visibility.scss +45 -0
  68. data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +2 -2
  69. data/index.js +2 -0
  70. data/lib/activeadmin/views/activeadmin_form.rb +1 -1
  71. data/lib/activeadmin_blaze_theme/version.rb +1 -1
  72. data/lib/activeadmin_blaze_theme.rb +3 -3
  73. data/package.json +13 -0
  74. metadata +65 -367
  75. data/.circleci/config.yml +0 -33
  76. data/.gitignore +0 -13
  77. data/.rspec +0 -2
  78. data/.rubocop.yml +0 -27
  79. data/Gemfile +0 -5
  80. data/Rakefile +0 -16
  81. data/activeadmin_blaze_theme.gemspec +0 -35
  82. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.addresses.scss +0 -11
  83. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.alerts.scss +0 -78
  84. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.avatars.scss +0 -38
  85. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.back-to-top.scss +0 -17
  86. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.badges.scss +0 -71
  87. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.breadcrumbs.scss +0 -24
  88. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss +0 -91
  89. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.calendars.scss +0 -80
  90. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.cards.scss +0 -195
  91. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.divider.scss +0 -39
  92. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.file-upload.scss +0 -24
  93. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.github-buttons.scss +0 -131
  94. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.headings.scss +0 -12
  95. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.hints.scss +0 -21
  96. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.input-groups.scss +0 -164
  97. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.inputs.scss +0 -128
  98. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.links.scss +0 -72
  99. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.lists.scss +0 -64
  100. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.navs.scss +0 -83
  101. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.overlays.scss +0 -23
  102. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.pagination.scss +0 -31
  103. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.progress.scss +0 -83
  104. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.ranges.scss +0 -176
  105. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tables.scss +0 -86
  106. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tabs.scss +0 -68
  107. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tags.scss +0 -39
  108. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.timelines.scss +0 -113
  109. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.toggles.scss +0 -89
  110. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.trees.scss +0 -48
  111. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_generics.global.scss +0 -17
  112. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.containers.scss +0 -37
  113. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.drawers.scss +0 -91
  114. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.forms.scss +0 -25
  115. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.modals.scss +0 -70
  116. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.boxing.scss +0 -111
  117. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.elevation.scss +0 -17
  118. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.radius.scss +0 -11
  119. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.sizes.scss +0 -23
  120. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.typography.scss +0 -160
  121. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.visibility.scss +0 -54
  122. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_variables.scss +0 -93
  123. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.states.scss +0 -7
  124. data/bin/rails +0 -29
  125. data/bin/rake +0 -29
  126. data/bin/rspec +0 -29
  127. data/bin/rubocop +0 -29
  128. data/extra/edit.png +0 -0
  129. data/extra/index.png +0 -0
  130. data/spec/dummy/.ruby-version +0 -1
  131. data/spec/dummy/.tool-versions +0 -1
  132. data/spec/dummy/Rakefile +0 -6
  133. data/spec/dummy/app/admin/authors.rb +0 -57
  134. data/spec/dummy/app/admin/dashboard.rb +0 -32
  135. data/spec/dummy/app/admin/posts.rb +0 -50
  136. data/spec/dummy/app/admin/tags.rb +0 -4
  137. data/spec/dummy/app/assets/config/manifest.js +0 -3
  138. data/spec/dummy/app/assets/images/.keep +0 -0
  139. data/spec/dummy/app/assets/javascripts/active_admin.js +0 -1
  140. data/spec/dummy/app/assets/stylesheets/active_admin.scss +0 -4
  141. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  142. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  143. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  144. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  145. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  146. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  147. data/spec/dummy/app/javascript/packs/application.js +0 -15
  148. data/spec/dummy/app/jobs/application_job.rb +0 -7
  149. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  150. data/spec/dummy/app/models/application_record.rb +0 -7
  151. data/spec/dummy/app/models/author.rb +0 -26
  152. data/spec/dummy/app/models/concerns/.keep +0 -0
  153. data/spec/dummy/app/models/post.rb +0 -25
  154. data/spec/dummy/app/models/post_tag.rb +0 -9
  155. data/spec/dummy/app/models/profile.rb +0 -9
  156. data/spec/dummy/app/models/tag.rb +0 -6
  157. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  158. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  159. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  160. data/spec/dummy/bin/rails +0 -4
  161. data/spec/dummy/bin/rake +0 -4
  162. data/spec/dummy/bin/setup +0 -33
  163. data/spec/dummy/config/application.rb +0 -18
  164. data/spec/dummy/config/boot.rb +0 -5
  165. data/spec/dummy/config/cable.yml +0 -10
  166. data/spec/dummy/config/database.yml +0 -8
  167. data/spec/dummy/config/environment.rb +0 -5
  168. data/spec/dummy/config/environments/development.rb +0 -62
  169. data/spec/dummy/config/environments/production.rb +0 -112
  170. data/spec/dummy/config/environments/test.rb +0 -49
  171. data/spec/dummy/config/initializers/active_admin.rb +0 -335
  172. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  173. data/spec/dummy/config/initializers/assets.rb +0 -12
  174. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  175. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  176. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  177. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  178. data/spec/dummy/config/initializers/inflections.rb +0 -16
  179. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  180. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  181. data/spec/dummy/config/locales/en.yml +0 -33
  182. data/spec/dummy/config/puma.rb +0 -38
  183. data/spec/dummy/config/routes.rb +0 -3
  184. data/spec/dummy/config/spring.rb +0 -6
  185. data/spec/dummy/config/storage.yml +0 -7
  186. data/spec/dummy/config.ru +0 -5
  187. data/spec/dummy/db/migrate/20170806125915_create_active_storage_tables.active_storage.rb +0 -27
  188. data/spec/dummy/db/migrate/20180101010101_create_active_admin_comments.rb +0 -16
  189. data/spec/dummy/db/migrate/20180607053251_create_authors.rb +0 -13
  190. data/spec/dummy/db/migrate/20180607053254_create_profiles.rb +0 -12
  191. data/spec/dummy/db/migrate/20180607053255_create_tags.rb +0 -11
  192. data/spec/dummy/db/migrate/20180607053257_create_post_tags.rb +0 -12
  193. data/spec/dummy/db/migrate/20180607053739_create_posts.rb +0 -17
  194. data/spec/dummy/db/schema.rb +0 -99
  195. data/spec/dummy/lib/assets/.keep +0 -0
  196. data/spec/dummy/public/404.html +0 -67
  197. data/spec/dummy/public/422.html +0 -67
  198. data/spec/dummy/public/500.html +0 -66
  199. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  200. data/spec/dummy/public/apple-touch-icon.png +0 -0
  201. data/spec/dummy/public/favicon.ico +0 -0
  202. data/spec/rails_helper.rb +0 -36
  203. data/spec/spec_helper.rb +0 -20
  204. data/spec/support/capybara.rb +0 -3
  205. data/spec/support/drivers.rb +0 -7
  206. data/spec/system/theme_spec.rb +0 -15
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 518aa0e49e4ebfa6b2718b497a6683990494c424adaf549e1156944c052be689
4
- data.tar.gz: 350b4867688dc482374c10553de9ea6fb72edab920fa5e081e9f3a2f7bc12632
3
+ metadata.gz: 569d10c9b72f7056d613b35872c3905779ad2b511ff93bca93383e9addc8b906
4
+ data.tar.gz: 7fe4c32ac73e0d7a1067b04a27bc00d6ed8310005bb5bb0b00493218e2791410
5
5
  SHA512:
6
- metadata.gz: b3927501b67e3a8c570f4c3ee9f388df1976c4d7bfb3ae8363679f2a22b9ea0278cbac26ef37863cfc55e069d46ed5bda70673948b60add087de73e78dfb00ad
7
- data.tar.gz: e7b31d8a52188434a1612f4554da805b91d52f7cd2506443c456470434de55a0878524c050bc3f1741055309c76d1589c74ba6a1e06acf79d07655d0309d9e62
6
+ metadata.gz: 93606aa0b70e5d2eedbea16d08c95380861afc613c28067dbb6837d83b61e67635fd8aa3493907f9d058446a5204f650ed68623fae3cfe1fbd3d4be6dc4b68ed
7
+ data.tar.gz: d4f5eb3b15f5d87e16b7d15d32f58f66353c715fbd29344bf51d4c501820ac69265ac1491902be8ba572ff135aa4a4eecc7ce16a6e2e8e4714f4bf2f5ce2321c
data/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # Active Admin Blaze Theme
2
- [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme)
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 using [Blaze CSS](http://blazecss.com/) 9.x.
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
- - Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
17
- - Execute bundle
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
- - To change colors add to your Active Admin styles (before **activeadmin_blaze_theme/theme** import):
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).
@@ -7,6 +7,7 @@ body.active_admin {
7
7
  .panel {
8
8
  @extend .c-card;
9
9
  @extend .u-high;
10
+ background: $bg-form1;
10
11
  > h3 {
11
12
  @extend .c-card__item;
12
13
  @extend .c-card__item--brand;
@@ -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
  }
@@ -74,7 +74,7 @@ body.active_admin {
74
74
  }
75
75
  }
76
76
  .index_as_table {
77
- overflow-x: scroll;
77
+ overflow-x: auto;
78
78
  }
79
79
  .panel_contents table tr:last-child {
80
80
  > td, > th {
@@ -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
- // @blaze/css - version: 9.2.0
2
- @import 'variables';
3
- @import 'generics.global';
4
- @import 'components.addresses';
5
- @import 'components.alerts';
6
- @import 'components.avatars';
7
- @import 'components.back-to-top';
8
- @import 'components.badges';
9
- @import 'components.breadcrumbs';
10
- @import 'components.buttons';
11
- @import 'components.calendars';
12
- @import 'components.cards';
13
- @import 'components.divider';
14
- @import 'components.github-buttons';
15
- @import 'components.file-upload';
16
- @import 'components.headings';
17
- @import 'components.hints';
18
- @import 'components.inputs';
19
- @import 'components.input-groups';
20
- @import 'components.links';
21
- @import 'components.lists';
22
- @import 'components.overlays';
23
- @import 'components.navs';
24
- @import 'components.pagination';
25
- @import 'components.progress';
26
- @import 'components.ranges';
27
- @import 'components.tabs';
28
- @import 'components.tables';
29
- @import 'components.tags';
30
- @import 'components.timelines';
31
- @import 'components.toggles';
32
- @import 'components.tooltips';
33
- @import 'components.trees';
34
- @import 'objects.containers';
35
- @import 'objects.grid';
36
- @import 'objects.grid.responsive';
37
- @import 'objects.images';
38
- @import 'objects.panels';
39
- @import 'objects.media';
40
- @import 'objects.forms';
41
- @import 'objects.modals';
42
- @import 'objects.drawers';
43
- @import 'utilities.alignment';
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,12 @@
1
+ @import "mixins/settings.global";
2
+ @import "mixins/components.typography";
3
+
4
+ .c-address {
5
+ @include paragraph;
6
+ font-style: $address-font-style;
7
+ }
8
+
9
+ .c-address__heading {
10
+ display: block;
11
+ font-weight: $address-heading-font-weight;
12
+ }
@@ -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
+ }