summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/src/less/preferences.less
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-01-13 21:36:08 +0100
committerAlexandre Flament <alex@al-f.net>2022-01-16 18:51:11 +0100
commitd000288ad0c41d9d6f3fdc66b0dcbe3e5b0c9876 (patch)
treeb23be6f84aeece38da7ceabca663d0692f2fa8f6 /searx/static/themes/simple/src/less/preferences.less
parent2084d7b1ed9704ca5de5e9491a1e84c11ad5d7ed (diff)
downloadsearxng-d000288ad0c41d9d6f3fdc66b0dcbe3e5b0c9876.tar.gz
searxng-d000288ad0c41d9d6f3fdc66b0dcbe3e5b0c9876.zip
[enh] simple theme: RTL support
* mirror all inline SVGs so that direction SVGs display correctly on RTL * set the bold list element in info box to RTL so the colon gets displayed on the right side * set correct .ltr function for the left border on the search button in #q * move text to the right in autocomplete * move search form in lign with result article on RTL * add the correct padding for img thumbnails in categories like music on RTL * apply RTL to result table for map results * align text in tables part of /preferences on RTL * move burger menu on index page to the left on RTL * fix positioning of drop down arrow on select boxes on RTL * align result URL on the right (written LTR) * align vim hotkeys help on the left since it is not translated * image detail: * labels (author, format, URL, etc...) are written on the right, values are on the left. * URL are written LTR and overflow on the right
Diffstat (limited to 'searx/static/themes/simple/src/less/preferences.less')
-rw-r--r--searx/static/themes/simple/src/less/preferences.less25
1 files changed, 14 insertions, 11 deletions
diff --git a/searx/static/themes/simple/src/less/preferences.less b/searx/static/themes/simple/src/less/preferences.less
index 5fdd4bfaa..1d6f62a13 100644
--- a/searx/static/themes/simple/src/less/preferences.less
+++ b/searx/static/themes/simple/src/less/preferences.less
@@ -1,6 +1,6 @@
#tab-contentquery table td,
#tab-contentquery table th {
- text-align: left !important;
+ .ltr-text-align-right() !important;
height: 3rem;
}
@@ -18,20 +18,23 @@
margin: 0;
padding: 5px 0 0 0;
display: block;
- float: left;
+ .ltr-float-left();
width: 300px;
}
.value {
margin: 0;
padding: 0;
- float: left;
+ .ltr-float-left();
width: 15em;
select,
input[type="text"] {
font-size: inherit !important;
- margin: 0 1rem 0 0;
+ margin-top: 0;
+ .ltr-margin-right(1rem);
+ margin-bottom: 0;
+ .ltr-margin-left(0);
}
select {
@@ -63,7 +66,7 @@
.description {
margin: 0;
padding: 5px 0 0 0;
- float: left;
+ .ltr-float-right();
width: 50%;
color: var(--color-settings-engine-description-font);
font-size: 90%;
@@ -82,7 +85,7 @@
th,
td {
- text-align: left;
+ .ltr-text-align-left();
font-family: monospace;
font-size: 1rem;
padding: 0.5em;
@@ -106,7 +109,7 @@
}
.category {
- margin-right: 0.5rem;
+ .ltr-margin-right(0.5rem);
label {
border: 2px solid transparent;
@@ -121,7 +124,7 @@
.name,
.shortcut {
- text-align: left;
+ .ltr-text-align-left();
}
.preferences_back {
@@ -153,7 +156,7 @@
th.name {
.engine-tooltip {
margin-top: 1.8rem;
- left: calc((100% - 85em) / 2 + 10em);
+ .ltr-left(calc((100% - 85em) / 2 + 10em));
max-width: 40rem;
.engine-description {
@@ -163,7 +166,7 @@
}
.engine-group {
- text-align: left;
+ .ltr-text-align-left();
font-weight: normal;
background: var(--color-settings-engine-group-background);
}
@@ -175,6 +178,6 @@
}
.engine-tooltip {
- left: 10em !important;
+ .ltr-left(10em) !important;
}
}