diff options
author | silverwind <me@silverwind.io> | 2020-12-20 19:00:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-20 13:00:03 -0500 |
commit | b4f8da533e1771eb1e0d222d8d586b4220447e4c (patch) | |
tree | c5db36e00ba4cb2383f9773e1e2e5e8950e9fb92 /templates/repo/sub_menu.tmpl | |
parent | e0a84d78809f4b19247ec7538e76f73b1f4c499f (diff) | |
download | gitea-b4f8da533e1771eb1e0d222d8d586b4220447e4c.tar.gz gitea-b4f8da533e1771eb1e0d222d8d586b4220447e4c.zip |
Search and Diff CSS enhancements (#14050)
* Search and Diff CSS enhancements
- Use flexbox for language stats
- Improve labels and code boxes on repo and code search
- Use flexbox on diff header and improve suppressed diff text
- Add dedicated color for diff expander
* more diff tweaks, less vertical padding on header
* more minor tweaks
* always show fold icon, image diff improvments
* remove margin
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'templates/repo/sub_menu.tmpl')
-rw-r--r-- | templates/repo/sub_menu.tmpl | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/templates/repo/sub_menu.tmpl b/templates/repo/sub_menu.tmpl index 6c455a4d5d..5bb71ba49d 100644 --- a/templates/repo/sub_menu.tmpl +++ b/templates/repo/sub_menu.tmpl @@ -23,15 +23,16 @@ <div class="ui segment sub-menu language-stats-details" style="display: none"> <div class="ui horizontal center link list"> {{range .LanguageStats}} - <div class="item"> - <i class="color-icon" style="background-color: {{ .Color }}"></i> - <span class="ui"><b> - {{if eq .Language "other" }} - {{ $.i18n.Tr "repo.language_other" }} - {{else}} - {{ .Language }} - {{end}} - </b> {{ .Percentage }}%</span> + <div class="item df ac jc"> + <i class="color-icon mr-3" style="background-color: {{ .Color }}"></i> + <span class="bold mr-3"> + {{if eq .Language "other" }} + {{ $.i18n.Tr "repo.language_other" }} + {{else}} + {{ .Language }} + {{end}} + </span> + {{ .Percentage }}% </div> {{end}} </div> |