Files
Obsidian_Informatik/.obsidian/snippets/pdf-export.css
T

91 lines
2.7 KiB
CSS

/* shared palette */
body {
--code-keyword: #c678dd;
--code-string: #98c379;
--code-function: #61afef;
--code-type: #e5c07b;
}
/* .cm-keyword { color: var(--code-keyword) !important; }
.cm-string { color: var(--code-string) !important; }
.cm-def { color: var(--code-function) !important; }
.cm-type { color: var(--code-type) !important; }
.token.keyword { color: var(--code-keyword) !important; }
.token.string { color: var(--code-string) !important; }
.token.function { color: var(--code-function) !important; }
.token.class-name { color: var(--code-type) !important; } */
/* Targets code blocks and inline code */
/* Editing and reading mode */
.markdown-rendered pre,
.markdown-rendered pre code,
.cm-s-obsidian .HyperMD-codeblock,
pre, code {
font-size: 11px !important; /* Adjust this number up or down as needed */
white-space: pre-wrap !important; /* Forces text to wrap if it's still too long, rather than cutting off */
}
@media screen {
.markdown-rendered pre {
}
.markdown-rendered pre code {
}
}
/* PDF / Print view */
@media print {
.markdown-rendered h1,
.markdown-rendered h2,
.markdown-rendered h3,
.markdown-rendered h4,
.markdown-rendered h5,
.markdown-rendered h6 {
break-after: avoid !important;
page-break-after: avoid !important;
}
.markdown-rendered pre {
background: #1e222a !important;
color: #e6e6e6 !important;
font-size: 8px !important; /* Adjust this number up or down as needed */
white-space: pre-wrap !important; /* Forces text to wrap if it's still too long, rather than cutting off */
background-color:#1e222a !important;
border-radius: 10px !important;
break-inside: avoid !important;
page-break-inside: avoid !important;
-webkit-break-inside: avoid;
-webkit-column-break-inside: avoid;
}
.markdown-rendered pre code {
color: inherit !important;
font-size: 8px !important; /* Adjust this number up or down as needed */
white-space: pre-wrap !important; /* Forces text to wrap if it's still too long, rather than cutting off */
background-color:#1e222a !important;
border-radius: 10px !important;
break-inside: avoid !important;
page-break-inside: avoid !important;
-webkit-break-inside: avoid;
-webkit-column-break-inside: avoid;
}
.page-break {
display: block;
height: 0;
break-before: page;
page-break-before: always;
}
}
/* Live Preview / Source mode */
.cm-s-obsidian .HyperMD-codeblock {
font-size: 12px;
background-color:#1e222a !important;
/* background-color: blue !important; */
}