master
1{{- /*gotype: github.com/antonmedv/gitmal/pkg/templates.MarkdownParams*/ -}}
2{{ define "head" }}
3 {{ if .InlineStyles }}
4 <style>
5 {{.CSSMarkdown}}
6 </style>
7 {{ if .CSSChroma }}
8 <style>{{.CSSChroma}}</style>
9 {{ end }}
10 {{ else }}
11 <link rel="stylesheet" href="{{ .RootHref }}markdown.css">
12 <link rel="stylesheet" href="{{ .RootHref }}chroma.css">
13 {{ end }}
14 <style>
15 [id] {
16 scroll-margin-top: var(--header-height);
17 }
18
19 .markdown-container {
20 border: 1px solid var(--c-divider);
21 border-top: none;
22 border-bottom-left-radius: 8px;
23 border-bottom-right-radius: 8px;
24 overflow-x: auto;
25 }
26
27 .markdown-body {
28 width: 100%;
29 min-width: 200px;
30 max-width: 980px;
31 margin: 0 auto;
32 padding: 32px;
33 word-wrap: break-word;
34 font-size: 16px;
35 line-height: 1.5;
36 }
37
38 @media (max-width: 767px) {
39 .markdown-body {
40 padding: 16px;
41 }
42 }
43 </style>
44{{ end }}
45
46{{ define "body" }}
47 {{ template "header" . }}
48 <article class="markdown-container">
49 <div class="markdown-body">
50 {{ .Content }}
51 </div>
52 </article>
53{{ end }}
54