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; }