chore: enforce RTL-friendly logical CSS properties with a linter (#12491)

Related issue: https://codeberg.org/forgejo/forgejo/issues/8581

This should be a nice first step towards RTL support. Future PRs can look at updating the tailwind classes, changing some of the icons (arrow left might need to become arrow right in some cases for example, and updating the template files)

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/12491
Reviewed-by: 0ko <0ko@noreply.codeberg.org>
This commit is contained in:
Cameron Radmore 2026-05-11 00:20:45 +02:00 committed by Gusted
parent a8cae6d511
commit 6b75654cc2
74 changed files with 556 additions and 599 deletions

View file

@ -16,7 +16,7 @@
#editor-bar {
gap: var(--button-spacing);
.switch {
overflow-x: scroll;
overflow-inline: scroll;
}
}
}
@ -24,7 +24,7 @@
.cm-panel.fj-search {
position: absolute;
top: 0;
right: 0;
inset-inline-end: 0;
background-color: var(--color-body);
box-shadow: 0 6px 18px var(--color-shadow);
border-radius: 0.3rem;