summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/search.less
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-10-10 09:41:46 +0200
committerGitHub <noreply@github.com>2021-10-10 09:41:46 +0200
commit7f72844ca679d64e56412c4b86f17d1b3b526ae0 (patch)
tree7e99adbc837543deea69b721f1c93f8ae8b4fafc /searx/static/themes/simple/src/less/search.less
parentf5755ba6b98856c27c0b77af1aafb704733b8128 (diff)
parentd8c98396252c9d0f56a1bb6a954b8d2653ed464f (diff)
Merge pull request #355 from MrPaulBlack/simple-theme-css-vars
[simple theme] dark mode and some css cleanup
Diffstat (limited to 'searx/static/themes/simple/src/less/search.less')
-rw-r--r--searx/static/themes/simple/src/less/search.less65
1 files changed, 21 insertions, 44 deletions
diff --git a/searx/static/themes/simple/src/less/search.less b/searx/static/themes/simple/src/less/search.less
index d10efac24..36f0011e1 100644
--- a/searx/static/themes/simple/src/less/search.less
+++ b/searx/static/themes/simple/src/less/search.less
@@ -5,12 +5,12 @@
#search {
padding: 0 2em 0 @results-offset;
margin: 0;
- background: @color-header-background;
- border-bottom: 1px solid @color-header-border;
+ background: var(--color-header-background);
+ border-bottom: 1px solid var(--color-header-border);
}
#search_wrapper {
- padding: 10px 0;
+ padding: 20px 0 10px 0;
}
.search_box {
@@ -32,21 +32,20 @@
box-sizing: border-box;
width: 1.8em;
margin: 0;
- padding: 2px;
- height: 2.2em;
- background: none repeat scroll 0 0 @color-search-background;
- border-top: 1px solid @color-search-border;
- border-bottom: 1px solid @color-search-border;
+ padding: 8px 2px;
+ background: none repeat scroll 0 0 var(--color-search-background);
+ border-top: 1px solid var(--color-search-border);
+ border-bottom: 1px solid var(--color-search-border);
border-right: none;
border-left: none;
border-radius: 0;
outline: none;
- color: @color-search-font;
+ color: var(--color-search-font);
font-size: 16px;
z-index: 10000;
&:hover {
- color: @color-search-border;
+ color: var(--color-search-background-hover);
}
&.empty * {
@@ -60,23 +59,23 @@
border-collapse: separate;
box-sizing: border-box;
margin: 0;
- padding: 2px;
- height: 2.2em;
- background: none repeat scroll 0 0 @color-search-background;
- border: 1px solid @color-search-border;
+ padding: 8px;
+ background: none repeat scroll 0 0 var(--color-search-background);
+ border: 1px solid var(--color-search-border);
border-radius: 0;
outline: none;
- color: @color-search-font;
+ color: var(--color-search-font);
font-size: 16px;
z-index: 2;
}
#q {
outline: medium none;
- padding-left: 8px;
+ padding-left: 12px;
padding-right: 0 !important;
border-right: none;
width: @search-width;
+ border-radius: 10px 0 0 10px;
}
#q::-ms-clear,
@@ -86,12 +85,12 @@
#send_search {
border-left: none;
- width: 2.2em;
+ border-radius: 0 10px 10px 0;
&:hover {
cursor: pointer;
- background-color: @color-search-border;
- color: @color-base-light;
+ background-color: var(--color-search-background-hover);
+ color: var(--color-search-background);
}
}
@@ -225,37 +224,15 @@
}
input[type="checkbox"]:focus + label {
- box-shadow: 0 0 8px #3498db;
+ box-shadow: 0 0 8px var(--color-categories-item-border-selected);
}
- /* label:hover {
- border-bottom: 2px solid @color-categories-item-border-unselected-hover;
- } */
-
input[type="checkbox"]:checked + label {
- background: @color-categories-item-selected;
- color: @color-categories-item-selected-font;
- border-bottom: 2px solid @color-categories-item-border-selected;
+ color: var(--color-categories-item-selected-font);
+ border-bottom: 2px solid var(--color-categories-item-border-selected);
}
}
#categories_container {
position: relative;
-
- .help {
- position: absolute;
- width: 100%;
- bottom: -20px;
- overflow: hidden;
- opacity: 0;
- transition: opacity 1s ease;
- font-size: 0.8em;
- text-align: center;
- background: white;
- }
-
- &:hover .help {
- opacity: 0.8;
- transition: opacity 1s ease;
- }
}