Skip to content

Commit

Permalink
add skip to content
Browse files Browse the repository at this point in the history
  • Loading branch information
evanwill committed Jun 5, 2024
1 parent e62ee20 commit 8fb084d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<html lang="{{ site.lang | default: 'en-US' }}">
{% include head.html %}
<body>
<div id="skip-to-content"><a href="#main-content">Skip to main content</a></div>

<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-link" viewBox="0 0 24 24">
Expand Down
23 changes: 23 additions & 0 deletions _sass/custom/custom.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
// add custom sass here to override any styles
#skip-to-content a {
padding:6px;
position: absolute;
top:-100px;
left:0px;
color:white;
border-right:1px solid white;
border-bottom:1px solid white;
border-bottom-right-radius:8px;
background:#BF1722;
-webkit-transition: top 1s ease-out;
transition: top 1s ease-out;
z-index: 100;
}
#skip-to-content a:focus {
position:absolute;
left:0px;
top:0px;
outline-color:transparent;
-webkit-transition: top .1s ease-in;
transition: top .1s ease-in;
}

.site-header {
background: black;
.cb-logo {
Expand Down

0 comments on commit 8fb084d

Please sign in to comment.