Skip to content

Commit

Permalink
Fix the margin on nested has_many sortables
Browse files Browse the repository at this point in the history
  • Loading branch information
shekibobo committed Nov 18, 2013
1 parent b1122b9 commit 9b679ab
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions app/assets/stylesheets/active_admin/_forms.css.scss
Expand Up @@ -8,7 +8,7 @@ form {
border: 0;
padding: 10px 0;
margin-bottom: 20px;
position: relative; // required for the absolutely positioned sortable .handle
position: relative; // required for the absolutely positioned sortable .handle

&.inputs { @include section-background; }

Expand Down Expand Up @@ -52,13 +52,19 @@ form {
}
}

.has_many_container .handle {
position: absolute;
@include icon-size(3em);
top: calc(50% - 3em / 2);
right: 2px;
padding: 0;
cursor: move;
.has_many_container {
.handle {
position: absolute;
@include icon-size(3em);
top: calc(50% - 3em / 2);
right: 2px;
padding: 0;
cursor: move;
}

&.ui-sortable .has_many_container {
margin-right: 30px;
}
}

.ui-sortable {
Expand Down

0 comments on commit 9b679ab

Please sign in to comment.