Skip to content

Commit

Permalink
Updated skip to main link.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers authored and joemull committed Aug 7, 2024
1 parent 0151e1a commit 138ee16
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions src/static/common/css/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -299,25 +299,31 @@ article .list-romanupper {
margin-top: 15px;
}

/* Styling for skip to main content link */
.skip-container {
position: absolute;
top: -100px;
left: 50%;
transform: translateX(-50%);
z-index: 100;
transition: top 0.3s;
position: relative;
display: flex;
justify-content: center;
align-items: center;
height: 0;
overflow: hidden;
}

.skip-to-content {
background: #f0f0f0;
color: #000;
padding: 8px 16px;
text-decoration: none;
display: inline-block;
.skip-to-content,
.skip-to-nav {
position: absolute;
left: -999px;
}

.skip-to-content:focus,
.skip-to-content:hover,
.skip-to-nav:focus {
position: relative;
left: 0;
margin-block-start: 10px;
margin-block-end: 10px;
}

.skip-container:focus-within {
top: 10px;
height: auto;
overflow: visible;
}

0 comments on commit 138ee16

Please sign in to comment.