Support :focus for new tab info in dropdown menus

This commit is contained in:
Eric Lippmann 2016-01-11 16:51:23 +01:00
parent 9a5e69a8ec
commit 672e8359e4
1 changed files with 5 additions and 10 deletions

View File

@ -77,12 +77,10 @@
width: 14em;
}
.tabs > .dropdown-nav-item > ul > li:hover {
> a {
.tabs > .dropdown-nav-item > ul > li:hover > a {
background-color: @gray-lighter;
text-decoration: none;
}
}
// Dropdown tabs after the fourth title should be right-aligned
.tabs > li:nth-child(n+5).dropdown-nav-item > ul {
@ -96,12 +94,9 @@
font-size: @font-size-small;
left: -999em;
position: relative;
&:focus {
position: static;
}
}
li:hover > a > .display-on-hover {
.dropdown-nav-item > ul > li > a:focus > .display-on-hover,
.dropdown-nav-item > ul > li:hover > a > .display-on-hover {
position: static;
}