From 955b23bd38f56ce54c76d97104d45da8593874c2 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 30 Jan 2014 20:33:19 -0800 Subject: [PATCH] CRM-13966 - Style select2 with search icon --- css/civicrm.css | 12 ++++++++++++ .../CRM/Contact/Form/Search/Criteria/Location.tpl | 6 +++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/css/civicrm.css b/css/civicrm.css index 47b8bb0010..38c2e0c85d 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -3828,6 +3828,18 @@ div.m ul#civicrm-menu, background: white url('../i/loading.gif') no-repeat right center; } +/* select2 */ +/* Move background image into outer container so we can place an icon in the inner container */ +.crm-container .select2-container-multi { + background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(1%, #eee), color-stop(15%, #fff)); + background-image: -webkit-linear-gradient(top, #eee 1%, #fff 15%); + background-image: -moz-linear-gradient(top, #eee 1%, #fff 15%); + background-image: linear-gradient(top, #eee 1%, #fff 15%); +} +.crm-container .select2-container-multi .select2-choices { + background: url("../packages/jquery/plugins/select2/select2.png") no-repeat scroll right -22px; +} + /* Special styling for specific form buttons */ #crm-container span.crm-button_qf_Main_upload input, #crm-container span.crm-button_qf_Confirm_next input, diff --git a/templates/CRM/Contact/Form/Search/Criteria/Location.tpl b/templates/CRM/Contact/Form/Search/Criteria/Location.tpl index b5dedf65fe..fc9fbd0171 100644 --- a/templates/CRM/Contact/Form/Search/Criteria/Location.tpl +++ b/templates/CRM/Contact/Form/Search/Criteria/Location.tpl @@ -94,17 +94,17 @@ {$form.county.label}
- {$form.county.html|crmAddClass:bigSelect}  + {$form.county.html}  {$form.country.label}
- {$form.country.html|crmAddClass:big}  + {$form.country.html}  {/if}  {$form.state_province.label}
- {$form.state_province.html|crmAddClass:bigSelect} + {$form.state_province.html} {if $addressGroupTree} -- 2.25.1