blob: 712096278a1036fc5f90680d06e0cddb1c73e2c1 [file] [log] [blame]
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +02001{{ define "head" }}
2<style type="text/css">
3html, body, div, span, applet, object, iframe,
4h1, h2, h3, h4, h5, h6, p, blockquote, pre,
5a, abbr, acronym, address, big, cite, code,
6del, dfn, em, img, ins, kbd, q, s, samp,
7small, strike, strong, sub, sup, tt, var,
8b, u, i, center,
9dl, dt, dd, ol, ul, li,
10fieldset, form, label, legend,
11table, caption, tbody, tfoot, thead, tr, th, td,
12article, aside, canvas, details, embed,
13figure, figcaption, footer, header, hgroup,
14menu, nav, output, ruby, section, summary,
15time, mark, audio, video {
16 margin: 0;
17 padding: 0;
18 border: 0;
19 font-size: 100%;
20 font: inherit;
21 vertical-align: baseline;
22}
23/* HTML5 display-role reset for older browsers */
24article, aside, details, figcaption, figure,
25footer, header, hgroup, menu, nav, section {
26 display: block;
27}
28body {
29 line-height: 1;
30}
31ol, ul {
32 list-style: none;
33}
34blockquote, q {
35 quotes: none;
36}
37blockquote:before, blockquote:after,
38q:before, q:after {
39 content: '';
40 content: none;
41}
42table {
43 border-collapse: collapse;
44 border-spacing: 0;
45}
46
47body {
48 font-size: 14px;
49 line-height: 1.25em;
50 background-color: #f0f0f0;
51}
52
53.wrapper {
54 display: flex;
55 flex-direction: row;
56 justify-content: center;
57 width: 100%;
58}
59
60.column {
q3k4f7cc002020-04-10 20:09:35 +000061 max-width: 80em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020062 padding: 1rem 0 1rem 0;
63}
64
65.page {
66 background-color: #fefefe;
67 padding: 0.5rem 2rem 3rem 2rem;
68}
69
70.header {
71 font-size: 1.2em;
72 font-family: Consolas, monospace;
73 margin-top: 1rem;
74 padding: 0.5em 0 0.5em 0;
75}
76
77.header a {
78 text-decoration: none;
79}
80.header a:hover {
81 text-decoration: underline;
82}
83
84.header span.red {
85 color: #b30014;
86}
87
q3k4f7cc002020-04-10 20:09:35 +000088.header span.muted {
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020089 color: #666;
90}
91
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020092.footer {
93 font-size: 0.8em;
94 color: #ccc;
95 font-weight: 800;
96 font-family: helvetica, arial, sans-serif;
97 padding: 0.5em 1em 1em;
98 text-align: right;
99}
100
101.footer a {
102 color: #bbb;
103}
104
105h1,h2,h3,h4 {
106 font-family: helvetica, arial, sans-serif;
107}
108
109h1 {
110 font-size: 1.6em;
111 padding: 1em 0 0 0;
112 font-weight: 800;
113}
114h2 {
115 font-size: 1.3em;
116 padding: 0.8em 0 0 0;
117 color: #333;
118 font-weight: 800;
119}
120h3 {
121 font-size: 1.2em;
122 padding: 0.4em 0 0 0;
123 color: #444;
124}
125h4 {
126 font-size: 1.0em;
127 color: #555;
128}
129code {
130 font-family: Consolas, monospace;
131 background-color: #f8f8f8;
132}
133pre {
134 background-color: #f8f8f8;
135 border: 1px solid #d8d8d8;
136 margin: 1em;
137 padding: 0.5em;
138 overflow: auto;
139}
140p {
141 margin-top: 0.8em;
142 line-height: 1.5em;
143}
144
145ul {
146 padding-top: 0.5em;
147}
148
149ul li {
150 padding-left: 1em;
151}
152
153ul li::before {
154 content: "•";
155 color: #333;;
156 display: inline-block;
157 width: 1em;
158 margin-left: -1em;
159}
160</style>
161{{ end }}
162{{ define "body" }}
163<div class="wrapper">
164 <div class="column">
165 <div class="page">
166 <div class="header">
q3k4f7cc002020-04-10 20:09:35 +0000167 <span class="red">hackdoc:</span><span>{{ .Path }}</span>
Sergiusz Bazanskicc8c69c2020-04-10 21:20:53 +0200168 {{ range .WebLinks }}
169 <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span>
170 {{ end }}
171 </div>
q3k4f7cc002020-04-10 20:09:35 +0000172 {{ .Rendered }}
173 </div>
174 <div class="footer">
175 Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200176 </div>
177 </div>
178</div>
179{{ end }}