From d690b86f9a5195b136486071c08425b982416703 Mon Sep 17 00:00:00 2001 From: Shrikant Giri Date: Fri, 21 Nov 2025 15:19:06 +0530 Subject: [PATCH] Add copy button to code blocks for improved documentation usability --- docs_theme/css/copy-button.css | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs_theme/css/copy-button.css b/docs_theme/css/copy-button.css index f263da552..cbd38bc3f 100644 --- a/docs_theme/css/copy-button.css +++ b/docs_theme/css/copy-button.css @@ -6,16 +6,15 @@ padding: 2px 6px; cursor: pointer; - background: #f7f7f9; /* code block bg */ - border: 1px solid #e1e1e8; /* code block border */ + background: #f7f7f9; + border: 1px solid #e1e1e8; border-radius: 3px; - color: #dc322f !important; /* fallback if no span */ + color: #dc322f !important; box-shadow: 0 1px 1px rgba(0,0,0,0.04); } -/* Separate rule for the span inside the button */ .copy-block-button span { color: #dc322f !important; }