-
Notifications
You must be signed in to change notification settings - Fork 123
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
base: gh-pages
Are you sure you want to change the base?
Conversation
Usually, code blocks are written in English and they need to be LTR. This CSS will solve this issue.
_posts/2017-08-23-RTL.md
Outdated
|
||
To exclude code blocks from the RTL effect add the following Custom CSS: | ||
```css | ||
[class^="Code"] { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
lower case class name
Usually, code blocks are written in English and they need to be LTR.
This CSS will solve this issue.