activeadmin_blaze_theme 0.4.9 → 0.5.0

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: 47b9d220f11559bbb09bdc9e4faf5482a1ed1c95
4
- data.tar.gz: 65e0d2d4c5f7e3c398b16025dd315ed8bf3abc11
3
+ metadata.gz: 1d17b960dc6568e2090108b39ae4bb3d0ac894c4
4
+ data.tar.gz: 4485b05442c8bcaac23084f286a214f9cad7a073
5
5
  SHA512:
6
- metadata.gz: d4dd61b2614ea8e633e662661f1e98811901d124d7cf2cef894829c438dea7b06a98eb4c972e232935a23d900d21a419acfe6aed0011a1eada3140a7a4be43a5
7
- data.tar.gz: c817bb41dfb53b48037e700d9e45799aa388a69d2c8e1703f520f8f91f925899ba9e97cc1a27fd16ad4d523c8e2025bcde1f6398f17267fe7adf6fafe7cf1594
6
+ metadata.gz: b3606202a9f8e43066824c7276ff0dc35709b5ceaeb1770551d7613546586eac2e7c075ee693bd9069b09d728179beca3a861dfad67a38dc8f3735d45b00c423
7
+ data.tar.gz: cb615a5be68cfdff2e6c47ffb2d63dff5ecf67cc308ef0c66914f18bc4fce051fe584302c4262d3281feb23afa21d3c1128619f93ad452b558ac6e05d225072c
data/README.md CHANGED
@@ -82,7 +82,7 @@ body.active_admin .cke {
82
82
  }
83
83
  ```
84
84
 
85
- ## Custom fields
85
+ ## Custom fields / components
86
86
 
87
87
  ### Toggle
88
88
 
@@ -100,6 +100,26 @@ Standard checkbox with label on the left:
100
100
 
101
101
  `f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }`
102
102
 
103
+ ### Sidebar menu
104
+
105
+ A sidebar menu (*priority* option permit to put the sidebar above the filters):
106
+
107
+ ```rb
108
+ sidebar :help, priority: 0 do
109
+ ul class: 'blaze-menu' do
110
+ li do
111
+ link_to 'Menu item 1', admin_root_path
112
+ end
113
+ li do
114
+ link_to 'Menu item 2', admin_root_path
115
+ end
116
+ li do
117
+ link_to 'Menu item 3', admin_root_path
118
+ end
119
+ end
120
+ end
121
+ ```
122
+
103
123
  ## Blaze widgets
104
124
 
105
125
  See components avaible in Blaze CSS [docs](http://blazecss.com/components/buttons/).
@@ -148,4 +168,4 @@ If you use this component just star it. A developer is more motivated to improve
148
168
 
149
169
  ## License
150
170
 
151
- [MIT](LICENSE)
171
+ [MIT](LICENSE.txt)
@@ -19,6 +19,7 @@ $fg-table-borders: #e4e4e4 !default;
19
19
  $fg-table-link: #eee !default;
20
20
 
21
21
  // other variables
22
+ $color-validation-error: #932419 !default;
22
23
  $form-padding: 10px !default;
23
24
  $inputs-spacing: 10px !default;
24
25
  $height-inputs: 26px !default;
@@ -246,6 +247,9 @@ body.active_admin {
246
247
  width: auto;
247
248
  }
248
249
  }
250
+ .input.error select {
251
+ border: 1px solid $color-validation-error;
252
+ }
249
253
  }
250
254
  > ol {
251
255
  padding: 0;
@@ -332,7 +336,10 @@ body.active_admin {
332
336
  padding: 10px 0 0 10px;
333
337
  }
334
338
  .inputs {
339
+ border-bottom: 1px solid #ccc;
340
+ border-radius: 0;
335
341
  margin: 0;
342
+ padding: 0 0 5px 0;
336
343
  // padding: $form-padding;
337
344
  }
338
345
  // .has_many_fields {
@@ -778,6 +785,22 @@ body.active_admin {
778
785
  position: relative;
779
786
  }
780
787
 
788
+ .blaze-menu {
789
+ @extend .c-card;
790
+ @extend .c-card--menu;
791
+ @extend .u-high;
792
+ li {
793
+ @extend .c-card__item;
794
+ a {
795
+ display: block;
796
+ text-decoration: none;
797
+ }
798
+ }
799
+ }
800
+ .sidebar_section .blaze-menu {
801
+ margin-bottom: 4px;
802
+ }
803
+
781
804
  // optional customizations
782
805
  .compact_titlebar {
783
806
  white-space: initial;
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBlazeTheme
2
- VERSION = '0.4.9'
2
+ VERSION = '0.5.0'
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.4.9
4
+ version: 0.5.0
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-09-09 00:00:00.000000000 Z
11
+ date: 2017-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeadmin