feat: add skip to content link
This commit is contained in:
parent
0f47b5fda7
commit
9adfd1e2de
3 changed files with 19 additions and 1 deletions
|
@ -167,6 +167,23 @@ mark {
|
|||
padding-block: var(--spacing-0\.25);
|
||||
}
|
||||
|
||||
[href="#main"] {
|
||||
background-color: var(--color-background);
|
||||
margin-inline: var(--spacing-1);
|
||||
}
|
||||
|
||||
[href="#main"]:not(:focus) {
|
||||
border: 0;
|
||||
clip: rect(0 0 0 0);
|
||||
height: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html:focus-within {
|
||||
scroll-behavior: auto;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue