a11y: simplify css selector #730

and make it only run on a single img contained in a link
This commit is contained in:
Sören Weber 2023-11-28 22:25:10 +01:00
parent 14e2fb46c4
commit f9f3447228
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D

View file

@ -413,9 +413,9 @@ article a:focus .copy-to-clipboard {
outline: none; outline: none;
text-decoration: underline; text-decoration: underline;
} }
article a:hover:has(img), article a:hover > img:only-child:empty,
article a:active:has(img), article a:active > img:only-child:empty,
article a:focus:has(img){ article a:focus > img:only-child:empty{
outline: auto; outline: auto;
} }