Repository navigation
Expand file tree
/
Copy pathpandoc.css
More file actions
executable file
·102 lines (88 loc) · 1.98 KB
/
Copy pathpandoc.css
File metadata and controls
executable file
·102 lines (88 loc) · 1.98 KB
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
/* Register strings for the header */
h1.title { string-set: title content(); }
p.author { string-set: author content(); }
@page {
size: A4 /*landscape*/; /* uncomment for landscape */
margin: 25mm 25mm; /* Top/Bottom Left/Right*/
@top-center {
content: string(title) " — " string(author);
font-size: 10pt;
color: #555;
}
@bottom-center {
content: "Page " counter(page) " of " counter(pages);
font-size: 9pt;
color: #999;
}
}
body {
font-family: 'Courier New', Courier, monospace;
font-family: "Times New Roman", serif;
font-family: "Inter", "Segoe UI", sans-serif;
color: #222;
line-height: 1.5; /* spacing between lines */
}
p { hyphens: auto;
text-align: justify;
}
/* #TOC {
page-break-after: always;
}
#TOC ul {
list-style-type: none;
padding-left: 0;
}
#TOC a {
text-decoration: none;
color: inherit;
} */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
color: #005b99;
margin-top: 1em;
margin-bottom: 0.5em;
}
h1 {
padding-bottom: 0.1em;
border-bottom: 1px solid #005b99;
}
/* h2 { page-break-before: always; } */
code, pre {
background: #f5f5f5;
padding: 0.1em 0.2em;
border-radius: 3px;
font-family: "JetBrains Mono", monospace;
font-size: 0.85em;
}
table {
width: 100%;
border-collapse: collapse;
}
table :is(th, td) {
border: 2px solid var(#bababa);
padding: 0.4rem;
}
table > thead {
background-color: var(#f7f7f7);
}
table > tbody > tr:nth-child(even) {
background-color: var(#f7f7f7);
}
blockquote {
color: #555;
border-left: 3px solid #005b99;
padding-left: 0.5em; /* reduced */
font-style: italic;
}
img {
margin-left: auto;
margin-right: auto;
page-break-inside: avoid; /* Avoid splitting the image */
break-inside: avoid; /* Modern equivalent */
display: block; /* Ensures proper box behavior */
max-width: 100%; /* Scale down if needed */
}
figure {
display: block;
text-align: center; /* centers image and caption */
}