My current project involves working with Orchard on a Bootstrap-based theme. The CSS code for the menu navigation is functioning properly when hovering over the second level menu.
.dropdown-menu .dropdown-menu {
left: 100% !important;
top: 0;
}
.dropdown .dropdown:hover > .dropdown-menu,
.dropdown .dropdown .dropdown:hover > .dropdown-menu,
.dropdown .dropdown .dropdown .dropdown:hover > .dropdown-menu {
display: block;
}
.dropdown-menu i {
line-height: 1.42857143;
}
I now want to modify the drop-down menu so that all levels open only on click, as this feature currently does not work on touch-based devices. When I change ':hover' to ':focus', everything closes when the second-level 'nav-bar' is clicked. I am not very experienced in HTML/CSS coding, so I am uncertain about how this operates. I assume 'dropdown' is the name of the 'ul' class and 'dropdown-menu' signifies the 'div' where the menu is located, but since all the code is generated automatically, I may be mistaken. Additionally, I apologize for any language barriers. Thank you.