From 013657ec76c1830f4baf76ee0d83892420b6611c Mon Sep 17 00:00:00 2001 From: Mike L Date: Fri, 9 Apr 2021 22:53:16 +0200 Subject: [PATCH] Use semantic dropdown for code search query type (#15276) Add comments to CSS rules Co-authored-by: zeripath --- templates/explore/code.tmpl | 94 ++++++++++++++++++------------------- templates/repo/search.tmpl | 22 ++++----- web_src/less/_base.less | 9 ++++ 3 files changed, 64 insertions(+), 61 deletions(-) diff --git a/templates/explore/code.tmpl b/templates/explore/code.tmpl index b22fe039a2..222bbb8aae 100644 --- a/templates/explore/code.tmpl +++ b/templates/explore/code.tmpl @@ -3,29 +3,27 @@ {{template "explore/navbar" .}}
- -
-
- -
-
- -
-
- -
-
-
-
+ +
+ + + +
+ +
{{if .SearchResults}} -

- {{.i18n.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html }} -

+

+ {{.i18n.Tr "explore.code_search_results" (.Keyword|Escape) | Str2html }} +

{{range $term := .SearchResultLanguages}} @@ -35,34 +33,34 @@ {{end}}
- + {{else}}
{{$.i18n.Tr "explore.code_no_results"}}
{{end}} diff --git a/templates/repo/search.tmpl b/templates/repo/search.tmpl index ab9e9be2d6..35f7cffbff 100644 --- a/templates/repo/search.tmpl +++ b/templates/repo/search.tmpl @@ -5,20 +5,16 @@