Skip to content

Instantly share code, notes, and snippets.

@nathanrice
Created May 28, 2015 16:34
Show Gist options
  • Save nathanrice/249ed78dc8a6dabd05dd to your computer and use it in GitHub Desktop.
Save nathanrice/249ed78dc8a6dabd05dd to your computer and use it in GitHub Desktop.
Style new Genesis Accessibility output
/* ## Screen reader text
--------------------------------------------- */
.screen-reader-text,
.screen-reader-text span,
.screen-reader-shortcut {
position: absolute !important;
clip: rect(0, 0, 0, 0);
height: 1px;
width: 1px;
border: 0;
overflow: hidden;
color: #333;
background: #fff;
}
.screen-reader-text:focus,
.screen-reader-shortcut:focus,
.genesis-nav-menu .search input[type="submit"]:focus,
.widget_search input[type="submit"]:focus {
clip: auto !important;
height: auto;
width: auto;
display: block;
font-size: 1em;
font-weight: bold;
padding: 15px 23px 14px;
z-index: 100000; /* Above WP toolbar. */
text-decoration: none;
box-shadow: 0 0 2px 2px rgba(0,0,0,.6);
}
.more-link {
position: relative;
}
/* # Skip Links
---------------------------------------------------------------------------------------------------- */
.genesis-skip-link li {
height: 0;
width: 0;
list-style: none;
}
/* ## Accessible Menu
--------------------------------------------- */
.menu .menu-item:focus {
position: static;
}
.menu .menu-item > a:focus + ul.sub-menu,
.menu .menu-item.sfHover > ul.sub-menu {
left: auto;
opacity: 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment