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

Nested task list displays as a flat list #2283

Closed
bmaingret opened this issue Oct 15, 2019 · 1 comment · Fixed by #2285
Closed

Nested task list displays as a flat list #2283

bmaingret opened this issue Oct 15, 2019 · 1 comment · Fixed by #2285

Comments

@bmaingret
Copy link
Contributor

bmaingret commented Oct 15, 2019

Environment

Expected behavior

Nested task list should appear as nested.
Example: https://github.github.com/gfm/#example-280
Or as displayed : https://github.com/bmaingret/bmaingret.github.io/blob/master/_pages/now.md

Steps to reproduce the behavior

Put a nested task list in a page or post and check rendering.

Other

The following css is the reason as far as I can tell.

.task-list {
   padding: 0;
}

I have added the following after the import in main.scss on my side.

.task-list {
   padding-left: 1em;
}

Result: https://bmaingret.github.io/now/

@mmistakes
Copy link
Owner

If someone wants an easy Hacktoberfest PR all that's needed is something like

.task-list .task-list {
  margin-left: 1em;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants