Skip to content

Instantly share code, notes, and snippets.

@tado
Created December 12, 2024 08:11
Show Gist options
  • Save tado/d868792e6672430c6069ee62eeb1d617 to your computer and use it in GitHub Desktop.
Save tado/d868792e6672430c6069ee62eeb1d617 to your computer and use it in GitHub Desktop.
Vscode: Markdown PDF style css
/*
* Markdown PDF CSS
*/
body {
/* font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "Meiryo";*/
font-family: 'Roboto Mono', 'Noto Sans JP', sans-serif;
/* font-size: 14px; */
/* padding: 0 12px; */
padding: 0 12.5%;
line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
}
pre {
background-color: #f8f8f8;
border: 1px solid #cccccc;
border-radius: 3px;
overflow-x: auto;
white-space: pre-wrap;
overflow-wrap: break-word;
}
pre:not(.hljs) {
/*
padding: 23px;
line-height: 19px;
*/
}
blockquote {
background: rgba(127, 127, 127, 0.1);
border-color: rgba(0, 122, 204, 0.5);
}
.emoji {
height: 1.4em;
}
code {
/* font-size: 14px;
line-height: 19px; */
}
/* for inline code */
:not(pre):not(.hljs) > code {
color: #C9AE75; /* Change the old color so it seems less like an error */
font-size: inherit;
}
pre.hljs code > div {
padding: 0.25;
}
/* Page Break : use <div class="page"/> to insert page break
-------------------------------------------------------- */
.page {
page-break-after: always;
}
@media print {
body {
font-size: 0.7em;
line-height: 1.75;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment