Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
586 views
in Q2A Core by
edited

In /qa/unanswered the sub-menu item linking to "unanswered?by=selected" gets put on the class ".qa-nav-sub-selected", which is also used to tag the anchor of the current location in the menu tree.

A simple workaround is to put a more precise selector in "qa-styles.css":

.qa-nav-sub-link:hover, li .qa-nav-sub-selected {…}

notice the "li " that makes this one only match for elements below "li", but not "li" itself. , This way though, you may probably loose some wanted feature, so:

Of course the right thing to do was, to name the selectors differently in the code, depending on what is wanted and when they should match!

Kind regards

Peter

Q2A version: 1.5.2
by
Oops! Good catch. I will fix this for Q2A 1.5.3.

1 Answer

0 votes
by

use this code to override default css attributes:

.qa-nav-sub-list.qa-nav-sub-selected {
   
}

insteade of :

.qa-nav-sub-selected{

}

...