diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-08-28 22:14:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-28 22:14:51 +0800 |
commit | 4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c (patch) | |
tree | 777d8a03c5933b99519a2f5afaef86e245892b6c /templates/code/searchresults.tmpl | |
parent | a587d2526163153a4d992527fe6040d578beaa83 (diff) | |
download | gitea-4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c.tar.gz gitea-4803766f7a5d1ca86a1e62949dcd9a9ff8d0f64c.zip |
Refactor some CSS styles and simplify code (#26771)
Refactor some CSS styles and simplify code.
Some styles are not in use, remove them.
Diffstat (limited to 'templates/code/searchresults.tmpl')
-rw-r--r-- | templates/code/searchresults.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/code/searchresults.tmpl b/templates/code/searchresults.tmpl index 684e2860bf..faac696705 100644 --- a/templates/code/searchresults.tmpl +++ b/templates/code/searchresults.tmpl @@ -1,6 +1,6 @@ -<div class="gt-df gt-ac gt-fw"> +<div class="flex-text-block gt-fw"> {{range $term := .SearchResultLanguages}} - <a class="ui text-label gt-df gt-ac gt-mr-1 gt-my-1 {{if eq $.Language $term.Language}}primary {{end}}basic label" href="{{AppSubUrl}}{{if $.ContextUser}}/{{$.ContextUser.Name}}/-/code{{else}}/explore/code{{end}}?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}{{if ne $.queryType ""}}&t={{$.queryType}}{{end}}"> + <a class="ui {{if eq $.Language $term.Language}}primary{{end}} basic label gt-m-0" href="{{AppSubUrl}}{{if $.ContextUser}}/{{$.ContextUser.Name}}/-/code{{else}}/explore/code{{end}}?q={{$.Keyword}}{{if ne $.Language $term.Language}}&l={{$term.Language}}{{end}}{{if ne $.queryType ""}}&t={{$.queryType}}{{end}}"> <i class="color-icon gt-mr-3" style="background-color: {{$term.Color}}"></i> {{$term.Language}} <div class="detail">{{$term.Count}}</div> |