mirror of
https://github.com/pacnpal/steadirect.git
synced 2025-12-20 04:01:09 -05:00
update index.html: improve skip link accessibility with enhanced focus styles
This commit is contained in:
25
index.html
25
index.html
@@ -83,16 +83,25 @@
|
|||||||
}
|
}
|
||||||
.skip-link {
|
.skip-link {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -40px;
|
width: 1px;
|
||||||
left: 0;
|
height: 1px;
|
||||||
background: var(--button-bg);
|
padding: 0;
|
||||||
color: white;
|
margin: -1px;
|
||||||
padding: 8px;
|
overflow: hidden;
|
||||||
z-index: 100;
|
clip: rect(0, 0, 0, 0);
|
||||||
transition: top 0.3s;
|
white-space: nowrap;
|
||||||
|
border: 0;
|
||||||
}
|
}
|
||||||
.skip-link:focus {
|
.skip-link:focus {
|
||||||
top: 0;
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
margin: 0;
|
||||||
|
clip: auto;
|
||||||
|
white-space: normal;
|
||||||
|
padding: 8px;
|
||||||
|
background: var(--button-bg);
|
||||||
|
color: white;
|
||||||
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.site-title {
|
.site-title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|||||||
Reference in New Issue
Block a user