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
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion _posts/2017-08-23-RTL.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ Add following Custom CSS:
direction: rtl;
}
```

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.

direction: ltr;
}
```