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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa597e0322eb53e62d301cb356865cb10710fae47b4b274cc19fa8e75fdc2b5f
|
4
|
+
data.tar.gz: 04dde3abd8865619803f85ec7d4b58905d51a3fcd9d2bba80095c89ee214bbaf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92a051925c70569fe0decbc57ae1b20e079e734ad230130a15d87feb0126ca0c54f8cc93eb3d26a2e906f454b6ace034a62d808946d574c77988e6e06c00fb24
|
7
|
+
data.tar.gz: 6d5b70d26a336930ae9c92ab45bb3f4c6e1546c9afd7764dd3743e4fec3969a8061658e18e75dd4c4c0a26127d38365458422e6c2643711db4a3db03ce201487
|
@@ -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
|
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: '
|
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,
|