Update Logo rendering

This commit is contained in:
2026-03-06 09:34:09 +01:00
parent 27a4ac604f
commit 79a31340a8
9 changed files with 137 additions and 99 deletions

View File

@@ -87,6 +87,30 @@ jQuery(function(){
this.blur();
});
(function enhanceHeaderMenu(){
var $menu = jQuery('#dokuwiki__header .header__menu');
if ($menu.length === 0) {
return;
}
function closeMenu() {
$menu.removeAttr('open');
}
jQuery(document).on('click', function (event) {
if (!jQuery(event.target).closest($menu).length) {
closeMenu();
}
});
jQuery(document).on('keydown', function (event) {
if (event.key === 'Escape') {
closeMenu();
}
});
})();
// make edit toolbar icons themeable by converting img icons to CSS masks
(function enhanceEditToolbarIcons() {
function toMaskIcons() {