added focus support for older browsers

This commit is contained in:
westtle 2024-02-18 00:12:11 +07:00
parent 199e7c3a15
commit e4a7c894e7
2 changed files with 5 additions and 2 deletions

View file

@ -74,9 +74,12 @@ ul { list-style: none; }
opacity: 1;
}
:focus { outline: 0.125rem solid hsla(0, 0%, 0%, 0.8); }
:focus:not(:focus-visible) { outline: none; }
:focus-visible {
outline: 0.125rem solid;
outline-color: hsla(var(--color-1, 0 0% 0% 1));
outline-color: hsla(var(--color-1));
outline-offset: var(--focus-offset, 0);
}

File diff suppressed because one or more lines are too long