Skip to content

Commit

Permalink
Add "skip to main content" link
Browse files Browse the repository at this point in the history
  • Loading branch information
PJB3005 committed May 7, 2024
1 parent 6ffdccb commit f8d0f72
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
10 changes: 10 additions & 0 deletions assets/scss/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,13 @@ article#main-article {
margin-bottom: 1rem;
}
}

.skip-link {
position: absolute;
top: -3em;
background: #fff;

&:focus {
top: 0;
}
}
1 change: 1 addition & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
{{ partial "head_includes.html" }}
</head>
<body lang="en">
<a href="#main" class="skip-link">Skip to main content</a>
{{ partial "vue_templates.html" }}

<div class="section-shadow mt-2">
Expand Down

0 comments on commit f8d0f72

Please sign in to comment.