summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2021-11-05 11:33:43 +0100
committerAlexandre Flament <alex@al-f.net>2021-11-05 12:42:44 +0100
commit4d051c43f3f91357a6db8147e5cfb2d9f9a79286 (patch)
treeeda0370bb81560ac6f5e5aa3e1a34005987a86a3 /searx
parentd1c09c84e21ac66d2701e74dd25dbbf33895c0f9 (diff)
downloadsearxng-4d051c43f3f91357a6db8147e5cfb2d9f9a79286.tar.gz
searxng-4d051c43f3f91357a6db8147e5cfb2d9f9a79286.zip
[fix] simple theme: various about the hotkeys help
* dark mode: #555 border (same as infoboxes and other borders) * remove a call to console.log * center the dialog without using the style attribute.
Diffstat (limited to 'searx')
-rw-r--r--searx/static/themes/simple/src/js/main/keyboard.js1
-rw-r--r--searx/static/themes/simple/src/less/definitions.less2
-rw-r--r--searx/static/themes/simple/src/less/toolkit.less6
3 files changed, 3 insertions, 6 deletions
diff --git a/searx/static/themes/simple/src/js/main/keyboard.js b/searx/static/themes/simple/src/js/main/keyboard.js
index 26cc6f7d0..61fa7ba92 100644
--- a/searx/static/themes/simple/src/js/main/keyboard.js
+++ b/searx/static/themes/simple/src/js/main/keyboard.js
@@ -361,7 +361,6 @@ searxng.ready(function() {
helpPanel = document.createElement('div');
helpPanel.id = 'vim-hotkeys-help';
helpPanel.className='dialog-modal';
- helpPanel.style='width: 40%';
initHelpContent(helpPanel);
initHelpContent(helpPanel);
initHelpContent(helpPanel);
diff --git a/searx/static/themes/simple/src/less/definitions.less b/searx/static/themes/simple/src/less/definitions.less
index a09735c5e..33b65a682 100644
--- a/searx/static/themes/simple/src/less/definitions.less
+++ b/searx/static/themes/simple/src/less/definitions.less
@@ -185,7 +185,7 @@
--color-toolkit-badge-background: #777;
--color-toolkit-kbd-font: #000;
--color-toolkit-kbd-background: #fff;
- --color-toolkit-dialog-border: #333;
+ --color-toolkit-dialog-border: #555;
--color-toolkit-dialog-background: #222;
--color-toolkit-tabs-label-border: #222;
--color-toolkit-tabs-section-border: #555;
diff --git a/searx/static/themes/simple/src/less/toolkit.less b/searx/static/themes/simple/src/less/toolkit.less
index 4f1c3f338..faed6ea9f 100644
--- a/searx/static/themes/simple/src/less/toolkit.less
+++ b/searx/static/themes/simple/src/less/toolkit.less
@@ -196,11 +196,9 @@ div.selectable_url {
position: fixed;
top: 50%;
left: 50%;
-
- /* bring your own prefixes */
+ margin: 0 auto;
transform: translate(-50%, -50%);
- z-index: 100000;
- margin: 0 50% 0 0;
+ z-index: 10000000;
}
// btn-collapse