Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 1 | {{ define "head" }} |
| 2 | <style type="text/css"> |
| 3 | html, body, div, span, applet, object, iframe, |
| 4 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, |
| 5 | a, abbr, acronym, address, big, cite, code, |
| 6 | del, dfn, em, img, ins, kbd, q, s, samp, |
| 7 | small, strike, strong, sub, sup, tt, var, |
| 8 | b, u, i, center, |
| 9 | dl, dt, dd, ol, ul, li, |
| 10 | fieldset, form, label, legend, |
| 11 | table, caption, tbody, tfoot, thead, tr, th, td, |
| 12 | article, aside, canvas, details, embed, |
| 13 | figure, figcaption, footer, header, hgroup, |
| 14 | menu, nav, output, ruby, section, summary, |
| 15 | time, 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 */ |
| 24 | article, aside, details, figcaption, figure, |
| 25 | footer, header, hgroup, menu, nav, section { |
| 26 | display: block; |
| 27 | } |
| 28 | body { |
| 29 | line-height: 1; |
| 30 | } |
| 31 | ol, ul { |
| 32 | list-style: none; |
| 33 | } |
| 34 | blockquote, q { |
| 35 | quotes: none; |
| 36 | } |
| 37 | blockquote:before, blockquote:after, |
| 38 | q:before, q:after { |
| 39 | content: ''; |
| 40 | content: none; |
| 41 | } |
| 42 | table { |
| 43 | border-collapse: collapse; |
| 44 | border-spacing: 0; |
| 45 | } |
| 46 | |
| 47 | body { |
| 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 Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 61 | width: 80em; |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 62 | 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 Bazanski | d701c4e | 2020-08-10 17:59:59 +0200 | [diff] [blame] | 75 | display: inline-flex; |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 76 | } |
| 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 Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 89 | .header span.part { |
Sergiusz Bazanski | f157b4d | 2020-04-10 17:39:43 +0200 | [diff] [blame] | 90 | color: #666; |
Sergiusz Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 91 | 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 Bazanski | f157b4d | 2020-04-10 17:39:43 +0200 | [diff] [blame] | 99 | } |
| 100 | |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 101 | .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 Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 110 | .footer .left { |
| 111 | float: left; |
| 112 | } |
| 113 | |
| 114 | .footer .right { |
| 115 | float: right; |
| 116 | } |
| 117 | |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 118 | .footer a { |
| 119 | color: #bbb; |
| 120 | } |
| 121 | |
| 122 | h1,h2,h3,h4 { |
| 123 | font-family: helvetica, arial, sans-serif; |
| 124 | } |
| 125 | |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 126 | .content h1 { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 127 | font-size: 1.6em; |
| 128 | padding: 1em 0 0 0; |
| 129 | font-weight: 800; |
| 130 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 131 | |
| 132 | .content h2 { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 133 | font-size: 1.3em; |
| 134 | padding: 0.8em 0 0 0; |
| 135 | color: #333; |
| 136 | font-weight: 800; |
| 137 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 138 | |
| 139 | .content h3 { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 140 | font-size: 1.2em; |
| 141 | padding: 0.4em 0 0 0; |
| 142 | color: #444; |
| 143 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 144 | |
| 145 | .content h4 { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 146 | font-size: 1.0em; |
| 147 | color: #555; |
| 148 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 149 | |
Sergiusz Bazanski | 7b1d137 | 2020-04-13 01:27:56 +0200 | [diff] [blame] | 150 | .content strong { |
| 151 | font-weight: 600; |
| 152 | } |
| 153 | |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 154 | .content code { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 155 | font-family: Consolas, monospace; |
| 156 | background-color: #f8f8f8; |
| 157 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 158 | |
| 159 | .content pre { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 160 | background-color: #f8f8f8; |
| 161 | border: 1px solid #d8d8d8; |
| 162 | margin: 1em; |
| 163 | padding: 0.5em; |
| 164 | overflow: auto; |
| 165 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 166 | |
| 167 | .content p { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 168 | margin-top: 0.8em; |
| 169 | line-height: 1.5em; |
| 170 | } |
| 171 | |
Serge Bazanski | 0a2f413 | 2020-09-23 18:13:05 +0000 | [diff] [blame] | 172 | .content :not(li) > ul { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 173 | padding-top: 0.5em; |
Sergiusz Bazanski | 7b1d137 | 2020-04-13 01:27:56 +0200 | [diff] [blame] | 174 | line-height: 1.5em; |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 175 | } |
| 176 | |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 177 | .content ul li { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 178 | padding-left: 1em; |
| 179 | } |
| 180 | |
Serge Bazanski | 0a2f413 | 2020-09-23 18:13:05 +0000 | [diff] [blame] | 181 | .content :not(li) > ul > li::before { |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 182 | content: "•"; |
| 183 | color: #333;; |
| 184 | display: inline-block; |
| 185 | width: 1em; |
Serge Bazanski | 0a2f413 | 2020-09-23 18:13:05 +0000 | [diff] [blame] | 186 | 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 Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 195 | } |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 196 | |
Sergiusz Bazanski | 7b1d137 | 2020-04-13 01:27:56 +0200 | [diff] [blame] | 197 | .content img { |
| 198 | max-width: 90%; |
| 199 | margin: 1em auto 1em auto; |
| 200 | display: block; |
| 201 | } |
| 202 | |
Serge Bazanski | 94a1af8 | 2020-10-24 20:20:18 +0200 | [diff] [blame] | 203 | .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 Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 236 | .toc { |
Serge Bazanski | 0a2f413 | 2020-09-23 18:13:05 +0000 | [diff] [blame] | 237 | padding: .5em; |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 238 | border: 1px solid #ddd; |
| 239 | background-color: #f8f8f8; |
| 240 | margin: 2em; |
| 241 | max-width: 30%; |
Serge Bazanski | 0a2f413 | 2020-09-23 18:13:05 +0000 | [diff] [blame] | 242 | font-size: 1em; |
| 243 | font-family: sans-serif; |
Sergiusz Bazanski | 5bce7ce | 2020-04-11 20:16:58 +0200 | [diff] [blame] | 244 | } |
| 245 | |
| 246 | .toc a { |
| 247 | text-decoration: none; |
| 248 | } |
| 249 | |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 250 | </style> |
| 251 | {{ end }} |
| 252 | {{ define "body" }} |
| 253 | <div class="wrapper"> |
| 254 | <div class="column"> |
| 255 | <div class="page"> |
| 256 | <div class="header"> |
Sergiusz Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 257 | <span class="red">hackdoc:</span> |
Serge Bazanski | d701c4e | 2020-08-10 17:59:59 +0200 | [diff] [blame] | 258 | {{ 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 Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 265 | <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 Bazanski | cc8c69c | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 266 | </div> |
q3k | 4f7cc00 | 2020-04-10 20:09:35 +0000 | [diff] [blame] | 267 | {{ .Rendered }} |
| 268 | </div> |
| 269 | <div class="footer"> |
Sergiusz Bazanski | 8adbd49 | 2020-04-10 21:20:53 +0200 | [diff] [blame] | 270 | <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 Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 277 | </div> |
| 278 | </div> |
| 279 | </div> |
| 280 | {{ end }} |