diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-04-29 19:35:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 07:35:59 -0400 |
commit | 5a5ab8ef5ac5fbdb893707933f06ff6bcd8e834a (patch) | |
tree | 4b52759c1203f3a796be9bfcc587bd157fae5daf /templates/base | |
parent | 72e956b79a3b2e055bb5d4d5e20e88eaa2eeec96 (diff) | |
download | gitea-5a5ab8ef5ac5fbdb893707933f06ff6bcd8e834a.tar.gz gitea-5a5ab8ef5ac5fbdb893707933f06ff6bcd8e834a.zip |
Start cleaning the messy ".ui.left / .ui.right", improve label list page, fix stackable menu (#24393)
Since 2015/2016, there is a global pollution: ".ui.left" / ".ui.right".
Fomantic UI doesn't work this way, it just conflicts with many Fomantic
definitions.
This PR starts the cleaning work of such techinical debts.
And, the "label list" page has been quite messy for long time, for
example, why "li" appears in "div" ......
And fix #24296
<details>
![image](https://user-images.githubusercontent.com/2114189/235051281-54c5374c-b5fd-4b5f-9aa2-02d4bb2d9112.png)
![image](https://user-images.githubusercontent.com/2114189/235055703-2ba042e0-4db7-4e63-8646-02f390d496b5.png)
![image](https://user-images.githubusercontent.com/2114189/235056310-4f6ffdc2-5758-4927-8fb8-314d9fb72a6b.png)
![image](https://user-images.githubusercontent.com/2114189/235058400-dab1c9ec-3325-4671-8345-aee6b0b68042.png)
![image](https://user-images.githubusercontent.com/2114189/235058424-85509532-b9bc-43ad-b00f-a87184c60f22.png)
</details>
Diffstat (limited to 'templates/base')
-rw-r--r-- | templates/base/footer_content.tmpl | 6 | ||||
-rw-r--r-- | templates/base/head.tmpl | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/templates/base/footer_content.tmpl b/templates/base/footer_content.tmpl index 17c75c6874..f527274484 100644 --- a/templates/base/footer_content.tmpl +++ b/templates/base/footer_content.tmpl @@ -1,5 +1,5 @@ -<footer role="group" aria-label="{{.locale.Tr "aria.footer"}}"> - <div class="ui left" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}"> +<footer class="page-footer" role="group" aria-label="{{.locale.Tr "aria.footer"}}"> + <div class="left-links" role="contentinfo" aria-label="{{.locale.Tr "aria.footer.software"}}"> <a target="_blank" rel="noopener noreferrer" href="https://gitea.io">{{.locale.Tr "powered_by" "Gitea"}}</a> {{if (or .ShowFooterVersion .PageIsAdmin)}} {{.locale.Tr "version"}}: @@ -14,7 +14,7 @@ {{.locale.Tr "template"}}{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> {{end}} </div> - <div class="ui right links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}"> + <div class="right-links" role="group" aria-label="{{.locale.Tr "aria.footer.links"}}"> <div class="ui dropdown upward language"> <span>{{svg "octicon-globe"}} {{.locale.LangName}}</span> <div class="menu language-menu"> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index cd9bbed444..5dddc1df93 100644 --- a/templates/base/head.tmpl +++ b/templates/base/head.tmpl @@ -83,7 +83,7 @@ {{template "custom/body_inner_pre" .}} {{if not .PageIsInstall}} - <div class="ui top secondary stackable main menu following bar light no-vertical-tabs"> + <div class="ui top secondary stackable main menu following bar light"> {{template "base/head_navbar" .}} </div><!-- end bar --> {{end}} |