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

Indented line blocks do not render indented #287

Closed
1 task done
mwchase opened this issue Oct 29, 2021 · 0 comments · Fixed by #407
Closed
1 task done

Indented line blocks do not render indented #287

mwchase opened this issue Oct 29, 2021 · 0 comments · Fixed by #407
Labels
enhancement New feature or request

Comments

@mwchase
Copy link

mwchase commented Oct 29, 2021

What's happening?

(From #285)

There is no specific styling for line blocks, so, among other things, indented lines are not indented.

I looked at the sphinx-rtd theme, and the following lines appear to be responsible for styling line blocks:

.rst-content .line-block {
 margin-left:0;
 margin-bottom:24px;
 line-height:24px
}
.rst-content .line-block .line-block {
 margin-left:24px;
 margin-bottom:0
}

The .line-block .line-block handles indenting text as needed.

Reproducer

  1. Add line blocks with indent to sphinx documentation:
| Here is a line
|   Here is an indented line
| Here is a non-indented line
  1. Build HTML with alabaster theme.
  2. "Here is an indented line" displays indented.
    alabaster
  3. Change them to furo
  4. The lines no longer display indented
    furo no custom
  5. Add styles to .line-block .line-block
  6. The lines display indented
    furo custom

Expectation

Furo should behave like other themes with regard to indented line blocks.

Code of Conduct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants