-
Notifications
You must be signed in to change notification settings - Fork 0
/
markdown-pdf.css
75 lines (60 loc) · 973 Bytes
/
markdown-pdf.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*
* Markdown PDF CSS
*/
/* target all pages */
@page {
margin: 1.54cm;
}
body {
width: 890px;
margin: 0 auto;
font-family: Arial;
font-size: 16px;
line-height: 1.5;
}
a {
color: #2980b9;
}
pre {
background-color: #f8f8f8;
border: none;
}
blockquote {
padding: 0 1em;
color: #777;
border-left: 0.25em solid #ddd;
background: transparent;
}
.emoji {
height: 1.4em;
}
:not(pre):not(.hljs)>code {
color: #c0392b;
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 16px;
}
h1, h2, h3 {
margin-top: 10px;
margin-bottom: 10px;
}
h1, h2 {
font-weight: bolder;
}
h2 {
break-before: always;
}
h3 {
font-weight: bold;
}
.container {
display: block;
margin-left: auto;
margin-right: auto;
page-break-inside: avoid; /* or 'auto' */
}
img {
display: block;
margin-left: auto;
margin-right: auto;
margin-bottom: 20px;
}