From edc8ddf5c80675b9b15a353e8b53f63c97baa38f Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 4 Jan 2021 13:27:07 +0100 Subject: [PATCH] added option to change the font family --- README.md | 1 + assets/scss/style.scss | 13 +++++++------ ...le.scss_17a317b87063135b4df76ed814d78726.content | 2 +- ...style.scss_17a317b87063135b4df76ed814d78726.json | 2 +- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 109a003..4c3eaca 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,7 @@ paginate = 5 # number of articles per page in the index showRss = true # show the link for the RSS feed; default true navtype = "standard" # changes the style of the pagination, available styles are: "standard", "circle" + fontFamily = "JetBrains Mono" # changes the font, default "JetBrains Mono" # enable comments support with commento using the script from your server commento = "https://example.com/js/commento.js" diff --git a/assets/scss/style.scss b/assets/scss/style.scss index bf48456..54c32b2 100644 --- a/assets/scss/style.scss +++ b/assets/scss/style.scss @@ -3,6 +3,7 @@ $fg_color: {{ .Site.Params.foregroundColor | default "white" }}; $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" }}; ::selection, ::-moz-selection { background: $accent_color; @@ -14,7 +15,7 @@ $accent_color: {{ .Site.Params.accentColor | default "#db5793" }}; } body, html { - font-family: "Symbols Nerd Font", "JetBrains Mono", monospace; + font-family: "Symbols Nerd Font", $main_font, monospace; margin: 0; padding: 0; background-color: $bg_color; @@ -118,7 +119,7 @@ article, .articlePreview { } code { - font-family: "JetBrains Mono", monospace; + font-family: $main_font, monospace; font-size: .8em; padding: 2px; border: 1px solid $stroke_color; @@ -186,7 +187,7 @@ h1, h2, h3, h4, h5, h6 { } .nerd { - font-family: "Symbols Nerd Font", "JetBrains Mono"; + font-family: "Symbols Nerd Font", $main_font; font-size: 1.2em; margin: 5px; display: inline-block; @@ -236,7 +237,7 @@ ul { #commento { color: $fg_color; - font-family: "JetBrains Mono", monospace; + font-family: $main_font, monospace; textarea, #commento-markdown-help-root { background: rgba(255, 255, 255, .05); color: $fg_color; @@ -245,7 +246,7 @@ ul { td, td>*, td>*>* { color: $fg_color; pre { - font-family: "JetBrains Mono", monospace; + font-family: $main_font, monospace; color: $dim_fg_color; } } @@ -272,7 +273,7 @@ ul { .commento-body { >*, *>*, >*>*>*, >*>*>*>*, >*>*>*>*>* { color: $fg_color; - font-family: "JetBrains Mono", monospace; + font-family: $main_font, monospace; } } } diff --git a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content index 3c3aaff..16bb3cc 100644 --- a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content +++ b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.content @@ -1,3 +1,3 @@ -::selection,::-moz-selection{background:#db5793;color:#fff}*{transition:all .15s ease-in-out}body,html{font-family:"Symbols Nerd Font", "JetBrains Mono", monospace;margin:0;padding:0;background-color:#242629;color:#fff}a{color:#fff;text-decoration:none;border-bottom:2px solid #fff}a:hover{border-color:#db5793 !important}#content{max-width:1000px;padding:15px;margin:auto}footer{color:#bababa}footer a{color:#bababa}footer hr{margin-top:50px}#titleContainer{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}#titleContainer h1{font-weight:normal;font-size:1.6em;margin:0}#titleContainer img{margin-right:10px;width:50px;max-height:50px;border-radius:5px}nav ul,#links ul{list-style-type:none;display:flex;flex-direction:row;flex-wrap:wrap;padding:0;margin:0}nav{font-size:.9em}nav ul li{border-right:1px solid #db5793}nav ul li:last-child{border-right:none}nav ul li a{padding:2px 20px;color:#db5793}nav ul li a:hover{text-decoration:underline}#links{padding:15px 0}article img,.articlePreview img{margin:auto;display:block;max-width:80%}article pre,article code,.articlePreview pre,.articlePreview code{overflow:auto}article pre,.articlePreview pre{padding:20px;border:1px solid #4f4f4f;border-radius:3px}code{font-family:"JetBrains Mono", monospace;font-size:.8em;padding:2px;border:1px solid #4f4f4f;border-radius:3px}pre code{border:none;border-radius:none;padding:0}.date,.date a{color:#bababa;border-color:#bababa;font-size:.9em}#pageNavigation a,.nerdlink a,nav a{border-bottom:none}#pageNavigation a:hover,.nerdlink a:hover,nav a:hover{border-bottom:none}#pageNavigation{text-align:right}#pageNavigation a{color:#db5793}#pageNavigation.nav-circles{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center}#pageNavigation.nav-circles a,#pageNavigation.nav-circles span{margin:5px;text-align:center;display:inline-block;width:40px;height:40px;line-height:40px;padding:auto;border-radius:100%;background-color:rgba(186,186,186,0.4);color:#fff}#pageNavigation.nav-circles span{background-color:#db5793}#pageNavigation.nav-circles a:hover{background-color:#db5793}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#db5793;border-bottom:none}.nerd,.nerdlink{font-family:"Symbols Nerd Font", "JetBrains Mono";font-size:1.2em;margin:5px;display:inline-block}.nerdlink{color:#fff;border-bottom:none;position:relative}.nerdlink span{position:absolute;top:1.5em;left:50%;transform:translateX(-50%);padding:2px;border:1px solid #4f4f4f;border-radius:3px;color:#fff;display:none}.nerdlink:hover{color:#db5793;text-decoration:none;border-bottom:none}.nerdlink:hover span{display:block}.card{margin:50px 0}.card:first-child{margin-top:0}.card hr{margin:50px 0}ul li{margin:5px 0}#commento{color:#fff;font-family:"JetBrains Mono", monospace}#commento textarea,#commento #commento-markdown-help-root{background:rgba(255,255,255,0.05);color:#fff;border-radius:0;border:none}#commento textarea td,#commento textarea td>*,#commento textarea td>*>*,#commento #commento-markdown-help-root td,#commento #commento-markdown-help-root td>*,#commento #commento-markdown-help-root td>*>*{color:#fff}#commento textarea td pre,#commento textarea td>* pre,#commento textarea td>*>* pre,#commento #commento-markdown-help-root td pre,#commento #commento-markdown-help-root td>* pre,#commento #commento-markdown-help-root td>*>* pre{font-family:"JetBrains Mono", monospace;color:#bababa}#commento #commento-submit-button-root{background:#db5793;color:#fff}#commento .commento-name{color:#bababa}#commento .commento-sort-policy-buttons a{border-bottom:none}#commento .commento-sort-policy-buttons .commento-sort-policy-button-selected{color:#db5793}#commento .commento-card{border-top:none;margin:25px 0}#commento .commento-body>*,#commento .commento-body *>*,#commento .commento-body>*>*>*,#commento .commento-body>*>*>*>*,#commento .commento-body>*>*>*>*>*{color:#fff;font-family:"JetBrains Mono", monospace} +::selection,::-moz-selection{background:#db5793;color:#fff}*{transition:all .15s ease-in-out}body,html{font-family:"Symbols Nerd Font",JetBrains Mono,monospace;margin:0;padding:0;background-color:#242629;color:#fff}a{color:#fff;text-decoration:none;border-bottom:2px solid #fff}a:hover{border-color:#db5793 !important}#content{max-width:1000px;padding:15px;margin:auto}footer{color:#bababa}footer a{color:#bababa}footer hr{margin-top:50px}#titleContainer{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center}#titleContainer h1{font-weight:normal;font-size:1.6em;margin:0}#titleContainer img{margin-right:10px;width:50px;max-height:50px;border-radius:5px}nav ul,#links ul{list-style-type:none;display:flex;flex-direction:row;flex-wrap:wrap;padding:0;margin:0}nav{font-size:.9em}nav ul li{border-right:1px solid #db5793}nav ul li:last-child{border-right:none}nav ul li a{padding:2px 20px;color:#db5793}nav ul li a:hover{text-decoration:underline}#links{padding:15px 0}article img,.articlePreview img{margin:auto;display:block;max-width:80%}article pre,article code,.articlePreview pre,.articlePreview code{overflow:auto}article pre,.articlePreview pre{padding:20px;border:1px solid #4f4f4f;border-radius:3px}code{font-family:JetBrains Mono,monospace;font-size:.8em;padding:2px;border:1px solid #4f4f4f;border-radius:3px}pre code{border:none;border-radius:none;padding:0}.date,.date a{color:#bababa;border-color:#bababa;font-size:.9em}#pageNavigation a,.nerdlink a,nav a{border-bottom:none}#pageNavigation a:hover,.nerdlink a:hover,nav a:hover{border-bottom:none}#pageNavigation{text-align:right}#pageNavigation a{color:#db5793}#pageNavigation.nav-circles{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;align-items:center}#pageNavigation.nav-circles a,#pageNavigation.nav-circles span{margin:5px;text-align:center;display:inline-block;width:40px;height:40px;line-height:40px;padding:auto;border-radius:100%;background-color:rgba(186,186,186,0.4);color:#fff}#pageNavigation.nav-circles span{background-color:#db5793}#pageNavigation.nav-circles a:hover{background-color:#db5793}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a{color:#db5793;border-bottom:none}.nerd,.nerdlink{font-family:"Symbols Nerd Font",JetBrains Mono;font-size:1.2em;margin:5px;display:inline-block}.nerdlink{color:#fff;border-bottom:none;position:relative}.nerdlink span{position:absolute;top:1.5em;left:50%;transform:translateX(-50%);padding:2px;border:1px solid #4f4f4f;border-radius:3px;color:#fff;display:none}.nerdlink:hover{color:#db5793;text-decoration:none;border-bottom:none}.nerdlink:hover span{display:block}.card{margin:50px 0}.card:first-child{margin-top:0}.card hr{margin:50px 0}ul li{margin:5px 0}#commento{color:#fff;font-family:JetBrains Mono,monospace}#commento textarea,#commento #commento-markdown-help-root{background:rgba(255,255,255,0.05);color:#fff;border-radius:0;border:none}#commento textarea td,#commento textarea td>*,#commento textarea td>*>*,#commento #commento-markdown-help-root td,#commento #commento-markdown-help-root td>*,#commento #commento-markdown-help-root td>*>*{color:#fff}#commento textarea td pre,#commento textarea td>* pre,#commento textarea td>*>* pre,#commento #commento-markdown-help-root td pre,#commento #commento-markdown-help-root td>* pre,#commento #commento-markdown-help-root td>*>* pre{font-family:JetBrains Mono,monospace;color:#bababa}#commento #commento-submit-button-root{background:#db5793;color:#fff}#commento .commento-name{color:#bababa}#commento .commento-sort-policy-buttons a{border-bottom:none}#commento .commento-sort-policy-buttons .commento-sort-policy-button-selected{color:#db5793}#commento .commento-card{border-top:none;margin:25px 0}#commento .commento-body>*,#commento .commento-body *>*,#commento .commento-body>*>*>*,#commento .commento-body>*>*>*>*,#commento .commento-body>*>*>*>*>*{color:#fff;font-family:JetBrains Mono,monospace} /*# sourceMappingURL=styles.css.map */ \ No newline at end of file diff --git a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json index 57782ce..4a37179 100644 --- a/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json +++ b/resources/_gen/assets/scss/scss/style.scss_17a317b87063135b4df76ed814d78726.json @@ -1 +1 @@ -{"Target":"css/styles.9696ec1dbee3dac3deb82ea3595533cc78022970507d78c553ec447011cc8a2517afce0dad87aa462c001effa3dd8520a9aafad924291d7db0b02d59263643cf.css","MediaType":"text/css","Data":{"Integrity":"sha512-lpbsHb7j2sPeuC6jWVUzzHgCKXBQfXjFU+xEcBHMiiUXr84NrYeqRiwAHv+j3YUgqar62SQpHX2wsC1ZJjZDzw=="}} \ No newline at end of file +{"Target":"css/styles.23ede7c42c52f498f846ef21c3c09f22db874c6f31298b999acde30014f41561b37dc23157e4b6e8a0495d6b34759cbb1fda3f25ae55d036106c4b947856b7ef.css","MediaType":"text/css","Data":{"Integrity":"sha512-I+3nxCxS9Jj4Ru8hw8CfItuHTG8xKYuZms3jABT0FWGzfcIxV+S26KBJXWs0dZy7H9o/Ja5V0DYQbEuUeFa37w=="}} \ No newline at end of file