mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 15:28:28 -04:00
29 lines
586 B
CSS
29 lines
586 B
CSS
/* accessible invisibility stuff pulled from @reach/skip-nav:
|
|
https://github.com/reach/reach-ui/blob/main/packages/skip-nav/styles.css */
|
|
|
|
.hidden {
|
|
border: 0;
|
|
clip: rect(0 0 0 0);
|
|
height: 1px;
|
|
width: 1px;
|
|
margin: -1px;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
position: absolute;
|
|
}
|
|
|
|
.hidden:focus {
|
|
padding: 1rem;
|
|
position: fixed;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 99999;
|
|
width: auto;
|
|
height: auto;
|
|
clip: auto;
|
|
background: var(--colors-super-duper-light);
|
|
color: var(--colors-link);
|
|
border: 2px solid var(--colors-kinda-light);
|
|
text-decoration: underline;
|
|
}
|