From 651b9a0426a535b7bfe403d5d2ee8f55e46bf464 Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Tue, 23 Jan 2018 15:31:21 -0700 Subject: [PATCH] sans-serif codemirror font for better readibility --- themes/grav/scss/simple-fonts.scss | 7 ++++--- themes/grav/scss/template/_editor.scss | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/themes/grav/scss/simple-fonts.scss b/themes/grav/scss/simple-fonts.scss index 2ebc2ca3..4358bbfc 100644 --- a/themes/grav/scss/simple-fonts.scss +++ b/themes/grav/scss/simple-fonts.scss @@ -2,10 +2,11 @@ body, h5, h6, .badge, .note, .grav-mdeditor-preview, input, select, textarea, button, .selectize-input, h1, h2, h3, h4, -#admin-menu li, .form-tabs > label, .label { +#admin-menu li, .form-tabs > label, .label, +body .CodeMirror pre { font-family: "Helvetica Neue", "Helvetica", "Tahoma", "Geneva", "Arial", sans-serif; } -code, kbd, pre, samp, -body .CodeMirror { +code, kbd, pre, samp { font-family: "Monaco", "Consolas", "Lucida Console", monospace; } + diff --git a/themes/grav/scss/template/_editor.scss b/themes/grav/scss/template/_editor.scss index a9057d82..d966748f 100644 --- a/themes/grav/scss/template/_editor.scss +++ b/themes/grav/scss/template/_editor.scss @@ -216,6 +216,7 @@ &.CodeMirror { color: $paper-fg; line-height: 1.4; + font-size: 16px; } .cm-link {color: #0082ba;}