From 5ddc97200e9b4a597720d0f30b23be2f8c597af3 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Mon, 9 Jan 2023 09:39:51 +0100 Subject: [PATCH] docs: don't treat readme shields as normal images --- website/src/css/custom.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/css/custom.css b/website/src/css/custom.css index 4087699ef2..f4ca4b59a2 100644 --- a/website/src/css/custom.css +++ b/website/src/css/custom.css @@ -88,12 +88,12 @@ main img { box-shadow: var(--ifm-global-shadow-lw); } -main p > img { +main p > img:not([src^="https://img.shields.io/"]) { /* give inline images a border */ border: var(--ifm-global-border-width) solid var(--unleash-color-gray); } -main :is(p, figure) > img { +main :is(p, figure) > img:not([src^="https://img.shields.io/"]) { /* round corners to match the rest of the page */ border-radius: var(--ifm-global-radius);