blob: 8b93b391548e734ffe396433a832950bbf4531ad [file] [log] [blame]
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02001<!doctype html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8">
5 <title>hackdoc:{{ .Title }}</title>
Serge Bazanski3ba5c1b2021-03-06 22:16:17 +00006 <style type="text/css">
7html, body, div, span, applet, object, iframe,
8h1, h2, h3, h4, h5, h6, p, blockquote, pre,
9a, abbr, acronym, address, big, cite, code,
10del, dfn, em, img, ins, kbd, q, s, samp,
11small, strike, strong, sub, sup, tt, var,
12b, u, i, center,
13dl, dt, dd, ol, ul, li,
14fieldset, form, label, legend,
15table, caption, tbody, tfoot, thead, tr, th, td,
16article, aside, canvas, details, embed,
17figure, figcaption, footer, header, hgroup,
18menu, nav, output, ruby, section, summary,
19time, mark, audio, video {
20 margin: 0;
21 padding: 0;
22 border: 0;
23 font-size: 100%;
24 font: inherit;
25 vertical-align: baseline;
26}
27/* HTML5 display-role reset for older browsers */
28article, aside, details, figcaption, figure,
29footer, header, hgroup, menu, nav, section {
30 display: block;
31}
32body {
33 line-height: 1;
34}
35ol, ul {
36 list-style: none;
37}
38blockquote, q {
39 quotes: none;
40}
41blockquote:before, blockquote:after,
42q:before, q:after {
43 content: '';
44 content: none;
45}
46table {
47 border-collapse: collapse;
48 border-spacing: 0;
49}
50
51body {
52 font-size: 14px;
53 line-height: 1.25em;
54 background-color: #f0f0f0;
55}
56
57html {
58 /* Cursed snippet to prevent entire page being shifted left when scrollbar
59 appears. */
60 overflow-x: hidden;
61 margin-right: calc(-1 * (100vw - 100%));
62}
63
64.wrapper {
65 display: flex;
66 flex-direction: row;
67 justify-content: center;
68 width: 100%;
69 font-family: 'Open Sans', sans-serif;
70}
71
72.column {
73 width: 80em;
74 padding: 1rem 0 1rem 0;
75}
76
77.page {
78 background-color: #fefefe;
79 width: 100%;
80
81 display: flex;
82 flex-direction: row;
83 justify-content: space-between;
84}
85
86.content {
87 order: 1;
88 padding: 1rem 1rem 3rem 3rem;
89 width: 55em;
90}
91
92.sidebar {
93 order: 2;
94 width: 20em;
95 margin-left: 1em;
96 padding-top: 1rem;
97 padding-bottom: 3rem;
98}
99
100.sidebar ul {
101 padding: .5em;
102 border: 1px solid #ddd;
103 margin-top: 1em;
104 margin-right: 2em;
105 background-color: #f8f8f8;
106 font-size: 1em;
107}
108
109
110.header {
111 font-size: 1.2em;
112 font-family: Consolas, monospace;
113 margin-top: 1rem;
114 display: inline-flex;
115 background-color: #fefefe;
116 width: 100%;
117}
118
119.headerInner {
120 padding: 1em 1em 1em 3em;
121}
122
123.header a {
124 text-decoration: none;
125}
126.header a:hover {
127 text-decoration: underline;
128}
129
130.header span.red {
131 color: #b30014;
132}
133
134.header span.part {
135 color: #666;
136 padding-left: 0.2em;
137}
138
139.header span.part a {
140 color: rgb(27, 106, 203);
141}
142.header span.part a:visited {
143 color: rgb(27, 106, 203);
144}
145
146.topbar {
147 min-height: 1em;
148 padding: 1em 1em 1em 3.5em;
149}
150
151.topbar a {
152 text-decoration: none;
153 color: #333;
154 font-size: 1em;
155}
156.topbar a:hover {
157 text-decoration: underline;
158}
159
160.topbar span {
161 margin-right: 2em;
162}
163
164.footer {
165 font-size: 0.8em;
166 color: #ccc;
167 font-weight: 800;
168 padding: 0.5em 1em 1em;
169 text-align: right;
170}
171
172.footer .left {
173 float: left;
174}
175
176.footer .right {
177 float: right;
178}
179
180.footer a {
181 color: #bbb;
182}
183
184.page h1 {
185 font-size: 1.9em;
186 padding: 1em 0 0 0;
187 font-weight: 400;
188 color: #000;
189}
190
191.page p + h1 {
192 padding: 2em 0 0 0;
193}
194
195.page h2 {
196 font-size: 1.5em;
197 padding: 1.6em 0 0 0;
198 color: #000;
199 font-weight: 400;
200}
201
202.page h3 {
203 font-size: 1.4em;
204 padding: 0.4em 0 0 0;
205 color: #333;
206}
207
208.page h4 {
209 font-size: 1.0em;
210 color: #444;
211}
212
213.page strong {
214 font-weight: 600;
215}
216
217.page code {
218 font-family: Consolas, monospace;
219 background-color: #f8f8f8;
220}
221
222.page pre {
223 background-color: #f8f8f8;
224 border: 1px solid #d8d8d8;
225 margin: 2em 1em 2em 1em;
226 padding: 0.5em;
227 overflow: auto;
228 max-width: 60em;
229}
230
231.page h1 + p {
232 margin-top: 2em;
233}
234
235.page h2 + p {
236 margin-top: 1em;
237}
238
239.page h3 + p {
240 margin-top: 1em;
241}
242
243.page h4 + p {
244 margin-top: 1em;
245}
246
247
248.page p + p {
249 margin-top: 1em;
250}
251
252.page p {
253 line-height: 1.6em;
254}
255
256.page :not(li) > ul {
257 padding-top: 0.5em;
258 line-height: 1.5em;
259}
260
261.page ul li {
262 padding-left: 1em;
263}
264
265.page :not(li) > ul > li::before {
266 content: "•";
267 color: #333;;
268 display: inline-block;
269 width: 1em;
270 margin-left: -0.5em;
271}
272
273.page li > ul > li::before {
274 content: "◦";
275 color: #333;;
276 display: inline-block;
277 width: 1em;
278 margin-left: -0.5em;
279}
280
281.page img {
282 max-width: 50em;
283 margin: 1em 0 1em 0;
284 display: block;
285}
286
287.page table {
288 border: 1px solid #ddd;
289 width: 100%;
290 max-width: 100%;
291 margin-bottom: 20px;
292 margin-top: 20px;
293}
294
295.page table th {
296 border-bottom-width: 2px;
297 border: 1px solid #ddd;
298 border: 1px solid #e36372;
299 padding: 5px;
300 text-align: left;
301 vertical-align: bottom;
302 background-color: #e36372;
303 font-weight: 800;
304 color: #fff;
305}
306.page table td {
307 border: 1px solid #e36372;
308 padding: 5px;
309 vertical-align: top;
310 background-color: #ffdbdf;
311}
312
313.page table code {
314 font-family: Consolas, monospace;
315 background-color: #fcedef;
316}
317
318.toc {
319 padding: .5em;
320 border: 1px solid #ddd;
321 background-color: #f8f8f8;
322 margin: 2em;
323 max-width: 30em;
324 font-size: 1em;
325}
326
327.toc a {
328 text-decoration: none;
329}
330
331 </style>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200332 </head>
333 <body>
Serge Bazanski3ba5c1b2021-03-06 22:16:17 +0000334 <div class="wrapper">
335 <div class="column">
336 <div class="header">
337 <div class="headerInner">
338 {{ template "header" . }}
339 </div>
340 </div>
341 <div class="topbar">
342 {{ template "topbar" . }}
343 </div>
344
345 <div class="page">
346 <div class="sidebar">
347 <h3>Page Info</h3>
348 <ul>
349 {{ range .WebLinks }}
350 <li><a href="{{.LinkURL}}">View {{.Kind}} ({{ .LinkLabel }})</a></li>
351 {{ end }}
352 <li><a href="{{ .HackdocURL }}/devtools/hackdoc">Generated by hackdoc</a></li>
353 </ul>
354 </div>
355 {{ .Rendered }}
356 </div>
357 </div>
358 </div>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200359 </body>
360</html>