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

fix RTL line block issues (fixes #1399) #1400

Merged
merged 3 commits into from
Sep 4, 2014
Merged

Conversation

seanpue
Copy link
Contributor

@seanpue seanpue commented Sep 4, 2014

RST line blocks are not working properly for rtl (right-to-left) languages in (at least) the bootstrap theme. The CSS for those indentations (div.line-block div.line-block) in rst.css indents from margin-left regardless of whether the document is rtl (right-to-left). These changes add a css entry to rst.css in both base/assets/css/rst.css and themes/bootstrap3/assets/css/rst.css to change the direction of indentation for RST line blocks for right-to-left documents.

Fixes #1399.

html[dir="rtl"] div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-right: 1.5em }
Copy link
Member

Choose a reason for hiding this comment

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

Are you sure this is enough to override the left margin of 1.5 em? To me, it sounds like it will have that margin on both sides.

margin-left: 0; perchance?

@Kwpolska Kwpolska added this to the v7.0.2 milestone Sep 4, 2014
@Kwpolska Kwpolska self-assigned this Sep 4, 2014
@Kwpolska Kwpolska changed the title fix RTL line block issues (#1399) fix RTL line block issues (fixes #1399) Sep 4, 2014
@Kwpolska
Copy link
Member

Kwpolska commented Sep 4, 2014

Should be good. Thanks for your contribution!

I’ll add you to AUTHORS.txt and add a note in CHANGES.txt.

Kwpolska added a commit that referenced this pull request Sep 4, 2014
fix RTL line block issues (fixes #1399)
@Kwpolska Kwpolska merged commit c15677d into getnikola:master Sep 4, 2014
Kwpolska added a commit that referenced this pull request Sep 4, 2014
Signed-off-by: Chris “Kwpolska” Warrick <kwpolska@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RST line blocks not working for RTL languages
2 participants