blob: 6e1434e491d9f66755ea937723a84ddc3c776800 [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 {
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020061 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;
Serge Bazanskid701c4e2020-08-10 17:59:59 +020075 display: inline-flex;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +020076}
77
78.header a {
79 text-decoration: none;
80}
81.header a:hover {
82 text-decoration: underline;
83}
84
85.header span.red {
86 color: #b30014;
87}
88
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020089.header span.part {
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020090 color: #666;
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020091 padding-left: 0.2em;
92}
93
94.header span.part a {
95 color: rgb(27, 106, 203);
96}
97.header span.part a:visited {
98 color: rgb(27, 106, 203);
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020099}
100
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200101.footer {
102 font-size: 0.8em;
103 color: #ccc;
104 font-weight: 800;
105 font-family: helvetica, arial, sans-serif;
106 padding: 0.5em 1em 1em;
107 text-align: right;
108}
109
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200110.footer .left {
111 float: left;
112}
113
114.footer .right {
115 float: right;
116}
117
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200118.footer a {
119 color: #bbb;
120}
121
122h1,h2,h3,h4 {
123 font-family: helvetica, arial, sans-serif;
124}
125
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200126.content h1 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200127 font-size: 1.6em;
128 padding: 1em 0 0 0;
129 font-weight: 800;
130}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200131
132.content h2 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200133 font-size: 1.3em;
134 padding: 0.8em 0 0 0;
135 color: #333;
136 font-weight: 800;
137}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200138
139.content h3 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200140 font-size: 1.2em;
141 padding: 0.4em 0 0 0;
142 color: #444;
143}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200144
145.content h4 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200146 font-size: 1.0em;
147 color: #555;
148}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200149
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200150.content strong {
151 font-weight: 600;
152}
153
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200154.content code {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200155 font-family: Consolas, monospace;
156 background-color: #f8f8f8;
157}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200158
159.content pre {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200160 background-color: #f8f8f8;
161 border: 1px solid #d8d8d8;
162 margin: 1em;
163 padding: 0.5em;
164 overflow: auto;
165}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200166
167.content p {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200168 margin-top: 0.8em;
169 line-height: 1.5em;
170}
171
Serge Bazanski0a2f4132020-09-23 18:13:05 +0000172.content :not(li) > ul {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200173 padding-top: 0.5em;
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200174 line-height: 1.5em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200175}
176
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200177.content ul li {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200178 padding-left: 1em;
179}
180
Serge Bazanski0a2f4132020-09-23 18:13:05 +0000181.content :not(li) > ul > li::before {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200182 content: "•";
183 color: #333;;
184 display: inline-block;
185 width: 1em;
Serge Bazanski0a2f4132020-09-23 18:13:05 +0000186 margin-left: -0.5em;
187}
188
189.content li > ul > li::before {
190 content: "◦";
191 color: #333;;
192 display: inline-block;
193 width: 1em;
194 margin-left: -0.5em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200195}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200196
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200197.content img {
198 max-width: 90%;
199 margin: 1em auto 1em auto;
200 display: block;
201}
202
Serge Bazanski94a1af82020-10-24 20:20:18 +0200203.content table {
204 border: 1px solid #ddd;
205 width: 100%;
206 max-width: 100%;
207 margin-bottom: 20px;
208 margin-top: 20px;
209}
210
211.content table th {
212 border-bottom-width: 2px;
213 border: 1px solid #ddd;
214 border: 1px solid #e36372;
215 padding: 5px;
216 text-align: left;
217 vertical-align: bottom;
218 background-color: #e36372;
219 font-weight: 800;
220 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
221 color: #fff;
222}
223.content table td {
224 border: 1px solid #e36372;
225 padding: 5px;
226 vertical-align: top;
227 background-color: #ffdbdf;
228 font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
229}
230
231.content table code {
232 font-family: Consolas, monospace;
233 background-color: #fcedef;
234}
235
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200236.toc {
Serge Bazanski0a2f4132020-09-23 18:13:05 +0000237 padding: .5em;
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200238 border: 1px solid #ddd;
239 background-color: #f8f8f8;
240 margin: 2em;
241 max-width: 30%;
Serge Bazanski0a2f4132020-09-23 18:13:05 +0000242 font-size: 1em;
243 font-family: sans-serif;
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200244}
245
246.toc a {
247 text-decoration: none;
248}
249
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200250</style>
251{{ end }}
252{{ define "body" }}
253<div class="wrapper">
254 <div class="column">
255 <div class="page">
256 <div class="header">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200257 <span class="red">hackdoc:</span>
Serge Bazanskid701c4e2020-08-10 17:59:59 +0200258 {{ range .PathParts }}
259 {{ if ne .Path "" }}
260 <span class="part"><a href="{{ .Path }}">{{ .Label }}</a></span>
261 {{ else }}
262 <span class="part">{{ .Label }}</span>
263 {{ end }}
264 {{ end }}
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200265 <span class="red" style="margin-left: 1em;">shortcuts:</span> <a href="/">root</a>, <a href="/cluster/doc">cluster docs</a>, <a href="/doc/codelabs">codelabs</a>
Sergiusz Bazanskicc8c69c2020-04-10 21:20:53 +0200266 </div>
q3k4f7cc002020-04-10 20:09:35 +0000267 {{ .Rendered }}
268 </div>
269 <div class="footer">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200270 <div class="left">
271 View in:
272 {{ range .WebLinks }}
273 <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span>
274 {{ end }}
275 </div>
276 <div class="right">Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.</div>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200277 </div>
278 </div>
279</div>
280{{ end }}