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 { |
| 61 | max-width: 80em; |
| 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; |
| 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 Bazanski | f157b4d | 2020-04-10 17:39:43 +0200 | [diff] [blame^] | 88 | .header span.muted { |
| 89 | color: #666; |
| 90 | } |
| 91 | |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 92 | .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 | |
| 105 | h1,h2,h3,h4 { |
| 106 | font-family: helvetica, arial, sans-serif; |
| 107 | } |
| 108 | |
| 109 | h1 { |
| 110 | font-size: 1.6em; |
| 111 | padding: 1em 0 0 0; |
| 112 | font-weight: 800; |
| 113 | } |
| 114 | h2 { |
| 115 | font-size: 1.3em; |
| 116 | padding: 0.8em 0 0 0; |
| 117 | color: #333; |
| 118 | font-weight: 800; |
| 119 | } |
| 120 | h3 { |
| 121 | font-size: 1.2em; |
| 122 | padding: 0.4em 0 0 0; |
| 123 | color: #444; |
| 124 | } |
| 125 | h4 { |
| 126 | font-size: 1.0em; |
| 127 | color: #555; |
| 128 | } |
| 129 | code { |
| 130 | font-family: Consolas, monospace; |
| 131 | background-color: #f8f8f8; |
| 132 | } |
| 133 | pre { |
| 134 | background-color: #f8f8f8; |
| 135 | border: 1px solid #d8d8d8; |
| 136 | margin: 1em; |
| 137 | padding: 0.5em; |
| 138 | overflow: auto; |
| 139 | } |
| 140 | p { |
| 141 | margin-top: 0.8em; |
| 142 | line-height: 1.5em; |
| 143 | } |
| 144 | |
| 145 | ul { |
| 146 | padding-top: 0.5em; |
| 147 | } |
| 148 | |
| 149 | ul li { |
| 150 | padding-left: 1em; |
| 151 | } |
| 152 | |
| 153 | ul 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"> |
Sergiusz Bazanski | f157b4d | 2020-04-10 17:39:43 +0200 | [diff] [blame^] | 167 | <span class="red">hackdoc:</span><span>{{ .Path }}</span> |
| 168 | {{ range .WebLinks }} |
| 169 | <span class="muted">[{{ .Kind }} <a href="{{ .LinkURL }}">{{ .LinkLabel }}</a>]</span> |
| 170 | {{ end }} |
Sergiusz Bazanski | c881cf3 | 2020-04-08 20:03:12 +0200 | [diff] [blame] | 171 | </div> |
| 172 | {{ .Rendered }} |
| 173 | </div> |
| 174 | <div class="footer"> |
| 175 | Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>. |
| 176 | </div> |
| 177 | </div> |
| 178 | </div> |
| 179 | {{ end }} |