aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-06-14 20:28:58 -0400
committertdro <tdro@noreply.example.com>2022-06-14 20:28:58 -0400
commit98b3e15d6d5a80912170369789a7d3f5720d796e (patch)
tree29ce31dd2f0aea8b5d01d22431876b903d9e3c7b
parent32c9a1b2e5ad188bff0734b2f8888c075eedc1a9 (diff)
downloadcanory-98b3e15d6d5a80912170369789a7d3f5720d796e.tar.gz
canory-98b3e15d6d5a80912170369789a7d3f5720d796e.tar.bz2
canory-98b3e15d6d5a80912170369789a7d3f5720d796e.zip
themes/default/layouts/_default/_markup/render-codeblock: Caption only when set
Exclude <code> from global hover border radius.
-rw-r--r--assets/css/default.css2
-rw-r--r--themes/default/layouts/_default/_markup/render-codeblock.html2
2 files changed, 1 insertions, 3 deletions
diff --git a/assets/css/default.css b/assets/css/default.css
index fd2132a..e78991d 100644
--- a/assets/css/default.css
+++ b/assets/css/default.css
@@ -134,7 +134,7 @@
color: var(--foreground);
}
-:hover:not(a):not(img):not(summary):not(nav):not(abbr):not(form) {
+:hover:not(a):not(img):not(summary):not(nav):not(abbr):not(form):not(code) {
border-radius: 0.5rem;
}
diff --git a/themes/default/layouts/_default/_markup/render-codeblock.html b/themes/default/layouts/_default/_markup/render-codeblock.html
index 2381216..1555553 100644
--- a/themes/default/layouts/_default/_markup/render-codeblock.html
+++ b/themes/default/layouts/_default/_markup/render-codeblock.html
@@ -16,6 +16,4 @@
{{ with $caption }}
<footer>{{ . | markdownify }}</footer>
-{{ else }}
- <footer>Code Snippet</footer>
{{ end }}