mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02: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.
|
* instead of focus but older/simpler browsers only support :focus.
|
||||||
* I borrowed these directives from
|
* I borrowed these directives from
|
||||||
* https://www.tempertemper.net/blog/refining-focus-styles-with-focus-visible
|
* 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,
|
a:focus,
|
||||||
summary:focus,
|
summary:focus,
|
||||||
pre[tabindex]:focus,
|
pre[tabindex]:focus {
|
||||||
:focus-visible {
|
|
||||||
outline: 3px solid;
|
outline: 3px solid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue