forked from jiho/Markdown2pdf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserif.css
282 lines (240 loc) · 4.74 KB
/
serif.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
/*
* (c) Copyright 2012 Jean-Olivier Irisson
* GNU General Public License v3
*
*/
/* @group Defaults */
/* Reset CSS */
/* http://meyerweb.com/eric/tools/css/reset/ */
/* v1.0 | 20080212 */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
margin: 0px;
padding: 0px;
}
body {
counter-reset: section;
}
h2:before {
content: counter(section);
counter-increment: section;
float: left;
width: 40px;
text-align: left;
}
h2 {
counter-reset: subsection;
text-indent: -40px;
}
h3:before {
content: counter(section) "." counter(subsection);
counter-increment: subsection;
float: left;
width: 40px;
text-align: left;
}
h3 {
counter-reset: subsubsection;
text-indent: -40px;
}
h4:before {
content: counter(section) "." counter(subsection)"." counter(subsubsection);
counter-increment: subsubsection;
float: left;
width: 40px;
text-align: left;
}
h4 {
text-indent: -40px;
}
/* @end */
/* @group Typography */
body {
font: 12px "Adobe Caslon", "Palatino";
/* text-align: justify;*/
line-height: 140%;
}
h1, h2, h3, h4, h5, h6 {
font-family: "Myriad Pro", "Lucida Grande", Lucida, Verdana, sans-serif;
font-weight: bold;
text-align: left;
}
h1 {font-size: 30px; line-height: 110%;}
h2 {font-size: 25px; line-height: 110%;}
h3 {font-size: 17px; line-height: 110%;}
h4 {font-size: 15px; line-height: 110%;}
h5 {font-size: 13px; line-height: 110%;}
h6 {font-size: 13px; line-height: 110%;}
pre, code {
font-size: 11px;
font-family: "Consolas", monaco, "DejaVu Sans Mono";
font-weight: normal;
}
/* @end */
/* @group Spacing */
body {
margin: 0px 0px 0px 60px;
}
/* same vertical space between all 1st rank elements */
p,
pre,
table,
ul, ol, dl,
h1, h2, h3, h4, h5, h6,
hr {
margin-top: 7px;
margin-bottom: 7px;
}
/* additional spacing for titles */
h1 { margin-top: 30px; }
h2 { margin-top: 40px; }
h3 { margin-top: 30px; }
h4 { margin-top: 30px; }
h5 { margin-top: 30px; }
h6 { margin-top: 20px; }
/* but not when two titles directly follow each other */
h2+h3, h3+h4, h4+h5, h5+h6,
h3+h6, h4+h6 {
margin-top: 0;
}
/* hanging titles */
/*h2, h3, h4, h5 {
margin-left: -50px;
}
*/
/* indentation of lists */
ul, ol {
margin-left: 30px;
}
dd {
margin-left: 16px;
/* margin-left: 30px;*/
}
/* vertical space within a list:
- between list items
- between paragrahs inside a list item
- between nested lists
- between "definitions" within a definition list (several dd elements)
*/
li,
li>p,
ul ul, ol ol, ul ol, ol ul,
dd,
dd+dd {
margin-top: 3px;
margin-bottom: 3px;
}
/* inside a definition in a definition list, elements such as list, paragraphs, tables etc. induce a smaller vertical space compared to a general paragraph. The vertical space is the one between two dd elements*/
dd>ul, dd>ol, dd>dl,
dd>p,
dd>table, dd>pre, dd>blockquote {
margin-top: 3px;
margin-bottom: 3px;
}
/* terms of a definition list are spaced as new paragraphs */
dt {
margin-top: 7px;
}
/* reduce a bit the space between:
- the beginning of the definition and the definition term
- an h6 (paragraph title) and the content of the paragraph
*/
/* 2px instead of 5px */
/*dd { margin-top: 2px; }*/
/* 5px instead of 10px */
/*h6 { margin-bottom: 0px; }
h6+p { margin-top: 5px; }*/
/* space within a code block */
pre {
padding: 5px 10px;
}
/* indentation of quotes */
blockquote {
margin-left: 30px;
margin-right: 30px;
}
/* @end */
/* @group Elements style */
/*h2 {
padding-bottom: 2px;
border-bottom: 1px solid #999;
}
*/
a:link {
color: #00f;
text-decoration: none;
}
pre {
border: 1px solid #999;
background: #E8E8E8;
text-align: left;
}
hr {
/*
TODO Find a way to remove the 3D effect
*/
size: 0px;
width: 50%;
color: #999;
border-bottom: 1px solid #999;
}
/* lists */
ul {
list-style: square outside;
}
ol {
list-style-type: decimal;
list-style-position: outside;
}
ol ol {
list-style-type: lower-alpha;
}
dt {
font-weight: bold;
}
blockquote {
font-style: italic;
}
/* table */
table {
border-spacing: 0;
border-top: 2px solid #999;
border-bottom: 2px solid #999;
}
table th {
font-weight: bold;
padding: 5px 8px;
background: #E8E8E8;
border-bottom: 1px solid #999;
}
table td {
padding: 5px 8px;
vertical-align: top;
}
/* paragraphs within a table*/
/*table th p {
font-weight: bold;
margin-top: 0px;
margin-bottom: 5px;
}
table td p {
margin-top: 0px;
margin-bottom: 5px;
}
table td p + p {
margin-top: 0px;
margin-bottom: 5px;
}
table td p + p + p {
margin-top: 0px;
margin-bottom: 5px;
}
*/
/* @end */