GeezerVison is showing github.com — doc: fix styles of the expandable TOC · nodejs/node@5dd08d1
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api_assets/style.css +12-24Lines changed: 12 additions & 24 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -570,40 +570,28 @@ hr { |
570 | 570 | } |
571 | 571 |
|
572 | 572 | .toc ul { |
573 | | - margin: 0 |
| 573 | + margin: 0; |
574 | 574 | } |
575 | | - |
576 | | -.toc li a::before { |
577 | | - content: "■"; |
578 | | - color: var(--color-text-primary); |
579 | | - padding-right: 1em; |
580 | | - font-size: 0.9em; |
| 575 | +.toc>ul:first-child { |
| 576 | + margin-left: 1rem; |
| 577 | +} |
| 578 | +.toc li { |
| 579 | + display: list-item; |
| 580 | + list-style: square; |
| 581 | +} |
| 582 | +.toc li a { |
| 583 | + display: inline; |
| 584 | + padding-left: 0; |
581 | 585 | } |
582 | 586 |
|
583 | 587 | .toc li a:hover::before { |
584 | 588 | color: var(--white); |
585 | 589 | } |
586 | 590 |
|
587 | | -.toc ul ul a { |
| 591 | +.toc ul { |
588 | 592 | padding-left: 1rem; |
589 | 593 | } |
590 | 594 |
|
591 | | -.toc ul ul ul a { |
592 | | - padding-left: 2rem; |
593 | | -} |
594 | | - |
595 | | -.toc ul ul ul ul a { |
596 | | - padding-left: 3rem; |
597 | | -} |
598 | | - |
599 | | -.toc ul ul ul ul ul a { |
600 | | - padding-left: 4rem; |
601 | | -} |
602 | | - |
603 | | -.toc ul ul ul ul ul ul a { |
604 | | - padding-left: 5rem; |
605 | | -} |
606 | | - |
607 | 595 | #toc .stability_0::after, |
608 | 596 | .deprecated-inline::after { |
609 | 597 | background-color: var(--red2); |
|