aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-26 20:02:17 -0400
committertdro <tdro@noreply.example.com>2022-08-26 20:02:17 -0400
commit48b4ebde6b2ec65c4e05a8d2118ba04e2f0a3f03 (patch)
tree2fa902a77bab0e239642bdf96bf9ca3aec500e5f
parentb6e9452b9af315bd72f37ef76171b6aca243eb8e (diff)
downloadcanory-48b4ebde6b2ec65c4e05a8d2118ba04e2f0a3f03.tar.gz
canory-48b4ebde6b2ec65c4e05a8d2118ba04e2f0a3f03.tar.bz2
canory-48b4ebde6b2ec65c4e05a8d2118ba04e2f0a3f03.zip
assets/css/syntax-highlight-default: Hide copy button in markup
-rw-r--r--assets/css/syntax-highlight-default.css1
-rw-r--r--themes/default/layouts/_default/_markup/render-codeblock.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/assets/css/syntax-highlight-default.css b/assets/css/syntax-highlight-default.css
index 5163171..18e5ab5 100644
--- a/assets/css/syntax-highlight-default.css
+++ b/assets/css/syntax-highlight-default.css
@@ -27,7 +27,6 @@
code-block button {
border: 1px solid #ccc;
- display: none;
}
code-block header language-label a,
diff --git a/themes/default/layouts/_default/_markup/render-codeblock.html b/themes/default/layouts/_default/_markup/render-codeblock.html
index 8bc484b..22d47e4 100644
--- a/themes/default/layouts/_default/_markup/render-codeblock.html
+++ b/themes/default/layouts/_default/_markup/render-codeblock.html
@@ -8,7 +8,7 @@
<language-label>
<a href="#{{ $id }}">{{ $type }}</a>
</language-label>
- <button>
+ <button hidden>
{{ safeHTML (readFile (print (partial "function-paths.html" "static") "/icons/feather/copy.svg")) }}
<span>Copy</span>
</button>