From bd40253a7dfeda8bead9dab035c260c404bd3ec3 Mon Sep 17 00:00:00 2001 From: Luka Hietala Date: Thu, 20 Nov 2025 18:07:13 +0200 Subject: [PATCH] basic styling --- static/styles.css | 70 ++++++++++++++++++++++++++++++++++-------- templates/base.html | 29 ++++++++++------- templates/blame.html | 2 +- templates/commits.html | 2 +- templates/index.html | 7 +++++ templates/refs.html | 2 +- templates/repo.html | 2 +- templates/tree.html | 2 +- 8 files changed, 87 insertions(+), 29 deletions(-) diff --git a/static/styles.css b/static/styles.css index 64d48cc..4a299fa 100644 --- a/static/styles.css +++ b/static/styles.css @@ -1,25 +1,69 @@ body { - margin: 20px; + font-family: sans-serif; + font-size: 12pt; + color: #000; + background: white; + margin: 0; } + +a { + color: blue; + text-decoration: none; +} + +a:hover { + text-decoration: underline; +} + +nav { + top: 0; + width: screen; + position: sticky; + padding: 0.5em 1em; + border-bottom: 1px solid lightgray; + display: flex; + justify-content: space-between; + align-items: center; + background-color: #fbfbfb; +} + +nav a { + color: black; + margin-right: 0.5em; +} + +nav a.active { + font-weight: bold; +} + table { border-collapse: collapse; width: 100%; } th, td { - border: 1px solid black; - padding: 2px; + border: 1px solid lightgray; + padding: 2px 4px; text-align: left; } -a { - color: blue; +pre { + font-family: monospace; + font-size: 10pt; +} + +.content { + padding: 1em; } -.base-nav { - display:flex; - align-items:center; - margin-bottom:1em; - gap: 0.2em; - border-bottom: 1px solid black; - padding-bottom: 0.4em; -} \ No newline at end of file + +/* dont make headers too big */ +h1 { + font-size: 120%; + margin: 0.5em 0; +} + +h2 { + font-size: 110%; + margin: 1em 0 0.5em 0; +} + diff --git a/templates/base.html b/templates/base.html index e2d2a9f..3408188 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,18 +7,20 @@ -