From aa0d85646f97b4bb937ddfb9c7ca3be06533ae41 Mon Sep 17 00:00:00 2001 From: Yangshun Tay Date: Sun, 5 Apr 2020 17:56:11 +0800 Subject: [PATCH] Update styles.module.css --- .../src/theme/CodeBlock/styles.module.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css index dda21803f373..9d5e4ad9623a 100644 --- a/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css +++ b/packages/docusaurus-theme-live-codeblock/src/theme/CodeBlock/styles.module.css @@ -39,7 +39,7 @@ outline: none; padding: 0.4rem 0.5rem; position: absolute; - right: var(--ifm-pre-padding); + right: calc(var(--ifm-pre-padding) / 2); top: calc(var(--ifm-pre-padding) / 2); visibility: hidden; transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out,