Skip to content

Commit

Permalink
Use CSS transform for skip link (#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
choldgraf committed Feb 23, 2023
1 parent 4aa0673 commit 9819171
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
background-color: var(--pst-color-background);
color: var(--pst-color-link);
padding: 0.5rem;
translate: 0 -100%;
transition: translate 150ms ease-in-out;
z-index: $zindex-modal;
border-bottom: 1px solid var(--pst-color-border);

// This shows / hides the button
transform: translateY(-100%);
transition: transform 150ms ease-in-out;
&:focus {
translate: 0;
transform: translateY(0%);
}
}

0 comments on commit 9819171

Please sign in to comment.