Skip to content

Instantly share code, notes, and snippets.

@JohnBunka
Created May 29, 2015 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnBunka/cbbc6f4e8c99fdc1d29e to your computer and use it in GitHub Desktop.
Save JohnBunka/cbbc6f4e8c99fdc1d29e to your computer and use it in GitHub Desktop.
Enable Genesis 2.2 Accessibility CSS
/* ## 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