TableOfContent.css 965 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #toc {
  2. display: inline-block;
  3. margin-bottom: 1em;
  4. padding: .3em .5em;
  5. line-height: 1em;
  6. }
  7. #toc ul {
  8. padding: 0.2em;
  9. list-style: none;
  10. text-align: left;
  11. }
  12. #toc-header {
  13. padding: 0;
  14. }
  15. #toc ul li {
  16. padding:0;
  17. }
  18. #toc ul li a {
  19. padding: .25em;
  20. display: block;
  21. }
  22. li.toc1 a:before, li.toc2 a:before {
  23. content: "• ";
  24. /*content: "⁍⁃‣•◦∙";*/
  25. }
  26. li.toc3 a:before, li.toc4 a:before, li.toc5 a:before, li.toc6 a:before {
  27. content: "- ";
  28. }
  29. .toc1{margin-left: 0;}
  30. .toc2{margin-left: 0;}
  31. .toc3{margin-left: 2em;}
  32. .toc4{margin-left: 4em;}
  33. .toc5{margin-left: 6em;}
  34. .toc6{margin-left: 8em;}
  35. .toc-nav {
  36. display:none;
  37. margin-left: 1em;
  38. vertical-align: middle;
  39. /* absolute size - always small, regardless of header font size */
  40. font-size: 0.7rem;
  41. line-height:0.5rem;
  42. font-weight: normal;
  43. }
  44. h1:hover .toc-nav, h2:hover .toc-nav, h3:hover .toc-nav, h4:hover .toc-nav, h5:hover .toc-nav, h6:hover .toc-nav { display:initial; }