activeadmin_blaze_theme 0.5.9 → 0.5.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7da7d78e047be729f924cd6f877dc3e8c8ec1385
4
- data.tar.gz: 7639cccdc4e8f1b06d3769420430a1886dbc2891
3
+ metadata.gz: aa1de97041044637a3e24fea4ac61167c870434e
4
+ data.tar.gz: d9c1e1f5cb721ffe01c16ea03c430850ff291112
5
5
  SHA512:
6
- metadata.gz: 62296440970fe162bd568870e285af4c9be8d0a1392c5818bb1f0e41a662035dc65014f9a9b79961fba06b183bcfcbf9286caa44773e40d3b1d95bfa9b92e117
7
- data.tar.gz: 8c77aa6bf6aaa129537bff1e24180321b513b699f7d3b22a32656821187d5aaa52d12af7047d3513abb763bc6207cd29ebf0196021405132ec1d53979f726c5b
6
+ metadata.gz: 4447c70f9fc8809097846043ba61bd7ab0067fa4dec79c2eb711f706907bb378a7160a14d9cc63fd959e2362a90cb778d09a3201ad2e1aa50744fbb81b8c7821
7
+ data.tar.gz: b34d944eb66ec81e0bce72d70948d7ec58d4ebad7a22495dca3bbde21e9d6b622a9e2e17d2c96ac9f3d311c811358ec92f222dc69aa762c38d623a8e7f8f1e1a
data/README.md CHANGED
@@ -7,7 +7,7 @@ Features:
7
7
  - CSS only theme with clean UI
8
8
  - compact nested forms
9
9
  - [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
10
- - custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field)
10
+ - custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field), [Styled table](#styled-table)
11
11
  - Blaze CSS [widgets](#blaze-widgets)
12
12
 
13
13
  ## Install
@@ -163,6 +163,16 @@ Some readonly fields in a form:
163
163
 
164
164
  `f.readonly nil, 'Value only, no label'`
165
165
 
166
+ ### Styled table
167
+
168
+ Table styles:
169
+
170
+ ```ruby
171
+ table_for User.all, class: 'blaze-table table-rows table-striped' do
172
+ # ...
173
+ end
174
+ ```
175
+
166
176
  ## Blaze widgets
167
177
 
168
178
  See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
@@ -883,6 +883,42 @@ body.active_admin {
883
883
  .sidebar_section .blaze-menu {
884
884
  margin-bottom: 4px;
885
885
  }
886
+ .blaze-table {
887
+ @extend .c-table;
888
+ // @extend .c-table--striped;
889
+ // @extend .c-table--condensed;
890
+ >thead {
891
+ @extend .c-table__head;
892
+ >tr {
893
+ @extend .c-table__row;
894
+ @extend .c-table__row--heading;
895
+ >th {
896
+ @extend .c-table__cell;
897
+ }
898
+ }
899
+ }
900
+ >tbody {
901
+ @extend .c-table__body;
902
+ >tr {
903
+ @extend .c-table__row;
904
+ >td {
905
+ @extend .c-table__cell;
906
+ }
907
+ }
908
+ }
909
+ &.table-bordered {
910
+ border: 1px solid #ddd;
911
+ &.table-rows {
912
+ border-bottom: 0 none;
913
+ }
914
+ }
915
+ &.table-rows >tbody >tr {
916
+ border-bottom: 1px solid #ddd;
917
+ }
918
+ &.table-striped >tbody >tr.even {
919
+ background: #f4f4f4;
920
+ }
921
+ }
886
922
 
887
923
  // special components
888
924
  .filter_form .select-one-inputs {
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBlazeTheme
2
- VERSION = '0.5.9'
2
+ VERSION = '0.5.10'
3
3
  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.9
4
+ version: 0.5.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattia Roccoberton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin