diff --git a/frontend/javascript/code_snippets.js b/frontend/javascript/code_snippets.js index ca0bae6..50749d0 100644 --- a/frontend/javascript/code_snippets.js +++ b/frontend/javascript/code_snippets.js @@ -38,9 +38,9 @@ export function insertCodeSnippetCopyButtons() { codeBlocks.forEach(function (block) { const pre = block.parentNode; const copyButton = document.createElement('button'); - const svgIcon = ` - - + const svgIcon = ` + + ` copyButton.innerHTML = svgIcon; @@ -53,12 +53,12 @@ export function insertCodeSnippetCopyButtons() { copyButton.style.top = '10px'; copyButton.style.zIndex = '1'; copyButton.style.border = '1px solid var(--tw-prose-code-bg)'; // Add border style - copyButton.style.backgroundColor = '#21262d'; - copyButton.style.padding = '6px'; + copyButton.style.padding = '10px'; + copyButton.style.backdropFilter = 'blur(20px)'; copyButton.style.cursor = 'pointer'; copyButton.style.fontSize = '14px'; - copyButton.style.borderRadius='6px'; - copyButton.style.boxShadow= 'inset 0 0 0 1px var(--tw-prose-code-ring)'; + copyButton.style.borderRadius='10px'; + copyButton.style.boxShadow= 'inset 0 0 0 1.5px var(--tw-prose-code-ring)'; copyButton.addEventListener('click', function () { const contentToCopy = block.innerText; @@ -69,7 +69,7 @@ export function insertCodeSnippetCopyButtons() { document.execCommand('copy'); document.body.removeChild(tempTextarea); const copiedIcon = ` - + fill="#B4B4B8"/> `; copyButton.innerHTML = copiedIcon;