[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
This commit is contained in:
Alexandre Flament
2022-01-13 21:36:08 +01:00
parent 2084d7b1ed
commit d000288ad0
10 changed files with 311 additions and 74 deletions
@@ -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;
}
}