diff options
author | Martin Fischer <martin@push-f.com> | 2021-06-24 11:58:59 +0200 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-06-24 11:59:11 +0200 |
commit | 0bb0af08c3fb7e100e5451e636719ce367fe1138 (patch) | |
tree | a38828d72d0ddd6fb0127ea1035dd0941b3b0bd2 | |
parent | d24f51baf6e4e97e6f3e9ff3ce83274f353e82f9 (diff) |
css: decrease margin-top for h1
-rw-r--r-- | src/get_routes.rs | 2 | ||||
-rw-r--r-- | src/static/style.css | 4 | ||||
-rw-r--r-- | src/static/style.css.sha256 | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs index 17b7941..d876b4f 100644 --- a/src/get_routes.rs +++ b/src/get_routes.rs @@ -282,6 +282,7 @@ fn diff_blob<C: Controller>( controller, parts: &ctx.parts, }; + page.body.push_str("<div>"); if params.oldid.is_none() { page.body.push_str(&format!( "<h1>{}</h1>{} committed on {}", @@ -303,6 +304,7 @@ fn diff_blob<C: Controller>( from_utf8(&ctx.repo.find_blob(blob_id)?.content())?, )); } + page.body.push_str("</div>"); Ok(page.into()) } diff --git a/src/static/style.css b/src/static/style.css index 0733d56..8ee788d 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -13,6 +13,10 @@ body { row-gap: 0.5em; } +h1 { + margin-top: 0.2em; +} + .edit-form { display: flex; flex-direction: column; diff --git a/src/static/style.css.sha256 b/src/static/style.css.sha256 index 17a3812..cb45c3f 100644 --- a/src/static/style.css.sha256 +++ b/src/static/style.css.sha256 @@ -1 +1 @@ -pVajQAgXar+xHqEuGZsATyQGTVFvnr82Sf28zZ3g4e0=
\ No newline at end of file +9xIJ8fFnUyBYBKBAR6JWlmi39sUqyIqzUt1PnrkDE/c=
\ No newline at end of file |