mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
CSS: fix focus indicators on legacy browsers.
This commit is contained in:
parent
e523956ecd
commit
3909228b19
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue