Fix desktop submenu position and stacking, taller homepage images
Build and Deploy (dev) / build (push) Successful in 4m42s
Build and Deploy (dev) / build (push) Successful in 4m42s
- Submenu hover bridge now matches the menu item height (was a fixed 30px), so the dropdown opens below the menu instead of over it - Give .menu-submenu z-index 100 so it covers the category pills and media overlays - Small homepage news images use a 16:9 aspect ratio on desktop, so they grow with the column width (min-height 140px stays) - Rename Gruntfile.js to Gruntfile.cjs: package.json has type=module, which broke the grunt build Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e48e8978b6
commit
179413aef5
11 files changed
+27
-9
No files matched your search
+1
-1
@@ -16,7 +16,7 @@
|
||||
$('.menu-submenu > ul.submenu').slideUp(400, function(){$(this).closest('.menu-submenu').remove()});
|
||||
$('.hover', $container).removeClass('hover');
|
||||
$menuItem.addClass('hover');
|
||||
var submenu = $('<div style="width: ' + $menuItem.outerWidth() + 'px"><a href="' + $menuItem.find('a').attr('href') + '" style="width: ' + $menuItem.outerWidth() + 'px"></a></div>').append($menuItem.children('ul.submenu').clone());
|
||||
var submenu = $('<div style="width: ' + $menuItem.outerWidth() + 'px"><a href="' + $menuItem.find('a').attr('href') + '" style="width: ' + $menuItem.outerWidth() + 'px; height: ' + $menuItem.outerHeight() + 'px"></a></div>').append($menuItem.children('ul.submenu').clone());
|
||||
var pos = $menuItem.offset();
|
||||
submenu.addClass('menu-submenu').css({top: pos.top, left: pos.left});
|
||||
submenu.on( "mouseleave", function() {
|
||||
|
||||
Reference in new issue
Block a user