mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-29 06:29:34 +00:00
Merge pull request #2294 from paraglade/EIO-247-converters
EIO-247: css update for code block
This commit is contained in:
@@ -307,23 +307,30 @@ h4 > code {
|
|||||||
color: #4a6482;
|
color: #4a6482;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sourceCode {
|
#.sourceCode {
|
||||||
color: #333333;
|
# color: #333333;
|
||||||
background-color: #f4f4f4;
|
# background-color: #f4f4f4;
|
||||||
font-size: 15px;
|
# font-size: 15px;
|
||||||
width: 100%;
|
# width: 100%;
|
||||||
display: inline-block;
|
# display: inline-block;
|
||||||
overflow-wrap: break-word;
|
# overflow-wrap: break-word;
|
||||||
word-wrap: break-word;
|
# word-wrap: break-word;
|
||||||
word-break: normal;
|
# word-break: normal;
|
||||||
line-break: strict;
|
# line-break: strict;
|
||||||
hyphens: none;
|
# hyphens: none;
|
||||||
-webkit-hyphens: none;
|
# -webkit-hyphens: none;
|
||||||
-moz-hyphens: none;
|
# -moz-hyphens: none;
|
||||||
white-space: normal;
|
# white-space: normal;
|
||||||
padding-right: 50px;
|
# padding-right: 50px;
|
||||||
}
|
#}
|
||||||
|
|
||||||
|
.sourceCode {
|
||||||
|
background-color: ghostwhite;
|
||||||
|
font-family: monospace;
|
||||||
|
line-height: 25px;
|
||||||
|
color: #4a6482;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
|
||||||
/*--------------------------------------------
|
/*--------------------------------------------
|
||||||
08-14-2019
|
08-14-2019
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash -e
|
#!/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"
|
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
|
python3 -m weasyprint source.html /output/output.pdf
|
||||||
|
|||||||
Reference in New Issue
Block a user