Commit 96164880 authored by Andrew Hunt's avatar Andrew Hunt

CRM-21241 nav menu: spinning logo should be centered and spin smoothly

----------------------------------------
* CRM-21241: Spinning logo is too jumpy
  https://issues.civicrm.org/jira/browse/CRM-21241
parent fc5e86dd
......@@ -129,11 +129,11 @@ li.menu-separator{
}
#civicrm-menu .crm-logo-sm,
.crm-container .crm-logo-sm {
background: url('../i/item_sprites.png') no-repeat scroll -80px -16px;
background: url('../i/logo_sm.png') no-repeat;
display: inline-block;
width: 16px;
height: 16px;
vertical-align:middle;
vertical-align: middle;
}
#civicrm-menu .ui-autocomplete-input,
......
i/logo_sm.png

753 Bytes

......@@ -93,7 +93,7 @@ $('#civicrm-menu').ready(function() {
.autocomplete({
source: function(request, response) {
//start spinning the civi logo
$('.crm-logo-sm').addClass('crm-i fa-spin fa-pulse');
$('.crm-logo-sm').addClass('crm-i fa-spin');
var
option = $('input[name=quickSearchField]:checked'),
params = {
......@@ -120,7 +120,7 @@ $('#civicrm-menu').ready(function() {
}
response(ret);
//stop spinning the civi logo
$('.crm-logo-sm').removeClass('crm-i fa-spin fa-pulse');
$('.crm-logo-sm').removeClass('crm-i fa-spin');
})
},
focus: function (event, ui) {
......@@ -209,6 +209,6 @@ $('#civicrm-menu').ready(function() {
});
$('#civicrm-menu').menuBar({arrowSrc: CRM.config.resourceBase + 'packages/jquery/css/images/arrow.png'});
$(window).on("beforeunload", function() {
$('.crm-logo-sm', '#civicrm-menu').addClass('crm-i fa-spin fa-pulse');
$('.crm-logo-sm', '#civicrm-menu').addClass('crm-i fa-spin');
});
})(CRM.$);{/literal}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment