Skip to content

Conversation

@MattBlissett
Copy link
Contributor

Replace physical CSS (left/right) properties with logical (inline-start/inline-end etc) to support RTL languages.

See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_logical_properties_and_values for an explanation of these properties.

With this CSS there's no change for an English page, but an Arabic or Hebrew page only needs <html dir="rtl"> for the page to flow as expected, TOC shown on the right, admonition icons are on the right, etc.

I haven't added any language-specific adjustments, like the numerals used for ordered lists, since that would also vary for LTR languages (list-style-type: georgan or thai for example).

For issue #1601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant