loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove obsolete CSS text classes (#30576)

- `.text-thin` and `.text-italic` are not present in CSS so were doing nothing and I removed them.
- `.text.middle` was unused so I removed it.
- `.text.italic` is replaced with `tw-italic`.
- `.text.normal` had exactly one use and it wasn't even needed.
- add a `muted` class to the link to `org_profile_avatar.tmpl`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
(cherry picked from commit aff7b7bdd285cc1fcabea774f153886e11ae9f5d)

authored by

silverwind
wxiaoguang
and committed by
Earl Warren
31b608a1 02316e1e

+11 -27
+1 -1
templates/org/team/members.tmpl
··· 46 46 </div> 47 47 {{else}} 48 48 <div class="flex-item"> 49 - <span class="text grey italic">{{ctx.Locale.Tr "org.teams.members.none"}}</span> 49 + <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.members.none"}}</span> 50 50 </div> 51 51 {{end}} 52 52 </div>
+1 -1
templates/org/team/repositories.tmpl
··· 48 48 </div> 49 49 {{else}} 50 50 <div class="flex-item"> 51 - <span class="text grey italic">{{ctx.Locale.Tr "org.teams.repos.none"}}</span> 51 + <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.repos.none"}}</span> 52 52 </div> 53 53 {{end}} 54 54 </div>
+1 -1
templates/org/team/sidebar.tmpl
··· 22 22 {{if .Team.Description}} 23 23 {{.Team.Description}} 24 24 {{else}} 25 - <span class="text grey italic">{{ctx.Locale.Tr "org.teams.no_desc"}}</span> 25 + <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.no_desc"}}</span> 26 26 {{end}} 27 27 </div> 28 28 {{if eq .Team.LowerName "owners"}}
+3 -3
templates/repo/create.tmpl
··· 65 65 </div> 66 66 <div class="inline field"> 67 67 <label>{{ctx.Locale.Tr "repo.template"}}</label> 68 - <div id="repo_template_search" class="ui search normal selection dropdown"> 68 + <div id="repo_template_search" class="ui search selection dropdown"> 69 69 <input type="hidden" id="repo_template" name="repo_template" value="{{.repo_template}}"> 70 70 <div class="default text">{{.repo_template_name}}</div> 71 71 <div class="menu"> ··· 119 119 <div id="non_template"> 120 120 <div class="inline field"> 121 121 <label>{{ctx.Locale.Tr "repo.issue_labels"}}</label> 122 - <div class="ui search normal selection dropdown"> 122 + <div class="ui search selection dropdown"> 123 123 <input type="hidden" name="issue_labels" value="{{.issueLabels}}"> 124 124 <div class="default text">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div> 125 125 <div class="menu"> ··· 135 135 136 136 <div class="inline field"> 137 137 <label>.gitignore</label> 138 - <div class="ui multiple search normal selection dropdown"> 138 + <div class="ui multiple search selection dropdown"> 139 139 <input type="hidden" name="gitignores" value="{{.gitignores}}"> 140 140 <div class="default text">{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}</div> 141 141 <div class="menu">
+1 -1
templates/repo/file_info.tmpl
··· 1 - <div class="file-info text grey normal tw-font-mono"> 1 + <div class="file-info tw-font-mono"> 2 2 {{if .FileIsSymlink}} 3 3 <div class="file-info-entry"> 4 4 {{ctx.Locale.Tr "repo.symbolic_link"}}
+2 -2
templates/repo/settings/collaboration.tmpl
··· 29 29 </div> 30 30 </div> 31 31 </div> 32 - <button class="ui red tiny button inline text-thin delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"> 32 + <button class="ui red tiny button inline delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}"> 33 33 {{ctx.Locale.Tr "repo.settings.delete_collaborator"}} 34 34 </button> 35 35 </div> ··· 75 75 </div> 76 76 {{if $allowedToChangeTeams}} 77 77 <div class="flex-item-trailing" {{if .IncludesAllRepositories}} data-tooltip-content="{{ctx.Locale.Tr "repo.settings.delete_team_tip"}}"{{end}}> 78 - <button class="ui red tiny button inline text-thin delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}"> 78 + <button class="ui red tiny button inline delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}"> 79 79 {{ctx.Locale.Tr "repo.settings.delete_collaborator"}} 80 80 </button> 81 81 </div>
+1 -1
templates/repo/settings/options.tmpl
··· 135 135 <form method="post" class="tw-inline-block"> 136 136 {{.CsrfTokenHtml}} 137 137 <input type="hidden" name="action" value="mirror-sync"> 138 - <button class="ui primary tiny button inline text-thin">{{ctx.Locale.Tr "repo.settings.sync_mirror"}}</button> 138 + <button class="ui primary tiny button inline">{{ctx.Locale.Tr "repo.settings.sync_mirror"}}</button> 139 139 </form> 140 140 </td> 141 141 </tr>
+1 -1
templates/shared/user/org_profile_avatar.tmpl
··· 4 4 <div class="column"> 5 5 <div class="ui header tw-flex tw-items-center gt-word-break"> 6 6 {{ctx.AvatarUtils.Avatar . 100}} 7 - <span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span> 7 + <span class="text grey"><a class="muted" href="{{.HomeLink}}">{{.DisplayName}}</a></span> 8 8 <span class="org-visibility"> 9 9 {{if .Visibility.IsLimited}}<div class="ui medium basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}} 10 10 {{if .Visibility.IsPrivate}}<div class="ui medium basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
-16
web_src/css/base.css
··· 863 863 text-align: right !important; 864 864 } 865 865 866 - .ui .text.normal { 867 - font-weight: var(--font-weight-normal); 868 - } 869 - 870 - .ui .text.italic { 871 - font-style: italic; 872 - } 873 - 874 866 .ui .text.truncate { 875 867 overflow-x: hidden; 876 868 text-overflow: ellipsis; 877 869 white-space: nowrap; 878 870 display: inline-block; 879 - } 880 - 881 - .ui .text.thin { 882 - font-weight: var(--font-weight-normal); 883 - } 884 - 885 - .ui .text.middle { 886 - vertical-align: middle; 887 871 } 888 872 889 873 .ui .message.flash-message {