From 1a5755f0a3aa239f2eb64ed2cb065254e560f0c4 Mon Sep 17 00:00:00 2001 From: Ilion Beyst Date: Wed, 14 Sep 2022 20:50:47 +0200 Subject: add basic markdown document styling --- web/pw-server/src/routes/docs/doc.svelte | 8 ++----- web/pw-server/src/styles/global.scss | 1 + web/pw-server/src/styles/markdown.scss | 37 ++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 web/pw-server/src/styles/markdown.scss (limited to 'web/pw-server/src') diff --git a/web/pw-server/src/routes/docs/doc.svelte b/web/pw-server/src/routes/docs/doc.svelte index ed08270..5b2c686 100644 --- a/web/pw-server/src/routes/docs/doc.svelte +++ b/web/pw-server/src/routes/docs/doc.svelte @@ -1,15 +1,11 @@ -
+
- diff --git a/web/pw-server/src/styles/global.scss b/web/pw-server/src/styles/global.scss index 642d54a..2278dd4 100644 --- a/web/pw-server/src/styles/global.scss +++ b/web/pw-server/src/styles/global.scss @@ -1,3 +1,4 @@ @forward "./variables.scss"; @forward "./buttons.scss"; @forward "./prism.scss"; +@forward "./markdown.scss" \ No newline at end of file diff --git a/web/pw-server/src/styles/markdown.scss b/web/pw-server/src/styles/markdown.scss new file mode 100644 index 0000000..d5ed2fa --- /dev/null +++ b/web/pw-server/src/styles/markdown.scss @@ -0,0 +1,37 @@ +@use "./variables.scss"; + +.markdown-body { + color: rgb(36, 41, 47); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, + "Open Sans", "Helvetica Neue", sans-serif; + + + a { + color: variables.$blue-primary; + } + + code { + color: darken(#e3116c, 5%); + font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace; + direction: ltr; + text-align: left; + white-space: pre; + word-spacing: normal; + word-break: normal; + font-size: 0.9em; + line-height: 1.2em; + + -moz-tab-size: 4; + -o-tab-size: 4; + tab-size: 4; + + -webkit-hyphens: none; + -moz-hyphens: none; + -ms-hyphens: none; + hyphens: none; + } + + li { + padding: .5em; + } +} \ No newline at end of file -- cgit v1.2.3