diff --git a/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless-api_spi.css b/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless-api_spi.css index d3b72dd68..2b3ca0386 100644 --- a/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless-api_spi.css +++ b/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless-api_spi.css @@ -109,10 +109,13 @@ ul.nav-list li { float: none; } /* doesn't seem to pick up this on focus */ -.clickableNavListTab, ul.nav-list li:focus { +ul.nav-list li:focus { background-color: #D6D9E4; color: #253441; } +.clickableNavListTab { + color: #bb7a2a; } + .clickableNavListTab:hover { cursor: pointer; } diff --git a/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless.css b/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless.css index c4b661607..483a818c9 100644 --- a/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless.css +++ b/src/main/content/antora_ui/src/css/javadoc-extended-stylesheet-frameless.css @@ -114,9 +114,12 @@ float: none; } /* doesn't seem to pick up this on focus */ - .clickableNavListTab, ul.nav-list li:focus { + ul.nav-list li:focus { background-color: #D6D9E4; color: #253441; } + + .clickableNavListTab { + color: #bb7a2a; } .clickableNavListTab:hover { cursor: pointer; } diff --git a/src/main/content/antora_ui/src/js/06-javadocs.js b/src/main/content/antora_ui/src/js/06-javadocs.js index b67e27967..a1d3609ad 100644 --- a/src/main/content/antora_ui/src/js/06-javadocs.js +++ b/src/main/content/antora_ui/src/js/06-javadocs.js @@ -368,8 +368,8 @@ function hideFooter(element) { function addNavHoverListener() { var javadoc_container = $("#javadoc_container").contents(); - var rightFrame = javadoc_container.find(CLASS_FRAME); - var tabs = rightFrame.contents().find("ul.navList li:has(a)"); + var navHeader = javadoc_container.find(".top-nav"); + var tabs = navHeader.contents().find("li:has(a)"); tabs.off("mouseover").on("mouseover", function() { $(this).addClass("clickableNavListTab"); });