~gitpocket/gitpocket

1

style(profile): match the readme font

commit
7988a6d0db6160c936507d9a6571a1f34feb4c47 browse tree
parent
1773b7c386c0ea9d272c542f176cb60a6a6054b2
author
obscurejames <354576047+obscurejames@users.noreply.github.com>
signature
Verified ~james signed with a key registered by ~james
date
2026-10-28 21:48 UTC

2 files changed, +7 −5

static/style.css modified

@@ -436,11 +436,13 @@ pre.rangediff,pre.body{white-space:pre-wrap;overflow-wrap:anywhere}
436436 form.inline{display:inline-flex;align-items:center;gap:.4rem;margin:0 0 .6rem}
437437 table.keys form.inline{margin:0}
438438 input.rank{width:4rem}
439-.intro{border:1px solid var(--line);padding:.6rem 1.2rem .8rem;margin-bottom:1.2rem}
440-.introhead{font-family:var(--mono,monospace);font-size:.8rem;color:var(--muted);margin:0 0 .3rem}
441-.introhead a{color:var(--muted)}
442-.intro .readme>article>:last-child{margin-bottom:0}
439+.intro{border:1px solid var(--line);padding:.9rem 1.2rem;margin-bottom:1.2rem}
440+.intro .readme>:first-child{margin-top:0}
441+.intro .readme>:last-child{margin-bottom:0}
443442 .userhead .newrepo{margin:0 0 .3rem auto}
444443 .orgtabs{display:inline-flex;margin-bottom:.8rem}
445444 nav.site .me{display:flex;gap:1.1rem;align-items:center}
446445 nav.site .me form{margin:0}
446+.intro .readme{font-size:15.5px}
447+.introhead{display:flex;gap:.6rem;font-size:.85rem;color:var(--muted);margin:0 0 .4rem}
448+.introhead a{color:var(--muted)}

templates/user.html modified

@@ -20,7 +20,7 @@
2020 {{if $own}}<div class="ownactions"><a class="btn block" href="/settings">Edit profile</a></div>{{end}}
2121 </aside>
2222 <div class="main">
23-{{with .Data.Intro.HTML}}<section class="intro"><p class="introhead"><a href="/{{$.Data.Intro.Path}}">{{$.Data.Intro.Path}}</a> / <a href="/{{$.Data.Intro.Path}}/tree/{{$.Data.Intro.Ref}}/{{$.Data.Intro.Name}}">{{$.Data.Intro.Name}}</a></p><div class="readme">{{.}}</div></section>{{end}}
23+{{with .Data.Intro.HTML}}<section class="intro"><p class="introhead"><a href="/{{$.Data.Intro.Path}}">{{$.Data.Intro.Path}}</a><a href="/{{$.Data.Intro.Path}}/tree/{{$.Data.Intro.Ref}}/{{$.Data.Intro.Name}}">{{$.Data.Intro.Name}}</a></p><div class="readme">{{.}}</div></section>{{end}}
2424 {{with .Data.Activity}}<section class="activity"><div class="heathead"><p class="muted small">{{.Total}} commit{{if ne .Total 1}}s{{end}} {{if .Year}}in {{.Year}}{{else}}in the past 12 months{{end}}</p><nav class="years"><a href="?"{{if not .Year}} class="active"{{end}}>past 12 months</a>{{range .Years}}<a href="?year={{.}}"{{if eq . $.Data.Activity.Year}} class="active"{{end}}>{{.}}</a>{{end}}</nav></div>{{.Grid}}<p class="legend muted small">less <i class="h0"></i><i class="h1"></i><i class="h2"></i><i class="h3"></i><i class="h4"></i> more</p></section>{{end}}
2525 {{if .Data.Repos}}<div class="events">{{range .Data.Repos}}{{template "repoitem" .}}{{end}}</div>{{end}}
2626 </div>