From 68163f8fdd2de83fdfd8976eaacc9eb339ecac2f Mon Sep 17 00:00:00 2001 From: Dominik Staskiewicz Date: Sat, 12 Oct 2013 11:36:42 +0200 Subject: [PATCH] Select2 fixes to center the search box Fixes #3854 Fixes #3863 --- backend/app/assets/stylesheets/admin/hacks/_ie.scss | 3 +-- backend/app/assets/stylesheets/admin/hacks/_mozilla.scss | 3 ++- backend/app/assets/stylesheets/admin/plugins/_select2.scss | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/app/assets/stylesheets/admin/hacks/_ie.scss b/backend/app/assets/stylesheets/admin/hacks/_ie.scss index 15fc1f2601b..c1b8a863c9c 100644 --- a/backend/app/assets/stylesheets/admin/hacks/_ie.scss +++ b/backend/app/assets/stylesheets/admin/hacks/_ie.scss @@ -18,7 +18,6 @@ html.ie { } .select2-search { &:before { - position: relative; z-index: 10000; content: '\f002' !important; } @@ -70,4 +69,4 @@ html.ie8 { } } -} \ No newline at end of file +} diff --git a/backend/app/assets/stylesheets/admin/hacks/_mozilla.scss b/backend/app/assets/stylesheets/admin/hacks/_mozilla.scss index a3e37cfacc5..cff35aab961 100644 --- a/backend/app/assets/stylesheets/admin/hacks/_mozilla.scss +++ b/backend/app/assets/stylesheets/admin/hacks/_mozilla.scss @@ -22,6 +22,7 @@ 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; } @@ -29,4 +30,4 @@ html.firefox { input#image_attachment { width: 80%; } -} \ No newline at end of file +} diff --git a/backend/app/assets/stylesheets/admin/plugins/_select2.scss b/backend/app/assets/stylesheets/admin/plugins/_select2.scss index 833ee4c57ad..f3fc456ad71 100644 --- a/backend/app/assets/stylesheets/admin/plugins/_select2.scss +++ b/backend/app/assets/stylesheets/admin/plugins/_select2.scss @@ -63,7 +63,7 @@ @extend [class^="icon-"]:before; position: absolute; - top: 13px; + top: 16px; left: 13px; }