From b4172122d073af43c589976186125ea198cc2aca Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 18 Apr 2013 16:30:21 -0700 Subject: [PATCH] css tweaks --- css/civicrm.css | 13 ++++++++----- .../CRM/Contact/Form/Search/AdvancedCriteria.tpl | 6 +++--- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/css/civicrm.css b/css/civicrm.css index 5bce575721..d4aa5fab8e 100644 --- a/css/civicrm.css +++ b/css/civicrm.css @@ -6,7 +6,7 @@ * All styles should start with .crm-container unless they are specific to the main div only */ -.crm-container label { +div.crm-container label { font-weight: normal; display: inline; } @@ -2752,15 +2752,18 @@ div.grippie { background-color: #2E3471; } -.crm-container .crm-accordion-header a.close-accordion { +.crm-container .crm-accordion-header a.crm-close-accordion { font-weight: normal !important; float: right; color: #FFF !important; - text-decoration: none; } -.crm-container .crm-accordion-header a.close-accordion:hover { - text-decoration: underline !important; +.crm-container .crm-accordion-header a.crm-close-accordion span { + visibility: hidden; +} + +.crm-container .crm-accordion-header a.crm-close-accordion:hover span { + visibility: visible; } .crm-container .crm-master-accordion-header.crm-accordion-header:hover, diff --git a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl index 766644f4e8..8f377ebe34 100644 --- a/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl +++ b/templates/CRM/Contact/Form/Search/AdvancedCriteria.tpl @@ -38,7 +38,7 @@ cj(function($) { $('.crm-ajax-accordion:not(.collapsed) .crm-accordion-header').each(function() { loadPanes($(this).attr('id')); }); - $('.crm-ajax-accordion').on('click', '.close-accordion', function() { + $('.crm-ajax-accordion').on('click', '.crm-close-accordion', function() { var header = $(this).parent(); header.next().html(''); header.removeClass('active'); @@ -90,7 +90,7 @@ cj(function($) { var body = $('.crm-accordion-body.' + id); if (header.length > 0 && body.length > 0 && !body.html()) { body.html('
{/literal}{ts escape='js'}Loading{/ts}{literal}...
'); - header.append('{/literal}{ts escape='js'}Reset{/ts}{literal} [x]'); + header.append('{/literal}{ts escape='js'}Reset{/ts}  {literal}'); header.addClass('active'); $.ajax({ url : url, @@ -99,7 +99,7 @@ cj(function($) { }, error: function() { CRM.alert({/literal}'{ts escape="js"}Sorry, could not load the requested information from the server.{/ts}', '{ts escape="js"}Network Error{/ts}'{literal}); - $('.close-accordion', header).click(); + $('.crm-close-accordion', header).click(); } }); } -- 2.25.1