diff --git a/internal/modules/graph.go b/internal/modules/graph.go
index db71a0e..f52acd5 100644
--- a/internal/modules/graph.go
+++ b/internal/modules/graph.go
@@ -157,7 +157,7 @@ func graphMod(c *core.Ctx, args ...string) (any, error) {
// Row geometry, in px. Height must match the table row height in CSS.
const (
laneW = 15.0
- rowH = 30.0
+ rowH = 25.0
radius = 3.6
)
diff --git a/static/css/base.css b/static/css/base.css
index 2d3aff4..156ae83 100644
--- a/static/css/base.css
+++ b/static/css/base.css
@@ -116,24 +116,12 @@ body {
background: var(--bg);
color: var(--fg);
font-family: var(--mono);
- font-size: 13px;
- line-height: 1.55;
+ font-size: 0.78rem;
+ line-height: 1.3;
font-variant-ligatures: none;
-webkit-font-smoothing: antialiased;
}
-/* The one graphic flourish: a thin two-tone stripe, always at the very
- top of the viewport. Small enough to be quiet, present enough to be a
- mark -- the rest of the page is just text and hairlines. */
-body::before {
- content: "";
- position: fixed;
- top: 0; left: 0; right: 0;
- height: 3px;
- background: var(--accent-grad);
- z-index: 200;
-}
-
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
@@ -145,16 +133,14 @@ a:hover { text-decoration: underline; }
/* ---------------------------------------------------------------- navigation */
.nav {
- position: sticky; top: 3px; z-index: 100;
- background: var(--bg-elev);
- border-bottom: 1px solid var(--line);
+ /* position: sticky; z-index: 100; top: 0; */
+ background: #311345;
}
.nav-inner {
display: grid;
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
align-items: center;
- gap: .75rem;
- height: 3rem;
+ height: 2.3rem;
}
.nav-start {
@@ -183,11 +169,13 @@ a:hover { text-decoration: underline; }
letter-spacing: -.02em;
}
.brand .logo {
- width: 22px; height: 22px;
+ height: 24px;
+ width: 24px;
background: var(--accent);
border-radius: var(--r-sm);
display: grid; place-items: center;
color: var(--bg); font-weight: 700; font-size: .78rem;
+ margin-right: 0.4rem;
}
.brand:hover { color: var(--accent); text-decoration: none; }
@@ -195,7 +183,6 @@ a:hover { text-decoration: underline; }
color: var(--fg); font-weight: 600;
margin-left: .5rem;
}
-.nav-repo-name { color: var(--line); }
.nav-repo-name:hover { color: var(--accent); }
/* Tabs — plain text, an underline marks the current page */
@@ -245,16 +232,18 @@ a:hover { text-decoration: underline; }
/* ---------------------------------------------------------------- page layout */
-main.wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
+main.wrap { padding-bottom: 1.25rem; }
/* Hero: a plain text header with a hairline underneath -- no box, no
gradient. The page title carries the weight instead of a card. */
.hero {
margin-bottom: 1.25rem;
- padding-bottom: .9rem;
+ padding: 1rem 0 1rem 0;
border-bottom: 1px solid var(--line);
}
+.page-head { margin: 1rem 0 1rem 0; }
+
.page-title {
margin: 0;
font-size: 1.3rem;
@@ -320,7 +309,7 @@ main.wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
than a bordered card. Tables can still be wider than the viewport (long
paths, many columns on mobile); scrolling lives on the table itself so
the page body never gains a horizontal scrollbar. */
-.table-wrap { overflow-x: auto; }
+.table-wrap { overflow-x: auto; line-height: 1.2; }
.table {
width: 100%;
border-collapse: collapse;
@@ -356,7 +345,7 @@ main.wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
}
/* Plain bordered tags, not filled pill badges. */
.chip {
- display: inline-flex;
+ display: inline;
align-items: center;
gap: .35rem;
font-size: .7rem;
@@ -409,7 +398,7 @@ main.wrap { padding-top: 1.25rem; padding-bottom: 2rem; }
footer {
margin-top: 1.5rem;
- padding: 1rem 0;
+ padding: 0.35rem 0;
border-top: 1px solid var(--line);
display: flex;
justify-content: space-between;
@@ -442,10 +431,10 @@ footer a { color: var(--accent); }
/* Operator notices. The severity only changes the left rule and the
background tint; the base .notice keeps the shared shape. */
.notices { margin: .75rem 0 1rem; }
-.notice-critical { border-left-color: var(--notice-critical); background: var(--notice-critical-bg); }
-.notice-warning { border-left-color: var(--notice-warning); background: var(--notice-warning-bg); }
-.notice-info { border-left-color: var(--notice-info); background: var(--notice-info-bg); }
-.notice-fix { border-left-color: var(--notice-fix); background: var(--notice-fix-bg); }
+.notice-critical { background: var(--notice-critical-bg); }
+.notice-warning { background: var(--notice-warning-bg); }
+.notice-info { background: var(--notice-info-bg); }
+.notice-fix { background: var(--notice-fix-bg); }
.notice-title { display: block; color: var(--fg); }
.notice-body { white-space: pre-wrap; }
.notice-link { margin-left: .35rem; }
@@ -515,8 +504,8 @@ footer a { color: var(--accent); }
.w-full { width: 100%; }
.text-right { text-align: right !important; }
.text-center { text-align: center !important; }
-.text-sm { font-size: .85rem; }
-.text-xs { font-size: .75rem; }
+.text-sm { font-size: .78rem; }
+.text-xs { font-size: .63rem; }
/* Focus states for accessibility */
:focus-visible {
diff --git a/static/css/blob.css b/static/css/blob.css
index f367717..3ddcf97 100644
--- a/static/css/blob.css
+++ b/static/css/blob.css
@@ -6,6 +6,7 @@
border: 1px solid var(--line);
border-radius: var(--r-sm);
overflow-x: auto;
+ padding-top: 0.15rem;
}
.source table { border-collapse: collapse; font-size: .8rem; }
.source tr:target { background: rgba(167, 139, 250, 0.18); }
diff --git a/static/css/graph.css b/static/css/graph.css
index a44aee1..b4899bb 100644
--- a/static/css/graph.css
+++ b/static/css/graph.css
@@ -4,11 +4,11 @@
width: 100%;
border-collapse: separate;
border-spacing: 0;
- margin: .75rem 0;
+ /*margin: .75rem 0;*/
}
.graph-table td {
padding: 0;
- height: 30px;
+ /*height: 30px; */
white-space: nowrap;
vertical-align: middle;
border-bottom: 1px solid var(--line-soft);
diff --git a/static/css/repo.css b/static/css/repo.css
index 5ecaf75..b64e137 100644
--- a/static/css/repo.css
+++ b/static/css/repo.css
@@ -6,7 +6,7 @@
grid-template-columns: auto 1fr auto;
gap: .85rem;
align-items: center;
- padding: .6rem .8rem;
+ padding: .4rem .8rem;
border: 1px solid var(--line);
border-radius: var(--r-sm);
margin-bottom: 1rem;
diff --git a/templates/layouts/base.html b/templates/layouts/base.html
index 36a7382..c1fcda8 100644
--- a/templates/layouts/base.html
+++ b/templates/layouts/base.html
@@ -12,7 +12,7 @@
<main class="wrap">{{ template "notices" . }}{{ block "main" . }}{{ end }}</main>
<footer class="wrap">
<div class="footer-left">
- <span class="logo" style="width:24px;height:24px;font-size:0.9rem;">G</span>
+ <span class="brand">G</span>
<span>{{ .Site.Name }}</span>
</div>
<div class="footer-right">
@@ -63,9 +63,6 @@
</label>
{{ end }}
{{ end }}
- {{/* One-sided on purpose: no "log in" link when anonymous. There is
- no discoverable entry point into /auth/login anywhere in the UI;
- people who need it are told the URL out of band. */}}
{{ with $.User }}
<span class="nav-user">Logged in as {{ . }} · <a href="/auth/logout">log out</a></span>
{{ end }}
diff --git a/templates/views/graph.html b/templates/views/graph.html
index c52dd0d..3ce04fd 100644
--- a/templates/views/graph.html
+++ b/templates/views/graph.html
@@ -10,7 +10,7 @@
<div class="hero-inner">
<h1 class="page-title">Commit Graph</h1>
<p class="page-subtitle">
- <span class="text-muted">{{ len $g.Rows }} commits across all refs · {{ $g.Lanes }} lanes</span>
+ <!--<span class="text-muted">{{ len $g.Rows }} commits across all refs · {{ $g.Lanes }} lanes</span>-->
</p>
</div>
</header>
diff --git a/templates/views/index.html b/templates/views/index.html
index 6c31162..a409d5b 100644
--- a/templates/views/index.html
+++ b/templates/views/index.html
@@ -5,7 +5,7 @@
<header class="page-head">
<h1 class="page-title">{{ .Site.Name }}</h1>
- <p class="page-subtitle">{{ len (mod "repos") }} repositories{{ if gt (len $secs) 1 }} in {{ len $secs }} sections{{ end }}</p>
+ <!-- <p class="page-subtitle">{{ len (mod "repos") }} repositories{{ if gt (len $secs) 1 }} in {{ len $secs }} sections{{ end }}</p> -->
</header>
{{ range $secs }}
@@ -42,4 +42,4 @@
</table>
</div>
{{ end }}
-{{ end }}
\ No newline at end of file
+{{ end }}
diff --git a/templates/views/tree.html b/templates/views/tree.html
index 181d8bb..acc53c0 100644
--- a/templates/views/tree.html
+++ b/templates/views/tree.html
@@ -45,7 +45,7 @@
<a class="latest-commit" href="{{ $slug }}/commit/{{ .SHA }}">
<span class="commit-hash">{{ .Short }}</span>
<span class="commit-msg">{{ trunc 88 .Subject }}</span>
- <span class="commit-meta">{{ .Author }} · <time datetime="{{ rfc3339 .When }}">{{ date .When }}</time></span>
+ <span class="commit-meta">{{ .Author }} - <time datetime="{{ rfc3339 .When }}">{{ date .When }}</time></span>
</a>
{{ end }}{{ end }}
{{ end }}
@@ -58,7 +58,7 @@
{{ if $root }}
<p class="text-muted">
<code style="color:var(--accent);">{{ .Ref }}</code>
- · {{ len $tree.Entries }} entries
+ - {{ len $tree.Entries }} entries
</p>
{{ else }}
<header class="hero">