This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Skip Link Improvement

  • Loading branch information...
iamtakashi committed Nov 12, 2015
1 parent 1a78c40 commit 8d6241fc970b50e635e80faed8111a5b7b8b90c5
Showing with 8 additions and 0 deletions.
  1. +3 −0 js/skip-link-focus-fix.js
  2. +5 −0 style.css
@@ -27,6 +27,9 @@
}
element.focus();
+
+ // Repositions the window on jump-to-anchor to account for admin bar and border height.
+ window.scrollBy( 0, -53 );
}
}, false );
}
View
@@ -1519,6 +1519,11 @@ blockquote:after,
word-wrap: break-word;
}
+/* Do not show the outline on the skip link target. */
+#content[tabindex="-1"]:focus {
+ outline: 0;
+}
+
.site-main {
margin-bottom: 3.5em;
}

0 comments on commit 8d6241f

Please sign in to comment.