css: universal focus-visible styles

This commit is contained in:
He4eT 2026-03-09 03:14:07 +01:00 committed by Alexey
commit e2b75577de

View file

@ -3,6 +3,11 @@
background: rgba(0, 0, 0, 0.8); background: rgba(0, 0, 0, 0.8);
} }
*:focus-visible {
outline: 4px solid hsl(0, 0%, 0%, 0.7);
outline-offset: 4px;
}
/* Links */ /* Links */
a { a {
@ -11,11 +16,6 @@ a {
text-decoration: none; text-decoration: none;
} }
a:focus-visible {
outline: 4px solid hsl(0, 0%, 0%, 0.7);
outline-offset: 4px;
}
a:hover { a:hover {
border-color: currentColor; border-color: currentColor;
} }