From 6bdf871be609612f6f8f25d210a6d3450b749870 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Tue, 13 Apr 2021 00:12:57 +0200 Subject: [PATCH] added distinction between main and monospace fonts --- README.md | 1 + assets/scss/style.scss | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 30d107f..1ec028f 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ summaryLength = 70 # number of words for article summaries navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circle" fontFamily = "JetBrains Mono" # changes the font, default "JetBrains Mono" + monospaceFontFamily = "JetBrains Mono" # changes the monospace font for code, default "JetBrains Mono" contentWidth = "1000px" # maximum width of the site content, css syntax discreteCards = false # enable discrete card style; default false diff --git a/assets/scss/style.scss b/assets/scss/style.scss index 3427cef..0d75361 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -4,6 +4,7 @@ $dim_fg_color: {{ .Site.Params.dimForegroundColor | default "#bababa" }}; $stroke_color: {{ .Site.Params.strokeColor | default "#4f4f4f" }}; $accent_color: {{ .Site.Params.accentColor | default "#db5793" }}; $main_font: {{ .Site.Params.fontFamily | default "JetBrains Mono" }}; +$mono_font: {{ .Site.Params.monospaceFontFamily | default "JetBrains Mono" }}; $highlight_bg_color: {{ .Site.Params.highlightBgColor | default "#34363b" }}; $content_width: {{ .Site.Params.contentWidth | default "1000px" }} @@ -125,7 +126,7 @@ article, .articlePreview { } code { - font-family: $main_font, monospace; + font-family: $mono_font, monospace; font-size: .8em; padding: 2px; border: 1px solid $stroke_color; @@ -193,7 +194,7 @@ h1, h2, h3, h4, h5, h6 { } .nerd { - font-family: "Symbols Nerd Font", $main_font; + font-family: "Symbols Nerd Font", $mono_font; font-size: 1.2em; margin: 5px; display: inline-block; @@ -303,7 +304,7 @@ ul.list { td, td>*, td>*>* { color: $fg_color; pre { - font-family: $main_font, monospace; + font-family: $mono_font, monospace; color: $dim_fg_color; } }