1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-09-19 20:02:10 +00:00

CSS: fix focus indicators on legacy browsers.

This commit is contained in:
Rohan Kumar 2022-05-13 17:16:15 -07:00
parent e523956ecd
commit 3909228b19
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -296,12 +296,13 @@ section[aria-labelledby="webmentions"] {
* instead of focus but older/simpler browsers only support :focus.
* I borrowed these directives from
* https://www.tempertemper.net/blog/refining-focus-styles-with-focus-visible
* To my knowledge: <a>, <summary>, and <pre tabindex=0> are the only
* focusable elements.
* */
a:focus,
summary:focus,
pre[tabindex]:focus,
:focus-visible {
pre[tabindex]:focus {
outline: 3px solid;
}