From 4dd81d8d9136d617cc4814a822d9ce70a0b1552a Mon Sep 17 00:00:00 2001 From: KK Date: Tue, 5 Nov 2024 11:44:35 +0100 Subject: [PATCH] fix(core): fix footer link dimensions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Set display property of links in site footer which are visualised by icons – which contain images or tags for Material Symbols – to inline-block to make them fit the icons' dimensions. Prevents links that are smaller in size than their visual content, which can cause unexpected behaviour when hovering. --- apis_core/core/static/css/core.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apis_core/core/static/css/core.css b/apis_core/core/static/css/core.css index 7783ec2bc..32e777e26 100644 --- a/apis_core/core/static/css/core.css +++ b/apis_core/core/static/css/core.css @@ -6,3 +6,8 @@ a #logo:hover { opacity: 0.5; } + +footer a:has(> img), +footer a:has(> span[class*="material-symbols"]) { + display: inline-block; +}