diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-05-04 02:32:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 14:32:10 -0400 |
commit | 48e3e38ee040c9cfec6ea2adea2da49a7f21f2c7 (patch) | |
tree | 7c61c108166247f7c1a1e299dcce2d7bd00afdaf /templates/repo/settings | |
parent | e9b39250b285f1b9cbf9739f33c06fc57401f314 (diff) | |
download | gitea-48e3e38ee040c9cfec6ea2adea2da49a7f21f2c7.tar.gz gitea-48e3e38ee040c9cfec6ea2adea2da49a7f21f2c7.zip |
Clean up polluted styles and remove dead CSS code (#24497)
Follow #24393
The funny history:
* At the beginning, `.ui.message` was polluted by `text-align: center`
* Then people do `<div class="ui ... message text left">`
* But `.ui.left` is polluted by `float: left`
* Then people do `#xxx .ui.message { width: 100% !important;}`
The code just becomes more and more hacky.
After removing the pollution, everything becomes clear and straight.
And, this PR also does:
1. Remove the `package.css`, its styles could be provided by `top
aligned`
2. Remove `#avatar-arrow`, dead code
Screenshot:
![image](https://user-images.githubusercontent.com/2114189/235862130-a9eb5d8f-7d01-457c-99f7-21d0abc3075e.png)
![image](https://user-images.githubusercontent.com/2114189/235862222-139709a7-95c2-4f89-a40f-100b2d76d9bb.png)
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates/repo/settings')
-rw-r--r-- | templates/repo/settings/options.tmpl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/repo/settings/options.tmpl b/templates/repo/settings/options.tmpl index 515854609a..af753ba670 100644 --- a/templates/repo/settings/options.tmpl +++ b/templates/repo/settings/options.tmpl @@ -803,7 +803,7 @@ {{.locale.Tr "repo.settings.convert"}} </div> <div class="content"> - <div class="ui warning message text left"> + <div class="ui warning message"> {{.locale.Tr "repo.settings.convert_notices_1"}} </div> <form class="ui form" action="{{.Link}}" method="post"> @@ -834,7 +834,7 @@ {{.locale.Tr "repo.settings.convert_fork"}} </div> <div class="content"> - <div class="ui warning message text left"> + <div class="ui warning message"> {{.locale.Tr "repo.settings.convert_fork_notices_1"}} </div> <form class="ui form" action="{{.Link}}" method="post"> @@ -864,7 +864,7 @@ {{.locale.Tr "repo.settings.transfer"}} </div> <div class="content"> - <div class="ui warning message text left"> + <div class="ui warning message"> {{.locale.Tr "repo.settings.transfer_notices_1"}} <br> {{.locale.Tr "repo.settings.transfer_notices_2"}} <br> {{.locale.Tr "repo.settings.transfer_notices_3"}} @@ -900,7 +900,7 @@ {{.locale.Tr "repo.settings.delete"}} </div> <div class="content"> - <div class="ui warning message text left"> + <div class="ui warning message"> {{.locale.Tr "repo.settings.delete_notices_1" | Safe}}<br> {{.locale.Tr "repo.settings.delete_notices_2" .Repository.FullName | Safe}} {{if .Repository.NumForks}}<br> @@ -935,7 +935,7 @@ {{.locale.Tr "repo.settings.wiki_delete"}} </div> <div class="content"> - <div class="ui warning message text left"> + <div class="ui warning message"> {{.locale.Tr "repo.settings.delete_notices_1" | Safe}}<br> {{.locale.Tr "repo.settings.wiki_delete_notices_1" .Repository.Name | Safe}} </div> |