Skip to content

Commit 363b5f0

Browse files
Tweak repo header (#29134)
- Tweak colors, remove link color from repo name and make text use inherited color - Downsize repo icon from 32px to 24px Before: <img width="255" alt="Screenshot 2024-02-11 at 15 31 00" src="https://github.com/go-gitea/gitea/assets/115237/f65c1d02-d8a3-4171-ad3d-4c95871fb2ba"> After: <img width="260" alt="Screenshot 2024-02-11 at 15 30 48" src="https://github.com/go-gitea/gitea/assets/115237/a9b25b56-8d3f-4910-af60-2513d44f6d81"> --------- Co-authored-by: wxiaoguang <[email protected]>
1 parent 374e886 commit 363b5f0

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

templates/repo/header.tmpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<div class="flex-item gt-ac">
66
<div class="flex-item-leading">{{template "repo/icon" .}}</div>
77
<div class="flex-item-main">
8-
<div class="flex-item-title">
9-
<a class="text light thin" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/
10-
<a class="text primary" href="{{$.RepoLink}}">{{.Name}}</a></div>
8+
<div class="flex-item-title gt-font-18">
9+
<a class="muted gt-font-normal" href="{{.Owner.HomeLink}}">{{.Owner.Name}}</a>/
10+
<a class="muted" href="{{$.RepoLink}}">{{.Name}}</a></div>
1111
</div>
1212
<div class="flex-item-trailing">
1313
{{if .IsArchived}}

templates/repo/icon.tmpl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{{$avatarLink := (.RelAvatarLink ctx)}}
22
{{if $avatarLink}}
3-
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="32" height="32" alt="{{.FullName}}">
3+
<img class="ui avatar gt-vm" src="{{$avatarLink}}" width="24" height="24" alt="{{.FullName}}">
44
{{else if $.IsMirror}}
5-
{{svg "octicon-mirror" 32}}
5+
{{svg "octicon-mirror" 24}}
66
{{else if $.IsFork}}
7-
{{svg "octicon-repo-forked" 32}}
7+
{{svg "octicon-repo-forked" 24}}
88
{{else}}
9-
{{svg "octicon-repo" 32}}
9+
{{svg "octicon-repo" 24}}
1010
{{end}}

0 commit comments

Comments
 (0)