gristlabs / gristlabs/mkdocs-windmill

Lvl4 on left menu not handled

Open Beginner friendly
#19 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
129
Forks
68
PR merge metrics
No merged PRs in 30d

Description

Hello,

I know not everyone will need this, but it would be nice to go to lvl4 on left menu.
You just need to add it in base.css:

.wm-toc-lev1 > .wm-toc-text { padding-left: 14px; }
.wm-toc-lev2 > .wm-toc-text { padding-left: 28px; }
.wm-toc-lev3 > .wm-toc-text { padding-left: 42px; }
.wm-toc-lev4 > .wm-toc-text { padding-left: 56px; }

.wm-toc-lev1 + .wm-page-toc { margin-left: 14px; }
.wm-toc-lev2 + .wm-page-toc { margin-left: 28px; }
.wm-toc-lev3 + .wm-page-toc { margin-left: 42px; }
.wm-toc-lev4 + .wm-page-toc { margin-left: 56px; }

And it works like a charm :-)

And by the way, many thanks for this Theme, it's perfect !

Ox

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in base.css, where the left-menu indentation rules are defined. Add the level-4 styling shown in the issue alongside the existing level-1 through level-3 rules, then verify that level-4 table-of-contents entries and nested page navigation are indented correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
css
Domain
frontend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.