Commit 2db3c3a0 authored by Mathieu Lutfy's avatar Mathieu Lutfy Committed by Aegir user

Update uk.squiffle.kam

parent 43bd54d7
......@@ -44,28 +44,44 @@ body.crm-menubar-visible.crm-menubar-over-cms-menu #toolbar-menu {
top: 64px !important;
}
/* For adminimal_admin_menu */
body.crm-menubar-visible.crm-menubar-over-cms-menu > #admin-menu {
display: none;
/* For admin_menu */
body.admin-menu.crm-menubar-visible.crm-menubar-over-cms-menu {
margin-top: 0 !important;
}
body.crm-menubar-visible.crm-menubar-over-cms-menu.admin-menu.adminimal-menu:before {
height: 0;
body.crm-menubar-visible.crm-menubar-below-cms-menu #admin-menu {
min-height: 30px;
}
body.crm-menubar-visible.crm-menubar-below-cms-menu.admin-menu.adminimal-menu {
body.crm-menubar-visible.crm-menubar-below-cms-menu.admin-menu {
padding-top: 40px !important;
}
body.crm-menubar-visible.crm-menubar-below-cms-menu.crm-menubar-wrapped.admin-menu.adminimal-menu {
body.crm-menubar-visible.crm-menubar-below-cms-menu.crm-menubar-wrapped.admin-menu {
padding-top: 80px !important;
}
body.crm-menubar-visible.crm-menubar-over-cms-menu #admin-menu {
display: none;
}
/* For adminimal_admin_menu */
body.crm-menubar-visible.crm-menubar-over-cms-menu.admin-menu.adminimal-menu:before {
height: 0;
}
body.crm-menubar-visible.crm-menubar-below-cms-menu.admin-menu.adminimal-menu.menu-render-newline #civicrm-menu-nav #civicrm-menu {
top: 55px;
}
}
/* For adminimal_admin_menu */
@media (min-width: 768px) and (max-width: 1024px) {
body.crm-menubar-visible.crm-menubar-over-cms-menu.admin-menu.adminimal-menu > .slicknav_menu {
display: none;
}
body.crm-menubar-visible.crm-menubar-below-cms-menu.admin-menu.adminimal-menu {
padding-top: 0px !important;
}
body.crm-menubar-below-cms-menu.admin-menu.adminimal-menu > #civicrm-menu-nav #civicrm-menu {
top: 0px;
top: 0px !important;
}
}
......@@ -79,6 +95,15 @@ body.crm-menubar-visible.crm-menubar-over-cms-menu #toolbar-menu {
margin-top: 0;
}
/* For admin_menu */
body.admin-menu #civicrm-menu-nav .crm-menubar-toggle-btn {
margin-left: 0;
}
body.admin-menu.crm-menubar-visible #admin-menu-icon > li.admin-menu-icon > a {
visibility: hidden;
width: 40px;
}
/* For adminimal_admin_menu */
body.admin-menu.adminimal-menu #civicrm-menu-nav {
position: absolute;
......
......@@ -263,12 +263,21 @@
.keyup(function(e) {
CRM.menubar.close();
if (e.which === ENTER_KEY) {
if ($(this).val()) {
$(this).closest('form').submit();
if (!$(this).val()) {
CRM.menubar.open('QuickSearch');
}
}
});
$('#crm-qsearch > a').keyup(function(e) {
if ($(e.target).is(this)) {
$('#crm-qsearch-input').focus();
CRM.menubar.close();
}
});
$('#crm-qsearch form[name=search_block]').on('submit', function() {
if (!$('#crm-qsearch-input').val()) {
return false;
}
var $menu = $('#crm-qsearch-input').autocomplete('widget');
if ($('li.ui-menu-item', $menu).length === 1) {
var cid = $('li.ui-menu-item', $menu).data('ui-autocomplete-item').value;
......
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