- Hero card fully variable-driven: --hero-card-bg/color/overlay/border-radius/padding/max-width - Alternative hero variant: --hero-alt-card-* for secondary theme - Overlay bg-position and bg-size now customizable via variables - Mobile breakpoint: photo bg hidden, hero full-bleed on small screens - Added fallback values to 1365 var() calls in template.css - .btn --btn-bg changed from transparent to var(--body-bg) in dark/light themes - .offcanvas-header .btn-close gets background-color from overlay - Stripped file info headers (@package/DEFGROUP/VERSION) from 48 files, kept copyright/SPDX - Synced all theme variables across standard and custom templates - Removed 26 mobile.php layout overrides - Added *.py to .gitignore, card-border-radius fallback Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
/* Copyright (C) 2025 Moko Consulting <hello@mokoconsulting.tech>
|
|
|
|
This file is part of a Moko Consulting project.
|
|
|
|
SPDX-License-Identifier: GPL-3.0-or-later
|
|
*/
|
|
|
|
(function () {
|
|
'use strict';
|
|
|
|
/**
|
|
* @package Joomla.Site
|
|
* @subpackage Templates.MokoCassiopeia
|
|
* @copyright (C) 2020 Open Source Matters, Inc. <https://www.joomla.org>
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
* @since 4.0.0
|
|
*/
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
var allMenus = document.querySelectorAll('ul.mod-menu_dropdown-metismenu');
|
|
allMenus.forEach(function (menu) {
|
|
// eslint-disable-next-line no-new, no-undef
|
|
var mm = new MetisMenu(menu, {
|
|
triggerElement: 'button.mm-toggler'
|
|
}).on('shown.metisMenu', function (event) {
|
|
window.addEventListener('click', function mmClick(e) {
|
|
if (!event.target.contains(e.target)) {
|
|
mm.hide(event.detail.shownElement);
|
|
window.removeEventListener('click', mmClick);
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
})();
|
|
|