mirror of
https://github.com/funkypenguin/geek-cookbook/
synced 2025-12-11 00:36:29 +00:00
Tune PDF styling
Signed-off-by: David Young <davidy@funkypenguin.co.nz>
This commit is contained in:
105
extra_sass/style.css copy.scss
Normal file
105
extra_sass/style.css copy.scss
Normal file
@@ -0,0 +1,105 @@
|
||||
@media print {
|
||||
.md-typeset {
|
||||
line-height: 1.4;
|
||||
}
|
||||
.md-typeset ul li,
|
||||
.md-typeset ol li {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
|
||||
#doc-toc ul li>a>span,
|
||||
.md-typeset h1>span,
|
||||
.md-typeset h2>span,
|
||||
.md-typeset h3>span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.md-typeset h1>span,
|
||||
.md-typeset h2>span,
|
||||
.md-typeset h3>span {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
/** workaround [[ */
|
||||
.md-typeset h2>span.twemoji,
|
||||
.md-typeset h2>span.twemoji>img {
|
||||
height: 1.363em;
|
||||
}
|
||||
.md-typeset h2>span.twemoji>img {
|
||||
margin-top: -0.3em;
|
||||
}
|
||||
#doc-toc span.twemoji,
|
||||
#doc-toc span.twemoji img {
|
||||
height: 1.125rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.md-typeset span.twemoji,
|
||||
.md-typeset span.twemoji img {
|
||||
display: inline-block;
|
||||
}
|
||||
.md-typeset figure {
|
||||
display: block;
|
||||
& > img {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* ]] **/
|
||||
|
||||
.md-typeset .tx-content__footer hr,
|
||||
footer.md-typeset hr {
|
||||
background-color: transparent;
|
||||
border-bottom: 0.5px solid #e91e63;
|
||||
}
|
||||
footer.md-typeset a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
section.md-typeset[data-url="/changelog/"] {
|
||||
& h4+ul {
|
||||
margin: 0;
|
||||
}
|
||||
& ul>li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
article a,
|
||||
article blockquote,
|
||||
article pre,
|
||||
article table,
|
||||
article ul,
|
||||
article ol,
|
||||
article * + div.highlight,
|
||||
section + section * + div.highlight {
|
||||
page-break-before: auto !important;
|
||||
page-break-inside: auto !important;
|
||||
}
|
||||
|
||||
// admonition overrides per https://github.com/orzih/mkdocs-with-pdf/issues/89
|
||||
|
||||
// admonition icon
|
||||
.md-typeset :is(.admonition-title,summary):before {
|
||||
top: 0.6rem;
|
||||
left: 0.6rem;
|
||||
}
|
||||
|
||||
// left border
|
||||
.md-typeset :is(.admonition,details) {
|
||||
border-left-width: 0.1rem;
|
||||
padding: 0rem 0rem 0rem 0rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
[dir=ltr] .md-typeset :is(.admonition,details) {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
html .md-typeset :is(.admonition,details)>:last-child {
|
||||
margin-left: 0.6rem;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,105 +1,7 @@
|
||||
@media print {
|
||||
.md-typeset {
|
||||
line-height: 1.4;
|
||||
}
|
||||
.md-typeset ul li,
|
||||
.md-typeset ol li {
|
||||
margin-bottom: .25rem;
|
||||
}
|
||||
|
||||
#doc-toc ul li>a>span,
|
||||
.md-typeset h1>span,
|
||||
.md-typeset h2>span,
|
||||
.md-typeset h3>span {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.md-typeset h1>span,
|
||||
.md-typeset h2>span,
|
||||
.md-typeset h3>span {
|
||||
padding-right: 0.5rem;
|
||||
}
|
||||
|
||||
/** workaround [[ */
|
||||
.md-typeset h2>span.twemoji,
|
||||
.md-typeset h2>span.twemoji>img {
|
||||
height: 1.363em;
|
||||
}
|
||||
.md-typeset h2>span.twemoji>img {
|
||||
margin-top: -0.3em;
|
||||
}
|
||||
#doc-toc span.twemoji,
|
||||
#doc-toc span.twemoji img {
|
||||
height: 1.125rem;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.md-typeset span.twemoji,
|
||||
.md-typeset span.twemoji img {
|
||||
display: inline-block;
|
||||
}
|
||||
.md-typeset figure {
|
||||
display: block;
|
||||
& > img {
|
||||
margin: 0 auto;
|
||||
}
|
||||
}
|
||||
|
||||
/* ]] **/
|
||||
|
||||
.md-typeset .tx-content__footer hr,
|
||||
footer.md-typeset hr {
|
||||
background-color: transparent;
|
||||
border-bottom: 0.5px solid #e91e63;
|
||||
}
|
||||
footer.md-typeset a {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
section.md-typeset[data-url="/changelog/"] {
|
||||
& h4+ul {
|
||||
margin: 0;
|
||||
}
|
||||
& ul>li {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
article a,
|
||||
article blockquote,
|
||||
article pre,
|
||||
article table,
|
||||
article ul,
|
||||
article ol,
|
||||
article * + div.highlight,
|
||||
section + section * + div.highlight {
|
||||
page-break-before: auto !important;
|
||||
page-break-inside: auto !important;
|
||||
}
|
||||
|
||||
// admonition overrides per https://github.com/orzih/mkdocs-with-pdf/issues/89
|
||||
|
||||
// admonition icon
|
||||
/* Adjusts positioning of admonition icon */
|
||||
.md-typeset :is(.admonition-title,summary):before {
|
||||
top: 0.6rem;
|
||||
left: 0.6rem;
|
||||
}
|
||||
|
||||
// left border
|
||||
.md-typeset :is(.admonition,details) {
|
||||
border-left-width: 0.1rem;
|
||||
padding: 0rem 0rem 0rem 0rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
[dir=ltr] .md-typeset :is(.admonition,details) {
|
||||
margin-left: 1rem;
|
||||
}
|
||||
|
||||
html .md-typeset :is(.admonition,details)>:last-child {
|
||||
margin-left: 0.6rem;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user