From 75e5d17725f9ff709d267b566fdbddd05ecc5d6a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 10 Jan 2026 08:15:37 +0000 Subject: [PATCH] Integrate icons RTL styles from rtl.css into application.css using logical properties (#43515). git-svn-id: https://svn.redmine.org/redmine/trunk@24291 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/assets/stylesheets/application.css | 9 +++++++-- app/assets/stylesheets/rtl.css | 9 --------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index d92f7474d..18800c05b 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -271,7 +271,7 @@ a.user.user-mention { #admin-menu a {line-height:1.7em;} a#toggle-completed-versions {color:var(--oc-gray-6);} -a#toggle-completed-versions span.icon-label {margin-left: 0} +a#toggle-completed-versions span.icon-label {margin-inline-start: 0} a#toggle-completed-versions svg, a#toggle-completed-versions:hover svg {stroke:var(--oc-gray-6)} /***** Dropdown *****/ @@ -1909,6 +1909,11 @@ svg.icon-svg-filled { stroke: none; } +html[dir="rtl"] svg.icon-svg.icon-rtl { + transform: scaleX(-1); +} + + svg.s20 { width: 1.25rem; height: 1.25rem; @@ -1935,7 +1940,7 @@ svg.s12 { } span.icon-label { - margin-left: 4px; + margin-inline-start: 4px; } span.icon-checked:has(:not(a svg.icon-svg)) svg.icon-svg { diff --git a/app/assets/stylesheets/rtl.css b/app/assets/stylesheets/rtl.css index f3d836be5..c61ed4046 100644 --- a/app/assets/stylesheets/rtl.css +++ b/app/assets/stylesheets/rtl.css @@ -237,15 +237,6 @@ a.wiki-anchor {margin-left:0px; margin-right:6px;} .project.marker {margin-left:0; margin-right:-4px;} -/***** Icons *****/ -svg.icon-svg.icon-rtl { - transform: scaleX(-1); -} - -span.icon-label { - margin-right: 4px; -} - /* Custom JQuery styles */ .ui-datepicker-title select {margin-left:4px !important; margin-right:0 !important;}