forked from transitive-bullshit/md-to-pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
markdown.css
130 lines (109 loc) · 1.54 KB
/
markdown.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
* {
box-sizing: border-box;
}
html {
font-size: 100%;
}
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell',
'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
line-height: 1.6;
font-size: 0.6875em; /* 11 pt */
color: #111;
margin: 0;
}
body > :first-child {
padding-top: 0;
margin-top: 0;
}
body > :last-child {
margin-bottom: 0;
padding-bottom: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding: 0.5em 0 0.25em;
}
h5,
h6 {
padding: 0;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 0.875em;
text-transform: uppercase;
}
p {
margin: 0.25em 0 1em;
}
blockquote {
margin: 0.5em 0 1em;
padding-left: 0.5em;
padding-right: 1em;
border-left: 4px solid gainsboro;
font-style: italic;
}
ul,
ol {
margin: 0;
padding: 0 1.5em 0.5em;
}
pre {
white-space: pre-wrap;
}
h1 code,
h2 code,
h3 code,
h4 code,
h5 code,
h6 code,
p code,
li code,
pre code {
background-color: #f8f8f8;
padding: 0.1em 0.375em;
border-radius: 0.25em;
font-family: monospace;
font-size: 1.2em;
}
pre code {
display: block;
padding: 0.5em;
}
.page-break {
page-break-after: always;
}
img {
max-width: 100%;
margin: 1em 0;
}
table {
border-spacing: 0;
border-collapse: collapse;
display: block;
margin: 0 0 1em;
width: 100%;
overflow: auto;
}
table th,
table td {
padding: 0.5em 1em;
border: 1px solid gainsboro;
}
table th {
font-weight: 600;
}
table tr {
background-color: white;
border-top: 1px solid gainsboro;
}
table tr:nth-child(2n) {
background-color: whitesmoke;
}