forked from edwardtufte/tufte-css
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tufte.css
163 lines (129 loc) · 5.01 KB
/
tufte.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
@font-face { font-family: ETBembo;
src: url("ETBembo-RomanLF.ttf"); }
@font-face { font-family: ETBembo;
src: url("ETBembo-DisplayItalic.ttf");
font-weight: normal;
font-style: italic; }
html { font-size: 11px; }
@media screen and (min-width: 800px) { html{ font-size: 12px; }}
@media screen and (min-width: 900px) { html{ font-size: 13px; }}
@media screen and (min-width: 1000px) { html{ font-size: 14px; }}
@media screen and (min-width: 1100px) { html{ font-size: 15px; }}
@media screen and (min-width: 1200px) { html{ font-size: 16px; }}
@media screen and (min-width: 1300px) { html{ font-size: 17px; }}
body { width: 87.5%;
margin-left: auto;
margin-right: auto;
padding-left: 12.5%;
font-family: ETBembo, Palatino, "Palatino Linotype", "Palatino LT STD", "Book Antiqua", Georgia, serif;
background-color: #fffff8;
color: #111;
max-width: 1400px;
counter-reset: sidenote-counter; }
h1 { font-weight: 400;
margin-top: 4rem;
margin-bottom: 1.5rem;
font-size: 3.2rem;
line-height: 1; }
h2 { font-style: italic;
font-weight: 400;
margin-top: 2.1rem;
margin-bottom: 0;
font-size: 2.2rem;
line-height: 1; }
h3 { font-style: italic;
font-weight: 400;
font-size: 1.7rem;
margin-top: 2rem;
margin-bottom: 0;
line-height: 1; }
subtitle { font-style: italic;
margin-top: 1rem;
margin-bottom: 1rem;
font-size: 1.8rem;
display: block;
line-height: 1; }
table { width: 53%;
text-align: right;
font-size: 1.4rem;
line-height: 1.4;
margin-top: 1.4rem;
margin-bottom: 1.4rem;
margin-left: 1%;
margin-right: 1%;
border-collapse: separate;
border-spacing: 0 5px;
-webkit-font-feature-settings: 'tnum'; /* This is technically redundant */
-moz-font-feature-settings: 'tnum';
-ms-font-feature-settings: 'tnum'; }
thead th { border-bottom: 1px solid #AAAAAA;
font-weight: 400;
border-collapse: separate;
border-spacing: 5px 5px; }
td.text { text-align: left; }
article { position: relative;
padding: 5rem 0rem; }
section { padding-top: 1rem;
padding-bottom: 1rem; }
p { font-size: 1.4rem;
line-height: 2rem;
margin-top: 1.4rem;
margin-bottom: 1.4rem;
padding-right: 0;
vertical-align: baseline; }
blockquote p { font-size: 1.1rem;
width: 50%; }
blockquote footer { width: 50%;
text-align: right; }
figure { -webkit-margin-start: 0;
-webkit-margin-end: 0; }
figcaption { float: right;
clear: right;
margin-right: 16%;
margin-top: 0;
margin-bottom: 0;
font-size: 1.0rem;
line-height: 1.6;
vertical-align: baseline;
position: relative; }
a { color: #222; }
img { max-width: 100%; }
sup, sub { vertical-align: baseline;
position: relative;
top: -0.4rem; }
sub { top: 0.4rem; }
.sidenote, .marginnote { float: right;
clear: right;
margin-right: -60%;
width: 50%;
margin-top: 0;
margin-bottom: 0;
font-size: 1.0rem;
line-height: 1.6;
vertical-align: baseline;
position: relative; }
.sidenote-number { counter-increment: sidenote-counter; }
.sidenote-number:after, .sidenote:before { content: counter(sidenote-counter) " ";
position: relative;
top: -0.4rem;
vertical-align: baseline;
font-size: 0.9rem;
color: #f00000; }
.sidenote-number:after { content: counter(sidenote-counter); }
.sidenote:before { content: counter(sidenote-counter) " "; }
p, footer, pre.code { width: 55%; }
@media screen and (max-width: 600px) { p, footer, pre.code { width: 65%; }
blockquote p, blockquote footer { width: 60%; }}
@media screen and (max-width: 400px) { p, footer, pre.code { width: 90%; }
blockquote p, blockquote footer { width: 90%; }}
.sans { font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif; }
.code { font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
color: #222;
font-size: 1rem;
line-height: 1.6; }
pre.code { padding: 0 0 0 2em; }
.fullwidth { max-width: 95%; }
@media screen and (max-width: 600px) { .sidenote-content, .marginnote { width: 25%;
margin-right: -35%; }}
@media screen and (max-width: 400px) { .sidenote-content, .marginnote { display: none; }}
span.newthought { font-variant: small-caps; }