gunk-dev/the-valley

reader.css

source5cf60500fab4main's published tip history
2.3 KiB
1/* Relative sizes and inherited colors let the reader control the page. */
2body {
3 font-family: serif;
4 line-height: 1.4;
5}
6
7p {
8 margin-top: 0;
9 margin-bottom: 0.8em;
10 text-indent: 0;
11 orphans: 2;
12 widows: 2;
13}
14
15h1,
16h2,
17h3,
18h4 {
19 font-family: sans-serif;
20 font-weight: bold;
21 line-height: 1.2;
22 text-align: left;
23 page-break-after: avoid;
24 break-after: avoid;
25}
26
27h1 {
28 font-size: 1.65em;
29 margin: 0 0 1em;
30}
31
32h2 {
33 font-size: 1.3em;
34 margin: 1.6em 0 0.7em;
35}
36
37h3 {
38 font-size: 1.12em;
39 margin: 1.35em 0 0.65em;
40}
41
42h4 {
43 font-size: 1em;
44 margin: 1.2em 0 0.6em;
45}
46
47a {
48 color: inherit;
49 text-decoration: underline;
50}
51
52.footnote-ref {
53 vertical-align: super;
54 font-size: 0.75em;
55 line-height: 0;
56 text-decoration: none;
57}
58
59li {
60 margin-bottom: 0.45em;
61}
62
63ul,
64ol {
65 padding-left: 1.4em;
66}
67
68li > p:last-child {
69 margin-bottom: 0.45em;
70}
71
72blockquote {
73 margin: 1em 0 1em 1em;
74 padding-left: 0.75em;
75 border-left: 0.12em solid;
76}
77
78code,
79pre,
80.repository-path {
81 font-family: monospace;
82 font-size: 0.9em;
83 overflow-wrap: anywhere;
84 word-wrap: break-word;
85}
86
87pre {
88 white-space: pre-wrap;
89 margin: 1em 0;
90 padding: 0.7em;
91 border: 0.06em solid;
92 line-height: 1.35;
93}
94
95pre code {
96 font-size: inherit;
97}
98
99.table-record {
100 margin: 1.1em 0;
101 padding: 0 0 0.65em;
102 border-bottom: 0.06em solid;
103}
104
105.record-title {
106 font-weight: bold;
107 margin-bottom: 0.55em;
108 page-break-after: avoid;
109 break-after: avoid;
110}
111
112.record-field {
113 margin-bottom: 0.5em;
114}
115
116.record-field strong {
117 font-weight: bold;
118}
119
120table {
121 width: 100%;
122 table-layout: fixed;
123 border-collapse: collapse;
124 margin: 1em 0;
125}
126
127th,
128td {
129 padding: 0.35em;
130 text-align: left;
131 vertical-align: top;
132 white-space: normal;
133 overflow-wrap: anywhere;
134 word-wrap: break-word;
135}
136
137th {
138 font-weight: bold;
139 border-bottom: 0.08em solid;
140}
141
142td {
143 border-bottom: 0.04em solid;
144}
145
146tr {
147 page-break-inside: avoid;
148 break-inside: avoid;
149}
150
151nav ol,
152nav ul,
153#TOC ol,
154#TOC ul {
155 list-style-type: none;
156 padding-left: 0;
157}
158
159nav ol ol,
160nav ul ul,
161#TOC ol ol,
162#TOC ul ul {
163 padding-left: 1em;
164}
165
166nav li,
167#TOC li {
168 margin-bottom: 0.65em;
169}
170
171.titlepage {
172 text-align: center;
173}
174
175.titlepage h1 {
176 text-align: center;
177}
178
179.subtitle {
180 font-size: 1.2em;
181}
182
183.edition-note {
184 font-size: 0.9em;
185}
186
187img,
188svg {
189 max-width: 100%;
190 height: auto;
191}