forked from mirror/_s
Merge pull request #493 from davidakennedy/newmenu
Adjust dropdown menu styles so they work with screen readers
This commit is contained in:
commit
37af1521d8
10
style.css
10
style.css
|
@ -382,15 +382,14 @@ a:active {
|
||||||
}
|
}
|
||||||
.main-navigation ul ul {
|
.main-navigation ul ul {
|
||||||
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
|
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
|
||||||
display: none;
|
|
||||||
float: left;
|
float: left;
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1.5em;
|
top: 1.5em;
|
||||||
|
left: -999em;
|
||||||
z-index: 99999;
|
z-index: 99999;
|
||||||
}
|
}
|
||||||
.main-navigation ul ul ul {
|
.main-navigation ul ul ul {
|
||||||
left: 100%;
|
left: -999em;
|
||||||
top: 0;
|
top: 0;
|
||||||
}
|
}
|
||||||
.main-navigation ul ul a {
|
.main-navigation ul ul a {
|
||||||
|
@ -405,7 +404,10 @@ a:active {
|
||||||
.main-navigation ul ul a:hover {
|
.main-navigation ul ul a:hover {
|
||||||
}
|
}
|
||||||
.main-navigation ul li:hover > ul {
|
.main-navigation ul li:hover > ul {
|
||||||
display: block;
|
left: auto;
|
||||||
|
}
|
||||||
|
.main-navigation ul ul li:hover > ul {
|
||||||
|
left: 100%;
|
||||||
}
|
}
|
||||||
.main-navigation .current_page_item a,
|
.main-navigation .current_page_item a,
|
||||||
.main-navigation .current-menu-item a {
|
.main-navigation .current-menu-item a {
|
||||||
|
|
Reference in New Issue