diff options
author | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-19 17:49:32 +0530 |
---|---|---|
committer | Anirudh Oppiliappan <x@icyphox.sh> | 2022-12-19 17:49:48 +0530 |
commit | 2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb (patch) | |
tree | 67e9fdaa352def9d2d2d6b7c2ddf70d3aaa09a93 | |
parent | d1a2847a266f344911bb791d083b72529cf90c63 (diff) | |
download | legit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.tar.gz legit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.tar.bz2 legit-2b9b2bdb1fb9a6c94859025ac1588faf4a5fbcdb.zip |
css: add bg to readme/file content
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 8 | ||||
-rw-r--r-- | templates/commit.html | 7 | ||||
-rw-r--r-- | templates/file.html | 1 |
3 files changed, 11 insertions, 5 deletions
diff --git a/static/style.css b/static/style.css index cc54e18..64ff978 100644 --- a/static/style.css +++ b/static/style.css @@ -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 { diff --git a/templates/commit.html b/templates/commit.html index b1b3cbc..65803b7 100644 --- a/templates/commit.html +++ b/templates/commit.html @@ -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.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 }} {{ else }} <a href="/{{ $repo }}/blob/{{ $this }}/{{ .Name.New }}">{{ .Name.New }}</a> {{- end -}} diff --git a/templates/file.html b/templates/file.html index a4485f3..f231969 100644 --- a/templates/file.html +++ b/templates/file.html @@ -7,6 +7,7 @@ <body> {{ template "nav" . }} <main> + <p>{{ .path }}</p> <div class="file-wrapper"> <div class="line-numbers"> {{- range .linecount }} |