question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Different Style for TOC

See original GitHub issue

The max-width: 800px setting on the article element leaves a lot of blank space on a wide screen. The position and margin of TOC and article need some redesigns.

Different styles can be left as a setting which can be switched by the user manually for each post or entire site, or it can be adjusted by the reader with a button.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
HEIGE-PCloudcommented, Apr 30, 2021

Possible layout 1

image

.page {
    margin-left: 10%;
    margin-right: auto;
    max-width: initial;
    width: 70%;
}
0reactions
HEIGE-PCloudcommented, Apr 30, 2021

Possible layout 4

Add a button to switch toc between auto-toc and static-toc. Should be quite easy to implement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video: Advanced tables of contents - Microsoft Support
The first three Heading Styles are mapped to the first three TOC levels. Scroll down to the new style, and map it to...
Read more >
Creating a TOC that Includes Specific Styles - Word Ribbon Tips
The normal way to create a table of contents (TOC) is to let Word automatically create one based upon the headings in a...
Read more >
Use a custom style to annotate a Word table of contents
The selected text doesn't look any different; we don't want it to. However, it now has two styles: Normal and TOC Summary. Strictly...
Read more >
Finding the Style Separator feature for Word TOC's
Style separators let you have Table of Contents (TOC) entries that use only part of the heading text or text that doesn't look...
Read more >
Table of Figures and Table of Contents switches
The TOC field collects entries for an appropriate Table using Heading styles, other specified styles, captions, or Table of Contents Entries.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found