Exclude code blocks from the RTL effect#38
Open
asubah wants to merge 4 commits intotypora:gh-pagesfrom
Open
Conversation
Usually, code blocks are written in English and they need to be LTR. This CSS will solve this issue.
abnerlee
reviewed
Nov 3, 2019
_posts/2017-08-23-RTL.md
Outdated
|
|
||
| To exclude code blocks from the RTL effect add the following Custom CSS: | ||
| ```css | ||
| [class^="Code"] { |
Contributor
There was a problem hiding this comment.
I think we use lower case classes, so maybe [class^="code"] is better
Author
There was a problem hiding this comment.
Thank you for your response. I fixed it as you suggested.
Author
There was a problem hiding this comment.
Sorry I just checked and it does not work properly if it is lower case.
Contributor
There was a problem hiding this comment.
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?
Author
There was a problem hiding this comment.
Yes you are correct, I changed it... again.
Sorry for the mess.
lower case class name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Usually, code blocks are written in English and they need to be LTR.
This CSS will solve this issue.