summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--themes/tufte.css128
1 files changed, 128 insertions, 0 deletions
diff --git a/themes/tufte.css b/themes/tufte.css
new file mode 100644
index 0000000..2ee64c5
--- /dev/null
+++ b/themes/tufte.css
@@ -0,0 +1,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;
+ }
+}