Skip to content
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;
}
```