summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2024-04-22 13:21:06 +0200
committerEarl Warren <contact@earl-warren.org>2024-04-28 15:39:00 +0200
commit31b608a1e9c0e1602b7b0242e0c35b89b8921a57 (patch)
tree099caa16a38b0dbbcc7d0302b1f71d5bbebdf6f0
parentHide diff stats on empty PRs (#30629) (diff)
downloadforgejo-31b608a1e9c0e1602b7b0242e0c35b89b8921a57.tar.xz
forgejo-31b608a1e9c0e1602b7b0242e0c35b89b8921a57.zip
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)
-rw-r--r--templates/org/team/members.tmpl2
-rw-r--r--templates/org/team/repositories.tmpl2
-rw-r--r--templates/org/team/sidebar.tmpl2
-rw-r--r--templates/repo/create.tmpl6
-rw-r--r--templates/repo/file_info.tmpl2
-rw-r--r--templates/repo/settings/collaboration.tmpl4
-rw-r--r--templates/repo/settings/options.tmpl2
-rw-r--r--templates/shared/user/org_profile_avatar.tmpl2
-rw-r--r--web_src/css/base.css16
9 files changed, 11 insertions, 27 deletions
diff --git a/templates/org/team/members.tmpl b/templates/org/team/members.tmpl
index 5719328a27..7e9a59a6bf 100644
--- a/templates/org/team/members.tmpl
+++ b/templates/org/team/members.tmpl
@@ -46,7 +46,7 @@
</div>
{{else}}
<div class="flex-item">
- <span class="text grey italic">{{ctx.Locale.Tr "org.teams.members.none"}}</span>
+ <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.members.none"}}</span>
</div>
{{end}}
</div>
diff --git a/templates/org/team/repositories.tmpl b/templates/org/team/repositories.tmpl
index 98b4854eb8..f5d68ce416 100644
--- a/templates/org/team/repositories.tmpl
+++ b/templates/org/team/repositories.tmpl
@@ -48,7 +48,7 @@
</div>
{{else}}
<div class="flex-item">
- <span class="text grey italic">{{ctx.Locale.Tr "org.teams.repos.none"}}</span>
+ <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.repos.none"}}</span>
</div>
{{end}}
</div>
diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl
index 9311a46e38..c9f80259e2 100644
--- a/templates/org/team/sidebar.tmpl
+++ b/templates/org/team/sidebar.tmpl
@@ -22,7 +22,7 @@
{{if .Team.Description}}
{{.Team.Description}}
{{else}}
- <span class="text grey italic">{{ctx.Locale.Tr "org.teams.no_desc"}}</span>
+ <span class="text grey tw-italic">{{ctx.Locale.Tr "org.teams.no_desc"}}</span>
{{end}}
</div>
{{if eq .Team.LowerName "owners"}}
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index bcd3c16b6a..c1c8c2185e 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -65,7 +65,7 @@
</div>
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.template"}}</label>
- <div id="repo_template_search" class="ui search normal selection dropdown">
+ <div id="repo_template_search" class="ui search selection dropdown">
<input type="hidden" id="repo_template" name="repo_template" value="{{.repo_template}}">
<div class="default text">{{.repo_template_name}}</div>
<div class="menu">
@@ -119,7 +119,7 @@
<div id="non_template">
<div class="inline field">
<label>{{ctx.Locale.Tr "repo.issue_labels"}}</label>
- <div class="ui search normal selection dropdown">
+ <div class="ui search selection dropdown">
<input type="hidden" name="issue_labels" value="{{.issueLabels}}">
<div class="default text">{{ctx.Locale.Tr "repo.issue_labels_helper"}}</div>
<div class="menu">
@@ -135,7 +135,7 @@
<div class="inline field">
<label>.gitignore</label>
- <div class="ui multiple search normal selection dropdown">
+ <div class="ui multiple search selection dropdown">
<input type="hidden" name="gitignores" value="{{.gitignores}}">
<div class="default text">{{ctx.Locale.Tr "repo.repo_gitignore_helper"}}</div>
<div class="menu">
diff --git a/templates/repo/file_info.tmpl b/templates/repo/file_info.tmpl
index 5527991644..61cb9f4b8a 100644
--- a/templates/repo/file_info.tmpl
+++ b/templates/repo/file_info.tmpl
@@ -1,4 +1,4 @@
-<div class="file-info text grey normal tw-font-mono">
+<div class="file-info tw-font-mono">
{{if .FileIsSymlink}}
<div class="file-info-entry">
{{ctx.Locale.Tr "repo.symbolic_link"}}
diff --git a/templates/repo/settings/collaboration.tmpl b/templates/repo/settings/collaboration.tmpl
index 2a4ec577e7..ed4d5e7eb3 100644
--- a/templates/repo/settings/collaboration.tmpl
+++ b/templates/repo/settings/collaboration.tmpl
@@ -29,7 +29,7 @@
</div>
</div>
</div>
- <button class="ui red tiny button inline text-thin delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
+ <button class="ui red tiny button inline delete-button" data-url="{{$.Link}}/delete" data-id="{{.ID}}">
{{ctx.Locale.Tr "repo.settings.delete_collaborator"}}
</button>
</div>
@@ -75,7 +75,7 @@
</div>
{{if $allowedToChangeTeams}}
<div class="flex-item-trailing" {{if .IncludesAllRepositories}} data-tooltip-content="{{ctx.Locale.Tr "repo.settings.delete_team_tip"}}"{{end}}>
- <button class="ui red tiny button inline text-thin delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}">
+ <button class="ui red tiny button inline delete-button {{if .IncludesAllRepositories}}disabled{{end}}" data-url="{{$.Link}}/team/delete" data-id="{{.ID}}">
{{ctx.Locale.Tr "repo.settings.delete_collaborator"}}
</button>
</div>
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl
index aeb61d9eb3..d5a0cff342 100644
--- a/templates/repo/settings/options.tmpl
+++ b/templates/repo/settings/options.tmpl
@@ -135,7 +135,7 @@
<form method="post" class="tw-inline-block">
{{.CsrfTokenHtml}}
<input type="hidden" name="action" value="mirror-sync">
- <button class="ui primary tiny button inline text-thin">{{ctx.Locale.Tr "repo.settings.sync_mirror"}}</button>
+ <button class="ui primary tiny button inline">{{ctx.Locale.Tr "repo.settings.sync_mirror"}}</button>
</form>
</td>
</tr>
diff --git a/templates/shared/user/org_profile_avatar.tmpl b/templates/shared/user/org_profile_avatar.tmpl
index 2ff1e40ca8..d67f133abf 100644
--- a/templates/shared/user/org_profile_avatar.tmpl
+++ b/templates/shared/user/org_profile_avatar.tmpl
@@ -4,7 +4,7 @@
<div class="column">
<div class="ui header tw-flex tw-items-center gt-word-break">
{{ctx.AvatarUtils.Avatar . 100}}
- <span class="text thin grey"><a href="{{.HomeLink}}">{{.DisplayName}}</a></span>
+ <span class="text grey"><a class="muted" href="{{.HomeLink}}">{{.DisplayName}}</a></span>
<span class="org-visibility">
{{if .Visibility.IsLimited}}<div class="ui medium basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.limited_shortname"}}</div>{{end}}
{{if .Visibility.IsPrivate}}<div class="ui medium basic horizontal label">{{ctx.Locale.Tr "org.settings.visibility.private_shortname"}}</div>{{end}}
diff --git a/web_src/css/base.css b/web_src/css/base.css
index ce0b0f569a..4f62dd103c 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -863,14 +863,6 @@ input:-webkit-autofill:active,
text-align: right !important;
}
-.ui .text.normal {
- font-weight: var(--font-weight-normal);
-}
-
-.ui .text.italic {
- font-style: italic;
-}
-
.ui .text.truncate {
overflow-x: hidden;
text-overflow: ellipsis;
@@ -878,14 +870,6 @@ input:-webkit-autofill:active,
display: inline-block;
}
-.ui .text.thin {
- font-weight: var(--font-weight-normal);
-}
-
-.ui .text.middle {
- vertical-align: middle;
-}
-
.ui .message.flash-message {
text-align: center;
}