Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "skip to" link #415

Closed
jvine opened this issue Aug 2, 2019 · 0 comments
Closed

Add "skip to" link #415

jvine opened this issue Aug 2, 2019 · 0 comments
Assignees

Comments

@jvine
Copy link
Contributor

jvine commented Aug 2, 2019

This is the HTML and CSS from SearchWorks...

Insert at top of <body> tag:

<div id="skip-link">
    <a href="#main" class="element-invisible element-focusable" data-turbolinks="false">Skip to main content</a>
  </div>
#skip-link {
    margin-left: 10px;
    padding-top: 4px;
    position: absolute;
    top: 0;
    z-index: 1;
}
#skip-link .element-invisible {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
}
#skip-link .element-invisible.element-focusable:active, #skip-link .element-invisible.element-focusable:focus {
    position: static !important;
    clip: auto;
    overflow: visible;
    height: auto;
}
#skip-link a:focus {
    background-color: #ffffff;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 0 6px #000000;
    padding: 6px 15px;
    margin: 0;
    -moz-border-radius: 0 0 6px 6px;
    -moz-box-shadow: 0 0 6px #000000;
    -webkit-border-radius: 0 0 6px 6px;
    -webkit-box-shadow: 0 0 6px #000000;
}

skipto

@cbeer cbeer self-assigned this Aug 2, 2019
camillevilla added a commit that referenced this issue Aug 2, 2019
Add 'skip to' link; fixes #415
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants