summaryrefslogtreecommitdiff
path: root/themes/tufte.css
blob: 2ee64c54bd4aef125ee125c99a4b315e6f60fc0a (plain)
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
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap");
body {
  margin: 0;
  padding: 3rem 2rem;
  background: #fffff8;
  color: #111;

  font-family: "Libre Baskerville", Georgia, serif;
  line-height: 1.75;
  font-size: 19px;
}

body > * {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Headings */

h1,
h2,
h3 {
  text-align: left;
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 3rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

/* Paragraphs */

p {
  margin: 1.3rem 0;
}

/* Lists */

ul,
ol {
  margin: 1.2rem 0 1.2rem 1.6rem;
}

li {
  margin: 0.4rem 0;
}

/* Horizontal rule */

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 3rem auto;
}

/* Tables */

table {
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

th,
td {
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid #ddd;
}

th {
  text-align: left;
}

/* Inline code */

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f5f5f5;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9rem;
}

/* Code blocks */

pre {
  background: #f7f7f7;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border-left: 3px solid #ccc;
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* Links */

a {
  color: #222;
  text-decoration: underline;
}

a:hover {
  color: black;
}

@media (max-width: 700px) {
  body {
    padding: 2rem 1.2rem;
    font-size: 17px;
  }
}