summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-12 11:38:28 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2021-11-13 17:12:28 +0100
commitdfbbc3b4714f3a79553343fe28e10e41db7d0f91 (patch)
tree18d7e9768a567bf9b56ef452f191ee162758598e /searx/static/themes/simple
parentcf15652e4ba1f73cc2a197c9524473daf3417c11 (diff)
downloadsearxng-dfbbc3b4714f3a79553343fe28e10e41db7d0f91.tar.gz
searxng-dfbbc3b4714f3a79553343fe28e10e41db7d0f91.zip
[fix] simple theme: /preferences: add tokens field
include changes to display input text field in the preferences
Diffstat (limited to 'searx/static/themes/simple')
-rw-r--r--searx/static/themes/simple/src/less/definitions.less6
-rw-r--r--searx/static/themes/simple/src/less/preferences.less33
2 files changed, 34 insertions, 5 deletions
diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less
index 157cfeed1..d3e048c12 100644
--- a/searx/static/themes/simple/src/less/definitions.less
+++ b/searx/static/themes/simple/src/less/definitions.less
@@ -91,6 +91,9 @@
--color-toolkit-tabs-section-border: #ddd;
--color-toolkit-select-border: #ddd;
--color-toolkit-select-border-hover: #bbb;
+ --color-toolkit-input-text-font: #222;
+ --color-toolkit-input-text-border: #ddd;
+ --color-toolkit-input-text-border-hover: #bbb;
--color-toolkit-checkbox-onoff-background: #ddd;
--color-toolkit-checkbox-onoff-label-background: #3050ff;
--color-toolkit-checkbox-onoff-checked-background: #aaa;
@@ -191,6 +194,9 @@
--color-toolkit-tabs-section-border: #555;
--color-toolkit-select-border: #555;
--color-toolkit-select-border-hover: #777;
+ --color-toolkit-input-text-font: #fff;
+ --color-toolkit-input-text-border: #555;
+ --color-toolkit-input-text-border-hover: #777;
--color-toolkit-checkbox-onoff-background: #3c3b31;
--color-toolkit-checkbox-onoff-label-background: #58f;
--color-toolkit-checkbox-onoff-checked-background: #ddd;
diff --git a/searx/static/themes/simple/src/less/preferences.less b/searx/static/themes/simple/src/less/preferences.less
index e0e3dec4b..29ba5bf9e 100644
--- a/searx/static/themes/simple/src/less/preferences.less
+++ b/searx/static/themes/simple/src/less/preferences.less
@@ -27,6 +27,34 @@
padding: 0;
float: left;
width: 15em;
+
+ select,
+ input[type="text"] {
+ font-size: inherit !important;
+ margin: 0 1rem 0 0;
+ }
+
+ select {
+ width: 14rem;
+ }
+
+ input[type="text"] {
+ width: 13.25rem;
+ color: var(--color-toolkit-input-text-font);
+ border: 1px solid var(--color-toolkit-input-text-border);
+ background: none repeat scroll 0 0 var(--color-base-background);
+ padding: 0.4rem;
+
+ &:hover {
+ border: 1px solid var(--color-toolkit-input-text-border-hover);
+ }
+ }
+
+ select:focus,
+ input:focus {
+ outline: none;
+ box-shadow: 0 0 1px 1px var(--color-btn-background);
+ }
}
.description {
@@ -38,11 +66,6 @@
font-size: 90%;
}
- select {
- width: 200px;
- font-size: inherit !important;
- }
-
table {
border-collapse: collapse;
}