From ee99c34a57316e6f7b38c6cb23b94b4ed0cdfaff Mon Sep 17 00:00:00 2001 From: Nelson Roberts Date: Thu, 20 Feb 2020 11:46:47 -0700 Subject: [PATCH] EIO-247: css update for code block --- scripts/converters/css/style-portrait.css | 39 +++++++++++++---------- scripts/converters/scripts/md_to_pdf.sh | 2 +- 2 files changed, 24 insertions(+), 17 deletions(-) diff --git a/scripts/converters/css/style-portrait.css b/scripts/converters/css/style-portrait.css index 093a36ff3fe..c07b2789ef1 100644 --- a/scripts/converters/css/style-portrait.css +++ b/scripts/converters/css/style-portrait.css @@ -307,23 +307,30 @@ h4 > code { color: #4a6482; } -.sourceCode { - color: #333333; - background-color: #f4f4f4; - font-size: 15px; - width: 100%; - display: inline-block; - overflow-wrap: break-word; - word-wrap: break-word; - word-break: normal; - line-break: strict; - hyphens: none; - -webkit-hyphens: none; - -moz-hyphens: none; - white-space: normal; - padding-right: 50px; -} +#.sourceCode { +# color: #333333; +# background-color: #f4f4f4; +# font-size: 15px; +# width: 100%; +# display: inline-block; +# overflow-wrap: break-word; +# word-wrap: break-word; +# word-break: normal; +# line-break: strict; +# hyphens: none; +# -webkit-hyphens: none; +# -moz-hyphens: none; +# white-space: normal; +# padding-right: 50px; +#} +.sourceCode { + background-color: ghostwhite; + font-family: monospace; + line-height: 25px; + color: #4a6482; + word-wrap: break-word; +} /*-------------------------------------------- 08-14-2019 diff --git a/scripts/converters/scripts/md_to_pdf.sh b/scripts/converters/scripts/md_to_pdf.sh index 8189c214985..df45ea209fb 100755 --- a/scripts/converters/scripts/md_to_pdf.sh +++ b/scripts/converters/scripts/md_to_pdf.sh @@ -1,6 +1,6 @@ #!/bin/bash -e -md_source="/source/source.md" +md_source="${1:-/source/source.md}" pandoc -s --template="templates/default.html" -f markdown-smart --toc -c css/style-portrait.css "${md_source}" -o "source.html" python3 -m weasyprint source.html /output/output.pdf