From ae26237c2b6398b3e25e4f050fe3a1769e46faab Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 28 Jun 2018 17:04:26 +0100 Subject: [PATCH] Fix styling for line numbers Need to use .CodeMirror to override specificity of CM styles. This should mean that CM styles use serifed font not monospaced --- services/web/public/stylesheets/app/editor/rich-text.less | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/public/stylesheets/app/editor/rich-text.less b/services/web/public/stylesheets/app/editor/rich-text.less index 37a896269d..825c348fbf 100644 --- a/services/web/public/stylesheets/app/editor/rich-text.less +++ b/services/web/public/stylesheets/app/editor/rich-text.less @@ -1,11 +1,11 @@ @rt-font-family: 'Source Sans Pro', 'Helvetica', 'Arial', sans-serif; // @rt-font-family-serif: 'Palatino Linotype', 'Book Antiqua', Palatino, serif; -.rich-text { +.rich-text .CodeMirror { font-family: @rt-font-family; font-size: 1.15em; - pre, .CodeMirror-linewidget { + pre { font-family: @rt-font-family; }