mygit

[UNMAINTAINED] A cgit/webgit alternative, written in Rust
Log | Files | Refs | README | LICENSE

commit e05b03713e6b5c9a39421e136c90f0e3b1350462
parent ecd95a4f36758786e817592241bf87b7ab52e7da
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Sat, 13 Mar 2021 11:45:40 -0800

Cleanup CSS

Diffstat:
Atemplates/repo-navbar.html | 4++++
Mtemplates/repo.html | 2+-
Mtemplates/static/style.css | 13+++++++++++++
3 files changed, 18 insertions(+), 1 deletion(-)

diff --git a/templates/repo-navbar.html b/templates/repo-navbar.html @@ -0,0 +1,4 @@ +<h1><a href="/">index</a>/{{name}}</h1> +<div class="repo-description">My cool repo</div> +<div class="clone-url">git clone git.alexwennerberg.com/repo </div> +<div class="navbar"><a href="/{{name}}">README</a> | <a href="/{{name}}/tree">tree</a> | <a href="/{{name}}/log">log</a> | <a href="/{{name}}/refs">refs</a></div> diff --git a/templates/repo.html b/templates/repo.html @@ -2,6 +2,6 @@ {% block content %} {% let name = repo.workdir().unwrap().file_name().unwrap().to_str().unwrap() %} - <h1>{{name}}</h1> + {% include "repo-navbar.html" %} Readme text goes here {% endblock %} diff --git a/templates/static/style.css b/templates/static/style.css @@ -29,9 +29,22 @@ body { font-size: .9rem; } +.clone-url { + font-family: "Roboto Mono", monospace; + -webkit-user-select: all; /* Safari */ + user-select: all; /* Standard syntax */ +} + hr.thin { border: 0; height: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.3); } + +h1 { + margin: 0px; +} +h2 { + margin: 0px; +}