picocss / pico

Minimal CSS Framework for semantic HTML
https://picocss.com
MIT License
13.82k stars 406 forks source link

refactor: replace `right`/`left` with `inline` corresponding values for better RTL support #560

Open shuuji3 opened 5 months ago

shuuji3 commented 5 months ago

Hello, I've noticed that there are still dozens of usages of right or left for positioning, instead of inline-start or inline-end.

This PR replaces those with inline-* corresponding. Using inline-* variants will improve support for RTL languages and can simplify CSS properties in some cases.

IE didn't support inline-* variants but IE reached EoL and Pico CSS v2 dropped its support and all modern browsers support inline-* so now we should be able to use inline-* values everywhere.

(Let me know if this PR is too large. I can split it into small pieces if you like.)