effective_bootstrap 0.11.0 → 0.11.1

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
2
  SHA256:
3
- metadata.gz: c1483d8802c16a38a151708060665d5fbf2a47b33f41d09eafdf2cc289ab398e
4
- data.tar.gz: c215f00abcb30632e41c2ad85c2e7c235649dc61d8faf39795137fc5aa9b2c38
3
+ metadata.gz: aa597e0322eb53e62d301cb356865cb10710fae47b4b274cc19fa8e75fdc2b5f
4
+ data.tar.gz: 04dde3abd8865619803f85ec7d4b58905d51a3fcd9d2bba80095c89ee214bbaf
5
5
  SHA512:
6
- metadata.gz: dfe6422310d0bfcb92ffe81cbdadd49cb5327030903b9ddca48c8f51eb0bff479b1fd561f84fb0aa1b2ae60fb85e5ddcf24371ad7f7a914d2eeb5d690d0ddd9d
7
- data.tar.gz: c17eeb42ce4a4dd2d3869cf0c0822987fa689ba10135a859308e850d92fbbb35a4c6b10f26682cf39636eb8b023dde32200997e403de150363c90e22d4f91ef0
6
+ metadata.gz: 92a051925c70569fe0decbc57ae1b20e079e734ad230130a15d87feb0126ca0c54f8cc93eb3d26a2e906f454b6ace034a62d808946d574c77988e6e06c00fb24
7
+ data.tar.gz: 6d5b70d26a336930ae9c92ab45bb3f4c6e1546c9afd7764dd3743e4fec3969a8061658e18e75dd4c4c0a26127d38365458422e6c2643711db4a3db03ce201487
@@ -74,5 +74,6 @@ div.form-group > label + .btn-group { display: block; }
74
74
  // Has Many
75
75
  .form-has-many .has-many-remove {
76
76
  margin-top: 0;
77
+ margin-bottom: 1rem;
77
78
  .eb-icon { height: 1.5rem; width: 1.5rem; }
78
79
  }
@@ -4,7 +4,6 @@
4
4
  .has-many-remove-disabled { opacity: 0; cursor: default !important; }
5
5
 
6
6
  .has-many-actions { margin-bottom: 0.75rem; }
7
- .has-many-remove { margin-top: 1rem; }
8
7
  .has-many-move { margin-top: 1.5rem; }
9
8
  }
10
9
 
@@ -19,3 +18,13 @@
19
18
  .has-many-remove { margin-top: 0; }
20
19
  .has-many-move { margin-top: 0.5rem; }
21
20
  }
21
+
22
+ .form-has-many .has-many-remove {
23
+ margin-top: 0;
24
+ .eb-icon { height: $font-size-sm; width: $font-size-sm; margin-bottom: 2px; }
25
+ }
26
+
27
+ .form-has-many .has-many-add {
28
+ margin-top: 0;
29
+ .eb-icon { height: $font-size-sm; width: $font-size-sm; margin-bottom: 2px; }
30
+ }
@@ -126,7 +126,7 @@ module Effective
126
126
  def has_many_links_for(block)
127
127
  return BLANK unless add? || reorder?
128
128
 
129
- content_tag(:div, class: 'has-many-links text-center mt-2') do
129
+ content_tag(:div, class: 'has-many-links mt-2') do
130
130
  [*(link_to_add(block) if add?), *(link_to_reorder(block) if reorder?)].join(' ').html_safe
131
131
  end
132
132
  end
@@ -171,7 +171,7 @@ module Effective
171
171
  content_tag(:div, content, class: 'col mr-auto') do
172
172
  content_tag(:div, class: 'card') do
173
173
  content_tag(:div, class: 'card-body') do
174
- content_tag(:div, remove, class: 'float-right') + content
174
+ content_tag(:div, remove, class: 'd-flex justify-content-end') + content
175
175
  end
176
176
  end
177
177
  end
@@ -205,7 +205,7 @@ module Effective
205
205
  content_tag(
206
206
  :button,
207
207
  icon('plus-circle') + 'Add Another',
208
- class: 'has-many-add btn btn-secondary',
208
+ class: 'has-many-add btn btn-sm btn-secondary',
209
209
  title: 'Add Another',
210
210
  data: {
211
211
  'effective-form-has-many-add': true,
@@ -227,7 +227,7 @@ module Effective
227
227
  content_tag(
228
228
  (tag || :button),
229
229
  (label || (icon('plus-circle') + 'Insert Another')),
230
- class: 'has-many-insert ' + (html_class || 'btn btn-secondary'),
230
+ class: 'has-many-insert ' + (html_class || 'btn btn-sm btn-secondary'),
231
231
  title: (title || 'Insert Another'),
232
232
  data: {
233
233
  'effective-form-has-many-insert': true,
@@ -257,8 +257,8 @@ module Effective
257
257
 
258
258
  content_tag(
259
259
  (tag || :button),
260
- (label || icon('trash-2')),
261
- class: 'has-many-remove ' + (html_class || 'btn btn-danger'),
260
+ (label || (icon('trash-2') + 'Remove')),
261
+ class: 'has-many-remove ' + (html_class || 'btn btn-sm btn-danger'),
262
262
  title: (title || 'Remove'),
263
263
  data: {
264
264
  'confirm': "Remove #{resource}?",
@@ -271,7 +271,7 @@ module Effective
271
271
  content_tag(
272
272
  :button,
273
273
  icon('trash-2'),
274
- class: 'has-many-remove-disabled btn btn-danger',
274
+ class: 'has-many-remove-disabled btn btn-sm btn-danger',
275
275
  title: 'Remove',
276
276
  data: {
277
277
  'effective-form-has-many-remove-disabled': true,
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.11.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect