summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/assets/css/chroma-custom.css
diff options
context:
space:
mode:
Diffstat (limited to 'themes/danix-xyz-hacker/assets/css/chroma-custom.css')
-rw-r--r--themes/danix-xyz-hacker/assets/css/chroma-custom.css14
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/danix-xyz-hacker/assets/css/chroma-custom.css b/themes/danix-xyz-hacker/assets/css/chroma-custom.css
index ef43ce2..d632e09 100644
--- a/themes/danix-xyz-hacker/assets/css/chroma-custom.css
+++ b/themes/danix-xyz-hacker/assets/css/chroma-custom.css
@@ -119,6 +119,15 @@
overflow-x: visible;
}
+/* Re-apply padding after the reset above, with higher specificity */
+.code-block-wrapper .highlight .lntd:first-child pre {
+ padding: 0.875rem 0;
+}
+
+.code-block-wrapper .highlight .lntd:last-child pre {
+ padding: 0.875rem 1rem;
+}
+
/* === Chroma table layout (lineNumbersInTable = true) === */
.highlight table {
@@ -161,6 +170,11 @@
overflow-x: auto;
}
+.code-block-wrapper pre,
+.code-block-wrapper code {
+ font-size: 0.875em;
+}
+
/* === Syntax token colors (dark theme default) === */
.highlight {