nav-style.css 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /* Styling for the subpage footer & sidebar toc */
  2. @media only screen and (max-width:1365px) {
  3. .sidetoc {
  4. display: none;
  5. }
  6. }
  7. @media only screen and (min-width:1366px) {
  8. main {
  9. position: relative;
  10. }
  11. .sidetoc {
  12. margin-left: auto;
  13. margin-right: auto;
  14. left: calc(100% + (var(--content-max-width))/4 - 140px);
  15. position: absolute;
  16. }
  17. .pagetoc {
  18. position: fixed;
  19. width: 300px;
  20. height: calc(100vh - var(--menu-bar-height) - 0.67em * 4);
  21. overflow: auto;
  22. }
  23. .pagetoc a {
  24. border-left: 1px solid var(--sidebar-bg);
  25. color: var(--fg) !important;
  26. display: block;
  27. padding-bottom: 5px;
  28. padding-top: 5px;
  29. padding-left: 10px;
  30. text-align: left;
  31. text-decoration: none;
  32. }
  33. .pagetoc a:hover,
  34. .pagetoc a.active {
  35. background: var(--sidebar-bg);
  36. color: var(--sidebar-fg) !important;
  37. }
  38. .pagetoc .active {
  39. background: var(--sidebar-bg);
  40. color: var(--sidebar-fg);
  41. }
  42. }
  43. @media only screen and (min-width: 1366px) {
  44. #subpage-footer {
  45. margin-left: 200px;
  46. }
  47. }
  48. #subpage-footer {
  49. max-width: 400px;
  50. margin-top: 100px;
  51. color: var(--fg) !important;
  52. display: block;
  53. }
  54. #subpage-footer > p {
  55. line-height: 1.0em;
  56. }
  57. #subpage-footer > ol {
  58. list-style: none outside none;
  59. padding-left: 20px;
  60. line-height: 1.6em;
  61. border-top: 1px solid var(--sidebar-spacer);
  62. padding-top: 10px;
  63. }
  64. #subpage-footer ol > li.chapter-item {
  65. display: flex;
  66. }
  67. #subpage-footer a.toggle {
  68. display: block;
  69. margin-left: auto;
  70. padding-left: 20px;
  71. opacity: 0.68;
  72. }
  73. @media print {
  74. .sidetoc {
  75. display: none;
  76. }
  77. #subpage-footer {
  78. display: none;
  79. }
  80. }