|
| 1 | +/* Custom CSS for MarkDiffusion Documentation */ |
| 2 | + |
| 3 | +/* Increase sidebar width and ensure no gap */ |
| 4 | +.wy-nav-side { |
| 5 | + width: 350px !important; |
| 6 | + left: 0 !important; |
| 7 | +} |
| 8 | + |
| 9 | +/* Ensure sidebar top section (purple area) matches width */ |
| 10 | +.wy-side-nav-search { |
| 11 | + width: 350px !important; |
| 12 | + box-sizing: border-box !important; |
| 13 | + margin: 0 !important; |
| 14 | + padding: 1.618em !important; |
| 15 | +} |
| 16 | + |
| 17 | +/* Ensure menu items match sidebar width */ |
| 18 | +.wy-menu.wy-menu-vertical { |
| 19 | + width: 350px !important; |
| 20 | + box-sizing: border-box !important; |
| 21 | + margin: 0 !important; |
| 22 | + padding: 0 !important; |
| 23 | +} |
| 24 | + |
| 25 | +/* Ensure highlighted/current items fill the width */ |
| 26 | +.wy-menu-vertical li.current { |
| 27 | + width: 350px !important; |
| 28 | +} |
| 29 | + |
| 30 | +.wy-menu-vertical li.current > a { |
| 31 | + width: 100% !important; |
| 32 | + box-sizing: border-box !important; |
| 33 | +} |
| 34 | + |
| 35 | +/* Hide sidebar scrollbar and prevent it from taking space */ |
| 36 | +.wy-side-scroll { |
| 37 | + overflow-y: scroll !important; |
| 38 | + scrollbar-width: none !important; /* Firefox */ |
| 39 | + -ms-overflow-style: none !important; /* IE and Edge */ |
| 40 | + width: 100% !important; |
| 41 | +} |
| 42 | + |
| 43 | +.wy-side-scroll::-webkit-scrollbar { |
| 44 | + display: none !important; /* Chrome, Safari and Opera */ |
| 45 | + width: 0 !important; |
| 46 | + height: 0 !important; |
| 47 | +} |
| 48 | + |
| 49 | +/* Ensure the navigation container fills the entire sidebar */ |
| 50 | +.wy-side-nav-search, |
| 51 | +.wy-menu.wy-menu-vertical { |
| 52 | + overflow-x: hidden !important; |
| 53 | +} |
| 54 | + |
| 55 | +/* Adjust content area to accommodate wider sidebar */ |
| 56 | +.wy-nav-content-wrap { |
| 57 | + margin-left: 350px !important; |
| 58 | +} |
| 59 | + |
| 60 | +/* Increase max width of content area to use more screen space */ |
| 61 | +.wy-nav-content { |
| 62 | + max-width: 1200px !important; |
| 63 | +} |
| 64 | + |
| 65 | +/* Make the overall page wider on large screens */ |
| 66 | +@media screen and (min-width: 1400px) { |
| 67 | + .wy-nav-side { |
| 68 | + width: 380px !important; |
| 69 | + left: 0 !important; |
| 70 | + } |
| 71 | + |
| 72 | + .wy-side-nav-search { |
| 73 | + width: 380px !important; |
| 74 | + box-sizing: border-box !important; |
| 75 | + } |
| 76 | + |
| 77 | + .wy-menu.wy-menu-vertical { |
| 78 | + width: 380px !important; |
| 79 | + box-sizing: border-box !important; |
| 80 | + } |
| 81 | + |
| 82 | + .wy-menu-vertical li.current { |
| 83 | + width: 380px !important; |
| 84 | + } |
| 85 | + |
| 86 | + .wy-nav-content-wrap { |
| 87 | + margin-left: 380px !important; |
| 88 | + } |
| 89 | + |
| 90 | + .wy-nav-content { |
| 91 | + max-width: 1400px !important; |
| 92 | + } |
| 93 | +} |
| 94 | + |
| 95 | +/* Ensure sidebar text wraps properly with the increased width */ |
| 96 | +.wy-menu-vertical li.toctree-l1 > a, |
| 97 | +.wy-menu-vertical li.toctree-l2 > a, |
| 98 | +.wy-menu-vertical li.toctree-l3 > a { |
| 99 | + white-space: normal !important; |
| 100 | + line-height: 1.4 !important; |
| 101 | + padding: 0.4045em 1.618em !important; |
| 102 | + width: 100% !important; |
| 103 | + box-sizing: border-box !important; |
| 104 | +} |
| 105 | + |
| 106 | +/* Add slight padding to long navigation items */ |
| 107 | +.wy-menu-vertical li.current > a { |
| 108 | + padding: 0.4045em 1.618em !important; |
| 109 | + width: 100% !important; |
| 110 | + box-sizing: border-box !important; |
| 111 | +} |
| 112 | + |
| 113 | +/* Ensure all list items fill the width */ |
| 114 | +.wy-menu-vertical li { |
| 115 | + width: 100% !important; |
| 116 | +} |
| 117 | + |
| 118 | +/* Ensure current item background fills the width */ |
| 119 | +.wy-menu-vertical li.current > a, |
| 120 | +.wy-menu-vertical li.on a, |
| 121 | +.wy-menu-vertical li.current > a:hover, |
| 122 | +.wy-menu-vertical li.on a:hover { |
| 123 | + background: #e3e3e3 !important; |
| 124 | + width: 100% !important; |
| 125 | + box-sizing: border-box !important; |
| 126 | +} |
| 127 | + |
| 128 | +/* Ensure nested menu items also fill width */ |
| 129 | +.wy-menu-vertical ul { |
| 130 | + width: 100% !important; |
| 131 | +} |
| 132 | + |
| 133 | +.wy-menu-vertical ul li a { |
| 134 | + width: 100% !important; |
| 135 | + box-sizing: border-box !important; |
| 136 | +} |
| 137 | + |
| 138 | +/* Remove purple color from visited links in content area */ |
| 139 | +.wy-nav-content a:visited { |
| 140 | + color: #2980B9 !important; |
| 141 | +} |
| 142 | + |
| 143 | +.wy-nav-content a:link { |
| 144 | + color: #2980B9 !important; |
| 145 | +} |
| 146 | + |
0 commit comments