Skip to content

Commit 2f8eb73

Browse files
committed
add skip link
1 parent 75f588a commit 2f8eb73

2 files changed

Lines changed: 26 additions & 1 deletion

File tree

web-components/nav-header/nav-header.css

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,30 @@ form div > img {
206206
margin-left: 0.625em;
207207
}
208208

209-
@media screen and (max-width: 768px) {
209+
.skip-link {
210+
clip: rect(1px, 1px, 1px, 1px);
211+
position: absolute !important;
212+
height: 1px;
213+
width: 1px;
214+
overflow: hidden;
215+
}
210216

217+
.skip-link:focus {
218+
background-color: #f1f1f1;
219+
border-radius: 3px;
220+
/* box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6); */
221+
clip: auto !important;
222+
color: #21759b;
223+
display: block;
224+
font-size: 0.875rem;
225+
font-weight: bold;
226+
height: auto;
227+
left: 0.3125em;
228+
line-height: normal;
229+
padding: 1em;
230+
/* padding: 15px 23px 14px; */
231+
text-decoration: none;
232+
top: 0.3125em;
233+
width: auto;
234+
z-index: 3000;
211235
}

web-components/nav-header/nav-header.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<link href="jekyll-tipue-search/assets/tipuesearch/css/tipuesearch-component.css" rel="stylesheet">
33
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
44
<header>
5+
<a class="skip-link" href="#main">Skip to content</a>
56
<nav aria-label="masthead">
67
<section class="masthead">
78
<a href="index.html" class="logo">

0 commit comments

Comments
 (0)