diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-22 13:50:06 +0200 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-06-24 13:27:21 +0200 |
| commit | 14b09c15c488d657fd2b3b9de4955f48b40f5fb2 (patch) | |
| tree | 60ef4e92dc1be70699160064bb9198e0f8ac2c43 /searx/static/themes/simple/src/less/autocomplete.less | |
| parent | dfc5c3bc1520d8b4e48d972099c80198fa312847 (diff) | |
[fix] simple theme: use stylint to fix common lint errors
This fix was autogenerated by::
npx stylelint -f unix --fix 'searx/static/themes/simple/src/less/**/*.less'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/src/less/autocomplete.less')
| -rw-r--r-- | searx/static/themes/simple/src/less/autocomplete.less | 85 |
1 files changed, 44 insertions, 41 deletions
diff --git a/searx/static/themes/simple/src/less/autocomplete.less b/searx/static/themes/simple/src/less/autocomplete.less index 93f7df1ef..bfa8e2bc6 100644 --- a/searx/static/themes/simple/src/less/autocomplete.less +++ b/searx/static/themes/simple/src/less/autocomplete.less @@ -3,59 +3,63 @@ @background_color: white; .autocomplete { - position: absolute; - max-height: 0; - overflow-y: hidden; - text-align: left; - - &:active, &:focus, &:hover { - background-color: @background_color; - } - - &:empty { - display: none; - } + position: absolute; + max-height: 0; + overflow-y: hidden; + text-align: left; + + &:active, + &:focus, + &:hover { + background-color: @background_color; + } - > ul { - list-style-type: none; - margin: 0; - padding: 0; + &:empty { + display: none; + } - > li { - cursor: pointer; - padding: 5px 0 5px 10px; + > ul { + list-style-type: none; + margin: 0; + padding: 0; - &.active, &:active, &:focus { - background-color: @color-base; + > li { + cursor: pointer; + padding: 5px 0 5px 10px; - a:active, a:focus, a:hover { - text-decoration: none; - } - } + &.active, + &:active, + &:focus { + background-color: @color-base; - &.locked { - cursor: inherit; - } + a:active, + a:focus, + a:hover { + text-decoration: none; } + } + + &.locked { + cursor: inherit; + } } + } - &.open { - display: block; - background-color: @background_color; - border: 1px solid @color-base; - max-height: 500px; - overflow-y: auto; - z-index:100; + &.open { + display: block; + background-color: @background_color; + border: 1px solid @color-base; + max-height: 500px; + overflow-y: auto; + z-index: 100; - &:empty { - display: none; - } + &:empty { + display: none; } + } } - @media screen and (max-width: @results-width) { - .autocomplete { bottom: 0; } @@ -65,5 +69,4 @@ border-bottom: 1px solid @color-result-top-border; text-align: left; } - } |