mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-24 20:18:18 +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;
|
||||
}
|
||||
|
||||
.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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user