From b846debebc24a699b9feef9af10233ff1a876bbd Mon Sep 17 00:00:00 2001 From: Volpeon Date: Thu, 7 Jan 2021 20:23:18 +0100 Subject: Small design adjustments, added support for code blocks marked as 'plain' --- assets/css/scopes/_code.scss | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'assets/css/scopes') diff --git a/assets/css/scopes/_code.scss b/assets/css/scopes/_code.scss index f6697aa..f024dbd 100644 --- a/assets/css/scopes/_code.scss +++ b/assets/css/scopes/_code.scss @@ -1,18 +1,28 @@ .s-code { + pre, + code { + color: var(--fg-lo); + } + pre { overflow-x: auto; - color: var(--fg-lo); font-size: 1em; line-height: $line-height; } + &--plain { + pre, + code { + color: var(--fg); + } + } + /* stylelint-disable selector-class-pattern */ .c { color: var(--fg-hi); } - .nt, .kt, .k, .kr, -- cgit v1.2.3-70-g09d2