activeadmin_blaze_theme 0.1.2 → 0.1.4

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: b2a8a495fb4989856f439559768701f89fa820fa
4
- data.tar.gz: 44b3b4d563d0628e3423cc3a3f233301ed305853
3
+ metadata.gz: 810bd65be21fbd004ce9cc6b65eb4a25572cc597
4
+ data.tar.gz: efb109fdd458416013802f8d5ffb70fd3df36f8d
5
5
  SHA512:
6
- metadata.gz: 836e5e3abf3a453ce8642b59f46204610d9c53fb08a3e832195157c187fd79b7939d45a6284ac6d77a7d85b2e918bbc8cad7829abd8f84e9bbf88f697bcd1144
7
- data.tar.gz: 791d4ff8840d8fae437c445f004a8491d199a7f31b9651418de7e17b31020d1c92c9571fd0bd8e5862500ed6e06cb42b5af0f284ec814f2b05e4e9087b6ce580
6
+ metadata.gz: f18f1c6d081b84bff0ea9dcff830376e2d83917574e2a14a7d9bce3fa74599864ccd4b167b30c4b00ef5bb34f0b65808feea51a691884cfadf59b537a953159b
7
+ data.tar.gz: 9e728be28e09cff5dbe1e1523a6e2a552c29af06b5ffd28ca6cf33da53f0ac3cfbdba52abebaddcdd43201c8d2f9f6dfa5abba5d56e27e022eda93c8d2ec8d6e
data/README.md CHANGED
@@ -36,11 +36,17 @@ $bg-form1: #f4f4f4;
36
36
  $bg-form2: darken($bg-form1, 3%);
37
37
  $bg-form3: darken($bg-form1, 6%);
38
38
  $bg-form4: darken($bg-form1, 9%);
39
+ $bg-form-sub-headings: #d4d4d4;
39
40
  $bg-header: $color-brand;
40
41
  $bg-inputs: #fff;
41
42
  $fg-box-title: #fff;
42
43
  $fg-link2: #eee;
43
44
  $fg-table-borders: #e4e4e4;
45
+ /* other variables */
46
+ $form-padding: 10px;
47
+ $inputs-spacing: 10px;
48
+ $height-inputs: 28px;
49
+ $text-shadow: #000;
44
50
  ```
45
51
 
46
52
  ## Screenshots
@@ -6,6 +6,7 @@ $bg-form1: #f4f4f4 !default;
6
6
  $bg-form2: darken($bg-form1, 3%) !default;
7
7
  $bg-form3: darken($bg-form1, 6%) !default;
8
8
  $bg-form4: darken($bg-form1, 9%) !default;
9
+ $bg-form-sub-headings: #d4d4d4 !default;
9
10
  $bg-header: $color-brand !default;
10
11
  $bg-inputs: #fff !default;
11
12
  $fg-box-title: #fff !default;
@@ -13,6 +14,8 @@ $fg-link2: #eee !default;
13
14
  $fg-table-borders: #e4e4e4 !default;
14
15
 
15
16
  // other variables
17
+ $form-padding: 10px !default;
18
+ $inputs-spacing: 10px !default;
16
19
  $height-inputs: 28px !default;
17
20
  $text-shadow: #000 !default;
18
21
 
@@ -93,9 +96,8 @@ body.active_admin {
93
96
  display: inline-block;
94
97
  }
95
98
  &.inputs {
96
- @extend .c-card;
97
- @extend .u-high;
98
- background-color: $bg-form1;
99
+ background-color: transparent;
100
+ box-shadow: none;
99
101
  padding: 0;
100
102
  input[type='number'],
101
103
  input[type='text'],
@@ -110,32 +112,6 @@ body.active_admin {
110
112
  label {
111
113
  line-height: $height-inputs;
112
114
  }
113
- > ol > .has_many_container > fieldset.inputs {
114
- background-color: $bg-form2;
115
- > ol > .has_many_container > fieldset.inputs {
116
- background-color: $bg-form3;
117
- > ol > .has_many_container > fieldset.inputs {
118
- background-color: $bg-form4;
119
- }
120
- }
121
- }
122
- > legend {
123
- @extend .c-card__item;
124
- @extend .c-card__item--brand;
125
- color: $fg-box-title;
126
- padding: 8px 11px;
127
- text-shadow: $text-shadow 0 1px 0;
128
- > span {
129
- background-color: transparent;
130
- background-image: none;
131
- border: 0 none;
132
- box-shadow: initial;
133
- color: inherit;
134
- margin: 0;
135
- padding: 0;
136
- text-shadow: inherit;
137
- }
138
- }
139
115
  // .boolean > label { // not working
140
116
  // @extend .c-field;
141
117
  // @extend .c-field--choice;
@@ -164,22 +140,76 @@ body.active_admin {
164
140
  width: auto;
165
141
  }
166
142
  }
167
- .fragments {
168
- margin-left: 10px;
169
- .fragments-group {
170
- margin-left: 2px;
143
+ }
144
+ > ol {
145
+ padding: 0;
146
+ > li {
147
+ padding: 0 0 $inputs-spacing 0;
148
+ &.boolean label {
149
+ float: none;
150
+ }
151
+ &.has_many_container {
152
+ padding: $form-padding;
153
+ .has_many_fields {
154
+ margin: 0;
155
+ }
171
156
  }
172
157
  }
173
158
  }
174
- ol {
175
- padding: 1px;
176
- > li {
177
- padding: 1px;
178
- > label {
179
- margin-left: 10px;
159
+ }
160
+ > fieldset.inputs {
161
+ > legend {
162
+ @extend .c-card__item;
163
+ @extend .c-card__item--brand;
164
+ border-radius: 5px 5px 0 0;
165
+ color: $fg-box-title;
166
+ padding: 8px 11px;
167
+ text-shadow: $text-shadow 0 1px 0;
168
+ > span {
169
+ background-color: transparent;
170
+ background-image: none;
171
+ border: 0 none;
172
+ box-shadow: initial;
173
+ color: inherit;
174
+ margin: 0;
175
+ padding: 0;
176
+ text-shadow: inherit;
177
+ }
178
+ }
179
+ > ol {
180
+ @extend .c-card;
181
+ @extend .u-high;
182
+ background-color: $bg-form1;
183
+ border-radius: 0 0 5px 5px;
184
+ padding: $form-padding;
185
+ > .has_many_container {
186
+ background-color: $bg-form2;
187
+ > fieldset > ol > .has_many_container {
188
+ background-color: $bg-form3;
189
+ > fieldset > ol > .has_many_container {
190
+ background-color: $bg-form4;
191
+ }
180
192
  }
181
193
  }
182
194
  }
195
+ .has_many_container {
196
+ @extend .c-card;
197
+ @extend .u-high;
198
+ padding: 0;
199
+ h3 {
200
+ @extend .c-card__item;
201
+ // @extend .c-card__item--info;
202
+ background: $bg-form-sub-headings;
203
+ margin-bottom: 0;
204
+ }
205
+ .inputs {
206
+ padding: $form-padding;
207
+ }
208
+ > .button {
209
+ margin-left: $form-padding;
210
+ margin-bottom: $form-padding;
211
+ }
212
+ }
183
213
  }
184
214
  }
185
215
 
@@ -1,3 +1,3 @@
1
1
  module ActiveAdminBlazeTheme
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
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.1.2
4
+ version: 0.1.4
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-05-15 00:00:00.000000000 Z
11
+ date: 2017-05-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An ActiveAdmin theme which use Blaze CSS toolkit
14
14
  email: