From 9dcaa2621948c6de09002ae353f8063e3a1bf9c7 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:36:41 +0100 Subject: [PATCH 1/2] Load variables before applying syntax highlighting --- source/stylesheets/styles.css.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/stylesheets/styles.css.scss b/source/stylesheets/styles.css.scss index 1516751..58e2f72 100644 --- a/source/stylesheets/styles.css.scss +++ b/source/stylesheets/styles.css.scss @@ -1,6 +1,6 @@ @import "bootstrap/scss/bootstrap.scss"; -@import "syntax-highlighting"; @import "variables"; +@import "syntax-highlighting"; @import "header"; @import "callouts"; @import "codeblocks"; From 68d800b40b89ca1bcb473e78c336f86101200405 Mon Sep 17 00:00:00 2001 From: Hugo Gruson <10783929+Bisaloo@users.noreply.github.com> Date: Thu, 31 Oct 2024 10:48:31 +0100 Subject: [PATCH 2/2] Use mono_font variable in syntax-highlighting.scss --- source/stylesheets/syntax-highlighting.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/stylesheets/syntax-highlighting.scss b/source/stylesheets/syntax-highlighting.scss index e92e431..e534e58 100644 --- a/source/stylesheets/syntax-highlighting.scss +++ b/source/stylesheets/syntax-highlighting.scss @@ -8,7 +8,7 @@ pre .img img, pre .r-plt img { } code { - font-family: 'Source Code Pro', monospace; + font-family: $mono_font, monospace; color: #000; } @@ -21,7 +21,7 @@ p > code { /* Links ---------------------------------------------------- */ code a:any-link { - font-family: 'Source Code Pro', monospace; + font-family: $mono_font, monospace; border-radius: 4px; text-decoration: underline; text-decoration-color: $gray-400;