summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2024-10-02 18:06:29 +0200
committerMarkus Heiser <markus.heiser@darmarIT.de>2024-10-05 08:18:28 +0200
commita631f77401a0a20ae98ae472482d0e4b912d4c60 (patch)
treeac451cd34496105576b17114eb7260b4ad513072 /searx/static/themes/simple/src
parenta7d02d4101c3e2ed3d35130466574c80f4d3583d (diff)
downloadsearxng-a631f77401a0a20ae98ae472482d0e4b912d4c60.tar.gz
searxng-a631f77401a0a20ae98ae472482d0e4b912d4c60.zip
[mod] favicons: simplify RTL in template & CSS
Comes from a sughgestion in: - https://github.com/searxng/searxng/pull/3727#issuecomment-2388998803 Suggested-by: Bnyro <bnyro@tutanota.com> Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/static/themes/simple/src')
-rw-r--r--searx/static/themes/simple/src/less/style-ltr.less4
-rw-r--r--searx/static/themes/simple/src/less/style-rtl.less8
-rw-r--r--searx/static/themes/simple/src/less/style.less5
3 files changed, 9 insertions, 8 deletions
diff --git a/searx/static/themes/simple/src/less/style-ltr.less b/searx/static/themes/simple/src/less/style-ltr.less
index 5d8c5dbe5..6f7218b02 100644
--- a/searx/static/themes/simple/src/less/style-ltr.less
+++ b/searx/static/themes/simple/src/less/style-ltr.less
@@ -82,8 +82,4 @@
transform: scale(1, 1);
}
-.favicon {
- margin: 0 8px 0 0;
-}
-
@import "style.less";
diff --git a/searx/static/themes/simple/src/less/style-rtl.less b/searx/static/themes/simple/src/less/style-rtl.less
index aa663436f..8e2634d34 100644
--- a/searx/static/themes/simple/src/less/style-rtl.less
+++ b/searx/static/themes/simple/src/less/style-rtl.less
@@ -94,12 +94,12 @@
direction: initial;
text-align: right;
+ .result .url_header {
+ direction: rtl;
+ }
+
.result .url_wrapper {
justify-content: end;
-
- .favicon {
- margin: 0 0 0 8px;
- }
}
}
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less
index 29ae4039e..857ea4a28 100644
--- a/searx/static/themes/simple/src/less/style.less
+++ b/searx/static/themes/simple/src/less/style.less
@@ -232,6 +232,11 @@ article[data-vim-selected].category-social {
}
}
+ .url_header {
+ display: flex;
+ gap: 0.5rem;
+ }
+
.url_wrapper {
display: flex;
align-items: center;