From 4fab1225e38bfb3a2b87bf588423f348f6f9c664 Mon Sep 17 00:00:00 2001 From: Helen Chong <119173961+helenclx@users.noreply.github.com> Date: Thu, 20 Jun 2024 23:21:40 +0800 Subject: [PATCH] Add cusotm properties of code blocks --- themes/leilukin/stylesheets/all.css | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/themes/leilukin/stylesheets/all.css b/themes/leilukin/stylesheets/all.css index fd58f0a..7c45f59 100644 --- a/themes/leilukin/stylesheets/all.css +++ b/themes/leilukin/stylesheets/all.css @@ -24,6 +24,7 @@ --clr-body-txt: #1f1f23; --clr-content-bg: #fbfbf7; --clr-pinned-bg: #fffddd; + --clr-code-bg: #e5e2dc; --clr-highlight: #ffdd00; --clr-border-main: #c6ccc8; --clr-link-hover: #d94c7b; @@ -154,7 +155,7 @@ aside { margin-inline-start: 1rem; margin-bottom: 1rem; padding: 1rem; - background-color: #e5e2dc; + background-color: var(--clr-code-bg); border-left: 2px solid var(--clr-body-txt); } blockquote em, @@ -164,7 +165,7 @@ aside em { pre { font-family: "Cousine webfont", monospace; font-size: 0.85em; - background-color: #e5e2dc; + background-color: var(--clr-code-bg); margin: 1rem 0rem; overflow-x: auto; white-space: pre; @@ -172,7 +173,7 @@ pre { code { font-family: "Cousine webfont", monospace; font-size: 0.85em; - background-color: #e5e2dc; + background-color: var(--clr-code-bg); padding: 0.125em 0.25em 0em 0.25em; vertical-align: bottom; white-space: break-spaces;