flobrosch / valadoc-org

32 stars 5 forks source link

Refactor sidebar li anchors #10

Closed danirabbit closed 8 years ago

danirabbit commented 8 years ago

At the moment, :before and :after pseudo-elements are applied to the anchor in sidebar li elements. This is problematic because it means we can't expand the anchor element to the full size of the li. Expanding it would allow us to hover and click any of the highlighted li.

We need to do a little refactoring here to put the text in its own span. Then psuedo elements can apply to the span and the anchor can fill the entire li element.