From c66cd1ee053632261e3afb28c85bf42669a25fd8 Mon Sep 17 00:00:00 2001 From: Awiteb Date: Sun, 11 Feb 2024 21:45:06 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(i18n):=20fix=20header=20?= =?UTF-8?q?anchor=20in=20arabic?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sass/parts/_header-anchor.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sass/parts/_header-anchor.scss b/sass/parts/_header-anchor.scss index e7a20f0ce..08f49798f 100644 --- a/sass/parts/_header-anchor.scss +++ b/sass/parts/_header-anchor.scss @@ -5,7 +5,9 @@ align-items: center; opacity: 0; margin-left: -2rem; + margin-right: -2rem; padding-right: 0.3rem; + padding-left: 0.3rem; width: 1.9rem; height: 100%; user-select: none; From 4e0f24a83ac4a03402f46a1592e93545809a809d Mon Sep 17 00:00:00 2001 From: welpo Date: Mon, 12 Feb 2024 16:57:31 +0100 Subject: [PATCH 2/2] use CSS to target anchor styling --- sass/parts/_header-anchor.scss | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sass/parts/_header-anchor.scss b/sass/parts/_header-anchor.scss index 08f49798f..9d498331c 100644 --- a/sass/parts/_header-anchor.scss +++ b/sass/parts/_header-anchor.scss @@ -5,9 +5,7 @@ align-items: center; opacity: 0; margin-left: -2rem; - margin-right: -2rem; padding-right: 0.3rem; - padding-left: 0.3rem; width: 1.9rem; height: 100%; user-select: none; @@ -17,6 +15,11 @@ } } +:dir(rtl) .header-anchor { + margin-right: -2rem; + padding-left: 0.3rem; +} + .link-icon { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14.78 3.653a3.936 3.936 0 1 1 5.567 5.567l-3.627 3.627a3.936 3.936 0 0 1-5.88-.353.75.75 0 0 0-1.18.928 5.436 5.436 0 0 0 8.12.486l3.628-3.628a5.436 5.436 0 1 0-7.688-7.688l-3 3a.75.75 0 0 0 1.06 1.061l3-3Z'%3E%3C/path%3E%3Cpath d='M7.28 11.153a3.936 3.936 0 0 1 5.88.353.75.75 0 0 0 1.18-.928 5.436 5.436 0 0 0-8.12-.486L2.592 13.72a5.436 5.436 0 1 0 7.688 7.688l3-3a.75.75 0 1 0-1.06-1.06l-3 3a3.936 3.936 0 0 1-5.567-5.568l3.627-3.627Z'%3E%3C/path%3E%3C/svg%3E"); align-self: center;