From f9f3447228dd46770ae3c4e96defc1134eb17751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 28 Nov 2023 22:25:10 +0100 Subject: [PATCH] a11y: simplify css selector #730 and make it only run on a single img contained in a link --- static/css/theme.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/static/css/theme.css b/static/css/theme.css index 92265bf7ea..788ffa23ef 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -413,9 +413,9 @@ article a:focus .copy-to-clipboard { outline: none; text-decoration: underline; } -article a:hover:has(img), -article a:active:has(img), -article a:focus:has(img){ +article a:hover > img:only-child:empty, +article a:active > img:only-child:empty, +article a:focus > img:only-child:empty{ outline: auto; }