style(profile): match the readme font
2 files changed, +7 −5
- static/style.css modified +6 −4
- templates/user.html modified +1 −1
static/style.css modified
| @@ -436,11 +436,13 @@ pre.rangediff,pre.body{white-space:pre-wrap;overflow-wrap:anywhere} | ||
| 436 | 436 | form.inline{display:inline-flex;align-items:center;gap:.4rem;margin:0 0 .6rem} |
| 437 | 437 | table.keys form.inline{margin:0} |
| 438 | 438 | 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} | |
| 443 | 442 | .userhead .newrepo{margin:0 0 .3rem auto} |
| 444 | 443 | .orgtabs{display:inline-flex;margin-bottom:.8rem} |
| 445 | 444 | nav.site .me{display:flex;gap:1.1rem;align-items:center} |
| 446 | 445 | 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 @@ | ||
| 20 | 20 | {{if $own}}<div class="ownactions"><a class="btn block" href="/settings">Edit profile</a></div>{{end}} |
| 21 | 21 | </aside> |
| 22 | 22 | <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}} | |
| 24 | 24 | {{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}} |
| 25 | 25 | {{if .Data.Repos}}<div class="events">{{range .Data.Repos}}{{template "repoitem" .}}{{end}}</div>{{end}} |
| 26 | 26 | </div> |