diff options
Diffstat (limited to '')
-rw-r--r-- | static/style.css | 14 | ||||
-rw-r--r-- | templates/repo_index.html | 9 |
2 files changed, 20 insertions, 3 deletions
diff --git a/static/style.css b/static/style.css index 533cee1..461286a 100644 --- a/static/style.css +++ b/static/style.css @@ -1,3 +1,13 @@ -.commit-id { - font-family: monospace; +html { + font-family: sans-serif; +} + +.padding-wrapper { + padding: 0 1rem; + max-width: 50em; + margin: 0 auto; +} + +#readme, #file-tree { + width: 100%; } diff --git a/templates/repo_index.html b/templates/repo_index.html index 13bac72..776b84e 100644 --- a/templates/repo_index.html +++ b/templates/repo_index.html @@ -6,6 +6,7 @@ <title>{{ .project_name }}/repos/{{ .repo_name }}</title> </head> <body class="repo-index"> +<div class="padding-wrapper"> <table id="recent-commits"> <thead> <tr> @@ -30,10 +31,11 @@ {{- end }} </tbody> </table> +</div> +<div class="padding-wrapper"> <table id="file-tree"> <thead> <tr> -<!--th scope="col">Blob/Tree ID</th--> <th scope="col">Mode</th> <th scope="col">Name</th> <th scope="col">Size</th> @@ -49,11 +51,16 @@ {{- end }} </tbody> </table> +</div> +<div class="padding-wrapper"> <div id="refs"> </div> +</div> +<div class="padding-wrapper"> <div id="readme"> {{ .readme -}} </div> +</div> </body> </html> {{- end -}} |