TableOfContent.css 943 B

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