From 14b09c15c488d657fd2b3b9de4955f48b40f5fb2 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 22 Jun 2021 13:50:06 +0200 Subject: [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 --- .../themes/simple/src/less/autocomplete.less | 85 +++++++++++----------- 1 file changed, 44 insertions(+), 41 deletions(-) (limited to 'searx/static/themes/simple/src/less/autocomplete.less') 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; } - } -- cgit v1.2.3