blob: 3bfe62a04999aaf5624b641b0ded9d3244b332bf [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 {
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
88.footer {
89 font-size: 0.8em;
90 color: #ccc;
91 font-weight: 800;
92 font-family: helvetica, arial, sans-serif;
93 padding: 0.5em 1em 1em;
94 text-align: right;
95}
96
97.footer a {
98 color: #bbb;
99}
100
101h1,h2,h3,h4 {
102 font-family: helvetica, arial, sans-serif;
103}
104
105h1 {
106 font-size: 1.6em;
107 padding: 1em 0 0 0;
108 font-weight: 800;
109}
110h2 {
111 font-size: 1.3em;
112 padding: 0.8em 0 0 0;
113 color: #333;
114 font-weight: 800;
115}
116h3 {
117 font-size: 1.2em;
118 padding: 0.4em 0 0 0;
119 color: #444;
120}
121h4 {
122 font-size: 1.0em;
123 color: #555;
124}
125code {
126 font-family: Consolas, monospace;
127 background-color: #f8f8f8;
128}
129pre {
130 background-color: #f8f8f8;
131 border: 1px solid #d8d8d8;
132 margin: 1em;
133 padding: 0.5em;
134 overflow: auto;
135}
136p {
137 margin-top: 0.8em;
138 line-height: 1.5em;
139}
140
141ul {
142 padding-top: 0.5em;
143}
144
145ul li {
146 padding-left: 1em;
147}
148
149ul li::before {
150 content: "•";
151 color: #333;;
152 display: inline-block;
153 width: 1em;
154 margin-left: -1em;
155}
156</style>
157{{ end }}
158{{ define "body" }}
159<div class="wrapper">
160 <div class="column">
161 <div class="page">
162 <div class="header">
163 <span class="red">hackdoc:</span><span>{{ .Path }}</span> <a href="{{ .GitwebURL }}">[git]</a>
164 </div>
165 {{ .Rendered }}
166 </div>
167 <div class="footer">
168 Generated by <a href="{{ .HackdocURL }}/devtools/hackdoc">hackdoc</a>.
169 </div>
170 </div>
171</div>
172{{ end }}