Skip to content

Commit

Permalink
Select2 fixes to center the search box
Browse files Browse the repository at this point in the history
  • Loading branch information
staskie authored and radar committed Oct 21, 2013
1 parent 4fa00e8 commit 68163f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backend/app/assets/stylesheets/admin/hacks/_ie.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ html.ie {
}
.select2-search {
&:before {
position: relative;
z-index: 10000;
content: '\f002' !important;
}
Expand Down Expand Up @@ -70,4 +69,4 @@ html.ie8 {
}
}

}
}
3 changes: 2 additions & 1 deletion backend/app/assets/stylesheets/admin/hacks/_mozilla.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ html.firefox {

// Fix select2 search input left padding to not overlap search icon
.select2-search input.select2-input {
padding-bottom: 12px !important;
padding-left: 25px !important;
}

// Fix image file upload width
input#image_attachment {
width: 80%;
}
}
}
2 changes: 1 addition & 1 deletion backend/app/assets/stylesheets/admin/plugins/_select2.scss
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
@extend [class^="icon-"]:before;

position: absolute;
top: 13px;
top: 16px;
left: 13px;
}

Expand Down

0 comments on commit 68163f8

Please sign in to comment.