-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathpandoc.css
More file actions
136 lines (117 loc) · 2.36 KB
/
Copy pathpandoc.css
File metadata and controls
136 lines (117 loc) · 2.36 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
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
/* For smart quotes */
q { quotes: "“" "”" "‘" "’"; }
/* Override section behavior.
* We only want the top-level <section> to have padding.
* This makes it easier to work with --section-divs. */
section {
padding-top: initial;
padding-bottom: initial;
}
article > section {
padding-top: 1rem;
padding-bottom: 1rem;
}
/* Make byline (date and/or author) small */
p.byline { font-size: 1.2rem; }
/* Simulate Pandoc's table output styles */
table {
border-top: 2px solid black;
border-bottom: 2px solid black;
}
th {
border-bottom: 1px solid black;
}
td, th {
font-size: 1.4rem;
padding: 10px;
text-align: left;
}
/* Allow tables to be full width
* if they're wrapped in a figure.fullwidth
* (Easier to insert from Pandoc than manually adding table) */
figure.fullwidth table {
width: 90%;
}
@media (max-width: 760px) {
figure.fullwidth table {
width: 100%;
}
}
/* Code blocks
*
* Code blocks with a language look like div.sourceCode > pre.sourceCode
* Otherwise, it's just a pre (without .sourceCode) */
/* Unset the tufte-css defaults that we'd like to overwrite */
pre > code {
margin-left: initial;
overflow-x: initial;
display: initial;
}
.sourceCode.numberLines a:link {
text-decoration: initial;
background: initial;
text-shadow: initial;
}
div.sourceCode,
pre:not(.sourceCode) {
padding: 1.4rem;
margin: -0.7rem -1.4rem;
width: 55%;
overflow-x: auto;
}
.fullwidth div.sourceCode,
.fullwidth pre:not(.sourceCode) {
width: 100%;
}
@media (max-width: 760px) {
div.sourceCode,
pre:not(.sourceCode) {
padding: 1.4rem 8vw;
margin: -0.7rem -8vw;
width: 100%;
}
.fullwidth {
max-width: 100%;
}
}
/* Math formatting */
.katex {
font-size: inherit !important;
}
/* Wrap long URLs in references */
#refs a {
word-wrap: break-word;
overflow-wrap: break-word;
}
/* To get the pandoc-generated bibliography to match style, define csl classes. */
div.csl-bib-body {
width: 55%;
}
div.csl-entry {
clear: both;
margin-top: .5rem;
}
.hanging div.csl-entry {
margin-left: 2rem;
text-indent: -2rem;
}
div.csl-left-margin {
min-width: 2rem;
float: left;
}
div.csl-right-inline {
margin-left: 2rem;
padding-left: 1rem;
}
div.csl-indent {
margin-left: 2rem;
}
div.hanging-indent{
margin-left: 1.5rem;
text-indent: -1.5rem;
}
@media (max-width: 760px) {
div.csl-bib-body {
width: 100%;
}
}