summaryrefslogtreecommitdiffstats
path: root/styles.html
diff options
context:
space:
mode:
Diffstat (limited to 'styles.html')
-rw-r--r--styles.html132
1 files changed, 132 insertions, 0 deletions
diff --git a/styles.html b/styles.html
index ea92c39..3d7ebb5 100644
--- a/styles.html
+++ b/styles.html
@@ -1,3 +1,111 @@
1$if(document-css)$
2html {
3 line-height: $if(linestretch)$$linestretch$$else$1.7$endif$;
4 font-family: $if(mainfont)$$mainfont$$else$Georgia, serif$endif$;
5 font-size: $if(fontsize)$$fontsize$$else$20px$endif$;
6 color: $if(fontcolor)$$fontcolor$$else$#1a1a1a$endif$;
7 background-color: $if(backgroundcolor)$$backgroundcolor$$else$#fdfdfd$endif$;
8}
9body {
10 margin: 0 auto;
11 max-width: 40em;
12 padding-left: $if(margin-left)$$margin-left$$else$50px$endif$;
13 padding-right: $if(margin-right)$$margin-right$$else$50px$endif$;
14 padding-top: $if(margin-top)$$margin-top$$else$50px$endif$;
15 padding-bottom: $if(margin-bottom)$$margin-bottom$$else$50px$endif$;
16 hyphens: auto;
17 word-wrap: break-word;
18 text-rendering: optimizeLegibility;
19 font-kerning: normal;
20}
21@media (max-width: 600px) {
22 body {
23 font-size: 0.9em;
24 padding: 1em;
25 }
26}
27@media print {
28 body {
29 background-color: transparent;
30 color: black;
31 }
32 p, h2, h3 {
33 orphans: 3;
34 widows: 3;
35 }
36 h2, h3, h4 {
37 page-break-after: avoid;
38 }
39}
40p {
41 margin-top: 1.7em;
42}
43a {
44 color: $if(linkcolor)$$linkcolor$$else$#1a1a1a$endif$;
45}
46a:visited {
47 color: $if(linkcolor)$$linkcolor$$else$#1a1a1a$endif$;
48}
49img {
50 max-width: 100%;
51}
52h1, h2, h3, h4, h5, h6 {
53 margin-top: 1.7em;
54}
55ol, ul {
56 padding-left: 1.7em;
57 margin-top: 1.7em;
58}
59li > ol, li > ul {
60 margin-top: 0;
61}
62blockquote {
63 margin: 1.7em 0 1.7em 1.7em;
64 padding-left: 1em;
65 border-left: 2px solid #e6e6e6;
66 font-style: italic;
67}
68code {
69 font-family: $if(monofont)$$monofont$$else$Menlo, Monaco, 'Lucida Console', Consolas, monospace$endif$;
70 background-color: #f0f0f0;
71 font-size: 85%;
72 margin: 0;
73 padding: .2em .4em;
74}
75pre {
76 line-height: 1.5em;
77 padding: 1em;
78 background-color: #f0f0f0;
79 overflow: auto;
80}
81pre code {
82 padding: 0;
83 overflow: visible;
84}
85hr {
86 background-color: #1a1a1a;
87 border: none;
88 height: 1px;
89 margin-top: 1.7em;
90}
91table {
92 border-collapse: collapse;
93 width: 100%;
94 overflow-x: auto;
95 display: block;
96}
97th, td {
98 border-bottom: 1px solid lightgray;
99 padding: 1em 3em 1em 0;
100}
101header {
102 margin-bottom: 6em;
103 text-align: center;
104}
105nav a:not(:hover) {
106 text-decoration: none;
107}
108$endif$
1code{white-space: pre-wrap;} 109code{white-space: pre-wrap;}
2span.smallcaps{font-variant: small-caps;} 110span.smallcaps{font-variant: small-caps;}
3span.underline{text-decoration: underline;} 111span.underline{text-decoration: underline;}
@@ -13,3 +121,27 @@ $endif$
13$if(displaymath-css)$ 121$if(displaymath-css)$
14.display.math{display: block; text-align: center; margin: 0.5rem auto;} 122.display.math{display: block; text-align: center; margin: 0.5rem auto;}
15$endif$ 123$endif$
124$if(csl-css)$
125div.csl-bib-body { }
126div.csl-entry {
127 clear: both;
128$if(csl-entry-spacing)$
129 margin-bottom: $csl-entry-spacing$;
130$endif$
131}
132.hanging div.csl-entry {
133 margin-left:2em;
134 text-indent:-2em;
135}
136div.csl-left-margin {
137 min-width:2em;
138 float:left;
139}
140div.csl-right-inline {
141 margin-left:2em;
142 padding-left:1em;
143}
144div.csl-indent {
145 margin-left: 2em;
146}
147$endif$