From a1dcd70043ef414decff800467c118e846b371b6 Mon Sep 17 00:00:00 2001 From: Tony Date: Wed, 14 Jan 2026 15:03:26 -0600 Subject: [PATCH] use icon instead of "quote" --- .github/workflows/release-docs.yml | 1 - src/quote.js | 6 +++++- src/style.css | 13 +++++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-docs.yml b/.github/workflows/release-docs.yml index 37c9a74..72aeed7 100644 --- a/.github/workflows/release-docs.yml +++ b/.github/workflows/release-docs.yml @@ -33,7 +33,6 @@ jobs: cat src/quote.js echo '' echo '' } > build/after-body.html diff --git a/src/quote.js b/src/quote.js index 665908c..942a1f7 100644 --- a/src/quote.js +++ b/src/quote.js @@ -25,7 +25,11 @@ const btn = document.createElement("button"); btn.type = "button"; btn.className = "quote-btn"; - btn.textContent = "Quote"; + btn.textContent = ""; + btn.innerHTML = ` + + Quote + `; btn.addEventListener("click", (e) => { e.preventDefault(); e.stopPropagation(); diff --git a/src/style.css b/src/style.css index 0e112a0..2e3be88 100644 --- a/src/style.css +++ b/src/style.css @@ -231,6 +231,19 @@ pre code{ padding: 0; } +.quote-icon { + display: inline-block; + width: 0.9em; + height: 0.9em; + vertical-align: middle; + background-repeat: no-repeat; + background-size: contain; + background-image: url("data:image/svg+xml;utf8,\ +\ +\ +"); +} + /* Small-screen polish */ @media (max-width: 520px){ header#title-block-header .title{ font-size: 1.45rem; }