aboutsummaryrefslogtreecommitdiffstats
path: root/web_src
diff options
context:
space:
mode:
authorMike L <cl.jeremy@qq.com>2021-04-09 22:53:16 +0200
committerGitHub <noreply@github.com>2021-04-09 16:53:16 -0400
commit013657ec76c1830f4baf76ee0d83892420b6611c (patch)
treebc07a4498811134938973b6733ab56c691e70ad3 /web_src
parentafa781bf20e365dc3f524b2555767ca34fe37f7e (diff)
downloadgitea-013657ec76c1830f4baf76ee0d83892420b6611c.tar.gz
gitea-013657ec76c1830f4baf76ee0d83892420b6611c.zip
Use semantic dropdown for code search query type (#15276)
Add comments to CSS rules Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'web_src')
-rw-r--r--web_src/less/_base.less9
1 files changed, 9 insertions, 0 deletions
diff --git a/web_src/less/_base.less b/web_src/less/_base.less
index e1e59b492f..cb1cd18e3d 100644
--- a/web_src/less/_base.less
+++ b/web_src/less/_base.less
@@ -240,6 +240,15 @@ a.muted:hover,
border-color: var(--color-primary) !important;
}
+/* currently used for search bar dropdowns in repo search and explore code */
+.ui.action.input:not([class*="left action"]) > .ui.dropdown.selection {
+ min-width: 10em;
+
+ &:not(:focus):not(:hover) {
+ border-right-color: transparent;
+ }
+}
+
.ui.action.input:not([class*="left action"]) > input:focus {
border-right-color: var(--color-primary);
}