From 092046ae52691e37946c8403d6bfc7a2e9088eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Weber?= Date: Tue, 16 Nov 2021 00:16:31 +0100 Subject: [PATCH] copyToClipBoard: add missing right border for inline code #153 if disableInlineCopyToClipBoard=true --- layouts/partials/header.html | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/layouts/partials/header.html b/layouts/partials/header.html index 7cf29302ff..2e03b24215 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -29,10 +29,15 @@ display:none !important; } {{- if .Site.Params.disableInlineCopyToClipBoard }} - :not(pre) > code + span.copy-to-clipboard { - display: none; - } - {{- end }} + :not(pre) > code.copy-to-clipboard-inline + span.copy-to-clipboard { + display: none; + } + :not(pre) > code.copy-to-clipboard-inline { + border-bottom-right-radius: 2px; + border-top-right-radius: 2px; + border-right-width: 1px; + } + {{- end }} {{- partial "custom-header.html" . }}