[Glitch] Accessibility: Add skip link & landmark regions to settings
Port e54f927149da9e2f6aebb7701f2f9ece9c4046db to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
0741966d5f
commit
1043c9636f
@ -136,6 +136,11 @@ $content-width: 840px;
|
|||||||
transition: all 100ms linear;
|
transition: all 100ms linear;
|
||||||
transition-property: color, background-color;
|
transition-property: color, background-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus-visible {
|
||||||
|
outline: var(--outline-focus-default);
|
||||||
|
outline-offset: -2px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ul {
|
ul {
|
||||||
@ -1902,6 +1907,28 @@ a.sparkline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navigation-skip-link {
|
||||||
|
position: fixed;
|
||||||
|
z-index: 100;
|
||||||
|
margin: 10px;
|
||||||
|
padding: 10px 16px;
|
||||||
|
border-radius: 10px;
|
||||||
|
font-size: 15px;
|
||||||
|
color: var(--color-text-primary);
|
||||||
|
background: var(--color-bg-primary);
|
||||||
|
box-shadow: var(--dropdown-shadow);
|
||||||
|
|
||||||
|
/* Hide visually when not focused */
|
||||||
|
&:not(:focus-within) {
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
clip-path: inset(50%);
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.section-skip-link {
|
.section-skip-link {
|
||||||
float: right;
|
float: right;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user