Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude code blocks from the RTL effect #38

Open
wants to merge 4 commits into
base: gh-pages
Choose a base branch
from

Conversation

asubah
Copy link

@asubah asubah commented Oct 30, 2019

Usually, code blocks are written in English and they need to be LTR.
This CSS will solve this issue.

Usually, code blocks are written in English and they need to be LTR.
This CSS will solve this issue.

To exclude code blocks from the RTL effect add the following Custom CSS:
```css
[class^="Code"] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we use lower case classes, so maybe [class^="code"] is better

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your response. I fixed it as you suggested.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry I just checked and it does not work properly if it is lower case.

Copy link
Contributor

@abnerlee abnerlee Nov 4, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, class^="Code" will match Codemirror...
But I think

pre, code {
  direction: ltr;
}

is enough, both code blocks and inline code should be LTR, right?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes you are correct, I changed it... again.
Sorry for the mess.

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.

2 participants