css: add bg to readme/file content
This commit is contained in:
parent
d1a2847a26
commit
2b9b2bdb1f
|
@ -9,7 +9,7 @@
|
|||
|
||||
--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 @@ a:hover {
|
|||
}
|
||||
|
||||
.readme {
|
||||
padding-bottom: 2rem;
|
||||
border-bottom: 1.5px solid var(--medium-gray);
|
||||
background: var(--light-gray);
|
||||
padding: 0.5rem;
|
||||
}
|
||||
|
||||
.diff {
|
||||
|
@ -230,6 +230,8 @@ a:hover {
|
|||
grid-template-columns: 1rem minmax(0, 1fr);
|
||||
gap: 1rem;
|
||||
overflow: scroll;
|
||||
padding: 0.5rem;
|
||||
background: var(--light-gray);
|
||||
}
|
||||
|
||||
.commit-info {
|
||||
|
|
|
@ -49,8 +49,11 @@
|
|||
<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.Old }}">{{ .Name.Old }}</a>
|
||||
{{ if .Name.New }}
|
||||
→
|
||||
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a>
|
||||
{{- end -}}
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
<body>
|
||||
{{ template "nav" . }}
|
||||
<main>
|
||||
<p>{{ .path }}</p>
|
||||
<div class="file-wrapper">
|
||||
<div class="line-numbers">
|
||||
{{- range .linecount }}
|
||||
|
|
Loading…
Reference in New Issue