From 49acd8dc33656b214bf3c53737816c66f4252b7d Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 20 Mar 2023 18:22:01 +0100 Subject: [PATCH] design: Unify Markdown output style with `text` and `collectives` apps Signed-off-by: Ferdinand Thiessen --- src/scssmixins/markdownOutput.scss | 40 ++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/scssmixins/markdownOutput.scss b/src/scssmixins/markdownOutput.scss index d2572d3b..d88d4c85 100644 --- a/src/scssmixins/markdownOutput.scss +++ b/src/scssmixins/markdownOutput.scss @@ -25,5 +25,45 @@ >:not(:first-child) { margin-top: 1.5em; } + + blockquote { + padding-left: 1em; + border-left: 4px solid var(--color-primary-element); + color: var(--color-text-maxcontrast); + } + + pre { + white-space: pre-wrap; + background-color: var(--color-background-dark); + border-radius: var(--border-radius); + padding: 1em 1.3em; + } + + p code { + background-color: var(--color-background-dark); + border-radius: var(--border-radius); + padding: .1em .3em; + } + + ul, ol { + padding-left: 10px; + margin-left: 10px; + } + + ul { + > li { + list-style-type: disc; + } + + // Second-level list entries + li ul > li { + list-style-type: circle; + } + + // Third+-level list entries + li li ul > li { + list-style-type: square; + } + } } }