From fff65aef2e71b4ade5d58fd032e81f646de8e8b3 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Tue, 2 Oct 2018 22:49:37 +0200 Subject: [PATCH] Display code as monospace --- css/notes.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/css/notes.css b/css/notes.css index 0ff92022..ce45aa8a 100644 --- a/css/notes.css +++ b/css/notes.css @@ -158,6 +158,22 @@ white-space: pre; } +/* display code as monospace */ +.mdedit > div .token.p .token.code { + font-family: "Courier new", monospace; +} +.mdedit > div > .token.code-block.fenced { + line-height: 1.4em; + display: block; + font-family: "Courier new", monospace; +} +.mdedit > div > .token.code-block.indented { + position: relative; + left: -38px; + line-height: 1.4em; + display: block; + font-family: "Courier new", monospace; +} /* larger screen sizes */ @media only screen and (min-width: 769px) {