Skip to content

Commit 34ecab5

Browse files
author
Stefano Verna
committed
CSS Fix
1 parent 39d5b50 commit 34ecab5

File tree

2 files changed

+5
-28
lines changed

2 files changed

+5
-28
lines changed
Lines changed: 4 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,20 @@
11
@import bourbon
22

33
.input.dragonfly
4+
padding: 0
45

56
.fragments
67

78
&> legend
8-
width: 10%
9-
padding-right: 1%
10-
text-align: right
11-
12-
label
13-
float: none
14-
display: inline
9+
display: none
1510

1611
ol
17-
width: 100% - 11%
1812

1913
li
20-
margin-bottom: 10px
2114
+clearfix
2215

2316
label
24-
width: 100px
2517
text-align: right
26-
margin-right: 10px
2718

2819
&.component-remove
2920
label
@@ -45,20 +36,6 @@
4536
&> input[type="text"]
4637
width: 50% !important
4738

48-
.field-preview
49-
float: left
50-
width: 72px
51-
margin-right: 10px
52-
39+
.component-preview
5340
.no-image
54-
text-align: center
55-
height: 72px
56-
display: table-cell
57-
vertical-align: middle
58-
color: #666
59-
text-shadow: rgba(white, 0.6) 0 1px 0
60-
font-size: 12px
61-
62-
.field-upload, .field-remove, .field-url
63-
float: right
64-
width: 500px - 72px - 10px
41+
line-height: 32px

lib/formtastic/inputs/dragonfly_input.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def to_html
1010
fragments_label <<
1111
template.content_tag(:ol) do
1212
components.map do |component|
13-
template.content_tag(:li, class: "component-#{component}") do
13+
template.content_tag(:li, class: "input component-#{component}") do
1414
fragment_html(component)
1515
end
1616
end.join.html_safe

0 commit comments

Comments
 (0)