css: add bg to readme/file content
Mon, 19 Dec 2022
3 files changed,
11 insertions(+),
5 deletions(-)
M
static/style.css
@@ -9,7 +9,7 @@ --darker: #222;
--sans-font: "InterVar", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; --display-font: "InterDisplay", -apple-system, BlinkMacSystemFont, "Roboto", "Segoe UI", sans-serif; - --mono-font: "SF Mono", "Roboto Mono", monospace; + --mono-font: -apple-system, "SF Mono", "Roboto Mono", monospace; } html {@@ -149,8 +149,8 @@ white-space: pre-wrap;
}
… preview truncated
M
templates/commit.html
@@ -49,8 +49,11 @@ {{ range .diff }}
<div class="diff"> <div id="{{ .Name.New }}"> {{ if .Name.Old }} - <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> → - <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> + <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.Old }}">{{ .Name.Old }}</a> + {{ if .Name.New }} + → + <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> + {{ end }}
… preview truncated
M
templates/file.html
@@ -7,6 +7,7 @@ {{ template "repoheader" . }}
<body> {{ template "nav" . }} <main> + <p>{{ .path }}</p> <div class="file-wrapper"> <div class="line-numbers"> {{- range .linecount }}