Skip to content

RST line blocks not working for RTL languages #1399

Closed
@seanpue

Description

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).

Adding an additionaCSS entry to themes/bootstrap3/assets/css/rst.css fixes it. I would suggest also adding it as a reminder to base/assets/css/rst.css. Have not tried other themes yet.
html[dir="rtl"] div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-right: 1.5em }

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions