From 58f60d6494619ad6d8a27b161b569a80416037c1 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Mon, 12 Feb 2024 20:01:51 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(i18n):=20fix=20arrows=20in?= =?UTF-8?q?=20RTL=20languages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_misc.scss | 11 +++++++++++ static/feed_style.xsl | 2 +- templates/macros/list_posts.html | 4 ++-- templates/page.html | 6 +++--- templates/partials/paginate.html | 8 ++++---- templates/tags/single.html | 2 +- templates/taxonomy_single.html | 2 +- 7 files changed, 23 insertions(+), 12 deletions(-) diff --git a/sass/parts/_misc.scss b/sass/parts/_misc.scss index fb77d85d..6cdcc1ec 100644 --- a/sass/parts/_misc.scss +++ b/sass/parts/_misc.scss @@ -212,3 +212,14 @@ details summary { } } } + +:dir(rtl) .arrow { + display: inline-block; + transform: rotate(180deg); +} + +// This for the arrows that point to a corner, (e.g. '↗', '↘', '↙', '↖') +:dir(rtl) .arrow-corner { + display: inline-block; + transform: rotate(270deg); +} \ No newline at end of file diff --git a/static/feed_style.xsl b/static/feed_style.xsl index a36aa4ae..ed8e8545 100644 --- a/static/feed_style.xsl +++ b/static/feed_style.xsl @@ -42,7 +42,7 @@ -

+

diff --git a/templates/macros/list_posts.html b/templates/macros/list_posts.html index b61d0a3f..d0f2fcc7 100644 --- a/templates/macros/list_posts.html +++ b/templates/macros/list_posts.html @@ -39,14 +39,14 @@

{{ post.summary | striptags | safe | trim_end_matches(pat=".") }}…

{% endif %}
- {{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }} → + {{ macros_translate::translate(key="read_more", default="Read more", language_strings=language_strings) }}  {% endif %} {% if not loop.last %} {% if loop.index == max %} {% endif %} {% endif %} diff --git a/templates/page.html b/templates/page.html index b27c2920..9c4ca4b9 100644 --- a/templates/page.html +++ b/templates/page.html @@ -88,7 +88,7 @@ {# Show link to remote changes if enabled #} {% if config.extra.remote_repository_url and macros_settings::evaluate_setting_priority(setting="show_remote_changes", page=page, default_global_value=true) == "true" %} {{ separator }} -
  • {{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }}
  • +
  • {{ macros_translate::translate(key="see_changes", default="See changes", language_strings=language_strings) }}
  • {% endif %} {% endif %} @@ -165,13 +165,13 @@