-
Notifications
You must be signed in to change notification settings - Fork 30
/
tufte-extra.css
86 lines (79 loc) · 1.69 KB
/
tufte-extra.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
/* The default x-height for code is slightly too large in side notes */
.marginnote code, .sidenote code {
font-size: 0.9rem;
}
/* ... and slightly too small in body text */
code {
font-size: 1.05rem;
}
/* Also make the sidenote numbers hang */
.sidenote {
text-indent: -0.4rem;
}
.sidenote:before {
/* removes trailing space from the counter content */
content: counter(sidenote-counter);
left: -0.4rem;
}
/* To get spacing between lists, use paragraphs.
* 0.25rem of spacing between list elements looks bad. */
li:not(:first-child) {
margin-top: initial;
}
/* 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%;
}
}
/* Prevent superscripts and subscripts from affecting line-height */
sup, sub {
vertical-align: baseline;
position: relative;
top: -0.4em;
}
sub {
top: 0.4em;
}
/* Replicate styling from sidenote numbers to footnote numbers */
a.footnote-ref {
background: unset;
text-shadow: unset;
font-size: 1rem;
position: relative;
top: -0.1rem;
left: 0.1rem;
display: inline;
}
.footnote-ref sup {
font-family: et-book-roman-old-style;
font-size: inherit;
vertical-align: inherit;
line-height: inherit;
}