blob: edb4c33201592eb30d64fa9e23af1bf4188e1a5c [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;
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
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020088.header span.part {
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020089 color: #666;
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +020090 padding-left: 0.2em;
91}
92
93.header span.part a {
94 color: rgb(27, 106, 203);
95}
96.header span.part a:visited {
97 color: rgb(27, 106, 203);
Sergiusz Bazanskif157b4d2020-04-10 17:39:43 +020098}
99
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200100.footer {
101 font-size: 0.8em;
102 color: #ccc;
103 font-weight: 800;
104 font-family: helvetica, arial, sans-serif;
105 padding: 0.5em 1em 1em;
106 text-align: right;
107}
108
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200109.footer .left {
110 float: left;
111}
112
113.footer .right {
114 float: right;
115}
116
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200117.footer a {
118 color: #bbb;
119}
120
121h1,h2,h3,h4 {
122 font-family: helvetica, arial, sans-serif;
123}
124
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200125.content h1 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200126 font-size: 1.6em;
127 padding: 1em 0 0 0;
128 font-weight: 800;
129}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200130
131.content h2 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200132 font-size: 1.3em;
133 padding: 0.8em 0 0 0;
134 color: #333;
135 font-weight: 800;
136}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200137
138.content h3 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200139 font-size: 1.2em;
140 padding: 0.4em 0 0 0;
141 color: #444;
142}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200143
144.content h4 {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200145 font-size: 1.0em;
146 color: #555;
147}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200148
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200149.content strong {
150 font-weight: 600;
151}
152
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200153.content code {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200154 font-family: Consolas, monospace;
155 background-color: #f8f8f8;
156}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200157
158.content pre {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200159 background-color: #f8f8f8;
160 border: 1px solid #d8d8d8;
161 margin: 1em;
162 padding: 0.5em;
163 overflow: auto;
164}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200165
166.content p {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200167 margin-top: 0.8em;
168 line-height: 1.5em;
169}
170
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200171.content ul {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200172 padding-top: 0.5em;
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200173 line-height: 1.5em;
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200174}
175
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200176.content ul li {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200177 padding-left: 1em;
178}
179
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200180.content ul li::before {
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200181 content: "•";
182 color: #333;;
183 display: inline-block;
184 width: 1em;
185 margin-left: -1em;
186}
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200187
Sergiusz Bazanski7b1d1372020-04-13 01:27:56 +0200188.content img {
189 max-width: 90%;
190 margin: 1em auto 1em auto;
191 display: block;
192}
193
Sergiusz Bazanski5bce7ce2020-04-11 20:16:58 +0200194.toc {
195 float: right;
196 padding: 1em 1em 1em 1em;
197 border: 1px solid #ddd;
198 background-color: #f8f8f8;
199 margin: 2em;
200 max-width: 30%;
201}
202
203.toc h1 {
204 font-size: 1.2em;
205 padding-bottom: 0.5em;
206}
207
208.toc a {
209 text-decoration: none;
210}
211
212.toc li {
213 padding-left: 0.5em;
214}
215
216.toc ul {
217 list-style-type: disc;
218 padding-left: 1em;
219}
220
221.toc ul ul {
222 list-style-type: circle;
223}
224
225
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200226</style>
227{{ end }}
228{{ define "body" }}
229<div class="wrapper">
230 <div class="column">
231 <div class="page">
232 <div class="header">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200233 <span class="red">hackdoc:</span>
234 {{ range .PathParts }}<span class="part"><a href="{{ .Path }}">{{ .Label }}</a></span>{{ end }}
235 <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 +0200236 </div>
q3k4f7cc002020-04-10 20:09:35 +0000237 {{ .Rendered }}
238 </div>
239 <div class="footer">
Sergiusz Bazanski8adbd492020-04-10 21:20:53 +0200240 <div class="left">
241 View in:
242 {{ range .WebLinks }}
243 <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span>
244 {{ end }}
245 </div>
246 <div class="right">Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.</div>
Sergiusz Bazanskic881cf32020-04-08 20:03:12 +0200247 </div>
248 </div>
249</div>
250{{ end }}