activeadmin_blaze_theme 0.5.6 → 0.5.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 476c0034a1998c815337d243602c8a117c91141e
4
- data.tar.gz: 70688d619ad55a089aff9a9add73e1986051122d
2
+ SHA256:
3
+ metadata.gz: 68d7d7b562bdffd55efd278288f3391cae039c58cfb277c87918e39f86e6d9db
4
+ data.tar.gz: 49e68e847645f14004ca6d9405fc1adc84a959611b3c9d7062856de196d0b49c
5
5
  SHA512:
6
- metadata.gz: df3fd6bdc6ddbe8450f6ec308f203742bde560be53c274b76351bcef2df5c449af42868b905e2ac9ff21af5df6b3710bc14d02ab7259d3c05ace4c16d6c21894
7
- data.tar.gz: f37587dbd2443d1635e61f6a822a6947af06e95b42415812b645d38796262d6eeda2055496ff8fb242a9924bd46668338cf97259443821bad8cb0ad46181020e
6
+ metadata.gz: a4ab0ae384a9b3787b09244c794aa4ef4ce0e3a93753983028bb7835f591eb7b4664be9264c65c09c622686093a30c0c3bb74d0c13a44b91cfbc6ffb84c39e2f
7
+ data.tar.gz: '09b8619df3a899802d293ce7ae36ef6c029507e80a188b7a46bf5ba36bce76c2454ec2817280d6e22ab5d154effbb371ac0889d61378024b199e7a55dc3d6b6a'
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  _misc/
2
-
2
+ Gemfile.lock
3
3
  *.orig
4
+
data/README.md CHANGED
@@ -1,30 +1,21 @@
1
1
  # Active Admin Blaze Theme [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme)
2
2
 
3
- A theme for Active Admin using [Blaze CSS](http://blazecss.com/)
3
+ A theme for Active Admin using [Blaze CSS](http://blazecss.com/).
4
4
 
5
5
  Features:
6
-
7
6
  - CSS only theme with clean UI
8
7
  - compact nested forms
9
- - [customizable](#customize): colors, sidebar position, scroll on cells
10
- - custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field)
8
+ - [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
9
+ - custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field), [Styled table](#styled-table)
11
10
  - Blaze CSS [widgets](#blaze-widgets)
12
11
 
13
12
  ## Install
14
-
15
- - Add to your Gemfile:
16
-
17
- `gem 'activeadmin_blaze_theme'`
18
-
13
+ - Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
19
14
  - Execute bundle
20
-
21
- - Add at the end of your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
22
-
23
- `@import "activeadmin_blaze_theme/theme";`
15
+ - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): `@import "activeadmin_blaze_theme/theme";`
24
16
 
25
17
  ## Customize
26
-
27
- - To change colors add before your ActiveAdmin styles (_app/assets/stylesheets/active_admin.scss_):
18
+ - To change colors add before your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
28
19
 
29
20
  ```css
30
21
  // blaze colors
@@ -58,7 +49,7 @@ $height-titlebar: 38px !default;
58
49
  $text-shadow: #000 !default;
59
50
  ```
60
51
 
61
- - To move sidebar on the left add to your ActiveAdmin styles (after blaze theme import):
52
+ - To move sidebar on the left add to your Active Admin styles (after blaze theme import):
62
53
 
63
54
  ```css
64
55
  #active_admin_content.with_sidebar {
@@ -66,6 +57,14 @@ $text-shadow: #000 !default;
66
57
  }
67
58
  ```
68
59
 
60
+ - Squared style (no rounded borders):
61
+
62
+ ```css
63
+ #active_admin_content, .active_admin #title_bar {
64
+ @extend .no_rounded;
65
+ }
66
+ ```
67
+
69
68
  - More options:
70
69
 
71
70
  ```css
@@ -85,7 +84,6 @@ body.active_admin .cke {
85
84
  ## Custom fields / components
86
85
 
87
86
  ### Toggle
88
-
89
87
  In *form* \ *inputs* block:
90
88
 
91
89
  `f.input :boolean, as: :blaze_toggle`
@@ -101,7 +99,6 @@ Standard checkbox with label on the left:
101
99
  `f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }`
102
100
 
103
101
  ### Sidebar menu
104
-
105
102
  A sidebar menu (*priority* option permit to put the sidebar above the filters):
106
103
 
107
104
  ```rb
@@ -123,7 +120,6 @@ end
123
120
  ![menu](extra/screenshot4.jpg)
124
121
 
125
122
  ### Accordion
126
-
127
123
  An accordion group in a form:
128
124
 
129
125
  ```rb
@@ -144,7 +140,6 @@ end
144
140
  ```
145
141
 
146
142
  ### Readonly field
147
-
148
143
  Some readonly fields in a form:
149
144
 
150
145
  `f.readonly :position`
@@ -155,9 +150,17 @@ Some readonly fields in a form:
155
150
 
156
151
  `f.readonly nil, 'Value only, no label'`
157
152
 
158
- ## Blaze widgets
153
+ ### Styled table
154
+ Table styles:
155
+
156
+ ```ruby
157
+ table_for User.all, class: 'blaze-table table-rows table-striped' do
158
+ # ...
159
+ end
160
+ ```
159
161
 
160
- See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
162
+ ## Blaze widgets
163
+ See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
161
164
 
162
165
  Badge example:
163
166
 
@@ -179,8 +182,10 @@ div class: 'c-progress' do
179
182
  end
180
183
  ```
181
184
 
182
- ## Screenshots
185
+ ## Notes
186
+ - 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)
183
187
 
188
+ ## Screenshots
184
189
  Index:
185
190
 
186
191
  ![index](extra/screenshot1.jpg)
@@ -194,13 +199,12 @@ Show - sidebar on the left:
194
199
  ![edit](extra/screenshot3.jpg)
195
200
 
196
201
  ## Do you like it? Star it!
197
-
198
202
  If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
199
203
 
200
- ## Contributors
204
+ Take a look at [other ActiveAdmin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) that I made if you are curious.
201
205
 
202
- - [Mattia Roccoberton](http://blocknot.es) - creator, maintainer
206
+ ## Contributors
207
+ - [Mattia Roccoberton](http://blocknot.es): author
203
208
 
204
209
  ## License
205
-
206
- [MIT](LICENSE.txt)
210
+ The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
@@ -1,22 +1,33 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'activeadmin_blaze_theme/version'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
- spec.name = "activeadmin_blaze_theme"
8
+ spec.name = 'activeadmin_blaze_theme'
8
9
  spec.version = ActiveAdminBlazeTheme::VERSION
9
- spec.authors = ["Mattia Roccoberton"]
10
- spec.email = ["mat@blocknot.es"]
11
- spec.summary = "ActiveAdmin Blaze Theme"
12
- spec.description = "An ActiveAdmin theme which use Blaze CSS UI toolkit"
13
- spec.homepage = "https://github.com/blocknotes/activeadmin_blaze_theme"
14
- spec.license = "MIT"
10
+ spec.authors = ['Mattia Roccoberton']
11
+ spec.email = ['mat@blocknot.es']
12
+ spec.summary = 'ActiveAdmin Blaze Theme'
13
+ spec.description = 'An ActiveAdmin theme which use Blaze CSS UI toolkit'
14
+ spec.homepage = 'https://github.com/blocknotes/activeadmin_blaze_theme'
15
+ spec.license = 'MIT'
15
16
 
16
17
  spec.files = `git ls-files -z`.split("\x0")
17
18
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
- spec.require_paths = ["lib"]
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_runtime_dependency 'activeadmin', '~> 2.0'
20
23
 
21
- spec.add_runtime_dependency 'activeadmin', '~> 1.0'
24
+ spec.add_development_dependency 'activestorage', '~> 6.0.3.2'
25
+ spec.add_development_dependency 'capybara', '~> 3.33.0'
26
+ spec.add_development_dependency 'pry', '~> 0.13.1'
27
+ spec.add_development_dependency 'puma', '~> 4.3.5'
28
+ spec.add_development_dependency 'rspec_junit_formatter', '~> 0.4.1'
29
+ spec.add_development_dependency 'rspec-rails', '~> 4.0.1'
30
+ spec.add_development_dependency 'rubocop', '~> 0.90.0'
31
+ spec.add_development_dependency 'selenium-webdriver', '~> 3.142.7'
32
+ spec.add_development_dependency 'sqlite3', '~> 1.4.2'
22
33
  end
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Generated by IcoMoon</metadata>
5
+ <defs>
6
+ <font id="icomoon" horiz-adv-x="1024">
7
+ <font-face units-per-em="1024" ascent="960" descent="-64" />
8
+ <missing-glyph horiz-adv-x="1024" />
9
+ <glyph unicode="&#x20;" horiz-adv-x="512" d="" />
10
+ <glyph unicode="&#xe905;" glyph-name="pencil" d="M864 960c88.364 0 160-71.634 160-160 0-36.020-11.91-69.258-32-96l-64-64-224 224 64 64c26.742 20.090 59.978 32 96 32zM64 224l-64-288 288 64 592 592-224 224-592-592zM715.578 596.422l-448-448-55.156 55.156 448 448 55.156-55.156z" />
11
+ <glyph unicode="&#xe926;" glyph-name="file-text2" d="M917.806 730.924c-22.212 30.292-53.174 65.7-87.178 99.704s-69.412 64.964-99.704 87.178c-51.574 37.82-76.592 42.194-90.924 42.194h-496c-44.112 0-80-35.888-80-80v-864c0-44.112 35.888-80 80-80h736c44.112 0 80 35.888 80 80v624c0 14.332-4.372 39.35-42.194 90.924zM785.374 785.374c30.7-30.7 54.8-58.398 72.58-81.374h-153.954v153.946c22.984-17.78 50.678-41.878 81.374-72.572zM896 16c0-8.672-7.328-16-16-16h-736c-8.672 0-16 7.328-16 16v864c0 8.672 7.328 16 16 16 0 0 495.956 0.002 496 0v-224c0-17.672 14.326-32 32-32h224v-624zM736 128h-448c-17.672 0-32 14.326-32 32s14.328 32 32 32h448c17.674 0 32-14.326 32-32s-14.326-32-32-32zM736 256h-448c-17.672 0-32 14.326-32 32s14.328 32 32 32h448c17.674 0 32-14.326 32-32s-14.326-32-32-32zM736 384h-448c-17.672 0-32 14.326-32 32s14.328 32 32 32h448c17.674 0 32-14.326 32-32s-14.326-32-32-32z" />
12
+ <glyph unicode="&#xe930;" glyph-name="folder-open" d="M832 0l192 512h-832l-192-512zM128 576l-128-576v832h288l128-128h416v-128z" />
13
+ <glyph unicode="&#xe935;" glyph-name="price-tag" d="M976 960h-384c-26.4 0-63.274-15.274-81.942-33.942l-476.116-476.116c-18.668-18.668-18.668-49.214 0-67.882l412.118-412.118c18.668-18.668 49.214-18.668 67.882 0l476.118 476.118c18.666 18.666 33.94 55.54 33.94 81.94v384c0 26.4-21.6 48-48 48zM736 576c-53.020 0-96 42.98-96 96s42.98 96 96 96 96-42.98 96-96-42.98-96-96-96z" />
14
+ <glyph unicode="&#xe962;" glyph-name="floppy-disk" d="M896 960h-896v-1024h1024v896l-128 128zM512 832h128v-256h-128v256zM896 64h-768v768h64v-320h576v320h74.978l53.022-53.018v-714.982z" />
15
+ <glyph unicode="&#xe986;" glyph-name="search" d="M992.262 88.604l-242.552 206.294c-25.074 22.566-51.89 32.926-73.552 31.926 57.256 67.068 91.842 154.078 91.842 249.176 0 212.078-171.922 384-384 384-212.076 0-384-171.922-384-384s171.922-384 384-384c95.098 0 182.108 34.586 249.176 91.844-1-21.662 9.36-48.478 31.926-73.552l206.294-242.552c35.322-39.246 93.022-42.554 128.22-7.356s31.892 92.898-7.354 128.22zM384 320c-141.384 0-256 114.616-256 256s114.616 256 256 256 256-114.616 256-256-114.614-256-256-256z" />
16
+ <glyph unicode="&#xe995;" glyph-name="cogs" d="M363.722 237.948l41.298 57.816-45.254 45.256-57.818-41.296c-10.722 5.994-22.204 10.774-34.266 14.192l-11.682 70.084h-64l-11.68-70.086c-12.062-3.418-23.544-8.198-34.266-14.192l-57.818 41.298-45.256-45.256 41.298-57.816c-5.994-10.72-10.774-22.206-14.192-34.266l-70.086-11.682v-64l70.086-11.682c3.418-12.060 8.198-23.544 14.192-34.266l-41.298-57.816 45.254-45.256 57.818 41.296c10.722-5.994 22.204-10.774 34.266-14.192l11.682-70.084h64l11.68 70.086c12.062 3.418 23.544 8.198 34.266 14.192l57.818-41.296 45.254 45.256-41.298 57.816c5.994 10.72 10.774 22.206 14.192 34.266l70.088 11.68v64l-70.086 11.682c-3.418 12.060-8.198 23.544-14.192 34.266zM224 96c-35.348 0-64 28.654-64 64s28.652 64 64 64 64-28.654 64-64-28.652-64-64-64zM1024 576v64l-67.382 12.25c-1.242 8.046-2.832 15.978-4.724 23.79l57.558 37.1-24.492 59.128-66.944-14.468c-4.214 6.91-8.726 13.62-13.492 20.13l39.006 56.342-45.256 45.254-56.342-39.006c-6.512 4.766-13.22 9.276-20.13 13.494l14.468 66.944-59.128 24.494-37.1-57.558c-7.812 1.892-15.744 3.482-23.79 4.724l-12.252 67.382h-64l-12.252-67.382c-8.046-1.242-15.976-2.832-23.79-4.724l-37.098 57.558-59.128-24.492 14.468-66.944c-6.91-4.216-13.62-8.728-20.13-13.494l-56.342 39.006-45.254-45.254 39.006-56.342c-4.766-6.51-9.278-13.22-13.494-20.13l-66.944 14.468-24.492-59.128 57.558-37.1c-1.892-7.812-3.482-15.742-4.724-23.79l-67.384-12.252v-64l67.382-12.25c1.242-8.046 2.832-15.978 4.724-23.79l-57.558-37.1 24.492-59.128 66.944 14.468c4.216-6.91 8.728-13.618 13.494-20.13l-39.006-56.342 45.254-45.256 56.342 39.006c6.51-4.766 13.22-9.276 20.13-13.492l-14.468-66.944 59.128-24.492 37.102 57.558c7.81-1.892 15.742-3.482 23.788-4.724l12.252-67.384h64l12.252 67.382c8.044 1.242 15.976 2.832 23.79 4.724l37.1-57.558 59.128 24.492-14.468 66.944c6.91 4.216 13.62 8.726 20.13 13.492l56.342-39.006 45.256 45.256-39.006 56.342c4.766 6.512 9.276 13.22 13.492 20.13l66.944-14.468 24.492 59.13-57.558 37.1c1.892 7.812 3.482 15.742 4.724 23.79l67.382 12.25zM672 468.8c-76.878 0-139.2 62.322-139.2 139.2s62.32 139.2 139.2 139.2 139.2-62.322 139.2-139.2c0-76.878-62.32-139.2-139.2-139.2z" />
17
+ <glyph unicode="&#xe9ac;" glyph-name="bin" d="M128 640v-640c0-35.2 28.8-64 64-64h576c35.2 0 64 28.8 64 64v640h-704zM320 64h-64v448h64v-448zM448 64h-64v448h64v-448zM576 64h-64v448h64v-448zM704 64h-64v448h64v-448zM848 832h-208v80c0 26.4-21.6 48-48 48h-224c-26.4 0-48-21.6-48-48v-80h-208c-26.4 0-48-21.6-48-48v-80h832v80c0 26.4-21.6 48-48 48zM576 832h-192v63.198h192v-63.198z" />
18
+ <glyph unicode="&#xe9cb;" glyph-name="link" d="M440.236 324.234c-13.31 0-26.616 5.076-36.77 15.23-95.134 95.136-95.134 249.934 0 345.070l192 192c46.088 46.086 107.36 71.466 172.534 71.466s126.448-25.38 172.536-71.464c95.132-95.136 95.132-249.934 0-345.070l-87.766-87.766c-20.308-20.308-53.23-20.308-73.54 0-20.306 20.306-20.306 53.232 0 73.54l87.766 87.766c54.584 54.586 54.584 143.404 0 197.99-26.442 26.442-61.6 41.004-98.996 41.004s-72.552-14.562-98.996-41.006l-192-191.998c-54.586-54.586-54.586-143.406 0-197.992 20.308-20.306 20.306-53.232 0-73.54-10.15-10.152-23.462-15.23-36.768-15.23zM256-52c-65.176 0-126.45 25.38-172.534 71.464-95.134 95.136-95.134 249.934 0 345.070l87.764 87.764c20.308 20.306 53.234 20.306 73.54 0 20.308-20.306 20.308-53.232 0-73.54l-87.764-87.764c-54.586-54.586-54.586-143.406 0-197.992 26.44-26.44 61.598-41.002 98.994-41.002s72.552 14.562 98.998 41.006l192 191.998c54.584 54.586 54.584 143.406 0 197.992-20.308 20.308-20.306 53.232 0 73.54 20.306 20.306 53.232 20.306 73.54-0.002 95.132-95.134 95.132-249.932 0.002-345.068l-192.002-192c-46.090-46.088-107.364-71.466-172.538-71.466z" />
19
+ <glyph unicode="&#xe9ce;" glyph-name="eye" d="M512 768c-223.318 0-416.882-130.042-512-320 95.118-189.958 288.682-320 512-320 223.312 0 416.876 130.042 512 320-95.116 189.958-288.688 320-512 320zM764.45 598.296c60.162-38.374 111.142-89.774 149.434-150.296-38.292-60.522-89.274-111.922-149.436-150.296-75.594-48.218-162.89-73.704-252.448-73.704-89.56 0-176.858 25.486-252.452 73.704-60.158 38.372-111.138 89.772-149.432 150.296 38.292 60.524 89.274 111.924 149.434 150.296 3.918 2.5 7.876 4.922 11.86 7.3-9.96-27.328-15.41-56.822-15.41-87.596 0-141.382 114.616-256 256-256 141.382 0 256 114.618 256 256 0 30.774-5.452 60.268-15.408 87.598 3.978-2.378 7.938-4.802 11.858-7.302v0zM512 544c0-53.020-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96 96-42.982 96-96z" />
20
+ <glyph unicode="&#xea0a;" glyph-name="plus" d="M992 576h-352v352c0 17.672-14.328 32-32 32h-192c-17.672 0-32-14.328-32-32v-352h-352c-17.672 0-32-14.328-32-32v-192c0-17.672 14.328-32 32-32h352v-352c0-17.672 14.328-32 32-32h192c17.672 0 32 14.328 32 32v352h352c17.672 0 32 14.328 32 32v192c0 17.672-14.328 32-32 32z" />
21
+ <glyph unicode="&#xea0b;" glyph-name="minus" d="M0 544v-192c0-17.672 14.328-32 32-32h960c17.672 0 32 14.328 32 32v192c0 17.672-14.328 32-32 32h-960c-17.672 0-32-14.328-32-32z" />
22
+ <glyph unicode="&#xea70;" glyph-name="table" d="M0 768v-704h1024v704h-1024zM384 320v128h256v-128h-256zM640 256v-128h-256v128h256zM640 640v-128h-256v128h256zM320 640v-128h-256v128h256zM64 448h256v-128h-256v128zM704 448h256v-128h-256v128zM704 512v128h256v-128h-256zM64 256h256v-128h-256v128zM704 128v128h256v-128h-256z" />
23
+ <glyph unicode="&#xea7d;" glyph-name="share" d="M256 320c0 0 58.824 192 384 192v-192l384 256-384 256v-192c-256 0-384-159.672-384-320zM704 192h-576v384h125.876c10.094 11.918 20.912 23.334 32.488 34.18 43.964 41.19 96.562 72.652 156.114 93.82h-442.478v-640h832v268.624l-128-85.334v-55.29z" />
24
+ </font></defs></svg>
@@ -0,0 +1,68 @@
1
+ @font-face {
2
+ font-family: 'icomoon';
3
+ src: font-url('icomoon.eot?tb65y2');
4
+ src: font-url('icomoon.eot?tb65y2#iefix') format('embedded-opentype'),
5
+ font-url('icomoon.ttf?tb65y2') format('truetype'),
6
+ font-url('icomoon.woff?tb65y2') format('woff'),
7
+ font-url('icomoon.svg?tb65y2#icomoon') format('svg');
8
+ font-weight: normal;
9
+ font-style: normal;
10
+ }
11
+
12
+ [class^="icon-"], [class*=" icon-"] {
13
+ /* use !important to prevent issues with browser extensions that change fonts */
14
+ font-family: 'icomoon' !important;
15
+ speak: none;
16
+ font-style: normal;
17
+ font-weight: normal;
18
+ font-variant: normal;
19
+ text-transform: none;
20
+ line-height: 1;
21
+
22
+ /* Better Font Rendering =========== */
23
+ -webkit-font-smoothing: antialiased;
24
+ -moz-osx-font-smoothing: grayscale;
25
+ }
26
+
27
+ .icon-pencil:before {
28
+ content: "\e905";
29
+ }
30
+ .icon-file-text2:before {
31
+ content: "\e926";
32
+ }
33
+ .icon-folder-open:before {
34
+ content: "\e930";
35
+ }
36
+ .icon-price-tag:before {
37
+ content: "\e935";
38
+ }
39
+ .icon-floppy-disk:before {
40
+ content: "\e962";
41
+ }
42
+ .icon-search:before {
43
+ content: "\e986";
44
+ }
45
+ .icon-cogs:before {
46
+ content: "\e995";
47
+ }
48
+ .icon-bin:before {
49
+ content: "\e9ac";
50
+ }
51
+ .icon-link:before {
52
+ content: "\e9cb";
53
+ }
54
+ .icon-eye:before {
55
+ content: "\e9ce";
56
+ }
57
+ .icon-plus:before {
58
+ content: "\ea0a";
59
+ }
60
+ .icon-minus:before {
61
+ content: "\ea0b";
62
+ }
63
+ .icon-table:before {
64
+ content: "\ea70";
65
+ }
66
+ .icon-share:before {
67
+ content: "\ea7d";
68
+ }
@@ -1,3 +1,4 @@
1
+ @import 'icomoon';
1
2
  @import 'blaze/blaze';
2
3
  @import url('https://fonts.googleapis.com/css?family=Roboto');
3
4
 
@@ -89,10 +90,6 @@ body.active_admin {
89
90
  textarea {
90
91
  padding: 6px;
91
92
  }
92
- .selectize-input {
93
- line-height: $height-inputs;
94
- padding-left: 8px;
95
- }
96
93
  abbr {
97
94
  padding-left: 3px;
98
95
  }
@@ -580,6 +577,9 @@ body.active_admin {
580
577
  .sidebar_section {
581
578
  margin-bottom: 20px;
582
579
  }
580
+ .filter_form .selectize-control > .selectize-input {
581
+ width: 100%;
582
+ }
583
583
  }
584
584
  #active_admin_content > #sidebar, #active_admin_content > #main_content_wrapper {
585
585
  float: none;
@@ -674,6 +674,18 @@ body.active_admin {
674
674
  border-bottom: 0 none;
675
675
  }
676
676
  }
677
+ .col-actions {
678
+ padding: 1px 2px 0 6px;
679
+ vertical-align: middle;
680
+ a.c-button {
681
+ color: #222;
682
+ margin-right: 1px;
683
+ margin-left: 1px;
684
+ }
685
+ // .table_actions {
686
+ // text-align: center;
687
+ // }
688
+ }
677
689
 
678
690
  // title bar
679
691
  #title_bar {
@@ -768,7 +780,8 @@ body.active_admin {
768
780
  background-image: none;
769
781
  }
770
782
  &.ui-dialog-titlebar-close {
771
- display: none;
783
+ // display: none; // hides close button
784
+ margin-right: 0;
772
785
  }
773
786
  }
774
787
  .ui-dialog-content {
@@ -802,6 +815,9 @@ body.active_admin {
802
815
  }
803
816
 
804
817
  // misc
818
+ a.member_link {
819
+ text-decoration: none;
820
+ }
805
821
  .download_links > a {
806
822
  @extend .c-button;
807
823
  @extend .c-button--info;
@@ -827,11 +843,22 @@ body.active_admin {
827
843
  }
828
844
  }
829
845
  }
846
+
830
847
  // textarea comments
831
848
  #active_admin_comment_body {
832
849
  width: 100%;
833
850
  }
834
851
 
852
+ // comments
853
+ .comments {
854
+ .actions {
855
+ padding: 0;
856
+ }
857
+ .pagination_information {
858
+ float: none;
859
+ }
860
+ }
861
+
835
862
  // boolean values
836
863
  .status_tag {
837
864
  min-width: 30px;
@@ -873,6 +900,60 @@ body.active_admin {
873
900
  .sidebar_section .blaze-menu {
874
901
  margin-bottom: 4px;
875
902
  }
903
+ .blaze-table {
904
+ @extend .c-table;
905
+ // @extend .c-table--striped;
906
+ // @extend .c-table--condensed;
907
+ >thead {
908
+ @extend .c-table__head;
909
+ >tr {
910
+ @extend .c-table__row;
911
+ @extend .c-table__row--heading;
912
+ >th {
913
+ @extend .c-table__cell;
914
+ }
915
+ }
916
+ }
917
+ >tbody {
918
+ @extend .c-table__body;
919
+ >tr {
920
+ @extend .c-table__row;
921
+ >td {
922
+ @extend .c-table__cell;
923
+ }
924
+ }
925
+ }
926
+ &.table-bordered {
927
+ border: 1px solid #ddd;
928
+ &.table-rows {
929
+ border-bottom: 0 none;
930
+ }
931
+ }
932
+ &.table-rows >tbody >tr {
933
+ border-bottom: 1px solid #ddd;
934
+ }
935
+ &.table-striped >tbody >tr.even {
936
+ background: #f4f4f4;
937
+ }
938
+ }
939
+
940
+ // special components
941
+ .filter_form .select-one-inputs {
942
+ display: flex;
943
+ >input[type="text"], >select {
944
+ width: 49%;
945
+ }
946
+ >input[type="text"] {
947
+ margin: 0 1% 0 0;
948
+ }
949
+ select {
950
+ margin: 0 0 0 1%;
951
+ }
952
+ }
953
+ .selectize.input > .selectize-control > .selectize-input {
954
+ padding-left: 4px;
955
+ padding-top: 3px;
956
+ }
876
957
 
877
958
  // optional customizations
878
959
  .compact_titlebar {
@@ -903,4 +984,9 @@ body.active_admin {
903
984
  width: auto;
904
985
  // width: calc(80% - 22px);
905
986
  }
987
+ .no_rounded {
988
+ *, .action_items span.action_item > a, .panel {
989
+ border-radius: 0;
990
+ }
991
+ }
906
992
  }
@@ -9,3 +9,20 @@ module ActiveAdminBlazeTheme
9
9
  end
10
10
  end
11
11
  end
12
+
13
+ ActiveAdmin::Views::IndexAsTable::IndexTableFor::TableActions.class_eval do
14
+ def item *args
15
+ cl = args[2][:class]
16
+ if cl.include? 'view_link'
17
+ args[0] = '<span class="icon-eye"></span> '.html_safe + args[0]
18
+ args[2][:class] += ' c-button c-button--ghost-info u-xsmall'
19
+ elsif cl.include? 'edit_link'
20
+ args[0] = '<span class="icon-pencil"></span> '.html_safe + args[0]
21
+ args[2][:class] += ' c-button c-button--ghost-info u-xsmall'
22
+ elsif cl.include? 'delete_link'
23
+ args[0] = '<span class="icon-bin"></span> '.html_safe + args[0]
24
+ args[2][:class] += ' c-button c-button--ghost-error u-xsmall'
25
+ end
26
+ text_node link_to *args
27
+ end
28
+ end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module ActiveAdminBlazeTheme
2
- VERSION = '0.5.6'
4
+ VERSION = '0.5.14'
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeadmin_blaze_theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.6
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-23 00:00:00.000000000 Z
11
+ date: 2020-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin
@@ -16,14 +16,140 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activestorage
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 6.0.3.2
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 6.0.3.2
41
+ - !ruby/object:Gem::Dependency
42
+ name: capybara
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 3.33.0
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 3.33.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.13.1
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.13.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: puma
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.3.5
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.3.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec_junit_formatter
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.4.1
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.4.1
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 4.0.1
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 4.0.1
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.90.0
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.90.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: selenium-webdriver
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 3.142.7
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 3.142.7
139
+ - !ruby/object:Gem::Dependency
140
+ name: sqlite3
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.4.2
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.4.2
27
153
  description: An ActiveAdmin theme which use Blaze CSS UI toolkit
28
154
  email:
29
155
  - mat@blocknot.es
@@ -37,6 +163,10 @@ files:
37
163
  - README.md
38
164
  - Rakefile
39
165
  - activeadmin_blaze_theme.gemspec
166
+ - app/assets/fonts/icomoon.eot
167
+ - app/assets/fonts/icomoon.svg
168
+ - app/assets/fonts/icomoon.ttf
169
+ - app/assets/fonts/icomoon.woff
40
170
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss
41
171
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss
42
172
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss
@@ -98,6 +228,7 @@ files:
98
228
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss
99
229
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss
100
230
  - app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss
231
+ - app/assets/stylesheets/activeadmin_blaze_theme/icomoon.scss
101
232
  - app/assets/stylesheets/activeadmin_blaze_theme/theme.scss
102
233
  - extra/screenshot1.jpg
103
234
  - extra/screenshot2.jpg
@@ -111,7 +242,7 @@ homepage: https://github.com/blocknotes/activeadmin_blaze_theme
111
242
  licenses:
112
243
  - MIT
113
244
  metadata: {}
114
- post_install_message:
245
+ post_install_message:
115
246
  rdoc_options: []
116
247
  require_paths:
117
248
  - lib
@@ -126,9 +257,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
257
  - !ruby/object:Gem::Version
127
258
  version: '0'
128
259
  requirements: []
129
- rubyforge_project:
130
- rubygems_version: 2.6.13
131
- signing_key:
260
+ rubygems_version: 3.0.3
261
+ signing_key:
132
262
  specification_version: 4
133
263
  summary: ActiveAdmin Blaze Theme
134
264
  test_files: []